[542] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
[1662] | 2 | AC_INIT([LEMON], [0.5], [etik-ol@cs.elte.hu], [lemon]) |
---|
[542] | 3 | AC_CONFIG_AUX_DIR([config]) |
---|
[1482] | 4 | AM_INIT_AUTOMAKE([1.7]) |
---|
[1435] | 5 | AC_CONFIG_SRCDIR([lemon/invalid.h]) |
---|
| 6 | AC_CONFIG_HEADERS([config.h lemon/config.h]) |
---|
[1482] | 7 | AC_PREREQ([2.59]) |
---|
[542] | 8 | |
---|
| 9 | dnl Checks for programs. |
---|
| 10 | AC_PROG_CXX |
---|
[1350] | 11 | AC_PROG_CXXCPP |
---|
[1304] | 12 | AC_PROG_INSTALL |
---|
[1327] | 13 | AC_DISABLE_SHARED |
---|
[1304] | 14 | AC_PROG_LIBTOOL |
---|
[542] | 15 | |
---|
[1348] | 16 | if test $CXX != icc -a $CXX != icpc; then |
---|
[1349] | 17 | CXXFLAGS="$CXXFLAGS -Wall -W" |
---|
[1348] | 18 | fi |
---|
[716] | 19 | |
---|
[1400] | 20 | AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no]) |
---|
| 21 | |
---|
[542] | 22 | dnl Checks for libraries. |
---|
[1349] | 23 | LX_CHECK_GLPK |
---|
[1380] | 24 | LX_CHECK_CPLEX |
---|
[542] | 25 | |
---|
[1489] | 26 | LX_ENABLE_DOC |
---|
[1404] | 27 | LX_ENABLE_GUI |
---|
[1370] | 28 | |
---|
[542] | 29 | dnl Checks for header files. |
---|
[774] | 30 | AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h) |
---|
[542] | 31 | |
---|
| 32 | dnl Checks for typedefs, structures, and compiler characteristics. |
---|
| 33 | AC_C_CONST |
---|
| 34 | AC_C_INLINE |
---|
| 35 | AC_TYPE_SIZE_T |
---|
| 36 | AC_HEADER_TIME |
---|
| 37 | AC_STRUCT_TM |
---|
| 38 | |
---|
| 39 | dnl Checks for library functions. |
---|
| 40 | AC_HEADER_STDC |
---|
[1108] | 41 | AC_CHECK_FUNCS(gettimeofday times ctime_r) |
---|
[542] | 42 | |
---|
[1304] | 43 | AC_CONFIG_FILES([ |
---|
| 44 | Makefile |
---|
[1483] | 45 | lemon.spec |
---|
[1304] | 46 | autopackage/default.apspec |
---|
| 47 | doc/Makefile |
---|
| 48 | doc/Doxyfile |
---|
[1435] | 49 | lemon/Makefile |
---|
| 50 | lemon/lemon.pc |
---|
| 51 | benchmark/Makefile |
---|
| 52 | demo/Makefile |
---|
| 53 | test/Makefile |
---|
| 54 | gui/Makefile |
---|
[1659] | 55 | gui/icons/Makefile |
---|
[1304] | 56 | ]) |
---|
[1349] | 57 | |
---|
[542] | 58 | AC_OUTPUT |
---|
[1372] | 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 |
---|
[1373] | 68 | echo GLPK support.................. : $lx_glpk_found |
---|
[1380] | 69 | echo CPLEX support................. : $lx_cplex_found |
---|
[1372] | 70 | echo |
---|
[1404] | 71 | echo build GUI..................... : $enable_gui |
---|
| 72 | echo |
---|
[1372] | 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 ' ' |
---|
[1671] | 79 | eval echo ${datadir}/doc/$PACKAGE. |
---|
[1372] | 80 | echo |
---|
| 81 | echo '*********************************************************************' |
---|
| 82 | |
---|
| 83 | echo |
---|
[1572] | 84 | echo configure complete, now type \'make\' and then \'make install\'. |
---|
[1372] | 85 | echo |
---|