configure.ac
author alpar
Wed, 20 Jul 2005 08:03:15 +0000
changeset 1572 ce52ee162ec0
parent 1489 f7e9cc3bc2da
child 1659 ab1e97b7b2b7
permissions -rw-r--r--
A bit more information on installation.
     1 dnl Process this file with autoconf to produce a configure script.
     2 AC_INIT([LEMON], [0.4], [etik-ol@cs.elte.hu], [lemon])
     3 AC_CONFIG_AUX_DIR([config])
     4 AM_INIT_AUTOMAKE([1.7])
     5 AC_CONFIG_SRCDIR([lemon/invalid.h])
     6 AC_CONFIG_HEADERS([config.h lemon/config.h])
     7 AC_PREREQ([2.59])
     8 
     9 dnl Checks for programs.
    10 AC_PROG_CXX
    11 AC_PROG_CXXCPP
    12 AC_PROG_INSTALL
    13 AC_DISABLE_SHARED
    14 AC_PROG_LIBTOOL
    15 
    16 if test $CXX != icc -a $CXX != icpc; then
    17   CXXFLAGS="$CXXFLAGS -Wall -W"
    18 fi
    19 
    20 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    21 
    22 dnl Checks for libraries.
    23 LX_CHECK_GLPK
    24 LX_CHECK_CPLEX
    25 
    26 LX_DOCDIR_SUFFIX
    27 LX_ENABLE_DOC
    28 LX_ENABLE_GUI
    29 
    30 dnl Checks for header files.
    31 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    32 
    33 dnl Checks for typedefs, structures, and compiler characteristics.
    34 AC_C_CONST
    35 AC_C_INLINE
    36 AC_TYPE_SIZE_T
    37 AC_HEADER_TIME
    38 AC_STRUCT_TM
    39 
    40 dnl Checks for library functions.
    41 AC_HEADER_STDC
    42 AC_CHECK_FUNCS(gettimeofday times ctime_r)
    43 
    44 AC_CONFIG_FILES([
    45 Makefile
    46 lemon.spec
    47 autopackage/default.apspec
    48 doc/Makefile
    49 doc/Doxyfile
    50 lemon/Makefile
    51 lemon/lemon.pc
    52 benchmark/Makefile
    53 demo/Makefile
    54 test/Makefile
    55 gui/Makefile
    56 ])
    57 
    58 AC_OUTPUT
    59 
    60 echo
    61 echo '****************************** SUMMARY ******************************'
    62 echo
    63 echo Package version............... : $PACKAGE-$VERSION
    64 echo
    65 echo C++ compiler.................. : $CXX
    66 echo C++ compiles flags............ : $CXXFLAGS
    67 echo
    68 echo GLPK support.................. : $lx_glpk_found
    69 echo CPLEX support................. : $lx_cplex_found
    70 echo
    71 echo build GUI..................... : $enable_gui
    72 echo
    73 echo The packace will be installed in
    74 echo -n '  '
    75 echo $prefix.
    76 echo
    77 echo The documentation will be installed in
    78 echo -n '  '
    79 eval echo ${datadir}/doc/$DOCSUFFIX.
    80 echo
    81 echo '*********************************************************************'
    82 
    83 echo
    84 echo configure complete, now type \'make\' and then \'make install\'.
    85 echo