COIN-OR::LEMON - Graph Library

source: lemon-0.x/configure.ac @ 1483:e427615afb48

Last change on this file since 1483:e427615afb48 was 1483:e427615afb48, checked in by Akos Ladanyi, 14 years ago

added support for generating rpms (completely untested though)

File size: 1.9 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT([LEMON], [0.4], [etik-ol@cs.elte.hu], [lemon])
3AC_CONFIG_AUX_DIR([config])
4AM_INIT_AUTOMAKE([1.7])
5AC_CONFIG_SRCDIR([lemon/invalid.h])
6AC_CONFIG_HEADERS([config.h lemon/config.h])
7AC_PREREQ([2.59])
8
9dnl Save user defined CXXFLAGS
10dnl lx_user_cxxflags="$CXXFLAGS"
11
12dnl Checks for programs.
13AC_PROG_CXX
14AC_PROG_CXXCPP
15AC_PROG_INSTALL
16AC_DISABLE_SHARED
17AC_PROG_LIBTOOL
18
19if test $CXX != icc -a $CXX != icpc; then
20  CXXFLAGS="$CXXFLAGS -Wall -W"
21fi
22
23AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
24
25dnl This is tested only with gcc-3.4 and icc-8.0
26dnl LX_SET_CXXFLAGS
27
28dnl Checks for libraries.
29LX_CHECK_GLPK
30LX_CHECK_CPLEX
31
32LX_ENABLE_DOCS
33LX_ENABLE_GUI
34
35dnl Checks for header files.
36AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
37
38dnl Checks for typedefs, structures, and compiler characteristics.
39AC_C_CONST
40AC_C_INLINE
41AC_TYPE_SIZE_T
42AC_HEADER_TIME
43AC_STRUCT_TM
44
45dnl Checks for library functions.
46AC_HEADER_STDC
47AC_CHECK_FUNCS(gettimeofday times ctime_r)
48
49AC_CONFIG_FILES([
50Makefile
51lemon.spec
52autopackage/default.apspec
53doc/Makefile
54doc/Doxyfile
55lemon/Makefile
56lemon/lemon.pc
57benchmark/Makefile
58demo/Makefile
59test/Makefile
60gui/Makefile
61])
62
63AC_OUTPUT
64
65echo
66echo '****************************** SUMMARY ******************************'
67echo
68echo Package version............... : $PACKAGE-$VERSION
69echo
70echo C++ compiler.................. : $CXX
71echo C++ compiles flags............ : $CXXFLAGS
72echo
73echo GLPK support.................. : $lx_glpk_found
74echo CPLEX support................. : $lx_cplex_found
75echo
76echo build GUI..................... : $enable_gui
77echo
78echo The packace will be installed in
79echo -n '  '
80echo $prefix.
81echo
82echo The documentation will be installed in
83echo -n '  '
84eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html.
85echo
86echo '*********************************************************************'
87
88echo
89echo configure complete, now type \'make\'
90echo
Note: See TracBrowser for help on using the repository browser.