From: Paul Smith Date: Sun, 15 Jan 2023 15:27:34 +0000 (-0500) Subject: * configure.ac: Delay setting HAVE_GUILE until we're sure X-Git-Tag: 4.4.0.91~17 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=be6bb0fd687cfea24af4024a638b2fde5aad1e4b;p=thirdparty%2Fmake.git * configure.ac: Delay setting HAVE_GUILE until we're sure --- diff --git a/configure.ac b/configure.ac index f5781853..67793e6e 100644 --- a/configure.ac +++ b/configure.ac @@ -183,7 +183,7 @@ AS_IF([test "x$with_guile" != xno], CPPFLAGS="$CPPFLAGS $GUILE_CFLAGS" LIBS="$LIBS $GUILE_LIBS" AC_CHECK_HEADER([libguile.h], - [AC_DEFINE([HAVE_GUILE], [1], [Embed GNU Guile support])], + [have_guile=yes], [have_guile=no], [/* Avoid configuration error warnings. */]) AS_IF([test "$have_guile" = yes], @@ -207,6 +207,8 @@ guile_init (void *arg) ]) ]) +AS_IF([test "$have_guile" = yes], + [AC_DEFINE([HAVE_GUILE], [1], [Embed GNU Guile support])]) AM_CONDITIONAL([HAVE_GUILE], [test "$have_guile" = "yes"]) AC_CHECK_DECLS([sys_siglist, _sys_siglist, __sys_siglist], , ,