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