COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r482 r1037  
    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]))])
     8m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))])
    99m4_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()])])
    1316
    1417AC_PREREQ([2.59])
     
    2023AC_CONFIG_HEADERS([config.h lemon/config.h])
    2124
     25AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string])
     26
    2227dnl Do compilation tests using the C++ compiler.
    2328AC_LANG([C++])
     29
     30dnl Check the existence of long long type.
     31AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no])
     32if test x"$long_long_found" = x"yes"; then
     33  AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])
     34fi
    2435
    2536dnl Checks for programs.
     
    5465LX_CHECK_CPLEX
    5566LX_CHECK_SOPLEX
    56 LX_CHECK_CLP
     67LX_CHECK_COIN
    5768
    5869AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
    5970AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
    60 
    61 dnl Disable/enable building the demo programs.
    62 AC_ARG_ENABLE([demo],
    63 AS_HELP_STRING([--enable-demo], [build the demo programs])
    64 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
    65               [], [enable_demo=no])
    66 AC_MSG_CHECKING([whether to build the demo programs])
    67 if test x"$enable_demo" != x"no"; then
    68   AC_MSG_RESULT([yes])
    69 else
    70   AC_MSG_RESULT([no])
    71 fi
    72 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
    7371
    7472dnl Disable/enable building the binary tools.
     
    10199dnl Add dependencies on files generated by configure.
    102100AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
    103   ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in'])
     101  ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/doc/mainpage.dox.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
    104102
    105103AC_CONFIG_FILES([
    106104Makefile
     105demo/Makefile
     106cmake/version.cmake
    107107doc/Doxyfile
     108doc/mainpage.dox
    108109lemon/lemon.pc
    109110])
     
    119120echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS
    120121echo
     122echo Compiler supports long long... : $long_long_found
     123echo
    121124echo GLPK support.................. : $lx_glpk_found
    122125echo CPLEX support................. : $lx_cplex_found
    123126echo SOPLEX support................ : $lx_soplex_found
    124127echo CLP support................... : $lx_clp_found
     128echo CBC support................... : $lx_cbc_found
    125129echo
    126 echo Build demo programs........... : $enable_demo
    127130echo Build additional tools........ : $enable_tools
    128131echo
Note: See TracChangeset for help on using the changeset viewer.