Changes in configure.ac [627:20dac2104519:485:7992dcb0d0e6] in lemon-1.2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r627 r485 20 20 AC_CONFIG_HEADERS([config.h lemon/config.h]) 21 21 22 lx_cmdline_cxxflags_set=${CXXFLAGS+set} 23 22 24 dnl Do compilation tests using the C++ compiler. 23 25 AC_LANG([C++]) … … 26 28 AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no]) 27 29 if test x"$long_long_found" = x"yes"; then 28 AC_DEFINE([ LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])30 AC_DEFINE([HAVE_LONG_LONG], [1], [Define to 1 if you have long long.]) 29 31 fi 30 32 … … 51 53 52 54 dnl Set custom compiler flags when using g++. 53 if test "$GXX" = yes -a "$ICC" = no; then54 WARNINGCXXFLAGS="-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 -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"55 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then 56 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" 55 57 fi 56 AC_SUBST([WARNINGCXXFLAGS])57 58 58 59 dnl Checks for libraries. 59 LX_CHECK_GLPK 60 LX_CHECK_CPLEX 61 LX_CHECK_SOPLEX 62 LX_CHECK_COIN 60 #LX_CHECK_GLPK 61 #LX_CHECK_CPLEX 62 #LX_CHECK_SOPLEX 63 63 64 AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"]) 65 AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"]) 64 dnl Disable/enable building the demo programs. 65 AC_ARG_ENABLE([demo], 66 AS_HELP_STRING([--enable-demo], [build the demo programs]) 67 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]), 68 [], [enable_demo=no]) 69 AC_MSG_CHECKING([whether to build the demo programs]) 70 if test x"$enable_demo" != x"no"; then 71 AC_MSG_RESULT([yes]) 72 else 73 AC_MSG_RESULT([no]) 74 fi 75 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"]) 66 76 67 77 dnl Disable/enable building the binary tools. … … 98 108 AC_CONFIG_FILES([ 99 109 Makefile 100 demo/Makefile101 110 cmake/version.cmake 102 111 doc/Doxyfile … … 112 121 echo 113 122 echo C++ compiler.................. : $CXX 114 echo C++ compiles flags............ : $ WARNINGCXXFLAGS $CXXFLAGS123 echo C++ compiles flags............ : $CXXFLAGS 115 124 echo 116 125 echo Compiler supports long long... : $long_long_found 117 126 echo 118 echo GLPK support.................. : $lx_glpk_found 119 echo CPLEX support................. : $lx_cplex_found 120 echo SOPLEX support................ : $lx_soplex_found 121 echo CLP support................... : $lx_clp_found 122 echo CBC support................... : $lx_cbc_found 123 echo 127 #echo GLPK support.................. : $lx_glpk_found 128 #echo CPLEX support................. : $lx_cplex_found 129 #echo SOPLEX support................ : $lx_soplex_found 130 #echo 131 echo Build demo programs........... : $enable_demo 124 132 echo Build additional tools........ : $enable_tools 125 133 echo
Note: See TracChangeset
for help on using the changeset viewer.