~ubuntu-branches/debian/stretch/gecode/stretch

« back to all changes in this revision

Viewing changes to configure.ac.in

  • Committer: Package Import Robot
  • Author(s): Kari Pahula
  • Date: 2013-05-25 15:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20130525155732-bltd8lu9my9borhk
Tags: 4.0.0-2
Give make check LD_LIBRARY_PATH=. to make test work without gecode
already installed, to fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
dnl   Guido Tack, 2004, 2005
7
7
dnl
8
8
dnl Last modified:
9
 
dnl   $Date: 2012-03-22 12:42:32 +1100 (Thu, 22 Mar 2012) $
10
 
dnl   by $Author: tack $
11
 
dnl   $Revision: 12614 $
 
9
dnl   $Date: 2013-03-11 15:32:50 +0100 (Mon, 11 Mar 2013) $
 
10
dnl   by $Author: schulte $
 
11
dnl   $Revision: 13494 $
12
12
dnl
13
13
dnl This file is part of Gecode, the generic constraint
14
14
dnl development environment:
35
35
dnl
36
36
dnl
37
37
 
38
 
AC_REVISION([$Id: configure.ac.in 12614 2012-03-22 01:42:32Z tack $])
 
38
AC_REVISION([$Id: configure.ac.in 13494 2013-03-11 14:32:50Z schulte $])
39
39
AC_PREREQ(2.53)
40
 
AC_INIT(GECODE, 3.7.3, users@gecode.org)
 
40
AC_INIT(GECODE, 4.0.0, users@gecode.org)
41
41
AC_CONFIG_HEADERS([gecode/support/config.hpp])
42
42
AC_CONFIG_SRCDIR(gecode/kernel.hh)
43
43
 
44
 
ac_gecode_soversion=32
 
44
ac_gecode_soversion=33
45
45
AC_SUBST(GECODE_SOVERSION, ${ac_gecode_soversion})
46
 
ac_gecode_flatzincversion=1.5
 
46
ac_gecode_flatzincversion=1.6
47
47
AC_SUBST(GECODE_FLATZINC_VERSION, ${ac_gecode_flatzincversion})
48
48
 
49
49
# checks for programs
147
147
dnl check platform specific behaviour of arithmetic
148
148
AC_GECODE_CHECK_ARITH
149
149
 
150
 
dnl check whether we compile with boost support
151
 
AC_GECODE_BOOST
152
 
 
153
150
dnl checking for thread support
154
151
AC_GECODE_THREADS
155
152
 
167
164
  if test "${enable_debug:-no}" = "no" -a "${enable_gcov:-no}" = "no"; then
168
165
    dnl compiler flags for an optimized build
169
166
    AC_GECODE_GCC_OPTIMIZED_SWITCHES
170
 
 
171
 
    AC_GECODE_CHECK_COMPILERFLAG([-ffast-math])
 
167
    dnl compiler flags for optimize float computings
 
168
    dnl AC_GECODE_CHECK_COMPILERFLAG([-ffast-math])
 
169
    dnl ffast-math implies:-fno-math-errno -funsafe-math-optimizations -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range
 
170
    dnl but -funsafe-math-optimizations break IEEE float comptability, so we have to avoid it
 
171
    AC_GECODE_CHECK_COMPILERFLAG([-fno-math-errno])
 
172
    AC_GECODE_CHECK_COMPILERFLAG([-ffinite-math-only])
 
173
    AC_GECODE_CHECK_COMPILERFLAG([-fno-rounding-math])
 
174
    AC_GECODE_CHECK_COMPILERFLAG([-fno-signaling-nans])
 
175
    AC_GECODE_CHECK_COMPILERFLAG([-fcx-limited-range])
172
176
    AC_GECODE_CHECK_COMPILERFLAG([-mthreads])
173
177
  else
174
178
    if test "${enable_debug:-no}" = "yes"; then
226
230
 
227
231
AC_GECODE_VIS
228
232
 
229
 
dnl AC_GECODE_VTI(float,
230
 
dnl        [float variable library (requires boost interval library)],
231
 
dnl        no,
232
 
dnl                             [\$(top_srcdir)/contribs/float/var-imp/float.vis]],
233
 
dnl                             [
234
 
dnl     ac_gecode_save_CPPFLAGS="${CPPFLAGS}"
235
 
dnl     CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${BOOST_CPPFLAGS}"
236
 
dnl     AC_CHECK_HEADER([boost/numeric/interval.hpp],[],[
237
 
dnl     AC_MSG_ERROR([The boost interval library could not be found.])])
238
 
dnl     CPPFLAGS="${ac_gecode_save_CPPFLAGS}"
239
 
dnl        ],[])
 
233
AC_GECODE_VTI(float,
 
234
        [float variable library (implies --enable-int-vars)],
 
235
        yes,
 
236
        [\$(top_srcdir)/gecode/float/var-imp/float.vis],
 
237
        [enable_int_vars="yes";
 
238
         AC_SUBST(LINKFLOAT,[${LINKLIBDIR}${LINKPREFIX}${FLOAT}${DLL_ARCH}${LINKSUFFIX}])
 
239
        ],
 
240
        [
 
241
         AC_SUBST(LINKFLOAT,[]) 
 
242
        ]
 
243
      )
240
244
 
241
245
AC_GECODE_VTI(set,
242
246
        [finite set library (implies --enable-int-vars)],
262
266
dnl End of definition of variable types
263
267
dnl ------------------------------------------------------------------
264
268
 
 
269
AC_GECODE_MPFR
265
270
AC_GECODE_QT
266
271
AC_GECODE_GIST
267
272
AC_GECODE_FLEXBISON