Demos and benchmarks are not built by default now. They can be enabled with the --enable-demo and --enable-benchmark configure flags.
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT([LEMON], [0.5], [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])
9 dnl Checks for programs.
16 if test $CXX != icc -a $CXX != icpc; then
17 CXXFLAGS="$CXXFLAGS -Wall -W"
20 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
22 dnl Checks for libraries.
26 dnl Enable/disable installing the documentation
28 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
29 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
32 AC_MSG_CHECKING([whether to build the documention])
35 DOXYGEN_INTERNAL_DOCS=NO
39 DOXYGEN_INTERNAL_DOCS=YES
43 DOXYGEN_INTERNAL_DOCS=NO
47 AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
50 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
51 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
53 dnl Disable/enable building the GUI
55 AS_HELP_STRING([--enable-gui], [build the GUI])
56 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
58 AC_MSG_CHECKING([whether to build the GUI])
59 if test x"$enable_gui" != x"no"; then
64 if test x"$enable_gui" != x"no"; then
65 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
67 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
69 dnl Disable/enable building the demo programs
71 AS_HELP_STRING([--enable-demo], [build the demo programs])
72 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
74 AC_MSG_CHECKING([whether to build the demo programs])
75 if test x"$enable_demo" != x"no"; then
80 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
82 dnl Disable/enable building the benchmarks
83 AC_ARG_ENABLE([benchmark],
84 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
85 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
86 [], [enable_benchmark=no])
87 AC_MSG_CHECKING([whether to build the benchmarks])
88 if test x"$enable_benchmark" != x"no"; then
93 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
95 dnl Checks for header files.
96 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
98 dnl Checks for header files.
99 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
101 dnl Checks for typedefs, structures, and compiler characteristics.
108 dnl Checks for library functions.
110 AC_CHECK_FUNCS(gettimeofday times ctime_r)
115 autopackage/default.apspec
129 echo '****************************** SUMMARY ******************************'
131 echo Package version............... : $PACKAGE-$VERSION
133 echo C++ compiler.................. : $CXX
134 echo C++ compiles flags............ : $CXXFLAGS
136 echo GLPK support.................. : $lx_glpk_found
137 echo CPLEX support................. : $lx_cplex_found
139 echo build benchmarks.............. : $enable_benchmark
140 echo build demo programs........... : $enable_demo
141 echo build GUI..................... : $enable_gui
143 echo The packace will be installed in
147 echo The documentation will be installed in
149 eval echo ${datadir}/doc/$PACKAGE.
151 echo '*********************************************************************'
154 echo configure complete, now type \'make\' and then \'make install\'.