explicitely requested (--with-included-buddy) or if there is now stuitable version already installed. * buddy/: New directory. Contains a patched version of BuDDy 2.2. * m4/buddy.m4: Make sure the installed BuDDy supports bdd_mergepairs. Honor --with-included-buddy and --without-included-buddy. Define the BUDDY_LDFLAGS and BUDDY_CPPFLAGS output variables, and the WITH_INCLUDED_BUDDY Automake conditional * Makefile.am [WITH_INCLUDED_BUDDY] (MAYBE_SUBDIRS): New variable. (SUBDIRS): Prepend $(MAYBE_SUBDIRS). * src/Makefile.am (libspot_LDFLAGS): New variable. * src/tgba/Makefile.am (AM_CPPFLAGS): Add $(BUDDY_CPPFLAGS). * src/tgbaalgos/Makefile.am (AM_CPPFLAGS): Likewise. * src/tgbatest/Makefile.am (AM_CPPFLAGS): Likewise.
29 lines
930 B
Text
29 lines
930 B
Text
AC_DEFUN([AX_CHECK_BUDDY], [
|
|
AC_ARG_WITH([included-buddy],
|
|
[AC_HELP_STRING([--with-included-buddy],
|
|
[use the BuDDy library inclued here])])
|
|
AC_CHECK_LIB([bdd], [bdd_mergepairs],
|
|
[need_included_buddy=no],
|
|
[need_included_buddy=yes])
|
|
|
|
if test "$need_included_buddy" = yes; then
|
|
if test "$with_included_buddy" = no; then
|
|
AC_MSG_ERROR([Could not link with BuDDy. Please install BuDDy first,
|
|
set CPPFLAGS/LDFLAGS appropriately, or configure with
|
|
--with-included-buddy])
|
|
else
|
|
with_included_buddy=yes
|
|
fi
|
|
fi
|
|
|
|
if test "$with_included_buddy" = yes; then
|
|
AC_CONFIG_SUBDIRS([buddy])
|
|
BUDDY_LDFLAGS='$(top_srcdir)/buddy/src/bdd.la'
|
|
BUDDY_CPPFLAGS='-I$(top_srcdir)/buddy/src'
|
|
else
|
|
BUDDY_LDFLAGS='-lbdd'
|
|
fi
|
|
AM_CONDITIONAL([WITH_INCLUDED_BUDDY], [test "$with_included_buddy" = yes])
|
|
AC_SUBST([BUDDY_LDFLAGS])
|
|
AC_SUBST([BUDDY_CPPFLAGS])
|
|
])
|