@@ -267,10 +267,10 @@ AM_CONDITIONAL(WITH_MASTER_PKG, [test "x$with_master_pkg" != xno])
267267
268268AC_ARG_WITH ( libgcroots ,
269269 AS_HELP_STRING ( [ --with-libgcroots@<:@ =WHICH@:>@ ] ,
270- [ use alternative libgcroots instead of
271- package-bundled one .
272- WHICH=(installed|tiny-subst)
273- @<:@ default=installed @:>@ ] ) )
270+ [ use system BDWGC or alternative libgcroots
271+ instead of package-bundled libgcroots .
272+ WHICH=(no| installed|tiny-subst)
273+ @<:@ default=no @:>@ ] ) )
274274
275275case "${with_libgcroots:=no}" in
276276 no)
@@ -287,46 +287,38 @@ case "${with_libgcroots:=no}" in
287287 GCROOTS_REQ=gcroots
288288 ;;
289289 yes|installed)
290- PKG_CHECK_MODULES(GCROOTS, [ gcroots >= 0.2.3] ,
291- [ ] ,
292- [ AC_MSG_ERROR ( [ installed libgcroots is not found.] ) ] )
293- use_libgcroots="installed one"
294- GCROOTS_REQ=gcroots
290+ PKG_CHECK_MODULES(
291+ BDWGC, [ bdw-gc >= 8.3.0] ,
292+ [ BDWGC_REQ=bdw-gc
293+ AC_DEFINE ( SCM_WITH_BDWGC , 1 , [ Define to 1 to use BDWGC.] )
294+ use_libgcroots="installed BDWGC"] ,
295+ [ PKG_CHECK_MODULES(
296+ GCROOTS, [ gcroots >= 0.2.3] ,
297+ [ GCROOTS_REQ=gcroots
298+ use_libgcroots="installed one"] ,
299+ [ AC_MSG_ERROR ( [ neither BDWGC nor libgcroots was found.] ) ] )] )
295300 ;;
296301 tiny-subst)
297302 # use src/gcroots/gcroots.[hc]
298303 with_libgcroots=tiny_subst
299304 GCROOTS_CFLAGS='-I$(sscm_abs_top_srcdir)/src/gcroots'
300305 use_libgcroots="tiny substitution in src/gcroots"
301306 ;;
302- bundled-bdwgc)
303- # use src/gcroots/gcroots.[hc] but redirecting to bundled bdwgc
304- with_libgcroots=tiny_subst_bdwgc
305- GCROOTS_CFLAGS='-I$(sscm_abs_top_srcdir)/src/gcroots -I$(sscm_abs_top_srcdir)/bdwgc/include'
306- AC_DEFINE ( SCM_WITH_BDWGC , 1 , [ Define to 1 to use bdwgc library.] )
307- use_libgcroots="based on bundled bdwgc"
308-
309- ac_configure_args="$ac_configure_args --disable-threads"
310- AC_CONFIG_SUBDIRS ( [ bdwgc] )
311- GCROOTS_LIBS='$(sscm_abs_top_builddir)/bdwgc/libgc.la'
312- ;;
313307 *)
314308 AC_MSG_ERROR ( [ invalid argument for --with-libgcroots.] )
315309 ;;
316310esac
317311
312+ AC_SUBST ( BDWGC_REQ )
313+ AC_SUBST ( BDWGC_LIBS )
314+ AC_SUBST ( BDWGC_CFLAGS )
318315AC_SUBST ( GCROOTS_REQ )
319316AC_SUBST ( GCROOTS_LIBS )
320317AC_SUBST ( GCROOTS_CFLAGS )
321- AM_CONDITIONAL(USE_BDWGC_BUNDLED,
322- [ test "x$with_libgcroots" = xtiny_subst_bdwgc] )
323- AM_CONDITIONAL(USE_LIBGCROOTS,
324- [ test "x$with_libgcroots" != xtiny_subst \
325- -a "x$with_libgcroots" != xtiny_subst_bdwgc] )
318+ AM_CONDITIONAL(USE_LIBGCROOTS, [ test "x$with_libgcroots" != xtiny_subst] )
326319AM_CONDITIONAL(USE_LIBGCROOTS_BUNDLED, [ test "x$with_libgcroots" = xno] )
327320AM_CONDITIONAL(USE_LIBGCROOTS_TINY_SUBST,
328- [ test "x$with_libgcroots" = xtiny_subst \
329- -o "x$with_libgcroots" = xtiny_subst_bdwgc] )
321+ [ test "x$with_libgcroots" = xtiny_subst] )
330322
331323
332324# #######################################
0 commit comments