Changes in configure.ac [310:a9e8f310507f:236:da953e387d31] in lemon-1.2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r310 r236 2 2 3 3 dnl Version information. 4 m4_define([lemon_version_number], 5 [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))]) 6 dnl m4_define([lemon_version_number], []) 7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))]) 4 m4_define([lemon_version_number], []) 8 5 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))]) 9 m4_define([lemon_version], [ifelse(lemon_version_number(), 10 [], 11 [lemon_hg_path().lemon_hg_revision()], 12 [lemon_version_number()])]) 6 m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])]) 13 7 14 8 AC_PREREQ([2.59]) … … 22 16 lx_cmdline_cxxflags_set=${CXXFLAGS+set} 23 17 24 dnl Do compilation tests using the C++ compiler.25 AC_LANG([C++])26 27 18 dnl Checks for programs. 28 19 AC_PROG_CXX … … 35 26 AC_CHECK_PROG([gs_found],[gs],[yes],[no]) 36 27 37 dnl Detect Intel compiler.38 AC_MSG_CHECKING([whether we are using the Intel C++ compiler])39 AC_COMPILE_IFELSE([#ifndef __INTEL_COMPILER40 choke me41 #endif], [ICC=[yes]], [ICC=[no]])42 if test x"$ICC" = x"yes"; then43 AC_MSG_RESULT([yes])44 else45 AC_MSG_RESULT([no])46 fi47 48 28 dnl Set custom compiler flags when using g++. 49 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then29 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then 50 30 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" 51 31 fi 52 32 53 33 dnl Checks for libraries. 54 #LX_CHECK_GLPK55 #LX_CHECK_CPLEX56 #LX_CHECK_SOPLEX34 LX_CHECK_GLPK 35 LX_CHECK_CPLEX 36 LX_CHECK_SOPLEX 57 37 58 38 dnl Disable/enable building the demo programs. … … 81 61 fi 82 62 AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"]) 63 64 dnl Disable/enable building the benchmarks. 65 AC_ARG_ENABLE([benchmark], 66 AS_HELP_STRING([--enable-benchmark], [build the benchmarks]) 67 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]), 68 [], [enable_benchmark=no]) 69 AC_MSG_CHECKING([whether to build the benchmarks]) 70 if test x"$enable_benchmark" != x"no"; then 71 AC_MSG_RESULT([yes]) 72 else 73 AC_MSG_RESULT([no]) 74 fi 75 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"]) 83 76 84 77 dnl Checks for header files. … … 116 109 echo C++ compiles flags............ : $CXXFLAGS 117 110 echo 118 #echo GLPK support.................. : $lx_glpk_found 119 #echo CPLEX support................. : $lx_cplex_found 120 #echo SOPLEX support................ : $lx_soplex_found 121 #echo 111 echo GLPK support.................. : $lx_glpk_found 112 echo CPLEX support................. : $lx_cplex_found 113 echo SOPLEX support................ : $lx_soplex_found 114 echo 115 echo Build benchmarks.............. : $enable_benchmark 122 116 echo Build demo programs........... : $enable_demo 123 117 echo Build additional tools........ : $enable_tools
Note: See TracChangeset
for help on using the changeset viewer.