1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-07 18:30:25 +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 # Boehm's GC library
# #
#-------------------------------------------------------------------- #--------------------------------------------------------------------
AC_CHECK_LIB([gc], [GC_collect_a_little], PKG_CHECK_MODULES([BDW_GC], [bdw-gc])
[LIBS="-lgc $LIBS"],
[AC_MSG_ERROR([`libgc' (Boehm's GC library) not found.])]) CFLAGS="$BDW_GC_CFLAGS $CFLAGS"
AC_CHECK_HEADER([gc/gc.h], [], LIBS="$BDW_GC_LIBS $LIBS"
[AC_MSG_ERROR([`libgc' (Boehm's GC library) header files not found.])])
# `GC_do_blocking ()' is available in GC 7.1 but not declared. # `GC_do_blocking ()' is available in GC 7.1 but not declared.
AC_CHECK_FUNCS([GC_do_blocking]) AC_CHECK_FUNCS([GC_do_blocking])