1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([LEMON], [svn-head], [etik-ol@cs.elte.hu], [lemon])
4 AC_CONFIG_AUX_DIR([build-aux])
5 AC_CONFIG_MACRO_DIR([m4])
6 dnl AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7 AM_INIT_AUTOMAKE([-Wall foreign])
8 AC_CONFIG_SRCDIR([lemon/list_graph.h])
9 AC_CONFIG_HEADERS([config.h lemon/config.h])
11 lx_cmdline_cxxflags_set=${CXXFLAGS+set}
13 dnl Checks for programs.
21 AM_GNU_GETTEXT_VERSION([0.14.5])
22 AM_GNU_GETTEXT([external])
24 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
25 CXXFLAGS="$CXXFLAGS -Wall -W"
28 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
30 dnl Checks for libraries.
34 dnl Enable/disable installing the documentation
36 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
37 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
40 AC_MSG_CHECKING([whether to build the documention])
43 DOXYGEN_INTERNAL_DOCS=NO
47 DOXYGEN_INTERNAL_DOCS=YES
51 DOXYGEN_INTERNAL_DOCS=NO
55 AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
58 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
59 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
61 dnl Disable/enable building the GUI
63 AS_HELP_STRING([--enable-gui], [build the GUI])
64 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
66 AC_MSG_CHECKING([whether to build the GUI])
67 if test x"$enable_gui" != x"no"; then
72 if test x"$enable_gui" != x"no"; then
73 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
75 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
77 dnl Disable/enable building the demo programs
79 AS_HELP_STRING([--enable-demo], [build the demo programs])
80 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
82 AC_MSG_CHECKING([whether to build the demo programs])
83 if test x"$enable_demo" != x"no"; then
88 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
90 dnl Disable/enable building the benchmarks
91 AC_ARG_ENABLE([benchmark],
92 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
93 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
94 [], [enable_benchmark=no])
95 AC_MSG_CHECKING([whether to build the benchmarks])
96 if test x"$enable_benchmark" != x"no"; then
101 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
103 dnl Checks for header files.
104 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
106 dnl Checks for typedefs, structures, and compiler characteristics.
113 dnl Checks for library functions.
115 AC_CHECK_FUNCS(gettimeofday times ctime_r)
120 autopackage/default.apspec
135 echo '****************************** SUMMARY ******************************'
137 echo Package version............... : $PACKAGE-$VERSION
139 echo C++ compiler.................. : $CXX
140 echo C++ compiles flags............ : $CXXFLAGS
142 echo GLPK support.................. : $lx_glpk_found
143 echo CPLEX support................. : $lx_cplex_found
145 echo build benchmarks.............. : $enable_benchmark
146 echo build demo programs........... : $enable_demo
147 echo build GUI..................... : $enable_gui
149 echo The packace will be installed in
153 echo The documentation will be installed in
155 eval echo ${datadir}/doc/$PACKAGE.
157 echo '*********************************************************************'
160 echo configure complete, now type \'make\' and then \'make install\'.