diff --git a/ChangeLog b/ChangeLog index d1c12ec3b4..224883e300 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,13 @@ * src/scm/printing/print-check.scm: some finer adjustments on the locations for Deluxe personal checks. + * acinclude.m4: modify the AC_GWRAP_CHECK_GUILE() macro to + take an argument, the g-wrap module directory. Then actually + test that the g-wrap module loads. This should detect systems + without slib installed. + * configure.in: all the new gwrap check macro + Fixes #113218 + 2003-05-19 Derek Atkins * src/engine/QueryNew.[ch]: add gncQueryGetBooks() API to return diff --git a/acinclude.m4 b/acinclude.m4 index c221b7394d..458635c51f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -3935,6 +3935,14 @@ AC_DEFUN(AC_GWRAP_CHECK_GUILE, if test "${GUILE}" = "no" ; then AC_MSG_ERROR(g-wrap couldn't find guile.) fi + AC_MSG_CHECKING(if g-wrap works) + $GUILE -c "(set! %load-path (cons \"$1\" %load-path)) (use-modules (g-wrap))" + status=$? + if test $status != 0 ; then + AC_MSG_ERROR([g-wrap could not run. Perhaps missing slib?]) + else + AC_MSG_RESULT(yes) + fi ]) dnl AM_PATH_GWRAP ([MINIMUM-VERSION, MAXIMUM-VERSION, [ACTION-IF-FOUND. diff --git a/configure.in b/configure.in index 8162135496..63480eb70a 100644 --- a/configure.in +++ b/configure.in @@ -198,7 +198,7 @@ G_WRAP_MODULE_DIR=`${G_WRAP_CONFIG} --guile-module-directory` G_WRAP_LIB_DIR=`echo $G_WRAP_MODULE_DIR | sed -e 's|share/guile|lib|'` AC_MSG_RESULT($G_WRAP_MODULE_DIR) -AC_GWRAP_CHECK_GUILE +AC_GWRAP_CHECK_GUILE($G_WRAP_MODULE_DIR) AC_SUBST(G_WRAP_CONFIG) AC_SUBST(G_WRAP_COMPILE_ARGS)