COIN-OR::LEMON - Graph Library

source: lemon-0.x/configure.ac @ 2408:467ca6d16556

Last change on this file since 2408:467ca6d16556 was 2390:8450951a8e2d, checked in by Alpar Juttner, 17 years ago
  • '-Wshadow' seemed to strict therefore removed
  • a tools directory added for useful executables codes
  • tools/lgf-gen.cc (a random graph generator) added
File size: 4.4 KB
RevLine 
[542]1dnl Process this file with autoconf to produce a configure script.
[2012]2AC_PREREQ([2.59])
[2237]3AC_INIT([LEMON], [svnhead], [etik-ol@cs.elte.hu], [lemon])
[2012]4AC_CONFIG_AUX_DIR([build-aux])
5AC_CONFIG_MACRO_DIR([m4])
[2108]6AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
[1994]7AC_CONFIG_SRCDIR([lemon/list_graph.h])
[1435]8AC_CONFIG_HEADERS([config.h lemon/config.h])
[542]9
[1905]10lx_cmdline_cxxflags_set=${CXXFLAGS+set}
11
[542]12dnl Checks for programs.
13AC_PROG_CXX
[1350]14AC_PROG_CXXCPP
[1304]15AC_PROG_INSTALL
[1327]16AC_DISABLE_SHARED
[1304]17AC_PROG_LIBTOOL
[542]18
[1905]19if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
[2390]20  CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
[1348]21fi
[716]22
[1400]23AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
24
[542]25dnl Checks for libraries.
[1349]26LX_CHECK_GLPK
[1380]27LX_CHECK_CPLEX
[2315]28LX_CHECK_SOPLEX
[542]29
[1863]30dnl Enable/disable installing the documentation
31AC_ARG_ENABLE([doc],
32AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
33AS_HELP_STRING([--disable-doc], [do not build the documentation]),
34              [], [enable_doc=yes])
35
36AC_MSG_CHECKING([whether to build the documention])
37case "$enable_doc" in
38  yes)
39    DOXYGEN_INTERNAL_DOCS=NO
40    AC_MSG_RESULT([yes])
41    ;;
42  full)
43    DOXYGEN_INTERNAL_DOCS=YES
44    AC_MSG_RESULT([full])
45    ;;
46  no)
47    DOXYGEN_INTERNAL_DOCS=NO
48    AC_MSG_RESULT([no])
49    ;;
50  *)
51    AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
52    ;;
53esac
54AC_SUBST(DOXYGEN_INTERNAL_DOCS)
55AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
56
57dnl Disable/enable building the demo programs
58AC_ARG_ENABLE([demo],
59AS_HELP_STRING([--enable-demo], [build the demo programs])
60AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
61              [], [enable_demo=no])
62AC_MSG_CHECKING([whether to build the demo programs])
63if test x"$enable_demo" != x"no"; then
64  AC_MSG_RESULT([yes])
65else
66  AC_MSG_RESULT([no])
67fi
68AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
69
[2390]70dnl Disable/enable building the binary tools
71AC_ARG_ENABLE([tools],
72AS_HELP_STRING([--enable-tools], [build additional tools @<:@default@:>@])
73AS_HELP_STRING([--disable-tools], [do not build additional tools]),
74              [], [enable_tools=yes])
75AC_MSG_CHECKING([whether to build the additional tools])
76if test x"$enable_tools" != x"no"; then
77  AC_MSG_RESULT([yes])
78else
79  AC_MSG_RESULT([no])
80fi
81AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
82
[1863]83dnl Disable/enable building the benchmarks
84AC_ARG_ENABLE([benchmark],
85AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
86AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
87              [], [enable_benchmark=no])
88AC_MSG_CHECKING([whether to build the benchmarks])
89if test x"$enable_benchmark" != x"no"; then
90  AC_MSG_RESULT([yes])
91else
92  AC_MSG_RESULT([no])
93fi
94AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
95
96dnl Checks for header files.
97AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
[1370]98
[542]99dnl Checks for typedefs, structures, and compiler characteristics.
100AC_C_CONST
101AC_C_INLINE
102AC_TYPE_SIZE_T
103AC_HEADER_TIME
104AC_STRUCT_TM
105
106dnl Checks for library functions.
107AC_HEADER_STDC
[1108]108AC_CHECK_FUNCS(gettimeofday times ctime_r)
[542]109
[1304]110AC_CONFIG_FILES([
111Makefile
[1483]112lemon.spec
[1304]113autopackage/default.apspec
114doc/Doxyfile
[1435]115lemon/lemon.pc
[1304]116])
[1349]117
[542]118AC_OUTPUT
[1372]119
120echo
121echo '****************************** SUMMARY ******************************'
122echo
123echo Package version............... : $PACKAGE-$VERSION
124echo
125echo C++ compiler.................. : $CXX
126echo C++ compiles flags............ : $CXXFLAGS
127echo
[1373]128echo GLPK support.................. : $lx_glpk_found
[1380]129echo CPLEX support................. : $lx_cplex_found
[2315]130echo SOPLEX support................ : $lx_soplex_found
[1372]131echo
[1863]132echo build benchmarks.............. : $enable_benchmark
133echo build demo programs........... : $enable_demo
[2390]134echo build additional tools........ : $enable_tools
[1404]135echo
[1372]136echo The packace will be installed in
137echo -n '  '
138echo $prefix.
139echo
140echo The documentation will be installed in
141echo -n '  '
[1671]142eval echo ${datadir}/doc/$PACKAGE.
[1372]143echo
144echo '*********************************************************************'
145
146echo
[1572]147echo configure complete, now type \'make\' and then \'make install\'.
[1372]148echo
Note: See TracBrowser for help on using the repository browser.