| ... |
... |
@@ -13,70 +13,43 @@
|
| 13 |
13 |
AC_INIT([LEMON], [lemon_version()], [etik-ol@cs.elte.hu], [lemon])
|
| 14 |
14 |
AC_CONFIG_AUX_DIR([build-aux])
|
| 15 |
15 |
AC_CONFIG_MACRO_DIR([m4])
|
| 16 |
16 |
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
| 17 |
17 |
AC_CONFIG_SRCDIR([lemon/list_graph.h])
|
| 18 |
18 |
AC_CONFIG_HEADERS([config.h lemon/config.h])
|
| 19 |
19 |
|
| 20 |
20 |
lx_cmdline_cxxflags_set=${CXXFLAGS+set}
|
| 21 |
21 |
|
| 22 |
22 |
dnl Checks for programs.
|
| 23 |
23 |
AC_PROG_CXX
|
| 24 |
24 |
AC_PROG_CXXCPP
|
| 25 |
25 |
AC_PROG_INSTALL
|
| 26 |
26 |
AC_DISABLE_SHARED
|
| 27 |
27 |
AC_PROG_LIBTOOL
|
| 28 |
28 |
|
|
29 |
AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
|
|
30 |
|
| 29 |
31 |
if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
|
| 30 |
32 |
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"
|
| 31 |
33 |
fi
|
| 32 |
34 |
|
| 33 |
|
AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
|
| 34 |
|
|
| 35 |
35 |
dnl Checks for libraries.
|
| 36 |
36 |
LX_CHECK_GLPK
|
| 37 |
37 |
LX_CHECK_CPLEX
|
| 38 |
38 |
LX_CHECK_SOPLEX
|
| 39 |
39 |
|
| 40 |
|
dnl Enable/disable installing the documentation
|
| 41 |
|
AC_ARG_ENABLE([doc],
|
| 42 |
|
AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
|
| 43 |
|
AS_HELP_STRING([--disable-doc], [do not build the documentation]),
|
| 44 |
|
[], [enable_doc=yes])
|
| 45 |
|
|
| 46 |
|
AC_MSG_CHECKING([whether to build the documention])
|
| 47 |
|
case "$enable_doc" in
|
| 48 |
|
yes)
|
| 49 |
|
DOXYGEN_INTERNAL_DOCS=NO
|
| 50 |
|
AC_MSG_RESULT([yes])
|
| 51 |
|
;;
|
| 52 |
|
full)
|
| 53 |
|
DOXYGEN_INTERNAL_DOCS=YES
|
| 54 |
|
AC_MSG_RESULT([full])
|
| 55 |
|
;;
|
| 56 |
|
no)
|
| 57 |
|
DOXYGEN_INTERNAL_DOCS=NO
|
| 58 |
|
AC_MSG_RESULT([no])
|
| 59 |
|
;;
|
| 60 |
|
*)
|
| 61 |
|
AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
|
| 62 |
|
;;
|
| 63 |
|
esac
|
| 64 |
|
AC_SUBST(DOXYGEN_INTERNAL_DOCS)
|
| 65 |
|
AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
|
| 66 |
|
|
| 67 |
40 |
dnl Disable/enable building the demo programs
|
| 68 |
41 |
AC_ARG_ENABLE([demo],
|
| 69 |
42 |
AS_HELP_STRING([--enable-demo], [build the demo programs])
|
| 70 |
43 |
AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
|
| 71 |
44 |
[], [enable_demo=no])
|
| 72 |
45 |
AC_MSG_CHECKING([whether to build the demo programs])
|
| 73 |
46 |
if test x"$enable_demo" != x"no"; then
|
| 74 |
47 |
AC_MSG_RESULT([yes])
|
| 75 |
48 |
else
|
| 76 |
49 |
AC_MSG_RESULT([no])
|
| 77 |
50 |
fi
|
| 78 |
51 |
AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
|
| 79 |
52 |
|
| 80 |
53 |
dnl Disable/enable building the binary tools
|
| 81 |
54 |
AC_ARG_ENABLE([tools],
|
| 82 |
55 |
AS_HELP_STRING([--enable-tools], [build additional tools @<:@default@:>@])
|
| ... |
... |
@@ -132,25 +105,21 @@
|
| 132 |
105 |
echo
|
| 133 |
106 |
echo C++ compiler.................. : $CXX
|
| 134 |
107 |
echo C++ compiles flags............ : $CXXFLAGS
|
| 135 |
108 |
echo
|
| 136 |
109 |
echo GLPK support.................. : $lx_glpk_found
|
| 137 |
110 |
echo CPLEX support................. : $lx_cplex_found
|
| 138 |
111 |
echo SOPLEX support................ : $lx_soplex_found
|
| 139 |
112 |
echo
|
| 140 |
113 |
echo Build benchmarks.............. : $enable_benchmark
|
| 141 |
114 |
echo Build demo programs........... : $enable_demo
|
| 142 |
115 |
echo Build additional tools........ : $enable_tools
|
| 143 |
116 |
echo
|
| 144 |
117 |
echo The packace will be installed in
|
| 145 |
118 |
echo -n ' '
|
| 146 |
119 |
echo $prefix.
|
| 147 |
120 |
echo
|
| 148 |
|
echo The documentation will be installed in
|
| 149 |
|
echo -n ' '
|
| 150 |
|
eval echo ${datadir}/doc/$PACKAGE.
|
| 151 |
|
echo
|
| 152 |
121 |
echo '*********************************************************************'
|
| 153 |
122 |
|
| 154 |
123 |
echo
|
| 155 |
124 |
echo Configure complete, now type \'make\' and then \'make install\'.
|
| 156 |
125 |
echo
|