13 Jan 2004 16:04
autoconf macro GUILE_CHECK_ICE9_OPTARGS
Thien-Thi Nguyen <ttn <at> surf.glug.org>
2004-01-13 15:04:13 GMT
2004-01-13 15:04:13 GMT
the autoconf macro below will appear in guile 1.4.1.98. it is released
here under the same license as guile 1.4.x (GPL + exception).
thi
__________________________________________
# GUILE_CHECK_ICE9_OPTARGS -- use (ice-9 optargs) for (ice-9 optargs-kw)?
#
# Usage: GUILE_CHECK_ICE9_OPTARGS(var)
#
# Check if module <at> code{(ice-9 optargs-kw)} is available. If so, set
# shell var <at> var{var} to "no" (see why below). Otherwise, check if
# module <at> code{(ice-9 optargs)} acts like <at> code{(ice-9 optargs-kw)}.
# If so, set <at> var{var} to "yes", otherwise set it to "no".
#
# Mark the variable for substitution, as by <at> code{AC_SUBST}.
#
# Some versions of Guile provide a module <at> code{(ice-9 optargs)} that
# acts like <at> code{(ice-9 optargs-kw)} (and subsequently omit the latter,
# instead of providing both). Code that uses <at> code{(ice-9 optargs-kw)}
# solely can be textually kludged to load <at> code{(ice-9 optargs)} in
# these situations if <at> var{var} is "yes". Here is a Makefile fragment
# that demonstrates the technique:
#
# <at> example
# install-data-hook:
# if test "$(need_optargs_kludge)" = yes ; then \
# sed s/optargs-kw/optargs/ foo.scm > TMP ; \
# mv TMP foo.scm ; \
# fi
(Continue reading)
RSS Feed