File: configure.in

package info (click to toggle)
fplll 2.1.6+20071129-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 1,680 kB
  • ctags: 537
  • sloc: sh: 8,816; cpp: 5,718; makefile: 57; perl: 46
file content (48 lines) | stat: -rw-r--r-- 912 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AC_INIT(libfplll,2.0.0)
AC_CONFIG_SRCDIR(src/heuristic.cpp)
AM_INIT_AUTOMAKE

DEFAULT_CFLAGS="-O3"

CFLAGS=${CFLAGS:-$DEFAULT_CFLAGS}
CXXFLAGS=${CXXFLAGS:-$DEFAULT_CFLAGS}

AC_PROG_LIBTOOL

AC_PROG_INSTALL

AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_PROG_MAKE_SET

AC_HEADER_STDC



AC_ARG_WITH(mpfr,
   [  --with-mpfr=DIR          MPFR install directory ], [
      CPPFLAGS="$CPPFLAGS -I$withval/include"
       LDFLAGS="$LDFLAGS -L$withval/lib"
       mpfr_lib_path="$withval/lib"
   ])


AC_CHECK_LIB(mpfr, mpfr_add, , [AC_MSG_ERROR(
[MPFR not found, see  http://www.mpfr.org])])


AC_ARG_WITH(gmp,
   [  --with-gmp=DIR          GMP install directory ], [
      CPPFLAGS="$CPPFLAGS -I$withval/include"
       LDFLAGS="$LDFLAGS -L$withval/lib"
       gmp_lib_path="$withval/lib"
   ])


AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR(
[GNU MP not found, see http://swox.com/gmp])])

AC_OUTPUT([
Makefile
src/Makefile
])