configure.ac
author alpar
Tue, 14 Jun 2005 19:19:59 +0000
changeset 1488 92755f9a4e2a
parent 1483 e427615afb48
child 1489 f7e9cc3bc2da
permissions -rw-r--r--
Concept checking classes must also be installed
ladanyi@542
     1
dnl Process this file with autoconf to produce a configure script.
alpar@1163
     2
AC_INIT([LEMON], [0.4], [etik-ol@cs.elte.hu], [lemon])
ladanyi@542
     3
AC_CONFIG_AUX_DIR([config])
ladanyi@1482
     4
AM_INIT_AUTOMAKE([1.7])
ladanyi@1435
     5
AC_CONFIG_SRCDIR([lemon/invalid.h])
ladanyi@1435
     6
AC_CONFIG_HEADERS([config.h lemon/config.h])
ladanyi@1482
     7
AC_PREREQ([2.59])
ladanyi@542
     8
ladanyi@1350
     9
dnl Save user defined CXXFLAGS
ladanyi@1350
    10
dnl lx_user_cxxflags="$CXXFLAGS"
ladanyi@1350
    11
ladanyi@542
    12
dnl Checks for programs.
ladanyi@542
    13
AC_PROG_CXX
ladanyi@1350
    14
AC_PROG_CXXCPP
ladanyi@1304
    15
AC_PROG_INSTALL
alpar@1327
    16
AC_DISABLE_SHARED
ladanyi@1304
    17
AC_PROG_LIBTOOL
ladanyi@542
    18
ladanyi@1348
    19
if test $CXX != icc -a $CXX != icpc; then
ladanyi@1349
    20
  CXXFLAGS="$CXXFLAGS -Wall -W"
ladanyi@1348
    21
fi
alpar@716
    22
alpar@1400
    23
AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
alpar@1400
    24
ladanyi@1350
    25
dnl This is tested only with gcc-3.4 and icc-8.0
ladanyi@1350
    26
dnl LX_SET_CXXFLAGS
ladanyi@1350
    27
ladanyi@542
    28
dnl Checks for libraries.
ladanyi@1349
    29
LX_CHECK_GLPK
ladanyi@1380
    30
LX_CHECK_CPLEX
ladanyi@542
    31
ladanyi@1487
    32
LX_DOCDIR_SUFFIX
ladanyi@1370
    33
LX_ENABLE_DOCS
ladanyi@1404
    34
LX_ENABLE_GUI
ladanyi@1370
    35
ladanyi@542
    36
dnl Checks for header files.
alpar@774
    37
AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
ladanyi@542
    38
ladanyi@542
    39
dnl Checks for typedefs, structures, and compiler characteristics.
ladanyi@542
    40
AC_C_CONST
ladanyi@542
    41
AC_C_INLINE
ladanyi@542
    42
AC_TYPE_SIZE_T
ladanyi@542
    43
AC_HEADER_TIME
ladanyi@542
    44
AC_STRUCT_TM
ladanyi@542
    45
ladanyi@542
    46
dnl Checks for library functions.
ladanyi@542
    47
AC_HEADER_STDC
alpar@1108
    48
AC_CHECK_FUNCS(gettimeofday times ctime_r)
ladanyi@542
    49
ladanyi@1304
    50
AC_CONFIG_FILES([
ladanyi@1304
    51
Makefile
ladanyi@1483
    52
lemon.spec
ladanyi@1304
    53
autopackage/default.apspec
ladanyi@1304
    54
doc/Makefile
ladanyi@1304
    55
doc/Doxyfile
ladanyi@1435
    56
lemon/Makefile
ladanyi@1435
    57
lemon/lemon.pc
ladanyi@1435
    58
benchmark/Makefile
ladanyi@1435
    59
demo/Makefile
ladanyi@1435
    60
test/Makefile
ladanyi@1435
    61
gui/Makefile
ladanyi@1304
    62
])
ladanyi@1349
    63
ladanyi@542
    64
AC_OUTPUT
alpar@1372
    65
alpar@1372
    66
echo
alpar@1372
    67
echo '****************************** SUMMARY ******************************'
alpar@1372
    68
echo
alpar@1372
    69
echo Package version............... : $PACKAGE-$VERSION
alpar@1372
    70
echo
alpar@1372
    71
echo C++ compiler.................. : $CXX
alpar@1372
    72
echo C++ compiles flags............ : $CXXFLAGS
alpar@1372
    73
echo
alpar@1373
    74
echo GLPK support.................. : $lx_glpk_found
ladanyi@1380
    75
echo CPLEX support................. : $lx_cplex_found
alpar@1372
    76
echo
ladanyi@1404
    77
echo build GUI..................... : $enable_gui
ladanyi@1404
    78
echo
alpar@1372
    79
echo The packace will be installed in
alpar@1372
    80
echo -n '  '
alpar@1372
    81
echo $prefix.
alpar@1372
    82
echo
alpar@1372
    83
echo The documentation will be installed in
alpar@1372
    84
echo -n '  '
ladanyi@1487
    85
eval echo ${datadir}/doc/$DOCSUFFIX.
alpar@1372
    86
echo
alpar@1372
    87
echo '*********************************************************************'
alpar@1372
    88
alpar@1372
    89
echo
alpar@1372
    90
echo configure complete, now type \'make\'
alpar@1372
    91
echo