COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r791 r482  
    33dnl Version information.
    44m4_define([lemon_version_number],
    5           [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
     5        [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
    66dnl m4_define([lemon_version_number], [])
    77m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
    8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))])
     8m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
    99m4_define([lemon_version], [ifelse(lemon_version_number(),
    10                            [],
    11                            [ifelse(lemon_hg_revision(),
    12                            [],
    13                            [hg-tip],
    14                            [lemon_hg_path().lemon_hg_revision()])],
    15                            [lemon_version_number()])])
     10                           [],
     11                           [lemon_hg_path().lemon_hg_revision()],
     12                           [lemon_version_number()])])
    1613
    1714AC_PREREQ([2.59])
     
    2320AC_CONFIG_HEADERS([config.h lemon/config.h])
    2421
    25 AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string])
    26 
    2722dnl Do compilation tests using the C++ compiler.
    2823AC_LANG([C++])
    29 
    30 dnl Check the existence of long long type.
    31 AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no])
    32 if test x"$long_long_found" = x"yes"; then
    33   AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])
    34 fi
    3524
    3625dnl Checks for programs.
     
    4231
    4332AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    44 AC_CHECK_PROG([python_found],[python],[yes],[no])
    4533AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    4634
     
    6654LX_CHECK_CPLEX
    6755LX_CHECK_SOPLEX
    68 LX_CHECK_COIN
     56LX_CHECK_CLP
    6957
    7058AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
    7159AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
     60
     61dnl Disable/enable building the demo programs.
     62AC_ARG_ENABLE([demo],
     63AS_HELP_STRING([--enable-demo], [build the demo programs])
     64AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
     65              [], [enable_demo=no])
     66AC_MSG_CHECKING([whether to build the demo programs])
     67if test x"$enable_demo" != x"no"; then
     68  AC_MSG_RESULT([yes])
     69else
     70  AC_MSG_RESULT([no])
     71fi
     72AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
    7273
    7374dnl Disable/enable building the binary tools.
     
    100101dnl Add dependencies on files generated by configure.
    101102AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
    102   ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
     103  ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in'])
    103104
    104105AC_CONFIG_FILES([
    105106Makefile
    106 demo/Makefile
    107 cmake/version.cmake
    108107doc/Doxyfile
    109108lemon/lemon.pc
     
    120119echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS
    121120echo
    122 echo Compiler supports long long... : $long_long_found
    123 echo
    124121echo GLPK support.................. : $lx_glpk_found
    125122echo CPLEX support................. : $lx_cplex_found
    126123echo SOPLEX support................ : $lx_soplex_found
    127124echo CLP support................... : $lx_clp_found
    128 echo CBC support................... : $lx_cbc_found
    129125echo
     126echo Build demo programs........... : $enable_demo
    130127echo Build additional tools........ : $enable_tools
    131128echo
Note: See TracChangeset for help on using the changeset viewer.