fixes for external CUDD compatibility.
This commit is contained in:
parent
a99412c48f
commit
8ba1de7250
@ -357,4 +357,5 @@
|
||||
|
||||
#undef MAX_THREADS
|
||||
|
||||
#endif /* YAP_CONFIG_H */
|
||||
#endif /* YAP_CONFIG_H */
|
||||
|
||||
|
@ -234,7 +234,6 @@ AC_ARG_WITH(gmp,
|
||||
CFLAGS="$CFLAGS -I${yap_cv_gmp}/include"
|
||||
fi,
|
||||
[yap_cv_gmp=yes])
|
||||
|
||||
AC_ARG_WITH(R,
|
||||
[ --with-R[=DIR] interface to R language],
|
||||
if test "$withval" = yes; then
|
||||
@ -854,7 +853,7 @@ fi
|
||||
|
||||
if test "$yap_cv_cudd" != no; then
|
||||
oldlibs="$LIBS"
|
||||
if test "$yap_cv_cudd" != "NONE"; then
|
||||
if test "$yap_cv_cudd" != "NONE" -a "$yap_cv_cudd" != "yes"; then
|
||||
CUDD_CPPFLAGS="-I $yap_cv_cudd/include"
|
||||
cudd_dir="$yap_cv_cudd"
|
||||
elif test "$prefix" != "NONE"; then
|
||||
@ -864,9 +863,8 @@ if test "$yap_cv_cudd" != no; then
|
||||
CUDD_CPPFLAGS="-I /usr/local/include"
|
||||
cudd_dir=/usr/local
|
||||
fi
|
||||
OLD_CFLAGS="$CPPFLAGS"
|
||||
OLD_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $CUDD_CPPFLAGS"
|
||||
CPPFLAGS="$OLD_CFLAGS"
|
||||
AC_CHECK_HEADERS(util.h cudd/util.h cudd.h cudd/cudd.h)
|
||||
AC_CHECK_HEADERS(cuddInt.h cudd/cuddInt.h)
|
||||
dnl cudd can be most everywhere
|
||||
@ -899,6 +897,7 @@ if test "$yap_cv_cudd" != no; then
|
||||
LIBS="$LIBS -L $cudd_dir/cudd"
|
||||
fi
|
||||
AC_SEARCH_LIBS(Cudd_Init, [cudd], [cudd_installed="yes"], [cudd_installed="no"])
|
||||
CPPFLAGS="$OLD_CPPFLAGS"
|
||||
if test "$cudd_installed" = yes; then
|
||||
CUDD_LDFLAGS="$LIBS"
|
||||
else
|
||||
|
@ -40,7 +40,7 @@ CWD=$(PWD)
|
||||
|
||||
DYNAMIC =
|
||||
CFLAGS = @CFLAGS@
|
||||
INCLUDE = @CUDD_CPPFLAGS@
|
||||
INCLUDE = -I@abs_top_builddir@ @CUDD_CPPFLAGS@
|
||||
LINKFLAGS = -lm
|
||||
LINKLIBS = @CUDD_LDFLAGS@
|
||||
|
||||
|
@ -192,7 +192,7 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include "../../../config.h"
|
||||
#include "config.h"
|
||||
#if HAVE_UTIL_H
|
||||
#include <util.h>
|
||||
#endif
|
||||
|
@ -40,7 +40,7 @@ CWD=$(PWD)
|
||||
|
||||
DYNAMIC =
|
||||
CFLAGS = @CFLAGS@
|
||||
INCLUDE = @CUDD_CPPFLAGS@
|
||||
INCLUDE = -I@abs_top_builddir@ @CUDD_CPPFLAGS@
|
||||
LINKFLAGS = -lm
|
||||
LINKLIBS = @CUDD_LDFLAGS@
|
||||
|
||||
|
@ -191,7 +191,7 @@
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
#include "pqueue.h"
|
||||
#include "../../../config.h"
|
||||
#include "config.h"
|
||||
#if HAVE_UTIL_H
|
||||
#include <util.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user