* 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


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/1.8@8352 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldreleases/1.8
Derek Atkins 23 years ago
parent 6fda55f2d5
commit 4a7ec55544

@ -1,3 +1,12 @@
2003-05-20 Derek Atkins <derek@ihtfp.com>
* 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 <derek@ihtfp.com>
* src/engine/QueryNew.[ch]: add gncQueryGetBooks() API to return

@ -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.

@ -183,7 +183,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)

Loading…
Cancel
Save