#
# Find bgc on Solaris using pkg-config
#
# This patch needs to be evaluated to see if it needs to be passed upstream.
--- w3m-0.5.3/configure.orig 2016-11-03 12:07:41.143467587 +0000
+++ w3m-0.5.3/configure 2016-11-03 12:11:03.646007132 +0000
@@ -8209,7 +8209,7 @@
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgc $LIBS"
+LIBS="`pkg-config --libs bdw-gc` $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -8240,7 +8240,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
$as_echo "$ac_cv_lib_gc_GC_init" >&6; }
if test "x$ac_cv_lib_gc_GC_init" = x""yes; then :
- LIBGC="-lgc"
+ LIBGC="`pkg-config --libs bdw-gc`"
fi
if test x"$ac_cv_lib_gc_GC_init" = xno; then
@@ -8261,7 +8261,7 @@
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgc $LIBS"
+LIBS="`pkg-config --libs bdw-gc` $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -8292,7 +8292,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
$as_echo "$ac_cv_lib_gc_GC_init" >&6; }
if test "x$ac_cv_lib_gc_GC_init" = x""yes; then :
- gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break
+ gclibdir="$dir/lib"; LIBGC="-L$dir/lib `pkg-config --libs bdw-gc`"; break
fi
LDFLAGS="$ldflags"