summaryrefslogtreecommitdiff
path: root/guile.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-10-19 12:21:09 -0400
committerPaul Smith <psmith@gnu.org>2013-10-19 12:24:14 -0400
commitf4b746b8c23c257574b44e6bc0ad830c754f0c6b (patch)
tree89712cdb955967aea092bfa7ef1d33da5c723681 /guile.c
parentd7f25cfda5806cb67dba012f0f9c715a9dcd65e4 (diff)
downloadgunmake-f4b746b8c23c257574b44e6bc0ad830c754f0c6b.tar.gz
[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.
Diffstat (limited to 'guile.c')
-rw-r--r--guile.c13
1 files changed, 13 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */
#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