1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-06 23:50:18 +02:00

Use `pkg-config' to detect BDW-GC at configure-time.

* configure.in: Use `PKG_CHECK_MODULES' to look for libgc.  This only
  works with GC 7.x+, which is what we want anyway.
This commit is contained in:
Ludovic Courtès 2008-11-09 23:31:09 +01:00
parent 59e2102091
commit 1f26b531ec

View file

@ -1182,11 +1182,10 @@ main ()
# Boehm's GC library
#
#--------------------------------------------------------------------
AC_CHECK_LIB([gc], [GC_collect_a_little],
[LIBS="-lgc $LIBS"],
[AC_MSG_ERROR([`libgc' (Boehm's GC library) not found.])])
AC_CHECK_HEADER([gc/gc.h], [],
[AC_MSG_ERROR([`libgc' (Boehm's GC library) header files not found.])])
PKG_CHECK_MODULES([BDW_GC], [bdw-gc])
CFLAGS="$BDW_GC_CFLAGS $CFLAGS"
LIBS="$BDW_GC_LIBS $LIBS"
# `GC_do_blocking ()' is available in GC 7.1 but not declared.
AC_CHECK_FUNCS([GC_do_blocking])