configure.ac
author alpar
Mon, 02 May 2005 05:49:33 +0000
changeset 1400 d12508c2a007
parent 1380 cb2891afe526
child 1404 17c80cb3754b
permissions -rw-r--r--
Better doc generation.
     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
     5 AC_CONFIG_SRCDIR([src/lemon/invalid.h])
     6 AM_CONFIG_HEADER([config.h])
     7 AC_PREREQ([2.53])
     8 
     9 dnl Save user defined CXXFLAGS
    10 dnl lx_user_cxxflags="$CXXFLAGS"
    11 
    12 dnl Checks for programs.
    13 AC_PROG_CXX
    14 AC_PROG_CXXCPP
    15 AC_PROG_INSTALL
    16 AC_DISABLE_SHARED
    17 AC_PROG_LIBTOOL
    18 
    19 if test $CXX != icc -a $CXX != icpc; then
    20   CXXFLAGS="$CXXFLAGS -Wall -W"
    21 fi
    22 
    23 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    24 
    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.
    29 LX_CHECK_GLPK
    30 LX_CHECK_CPLEX
    31 
    32 LX_ENABLE_DOCS
    33 
    34 dnl Checks for header files.
    35 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    36 
    37 dnl Checks for typedefs, structures, and compiler characteristics.
    38 AC_C_CONST
    39 AC_C_INLINE
    40 AC_TYPE_SIZE_T
    41 AC_HEADER_TIME
    42 AC_STRUCT_TM
    43 
    44 dnl Checks for library functions.
    45 AC_HEADER_STDC
    46 AC_CHECK_FUNCS(gettimeofday times ctime_r)
    47 
    48 AC_CONFIG_FILES([
    49 Makefile
    50 autopackage/default.apspec
    51 doc/Makefile
    52 doc/Doxyfile
    53 src/Makefile
    54 src/lemon/Makefile
    55 src/lemon/lemon.pc
    56 src/benchmark/Makefile
    57 src/demo/Makefile
    58 src/test/Makefile
    59 ])
    60 
    61 AC_OUTPUT
    62 
    63 echo
    64 echo '****************************** SUMMARY ******************************'
    65 echo
    66 echo Package version............... : $PACKAGE-$VERSION
    67 echo
    68 echo C++ compiler.................. : $CXX
    69 echo C++ compiles flags............ : $CXXFLAGS
    70 echo
    71 echo GLPK support.................. : $lx_glpk_found
    72 echo CPLEX support................. : $lx_cplex_found
    73 echo
    74 echo The packace will be installed in
    75 echo -n '  '
    76 echo $prefix.
    77 echo
    78 echo The documentation will be installed in
    79 echo -n '  '
    80 eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html.
    81 echo
    82 echo '*********************************************************************'
    83 
    84 echo
    85 echo configure complete, now type \'make\'
    86 echo