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.
20 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
21 CXXFLAGS="$CXXFLAGS -Wall -W"
24 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
26 dnl Checks for libraries.
30 dnl Enable/disable installing the documentation
32 AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
33 AS_HELP_STRING([--disable-doc], [do not build the documentation]),
36 AC_MSG_CHECKING([whether to build the documention])
39 DOXYGEN_INTERNAL_DOCS=NO
43 DOXYGEN_INTERNAL_DOCS=YES
47 DOXYGEN_INTERNAL_DOCS=NO
51 AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
54 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
55 AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
57 dnl Disable/enable building the GUI
59 AS_HELP_STRING([--enable-gui], [build the GUI])
60 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
62 AC_MSG_CHECKING([whether to build the GUI])
63 if test x"$enable_gui" != x"no"; then
68 if test x"$enable_gui" != x"no"; then
69 AC_CONFIG_SUBDIRS([gui])
71 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
73 dnl Disable/enable building the demo programs
75 AS_HELP_STRING([--enable-demo], [build the demo programs])
76 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
78 AC_MSG_CHECKING([whether to build the demo programs])
79 if test x"$enable_demo" != x"no"; then
84 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
86 dnl Disable/enable building the benchmarks
87 AC_ARG_ENABLE([benchmark],
88 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
89 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
90 [], [enable_benchmark=no])
91 AC_MSG_CHECKING([whether to build the benchmarks])
92 if test x"$enable_benchmark" != x"no"; then
97 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
99 dnl Checks for header files.
100 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
102 dnl Checks for header files.
103 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
105 dnl Checks for typedefs, structures, and compiler characteristics.
112 dnl Checks for library functions.
114 AC_CHECK_FUNCS(gettimeofday times ctime_r)
119 autopackage/default.apspec
132 echo '****************************** SUMMARY ******************************'
134 echo Package version............... : $PACKAGE-$VERSION
136 echo C++ compiler.................. : $CXX
137 echo C++ compiles flags............ : $CXXFLAGS
139 echo GLPK support.................. : $lx_glpk_found
140 echo CPLEX support................. : $lx_cplex_found
142 echo build benchmarks.............. : $enable_benchmark
143 echo build demo programs........... : $enable_demo
144 echo build GUI..................... : $enable_gui
146 echo The packace will be installed in
150 echo The documentation will be installed in
152 eval echo ${datadir}/doc/$PACKAGE.
154 echo '*********************************************************************'
157 echo configure complete, now type \'make\' and then \'make install\'.