fieker-DuValspielwiese
Last change
on this file since 0c26a1 was
4ad5cde,
checked in by Matthias Koeppe <mkoeppe@…>, 3 years ago
|
m4/*-check.m4: Check DEFAULTS first, following flint-check.m4
This removes /usr from the end of DEFAULT_CHECKING_PATH
and instead puts the special token DEFAULTS to the front
of NTL_HOME_PATH, GMP_HOME_PATH.
Because ccluster-check.m4 has not been switched to
compiler-based header file detection, we do not
change the search algorithm there. We add /usr back
at the end of CCLUSTER_HOME_PATH to compensate for
the change of DEFAULT_CHECKING_PATH.
We also fix a typo that makes --with-ccluster=PATH
actually work (untested, as this library does not
seem available)
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # Check for ccluster |
---|
2 | |
---|
3 | AC_DEFUN([LB_CHECK_CCLUSTER], |
---|
4 | [ |
---|
5 | AC_REQUIRE([SING_DEFAULT_CHECKING_PATH]) |
---|
6 | |
---|
7 | AC_ARG_WITH(ccluster, |
---|
8 | [ --with-ccluster= <path>|yes Use ccluster library. ], |
---|
9 | [if test "$withval" = yes ; then |
---|
10 | CCLUSTER_HOME_PATH="${DEFAULT_CHECKING_PATH} /usr" |
---|
11 | elif test "$withval" != no ; then |
---|
12 | CCLUSTER_HOME_PATH="$withval" |
---|
13 | fi], |
---|
14 | [CCLUSTER_HOME_PATH="${DEFAULT_CHECKING_PATH} /usr"]) |
---|
15 | |
---|
16 | dnl Check for existence |
---|
17 | BACKUP_CFLAGS=${CFLAGS} |
---|
18 | BACKUP_LIBS=${LIBS} |
---|
19 | |
---|
20 | AC_MSG_CHECKING(for Ccluster) |
---|
21 | |
---|
22 | AC_LANG_PUSH([C]) |
---|
23 | |
---|
24 | for CCLUSTER_HOME in ${CCLUSTER_HOME_PATH} |
---|
25 | do |
---|
26 | if test -r "$CCLUSTER_HOME/include/ccluster/ccluster/ccluster.h"; then |
---|
27 | AC_MSG_RESULT(found) |
---|
28 | |
---|
29 | CCLUSTER_CPPFLAGS="-I${CCLUSTER_HOME}/include/ccluster" |
---|
30 | CCLUSTER_LIBS="-L${CCLUSTER_HOME}/lib -Wl,-rpath,${CCLUSTER_HOME}/lib -lccluster" |
---|
31 | AC_DEFINE(HAVE_CCLUSTER,1,[Define if Ccluster is installed]) |
---|
32 | |
---|
33 | CFLAGS="${BACKUP_CFLAGS} ${CCLUSTER_CPPFLAGS}" |
---|
34 | LIBS="${BACKUP_LIBS} ${CCLUSTER_LIBS}" |
---|
35 | AC_SUBST(CCLUSTER_LIBS) |
---|
36 | AC_SUBST(CCLUSTER_CPPFLAGS) |
---|
37 | break |
---|
38 | fi |
---|
39 | done |
---|
40 | AC_LANG_POP([C]) |
---|
41 | |
---|
42 | CFLAGS=${BACKUP_CFLAGS} |
---|
43 | LIBS=${BACKUP_LIBS} |
---|
44 | #unset LD_LIBRARY_PATH |
---|
45 | |
---|
46 | AM_CONDITIONAL(SING_HAVE_CCLUSTER, test "x$HAVE_CCLUSTER" = "xyes") |
---|
47 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.