configure.ac
changeset 1501 39d59aee2a1a
parent 1487 6ea6d0d789c6
child 1572 ce52ee162ec0
equal deleted inserted replaced
26:38a8d0d34ea2 27:0c1b3c91f333
     3 AC_CONFIG_AUX_DIR([config])
     3 AC_CONFIG_AUX_DIR([config])
     4 AM_INIT_AUTOMAKE([1.7])
     4 AM_INIT_AUTOMAKE([1.7])
     5 AC_CONFIG_SRCDIR([lemon/invalid.h])
     5 AC_CONFIG_SRCDIR([lemon/invalid.h])
     6 AC_CONFIG_HEADERS([config.h lemon/config.h])
     6 AC_CONFIG_HEADERS([config.h lemon/config.h])
     7 AC_PREREQ([2.59])
     7 AC_PREREQ([2.59])
     8 
       
     9 dnl Save user defined CXXFLAGS
       
    10 dnl lx_user_cxxflags="$CXXFLAGS"
       
    11 
     8 
    12 dnl Checks for programs.
     9 dnl Checks for programs.
    13 AC_PROG_CXX
    10 AC_PROG_CXX
    14 AC_PROG_CXXCPP
    11 AC_PROG_CXXCPP
    15 AC_PROG_INSTALL
    12 AC_PROG_INSTALL
    20   CXXFLAGS="$CXXFLAGS -Wall -W"
    17   CXXFLAGS="$CXXFLAGS -Wall -W"
    21 fi
    18 fi
    22 
    19 
    23 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    20 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    24 
    21 
    25 dnl This is tested only with gcc-3.4 and icc-8.0
       
    26 dnl LX_SET_CXXFLAGS
       
    27 
       
    28 dnl Checks for libraries.
    22 dnl Checks for libraries.
    29 LX_CHECK_GLPK
    23 LX_CHECK_GLPK
    30 LX_CHECK_CPLEX
    24 LX_CHECK_CPLEX
    31 
    25 
    32 LX_DOCDIR_SUFFIX
    26 LX_DOCDIR_SUFFIX
    33 LX_ENABLE_DOCS
    27 LX_ENABLE_DOC
    34 LX_ENABLE_GUI
    28 LX_ENABLE_GUI
    35 
    29 
    36 dnl Checks for header files.
    30 dnl Checks for header files.
    37 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    31 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    38 
    32