From f4b746b8c23c257574b44e6bc0ad830c754f0c6b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 19 Oct 2013 12:21:09 -0400 Subject: [SV 40254] Modify build.sh to work properly with Guile support. * guile.c (guile_gmake_setup) [HAVE_GUILE]: Define a stub function when Guile support is not enabled. * main.c (main) [HAVE_GUILE]: Always invoke guile_gmake_setup(). * Makefile.am: Make guile.c standard, not optional. * build.template: Add the Guile compiler and linker flags. --- guile.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'guile.c') diff --git a/guile.c b/guile.c index 499585c..40d99aa 100644 --- a/guile.c +++ b/guile.c @@ -15,6 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include "makeint.h" + +#ifdef HAVE_GUILE + #include "gnumake.h" #include "debug.h" @@ -144,3 +147,13 @@ guile_gmake_setup (const gmk_floc *flocp UNUSED) return 1; } + +#else + +int +guile_gmake_setup (const gmk_floc *flocp UNUSED) +{ + return 1; +} + +#endif -- cgit v1.2.3