aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
Diffstat (limited to 'sim/erc32')
-rw-r--r--sim/erc32/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/erc32/configure.in b/sim/erc32/configure.in
index 2438a6c..33ad604 100644
--- a/sim/erc32/configure.in
+++ b/sim/erc32/configure.in
@@ -16,4 +16,15 @@ AR=${AR-ar}
AC_SUBST(AR)
AC_PROG_RANLIB
+# Put a plausible default for CC_FOR_BUILD in Makefile.
+AC_C_CROSS
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
+ else
+ CC_FOR_BUILD=gcc
+ fi
+fi
+AC_SUBST(CC_FOR_BUILD)
+
AC_OUTPUT(Makefile)