COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r310 r236  
    22
    33dnl 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]))])
     4m4_define([lemon_version_number], [])
    85m4_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()])])
     6m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])])
    137
    148AC_PREREQ([2.59])
     
    2216lx_cmdline_cxxflags_set=${CXXFLAGS+set}
    2317
    24 dnl Do compilation tests using the C++ compiler.
    25 AC_LANG([C++])
    26 
    2718dnl Checks for programs.
    2819AC_PROG_CXX
     
    3526AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    3627
    37 dnl Detect Intel compiler.
    38 AC_MSG_CHECKING([whether we are using the Intel C++ compiler])
    39 AC_COMPILE_IFELSE([#ifndef __INTEL_COMPILER
    40 choke me
    41 #endif], [ICC=[yes]], [ICC=[no]])
    42 if test x"$ICC" = x"yes"; then
    43   AC_MSG_RESULT([yes])
    44 else
    45   AC_MSG_RESULT([no])
    46 fi
    47 
    4828dnl Set custom compiler flags when using g++.
    49 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then
     29if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
    5030  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"
    5131fi
    5232
    5333dnl Checks for libraries.
    54 #LX_CHECK_GLPK
    55 #LX_CHECK_CPLEX
    56 #LX_CHECK_SOPLEX
     34LX_CHECK_GLPK
     35LX_CHECK_CPLEX
     36LX_CHECK_SOPLEX
    5737
    5838dnl Disable/enable building the demo programs.
     
    8161fi
    8262AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
     63
     64dnl Disable/enable building the benchmarks.
     65AC_ARG_ENABLE([benchmark],
     66AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
     67AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
     68              [], [enable_benchmark=no])
     69AC_MSG_CHECKING([whether to build the benchmarks])
     70if test x"$enable_benchmark" != x"no"; then
     71  AC_MSG_RESULT([yes])
     72else
     73  AC_MSG_RESULT([no])
     74fi
     75AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
    8376
    8477dnl Checks for header files.
     
    116109echo C++ compiles flags............ : $CXXFLAGS
    117110echo
    118 #echo GLPK support.................. : $lx_glpk_found
    119 #echo CPLEX support................. : $lx_cplex_found
    120 #echo SOPLEX support................ : $lx_soplex_found
    121 #echo
     111echo GLPK support.................. : $lx_glpk_found
     112echo CPLEX support................. : $lx_cplex_found
     113echo SOPLEX support................ : $lx_soplex_found
     114echo
     115echo Build benchmarks.............. : $enable_benchmark
    122116echo Build demo programs........... : $enable_demo
    123117echo Build additional tools........ : $enable_tools
Note: See TracChangeset for help on using the changeset viewer.