configure.ac 4.96 KB
Newer Older
1
2
# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Laboratoire de
# Recherche et Dveloppement de l'Epita (LRDE).
Guillaume Sadegh's avatar
Guillaume Sadegh committed
3
4
5
# Copyright (C) 2003, 2004, 2005, 2006, 2007 Laboratoire d'Informatique de
# Paris 6 (LIP6), dpartement Systmes Rpartis Coopratifs (SRC), Universit
# Pierre et Marie Curie.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
6
7
8
9
10
#
# This file is part of Spot, a model checking library.
#
# Spot is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 3 of the License, or
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
12
13
14
15
16
17
18
19
# (at your option) any later version.
#
# Spot is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
20
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
21

22
AC_PREREQ([2.61])
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
23
AC_INIT([spot], [1.1.4], [spot@lrde.epita.fr])
24
AC_CONFIG_AUX_DIR([tools])
25
AC_CONFIG_MACRO_DIR([m4])
26
27
28
AM_INIT_AUTOMAKE([1.11 gnu tar-ustar color-tests parallel-tests])
AC_CONFIG_HEADERS([config.h])dnl Private config, not to be used in .hh files.
AX_PREFIX_CONFIG_H([src/misc/_config.h])dnl Public config, for .hh files.
29

30
# If the user didn't supply a CFLAGS value,
31
32
33
34
# set an empty one to prevent autoconf to stick -O2 -g here.
test -z "$CFLAGS" && CFLAGS=
test -z "$CXXFLAGS" && CXXFLAGS=

35
adl_ENABLE_DEVEL
36
37
38
39
40
41
42
43
44
45
46
47
48

AC_ARG_ENABLE([python],
              [AC_HELP_STRING([--disable-python],
                              [do not compile Python bindings])],
              [], [enable_python=yes])

AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes])

if test "x${enable_python:-yes}" = xyes; then
  AC_MSG_NOTICE([You may configure with --disable-python ]dnl
[if you do not need Python bindings.])
  adl_CHECK_PYTHON
fi
49

50
AC_PROG_CC
51
52
gl_EARLY

53
AM_PROG_CC_C_O
54
55
56
57
58
AC_PROG_CXX

AM_PROG_LEX
AC_PROG_YACC

59
60
gl_INIT

61
62
AC_LANG(C++)

63
64
65
66
AC_HEADER_UNORDERED_MAP
AC_HEADER_TR1_UNORDERED_MAP
AC_HEADER_EXT_HASH_MAP

67
AX_CHECK_BUDDY
68
AX_CHECK_GSPNLIB
69
AX_CHECK_BOOST([1.34], [103400])
70

71
AC_CHECK_HEADERS([sys/times.h])
72
AC_CHECK_FUNCS([times srand48 drand48 kill alarm])
73

74
LT_CONFIG_LTDL_DIR([ltdl])
75
LT_INIT([win32-dll])
76
LTDL_INIT([subproject convenience])
77
78
79
80
81
82
# Debian resets this to no, but this break both Spot and the libtool
# test suite itself.  Instead of requiring developer to install a
# non-patched version of Libtool on any Debian they use, we just
# cancel the effect of Debian's patch here.
link_all_deplibs=yes
link_all_deplibs_CXX=yes
83

84
85
86
87
adl_ENABLE_DEBUG
ad_GCC_OPTIM
adl_NDEBUG

88
spot_INTEL
89
90
91
if test x$enable_warnings = xyes; then
  CF_GXX_WARNINGS
fi
92

93
AM_CONDITIONAL([NEVER], [false])
94
# We need the absolute path for dot in the "doc/dot" script. Other places
95
96
# only require a relative path.
AC_PATH_PROG([DOT], [dot])
97
98
AC_CHECK_PROG([LBT], [lbt], [lbt])
AC_CHECK_PROG([LTL2BA], [ltl2ba], [ltl2ba])
99
AC_CHECK_PROG([LTL3BA], [ltl3ba], [ltl3ba])
100
101
AC_CHECK_PROG([MODELLA], [modella], [modella])
AC_CHECK_PROG([LTL2NBA], [script4lbtt.py], [script4lbtt.py])
102
AC_CHECK_PROG([PERL], [perl], [perl])
103
AC_CHECK_PROG([SPIN], [spin], [spin])
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
104
AC_CHECK_PROG([LBTT], [lbtt], [lbtt])
105
AC_CHECK_PROG([EMACS], [emacs], [emacs])
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
106
AC_CHECK_PROG([LBTT_TRANSLATE], [lbtt-translate], [lbtt-translate])
107
AX_CHECK_VALGRIND
108
AC_CHECK_PROG([WRING2LBTT], [wring2lbtt], [wring2lbtt])
109
110
111
# Debian has a binary for SWIG 2.0 named swig2.0 and they kept swig as
# an alias for swig-1.3.  Let's use the former when available.
AC_CHECK_PROGS([SWIG], [swig2.0 swig], [swig])
112

113
114
AC_SUBST([CROSS_COMPILING], [$cross_compiling])

115
116
AC_CONFIG_FILES([
  Makefile
117
118
119
  bench/Makefile
  bench/emptchk/Makefile
  bench/emptchk/defs
120
  bench/ltlcounter/Makefile
121
  bench/ltlclasses/Makefile
122
123
  bench/ltl2tgba/Makefile
  bench/ltl2tgba/defs
Flix Abecassis's avatar
Flix Abecassis committed
124
125
  bench/scc-stats/Makefile
  bench/split-product/Makefile
126
  bench/spin13/Makefile
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
127
  bench/wdba/Makefile
128
  doc/Doxyfile
129
  doc/Makefile
130
  doc/tl/Makefile
131
  doc/org/init.el
132
  iface/dve2/defs
133
  iface/dve2/Makefile
134
  iface/gspn/defs
135
136
  iface/gspn/Makefile
  iface/Makefile
137
  lib/Makefile
138
  src/bin/Makefile
139
  src/bin/man/Makefile
140
141
  src/eltlparse/Makefile
  src/eltltest/defs
142
143
  src/eltltest/Makefile
  src/kripke/Makefile
144
  src/ltlast/Makefile
145
  src/ltlenv/Makefile
146
  src/ltlparse/Makefile
147
148
149
  src/kripkeparse/Makefile
  src/kripketest/Makefile
  src/kripketest/defs
150
  src/ltltest/defs
151
  src/ltltest/Makefile
152
  src/ltlvisit/Makefile
153
  src/Makefile
154
  src/misc/Makefile
155
  src/neverparse/Makefile
156
  src/sanity/Makefile
157
158
159
160
  src/saba/Makefile
  src/sabaalgos/Makefile
  src/sabatest/defs
  src/sabatest/Makefile
161
  src/tgbaalgos/gtec/Makefile
162
163
  src/tgbaalgos/Makefile
  src/tgba/Makefile
164
165
  src/taalgos/Makefile
  src/ta/Makefile
166
  src/tgbaparse/Makefile
167
  src/tgbatest/defs
168
  src/tgbatest/Makefile
169
  wrap/Makefile
170
  wrap/python/Makefile
171
  wrap/python/ajax/Makefile
172
  wrap/python/tests/Makefile
173
  tools/x-to-1
174
])
175
AC_CONFIG_FILES([doc/dot], [chmod +x doc/dot])
176
AC_CONFIG_FILES([wrap/python/tests/run], [chmod +x wrap/python/tests/run])
177
AC_OUTPUT