| 1 |
1 |
dnl Process this file with autoconf to produce a configure script.
|
| 2 |
2 |
|
| 3 |
3 |
dnl Version information.
|
| 4 |
|
m4_define([lemon_version_number], [])
|
|
4 |
m4_define([lemon_version_number],
|
|
5 |
[m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
|
|
6 |
dnl m4_define([lemon_version_number], [])
|
|
7 |
m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
|
| 5 |
8 |
m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
|
| 6 |
|
m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])])
|
|
9 |
m4_define([lemon_version], [ifelse(lemon_version_number(),
|
|
10 |
[],
|
|
11 |
[lemon_hg_path().lemon_hg_revision()],
|
|
12 |
[lemon_version_number()])])
|
| 7 |
13 |
|
| 8 |
14 |
AC_PREREQ([2.59])
|
| 9 |
15 |
AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])
|
| 10 |
16 |
AC_CONFIG_AUX_DIR([build-aux])
|
| 11 |
17 |
AC_CONFIG_MACRO_DIR([m4])
|
| 12 |
18 |
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
|
| 13 |
19 |
AC_CONFIG_SRCDIR([lemon/list_graph.h])
|
| 14 |
20 |
AC_CONFIG_HEADERS([config.h lemon/config.h])
|
| 15 |
21 |
|
| 16 |
22 |
lx_cmdline_cxxflags_set=${CXXFLAGS+set}
|
| 17 |
23 |
|
| 18 |
24 |
dnl Checks for programs.
|
| 19 |
25 |
AC_PROG_CXX
|
| 20 |
26 |
AC_PROG_CXXCPP
|
| 21 |
27 |
AC_PROG_INSTALL
|
| 22 |
28 |
AC_DISABLE_SHARED
|
| 23 |
29 |
AC_PROG_LIBTOOL
|
| 24 |
30 |
|
| 25 |
31 |
AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
|
| 26 |
32 |
AC_CHECK_PROG([gs_found],[gs],[yes],[no])
|
| 27 |
33 |
|
| 28 |
34 |
dnl Set custom compiler flags when using g++.
|
| 29 |
35 |
if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
|
| 30 |
36 |
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"
|