--- w3m-0.5.2/aclocal.m4.old 2009-02-16 15:39:51.608767000 +0800
+++ w3m-0.5.2/aclocal.m4 2009-02-16 15:41:27.651144000 +0800
@@ -457,7 +457,7 @@
fi
fi
unset ac_cv_lib_gc_GC_init
- AC_CHECK_LIB(gc, GC_init, [LIBGC="-lgc"])
+ AC_CHECK_LIB(bgc, GC_init, [LIBGC="`pkg-config --libs bdw-gc`"])
if test x"$ac_cv_lib_gc_GC_init" = xno; then
AC_MSG_CHECKING(GC library location)
AC_MSG_RESULT($with_gc)
@@ -467,7 +467,7 @@
LDFLAGS="$LDFLAGS -L$dir/lib"
AC_MSG_CHECKING($dir)
unset ac_cv_lib_gc_GC_init
- AC_CHECK_LIB(gc, GC_init, [gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break])
+ AC_CHECK_LIB(bgc, GC_init, [gclibdir="$dir/lib"; LIBGC="-L$dir/lib `pkg-config --libs bdw-gc`"; break])
LDFLAGS="$ldflags"
done
if test x"$gclibdir" = xno; then
--- w3m-0.5.2/acinclude.m4.old 2009-02-16 15:46:21.447114000 +0800
+++ w3m-0.5.2/acinclude.m4 2009-02-16 15:47:32.833010000 +0800
@@ -456,7 +456,7 @@
fi
fi
unset ac_cv_lib_gc_GC_init
- AC_CHECK_LIB(gc, GC_init, [LIBS="$LIBS -lgc"])
+ AC_CHECK_LIB(bgc, GC_init, [LIBS="$LIBS `pkg-config --libs bdw-gc`"])
if test x"$ac_cv_lib_gc_GC_init" = xno; then
AC_MSG_CHECKING(GC library location)
AC_MSG_RESULT($with_gc)
@@ -466,7 +466,7 @@
LDFLAGS="$LDFLAGS -L$dir/lib"
AC_MSG_CHECKING($dir)
unset ac_cv_lib_gc_GC_init
- AC_CHECK_LIB(gc, GC_init, [gclibdir="$dir/lib"; LIBS="$LIBS -L$dir/lib -lgc"; break])
+ AC_CHECK_LIB(bgc, GC_init, [gclibdir="$dir/lib"; LIBS="$LIBS -L$dir/lib `pkg-config --libs bdw-gc`"; break])
LDFLAGS="$ldflags"
done
if test x"$gclibdir" = xno; then