diff --git a/libguile/Makefile.am b/libguile/Makefile.am index dd6d662d0..5decd99c0 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -60,13 +60,12 @@ gen_scmconfig_SOURCES = gen-scmconfig.c ## the generated config.h and gen-scmconfig.h. Nothing else from Guile ## is included by this code generator. gen-scmconfig.$(OBJEXT): gen-scmconfig.c - $(AM_V_GEN) \ - if [ "$(cross_compiling)" = "yes" ]; then \ - $(CC_FOR_BUILD) -DCROSS_COMPILING=1 $(DEFS) \ - $(DEFAULT_INCLUDES) -I$(top_builddir) \ - -c -o "$@" "$<"; \ - else \ - $(COMPILE) -c -o "$@" "$<"; \ + $(AM_V_GEN) \ + if [ "$(cross_compiling)" = "yes" ]; then \ + $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) -I$(top_builddir) \ + -c -o $@ $<; \ + else \ + $(COMPILE) -c -o $@ $<; \ fi ## Override default rule; this should run on BUILD host. diff --git a/libguile/gen-scmconfig.c b/libguile/gen-scmconfig.c index 3c8be4f8e..2f6fa6e6a 100644 --- a/libguile/gen-scmconfig.c +++ b/libguile/gen-scmconfig.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003-2014 Free Software Foundation, Inc. +/* Copyright (C) 2003-2013 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -132,10 +132,8 @@ **********************************************************************/ -/* Don't include when cross-compiling because it contains - information about the host, not about the build machine. */ -#ifndef CROSS_COMPILING -# include +#ifdef HAVE_CONFIG_H +# include #endif #include