ladanyi@542: dnl Process this file with autoconf to produce a configure script. ladanyi@2412: ladanyi@2412: dnl Version information. ladanyi@2412: m4_define([lemon_version_major], [0]) alpar@2614: m4_define([lemon_version_minor], [7]) ladanyi@2412: m4_define([lemon_version_micro], [90]) ladanyi@2412: m4_define([lemon_version_nano], []) ladanyi@2412: m4_define([lemon_version_tag], [svn]) ladanyi@2412: m4_define([lemon_svn_revision], [m4_normalize(esyscmd([svn info |grep ^Revision |cut -d ' ' -f 2]))]) ladanyi@2412: m4_define([lemon_version], [lemon_version_major().lemon_version_minor()ifelse(lemon_version_micro(), [], [], [.lemon_version_micro()])ifelse(lemon_version_nano(), [], [], [.lemon_version_nano()])ifelse(lemon_version_tag(), [], [], lemon_version_tag(), [svn], [[_]lemon_version_tag()[]lemon_svn_revision()], [[_]lemon_version_tag()])]) ladanyi@2412: ladanyi@2012: AC_PREREQ([2.59]) ladanyi@2412: AC_INIT([LEMON], [lemon_version()], [etik-ol@cs.elte.hu], [lemon]) ladanyi@2012: AC_CONFIG_AUX_DIR([build-aux]) ladanyi@2012: AC_CONFIG_MACRO_DIR([m4]) alpar@2568: AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc]) klao@1994: AC_CONFIG_SRCDIR([lemon/list_graph.h]) ladanyi@1435: AC_CONFIG_HEADERS([config.h lemon/config.h]) ladanyi@542: ladanyi@1905: lx_cmdline_cxxflags_set=${CXXFLAGS+set} ladanyi@1905: ladanyi@542: dnl Checks for programs. ladanyi@542: AC_PROG_CXX ladanyi@1350: AC_PROG_CXXCPP ladanyi@1304: AC_PROG_INSTALL alpar@1327: AC_DISABLE_SHARED ladanyi@1304: AC_PROG_LIBTOOL ladanyi@542: ladanyi@1905: if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then alpar@2390: CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas" ladanyi@1348: fi alpar@716: alpar@1400: AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no]) alpar@1400: ladanyi@542: dnl Checks for libraries. ladanyi@1349: LX_CHECK_GLPK ladanyi@1380: LX_CHECK_CPLEX deba@2315: LX_CHECK_SOPLEX ladanyi@542: ladanyi@1863: dnl Enable/disable installing the documentation ladanyi@1863: AC_ARG_ENABLE([doc], ladanyi@1863: AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@]) ladanyi@1863: AS_HELP_STRING([--disable-doc], [do not build the documentation]), ladanyi@1863: [], [enable_doc=yes]) ladanyi@1863: ladanyi@1863: AC_MSG_CHECKING([whether to build the documention]) ladanyi@1863: case "$enable_doc" in ladanyi@1863: yes) ladanyi@1863: DOXYGEN_INTERNAL_DOCS=NO ladanyi@1863: AC_MSG_RESULT([yes]) ladanyi@1863: ;; ladanyi@1863: full) ladanyi@1863: DOXYGEN_INTERNAL_DOCS=YES ladanyi@1863: AC_MSG_RESULT([full]) ladanyi@1863: ;; ladanyi@1863: no) ladanyi@1863: DOXYGEN_INTERNAL_DOCS=NO ladanyi@1863: AC_MSG_RESULT([no]) ladanyi@1863: ;; ladanyi@1863: *) ladanyi@1863: AC_MSG_ERROR([bad value $enable_doc for option --enable-doc]) ladanyi@1863: ;; ladanyi@1863: esac ladanyi@1863: AC_SUBST(DOXYGEN_INTERNAL_DOCS) ladanyi@1863: AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"]) ladanyi@1863: ladanyi@1863: dnl Disable/enable building the demo programs ladanyi@1863: AC_ARG_ENABLE([demo], ladanyi@1863: AS_HELP_STRING([--enable-demo], [build the demo programs]) ladanyi@1863: AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]), ladanyi@1863: [], [enable_demo=no]) ladanyi@1863: AC_MSG_CHECKING([whether to build the demo programs]) ladanyi@1863: if test x"$enable_demo" != x"no"; then ladanyi@1863: AC_MSG_RESULT([yes]) ladanyi@1863: else ladanyi@1863: AC_MSG_RESULT([no]) ladanyi@1863: fi ladanyi@1863: AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"]) ladanyi@1863: alpar@2390: dnl Disable/enable building the binary tools alpar@2390: AC_ARG_ENABLE([tools], alpar@2390: AS_HELP_STRING([--enable-tools], [build additional tools @<:@default@:>@]) alpar@2390: AS_HELP_STRING([--disable-tools], [do not build additional tools]), alpar@2390: [], [enable_tools=yes]) alpar@2390: AC_MSG_CHECKING([whether to build the additional tools]) alpar@2390: if test x"$enable_tools" != x"no"; then alpar@2390: AC_MSG_RESULT([yes]) alpar@2390: else alpar@2390: AC_MSG_RESULT([no]) alpar@2390: fi alpar@2390: AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"]) alpar@2390: ladanyi@1863: dnl Disable/enable building the benchmarks ladanyi@1863: AC_ARG_ENABLE([benchmark], ladanyi@1863: AS_HELP_STRING([--enable-benchmark], [build the benchmarks]) ladanyi@1863: AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]), ladanyi@1863: [], [enable_benchmark=no]) ladanyi@1863: AC_MSG_CHECKING([whether to build the benchmarks]) ladanyi@1863: if test x"$enable_benchmark" != x"no"; then ladanyi@1863: AC_MSG_RESULT([yes]) ladanyi@1863: else ladanyi@1863: AC_MSG_RESULT([no]) ladanyi@1863: fi ladanyi@1863: AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"]) ladanyi@1863: ladanyi@1863: dnl Checks for header files. ladanyi@1863: AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h) ladanyi@1370: ladanyi@542: dnl Checks for typedefs, structures, and compiler characteristics. ladanyi@542: AC_C_CONST ladanyi@542: AC_C_INLINE ladanyi@542: AC_TYPE_SIZE_T ladanyi@542: AC_HEADER_TIME ladanyi@542: AC_STRUCT_TM ladanyi@542: ladanyi@542: dnl Checks for library functions. ladanyi@542: AC_HEADER_STDC alpar@1108: AC_CHECK_FUNCS(gettimeofday times ctime_r) ladanyi@542: ladanyi@1304: AC_CONFIG_FILES([ ladanyi@1304: Makefile ladanyi@1483: lemon.spec ladanyi@1304: autopackage/default.apspec ladanyi@1304: doc/Doxyfile ladanyi@1435: lemon/lemon.pc ladanyi@1304: ]) ladanyi@1349: ladanyi@542: AC_OUTPUT alpar@1372: alpar@1372: echo alpar@1372: echo '****************************** SUMMARY ******************************' alpar@1372: echo alpar@1372: echo Package version............... : $PACKAGE-$VERSION alpar@1372: echo alpar@1372: echo C++ compiler.................. : $CXX alpar@1372: echo C++ compiles flags............ : $CXXFLAGS alpar@1372: echo alpar@1373: echo GLPK support.................. : $lx_glpk_found ladanyi@1380: echo CPLEX support................. : $lx_cplex_found deba@2315: echo SOPLEX support................ : $lx_soplex_found alpar@1372: echo ladanyi@1863: echo build benchmarks.............. : $enable_benchmark ladanyi@1863: echo build demo programs........... : $enable_demo alpar@2390: echo build additional tools........ : $enable_tools ladanyi@1404: echo alpar@1372: echo The packace will be installed in alpar@1372: echo -n ' ' alpar@1372: echo $prefix. alpar@1372: echo alpar@1372: echo The documentation will be installed in alpar@1372: echo -n ' ' ladanyi@1671: eval echo ${datadir}/doc/$PACKAGE. alpar@1372: echo alpar@1372: echo '*********************************************************************' alpar@1372: alpar@1372: echo alpar@1572: echo configure complete, now type \'make\' and then \'make install\'. alpar@1372: echo