COIN-OR::LEMON - Graph Library

source: lemon-0.x/configure.ac @ 1864:1788205e36af

Last change on this file since 1864:1788205e36af was 1863:12e0db6b7d0e, checked in by Akos Ladanyi, 18 years ago

Demos and benchmarks are not built by default now. They can be enabled with the --enable-demo and --enable-benchmark configure flags.

File size: 4.1 KB
RevLine 
[542]1dnl Process this file with autoconf to produce a configure script.
[1662]2AC_INIT([LEMON], [0.5], [etik-ol@cs.elte.hu], [lemon])
[542]3AC_CONFIG_AUX_DIR([config])
[1482]4AM_INIT_AUTOMAKE([1.7])
[1435]5AC_CONFIG_SRCDIR([lemon/invalid.h])
6AC_CONFIG_HEADERS([config.h lemon/config.h])
[1482]7AC_PREREQ([2.59])
[542]8
9dnl Checks for programs.
10AC_PROG_CXX
[1350]11AC_PROG_CXXCPP
[1304]12AC_PROG_INSTALL
[1327]13AC_DISABLE_SHARED
[1304]14AC_PROG_LIBTOOL
[542]15
[1348]16if test $CXX != icc -a $CXX != icpc; then
[1349]17  CXXFLAGS="$CXXFLAGS -Wall -W"
[1348]18fi
[716]19
[1400]20AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
21
[542]22dnl Checks for libraries.
[1349]23LX_CHECK_GLPK
[1380]24LX_CHECK_CPLEX
[542]25
[1863]26dnl Enable/disable installing the documentation
27AC_ARG_ENABLE([doc],
28AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
29AS_HELP_STRING([--disable-doc], [do not build the documentation]),
30              [], [enable_doc=yes])
31
32AC_MSG_CHECKING([whether to build the documention])
33case "$enable_doc" in
34  yes)
35    DOXYGEN_INTERNAL_DOCS=NO
36    AC_MSG_RESULT([yes])
37    ;;
38  full)
39    DOXYGEN_INTERNAL_DOCS=YES
40    AC_MSG_RESULT([full])
41    ;;
42  no)
43    DOXYGEN_INTERNAL_DOCS=NO
44    AC_MSG_RESULT([no])
45    ;;
46  *)
47    AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
48    ;;
49esac
50AC_SUBST(DOXYGEN_INTERNAL_DOCS)
51AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
52
53dnl Disable/enable building the GUI
54AC_ARG_ENABLE([gui],
55AS_HELP_STRING([--enable-gui], [build the GUI])
56AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
57              [], [enable_gui=no])
58AC_MSG_CHECKING([whether to build the GUI])
59if test x"$enable_gui" != x"no"; then
60  AC_MSG_RESULT([yes])
61else
62  AC_MSG_RESULT([no])
63fi
64if test x"$enable_gui" != x"no"; then
65  PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
66fi
67AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
68
69dnl Disable/enable building the demo programs
70AC_ARG_ENABLE([demo],
71AS_HELP_STRING([--enable-demo], [build the demo programs])
72AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
73              [], [enable_demo=no])
74AC_MSG_CHECKING([whether to build the demo programs])
75if test x"$enable_demo" != x"no"; then
76  AC_MSG_RESULT([yes])
77else
78  AC_MSG_RESULT([no])
79fi
80AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
81
82dnl Disable/enable building the benchmarks
83AC_ARG_ENABLE([benchmark],
84AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
85AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
86              [], [enable_benchmark=no])
87AC_MSG_CHECKING([whether to build the benchmarks])
88if test x"$enable_benchmark" != x"no"; then
89  AC_MSG_RESULT([yes])
90else
91  AC_MSG_RESULT([no])
92fi
93AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
94
95dnl Checks for header files.
96AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
[1370]97
[542]98dnl Checks for header files.
[774]99AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
[542]100
101dnl Checks for typedefs, structures, and compiler characteristics.
102AC_C_CONST
103AC_C_INLINE
104AC_TYPE_SIZE_T
105AC_HEADER_TIME
106AC_STRUCT_TM
107
108dnl Checks for library functions.
109AC_HEADER_STDC
[1108]110AC_CHECK_FUNCS(gettimeofday times ctime_r)
[542]111
[1304]112AC_CONFIG_FILES([
113Makefile
[1483]114lemon.spec
[1304]115autopackage/default.apspec
116doc/Makefile
117doc/Doxyfile
[1435]118lemon/Makefile
119lemon/lemon.pc
120benchmark/Makefile
121demo/Makefile
122test/Makefile
123gui/Makefile
[1304]124])
[1349]125
[542]126AC_OUTPUT
[1372]127
128echo
129echo '****************************** SUMMARY ******************************'
130echo
131echo Package version............... : $PACKAGE-$VERSION
132echo
133echo C++ compiler.................. : $CXX
134echo C++ compiles flags............ : $CXXFLAGS
135echo
[1373]136echo GLPK support.................. : $lx_glpk_found
[1380]137echo CPLEX support................. : $lx_cplex_found
[1372]138echo
[1863]139echo build benchmarks.............. : $enable_benchmark
140echo build demo programs........... : $enable_demo
[1404]141echo build GUI..................... : $enable_gui
142echo
[1372]143echo The packace will be installed in
144echo -n '  '
145echo $prefix.
146echo
147echo The documentation will be installed in
148echo -n '  '
[1671]149eval echo ${datadir}/doc/$PACKAGE.
[1372]150echo
151echo '*********************************************************************'
152
153echo
[1572]154echo configure complete, now type \'make\' and then \'make install\'.
[1372]155echo
Note: See TracBrowser for help on using the repository browser.