spielwiese
Last change
on this file was
352380,
checked in by Hans Schoenemann <hannes@…>, 9 months ago
|
fix: avoid mpfr,cddgmp in LIBS (AC_SEARCH_LIBS,AC_CHECK_LIB):libparse
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | # gfanlib.m4 |
---|
2 | |
---|
3 | AC_DEFUN([SING_CHECK_GFANLIB], |
---|
4 | [ |
---|
5 | |
---|
6 | AC_ARG_ENABLE(gfanlib, |
---|
7 | AS_HELP_STRING([--enable-gfanlib], [Enables gfanlib, a package for basic convex geometry]), |
---|
8 | [ENABLE_GFANLIB="$enableval"], |
---|
9 | [ENABLE_GFANLIB=""]) |
---|
10 | |
---|
11 | AC_MSG_CHECKING(whether to check for gfanlib) |
---|
12 | PASSED_ALL_TESTS_FOR_GFANLIB="0" |
---|
13 | |
---|
14 | if test "x$ENABLE_GFANLIB" = "xno"; then |
---|
15 | AC_MSG_RESULT([no]) |
---|
16 | else |
---|
17 | AC_MSG_RESULT([yes]) |
---|
18 | |
---|
19 | AC_CHECK_HEADERS([setoper.h cdd/setoper.h cddlib/setoper.h]) |
---|
20 | |
---|
21 | if test "x$ac_cv_header_setoper_h" = xno -a "x$ac_cv_header_cdd_setoper_h" = xno -a "x$ac_cv_header_cddlib_setoper_h" = xno |
---|
22 | then |
---|
23 | if test "x$ENABLE_GFANLIB" = "xyes"; then |
---|
24 | AC_MSG_ERROR([Error, setoper.h is missing!]) |
---|
25 | fi |
---|
26 | else |
---|
27 | |
---|
28 | # Check whether --with-gmp was given. |
---|
29 | AC_REQUIRE([SING_CHECK_GMP]) |
---|
30 | |
---|
31 | PASSED_ALL_TESTS_FOR_GFANLIB="1" |
---|
32 | CDDGMPLDFLAGS="-lcddgmp $GMP_LIBS" |
---|
33 | CDDGMPCPPFLAGS="-DGMPRATIONAL" |
---|
34 | |
---|
35 | AC_SUBST(CDDGMPCPPFLAGS) |
---|
36 | AC_SUBST(CDDGMPLDFLAGS) |
---|
37 | fi |
---|
38 | fi |
---|
39 | |
---|
40 | AM_CONDITIONAL(HAVE_GFANLIB, test "x$PASSED_ALL_TESTS_FOR_GFANLIB" = x1) |
---|
41 | AC_DEFINE_UNQUOTED(HAVE_GFANLIB, ${PASSED_ALL_TESTS_FOR_GFANLIB}, [whether gfanlib support is enabled]) |
---|
42 | |
---|
43 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.