aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/igen/configure.in')
-rw-r--r--sim/igen/configure.in26
1 files changed, 22 insertions, 4 deletions
diff --git a/sim/igen/configure.in b/sim/igen/configure.in
index 0e203d3..27736de 100644
--- a/sim/igen/configure.in
+++ b/sim/igen/configure.in
@@ -1,15 +1,28 @@
dnl Process this file with autoconf to produce a configure script.
+sinclude(../common/aclocal.m4)
AC_PREREQ(2.5)dnl
-AC_INIT(Makefile.in)
+AC_INIT(table.h)
AC_PROG_INSTALL
AC_PROG_CC
+SIM_AC_OPTION_WARNINGS
+
# Put a plausible default for CC_FOR_BUILD in Makefile.
if test "x$cross_compiling" = "xno"; then
+ AR_FOR_BUILD='$(AR)'
+ AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
CC_FOR_BUILD='$(CC)'
+ CFLAGS_FOR_BUILD='$(CFLAGS)'
+ RANLIB_FOR_BUILD='$(RANLIB)'
+ LIBIBERTY_LIB=../../libiberty/libiberty.a
else
- CC_FOR_BUILD=gcc
+ AR_FOR_BUILD=${AR_FOR_BUILD-ar}
+ AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
+ RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
+ LIBIBERTY_LIB=
fi
@@ -24,10 +37,15 @@ AC_CONFIG_HEADER(config.h:config.in)
AC_CHECK_HEADERS(stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h)
AC_HEADER_DIRENT
+AC_SUBST(AR_FOR_BUILD)
+AC_SUBST(AR_FLAGS_FOR_BUILD)
AC_SUBST(CC_FOR_BUILD)
-AC_SUBST(CFLAGS)
-AR=${AR-ar}
+AC_SUBST(CFLAGS_FOR_BUILD)
+AC_SUBST(RANLIB_FOR_BUILD)
+AC_SUBST(LIBIBERTY_LIB)
+
AC_SUBST(AR)
+AC_SUBST(CFLAGS)
AC_PROG_RANLIB
AC_OUTPUT(Makefile,