Changes in configure.ac [564:2b6d5d22bb23:1276:bb4fde5d0634] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r564 r1276 3 3 dnl Version information. 4 4 m4_define([lemon_version_number], 5 5 [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))]) 6 6 dnl m4_define([lemon_version_number], []) 7 7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))]) 8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i ]))])8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))]) 9 9 m4_define([lemon_version], [ifelse(lemon_version_number(), 10 [], 11 [lemon_hg_path().lemon_hg_revision()], 12 [lemon_version_number()])]) 10 [], 11 [ifelse(lemon_hg_revision(), 12 [], 13 [hg-tip], 14 [lemon_hg_path().lemon_hg_revision()])], 15 [lemon_version_number()])]) 13 16 14 17 AC_PREREQ([2.59]) … … 16 19 AC_CONFIG_AUX_DIR([build-aux]) 17 20 AC_CONFIG_MACRO_DIR([m4]) 18 AM_INIT_AUTOMAKE([-Wall -Werrorforeign subdir-objects nostdinc])21 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects nostdinc]) 19 22 AC_CONFIG_SRCDIR([lemon/list_graph.h]) 20 23 AC_CONFIG_HEADERS([config.h lemon/config.h]) 24 25 AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string]) 21 26 22 27 dnl Do compilation tests using the C++ compiler. … … 26 31 AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no]) 27 32 if test x"$long_long_found" = x"yes"; then 28 AC_DEFINE([ HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])33 AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.]) 29 34 fi 30 35 … … 37 42 38 43 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no]) 44 AC_CHECK_PROG([python_found],[python],[yes],[no]) 39 45 AC_CHECK_PROG([gs_found],[gs],[yes],[no]) 40 46 … … 60 66 LX_CHECK_CPLEX 61 67 LX_CHECK_SOPLEX 62 LX_CHECK_C LP68 LX_CHECK_COIN 63 69 64 70 AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"]) 65 71 AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"]) 66 67 dnl Disable/enable building the demo programs.68 AC_ARG_ENABLE([demo],69 AS_HELP_STRING([--enable-demo], [build the demo programs])70 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),71 [], [enable_demo=no])72 AC_MSG_CHECKING([whether to build the demo programs])73 if test x"$enable_demo" != x"no"; then74 AC_MSG_RESULT([yes])75 else76 AC_MSG_RESULT([no])77 fi78 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])79 72 80 73 dnl Disable/enable building the binary tools. … … 90 83 fi 91 84 AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"]) 85 86 dnl Support for running test cases using valgrind. 87 use_valgrind=no 88 AC_ARG_ENABLE([valgrind], 89 AS_HELP_STRING([--enable-valgrind], [use valgrind when running tests]), 90 [use_valgrind=yes]) 91 92 if [[ "$use_valgrind" = "yes" ]]; then 93 AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no) 94 95 if [[ "$HAVE_VALGRIND" = "no" ]]; then 96 AC_MSG_ERROR([Valgrind not found in PATH.]) 97 fi 98 fi 99 AM_CONDITIONAL(USE_VALGRIND, [test "$use_valgrind" = "yes"]) 92 100 93 101 dnl Checks for header files. … … 107 115 dnl Add dependencies on files generated by configure. 108 116 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], 109 ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/ lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])117 ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/doc/mainpage.dox.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in']) 110 118 111 119 AC_CONFIG_FILES([ 112 120 Makefile 121 demo/Makefile 113 122 cmake/version.cmake 114 123 doc/Doxyfile 124 doc/mainpage.dox 115 125 lemon/lemon.pc 116 126 ]) … … 132 142 echo SOPLEX support................ : $lx_soplex_found 133 143 echo CLP support................... : $lx_clp_found 144 echo CBC support................... : $lx_cbc_found 134 145 echo 135 echo Build demo programs........... : $enable_demo136 146 echo Build additional tools........ : $enable_tools 147 echo Use valgrind for tests........ : $use_valgrind 137 148 echo 138 149 echo The packace will be installed in
Note: See TracChangeset
for help on using the changeset viewer.