Source

lrc / configure.in

Full commit
Andreas Tscharne… 72007fd 

Andreas Tscharne… f06d835 
Andreas Tscharne… 72007fd 

Andreas Tscharne… 13365b8 


Andreas Tscharne… 72007fd 





Andreas Tscharne… 13365b8 

Andreas Tscharne… 72007fd 





Andreas Tscharne… 445f7fe 
Andreas Tscharne… 72007fd 
Andreas Tscharne… 80b4aed 
Andreas Tscharne… 72007fd 







Andreas Tscharne… adf8506 
Andreas Tscharne… 72007fd 



Andreas Tscharne… 76d63b6 
Andreas Tscharne… f06d835 
Andreas Tscharne… 76d63b6 

Andreas Tscharne… c2db6a8 


Andreas Tscharne… ff198d9 
Andreas Tscharne… b15668b 
Andreas Tscharne… ff198d9 

Andreas Tscharne… 72007fd 


Andreas Tscharne… 628b47c 

Andreas Tscharne… 72007fd 




Andreas Tscharne… 0108de4 
Andreas Tscharne… 72007fd 


Andreas Tscharne… 63a0ec6 



Andreas Tscharne… 72007fd 
Andreas Tscharne… 63a0ec6 







Andreas Tscharne… 93f657c 
Andreas Tscharne… ff198d9 


Andreas Tscharne… 93f657c 
Andreas Tscharne… 72007fd 
Andreas Tscharne… 76d63b6 
Andreas Tscharne… c2db6a8 

Andreas Tscharne… 72007fd 





Andreas Tscharne… b900bcb 




Andreas Tscharne… ff198d9 
Andreas Tscharne… b900bcb 
Andreas Tscharne… da12ac8 
Andreas Tscharne… b900bcb 

Andreas Tscharne… 72007fd 
#      configure.in
#
#      Copyright 2011, 2012 Andreas Tscharner <andy@vis.ethz.ch>
#
#      This program is free software; you can redistribute it and/or modify
#      it under the terms of the GNU Lesser General Public License as
#      published by the Free Software Foundation; either version 3 of the
#      License, or (at your option) any later version.
#
#      This program is distributed in the hope that it will be useful,
#      but WITHOUT ANY WARRANTY; without even the implied warranty of
#      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#      GNU General Public License for more details.
#
#      You should have received a copy of the GNU Lesser General Public
#      License along with this program; if not, write to the Free Software
#      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#      MA 02110-1301, USA.


#
# Initialize
AC_INIT([Linux Resource Compiler], [1.0], [https://bitbucket.org/StarFire/lrc/issues/new], [lrc])
AC_CONFIG_SRCDIR(src/lrcExceptions.hxx)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(src/lrc_config.h)

#
# Check for programs
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_CHECK_PROG(doxy_ok, doxygen, yes, no)

#
# Check for libraries
AC_CHECK_LIB(z, zlibVersion, zLib_ok=yes, zLib_ok=no)
AC_CHECK_LIB(bz2, BZ2_bzlibVersion, bz2Lib_ok=yes, bz2Lib_ok=no)
AC_CHECK_LIB(SDL, SDL_Init, SDL_ok=yes, SDL_ok=no)
AC_CHECK_LIB(SDL_image, IMG_Init, SDLIMAGE_ok=yes, SDLIMAGE_ok=no)
PKG_CHECK_EXISTS([tinyxml], [TINYXML_ok="yes"], [TINYXML_ok="no (using internal)"])
PKG_CHECK_EXISTS([libcryptopp], [CRYPTOPP_ok="yes"], [CRYPTOPP_ok="no (using internal)"])
PKG_CHECK_EXISTS([libcrypto++], [PPCRYPTO_ok="yes"], [PPCRYPTO_ok="no (using internal)"])
PKG_CHECK_MODULES([GUI_DEPS],
                  [glibmm-2.4 >= 2.32.0 gtkmm-3.0 >= 3.4.0],
                  [GUI_DEPS_ok="yes"],
                  [GUI_DEPS_ok="no (do not build the gui"])

#
# Check for header files
AC_CHECK_HEADERS_ONCE([unistd.h])
AC_CHECK_HEADERS_ONCE([sys/stat.h])

#
# Check for typedefs, structures and compiler characteristics
AC_C_CONST
AC_C_INLINE
#AC_CXX_COMPILE_STDCXX_0X    not supported at the moment

#
# Check for some special things
AC_ARG_ENABLE(debug,
              AC_HELP_STRING([--enable-debug], [Enable debugging (debug flags, no optimization)]),
              [LRC_DEBUG="yes"],
              [LRC_DEBUG="no (optimize)"])
AM_CONDITIONAL(DEBUG, test "$LRC_DEBUG" = yes)
AC_ARG_ENABLE(encryption,
              AC_HELP_STRING([--disable-encryption],
                             [Disable encryption (no compilation and linking of cryptopp)]),,
              [LRC_ENCRYPTION="yes"])
AM_CONDITIONAL([NO_ENCRYPTION], [test "$LRC_ENCRYPTION" != yes])
if test "$LRC_ENCRYPTION" != yes; then
  AC_DEFINE([NO_ENCRYPTION], [], [Disable encryption])
fi
AC_ARG_ENABLE(gui,
              AC_HELP_STRING([--disable-gui], [Do not build the lrc Resource Editor]),
              [LRC_GUI="no"],)
AM_CONDITIONAL([NO_GUI], [test "$LRC_GUI" = no || test "$GUI_DEPS_ok" != yes])

AM_CONDITIONAL(HAVE_DOXYGEN, test "$doxy_ok" = yes)
AM_CONDITIONAL(HAVE_ALL_SDL, test "$SDL_ok" = yes && test "$SDLIMAGE_ok" = yes)
AM_CONDITIONAL(HAVE_TINYXML, test "$TINYXML_ok" = yes)
AM_CONDITIONAL(HAVE_CRYPTOPP, test "$CRYPTOPP_ok" = yes || test "$PPCRYPTO_ok" = yes)

#
# Check for library functions

#
# Create Makefiles
AC_CONFIG_FILES(Makefile                      \
                src/Makefile                  \
                src/compiler/Makefile         \
                src/compiler/tinyxml/Makefile \
                src/example/Makefile          \
                src/gui/Makefile              \
                src/lib/Makefile              \
                src/pkgconfig/liblrc.pc       \
                src/strategies/Makefile       \
                man/Makefile                  \
                doc/Makefile)
AC_OUTPUT