1995-11-08 15:44:38 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-06-26 03:26:09 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
1995-11-08 15:44:38 +00:00
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
1996-06-03 15:58:45 +00:00
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
|
|
|
|
1995-11-08 15:44:38 +00:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
1996-06-26 03:26:09 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
1995-11-08 15:44:38 +00:00
|
|
|
|
|
|
|
. ${srcdir}/../../bfd/configure.host
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
1996-06-05 08:16:16 +00:00
|
|
|
# Ensure a reasonable default simulator is constructed:
|
|
|
|
case "${target}" in
|
|
|
|
mips64*-*-*) SIMCONF="-mips0 --warnings";;
|
|
|
|
mips*-*-*) SIMCONF="-mips2 --warnings";;
|
|
|
|
*) SIMCONF="-mips0 --warnings";;
|
|
|
|
esac
|
|
|
|
|
1995-11-08 15:44:38 +00:00
|
|
|
# Put a plausible default for CC_FOR_BUILD in Makefile.
|
|
|
|
AC_C_CROSS
|
|
|
|
if test "x$cross_compiling" = "xno"; then
|
|
|
|
CC_FOR_BUILD='$(CC)'
|
|
|
|
else
|
|
|
|
CC_FOR_BUILD=gcc
|
|
|
|
fi
|
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
|
|
|
1996-06-03 15:58:45 +00:00
|
|
|
AC_CHECK_HEADERS(string.h strings.h stdlib.h)
|
|
|
|
AC_CHECK_LIB(m, fabs)
|
1996-09-26 10:39:34 +00:00
|
|
|
AC_CHECK_FUNCS(aint anint sqrt)
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1996-06-05 08:16:16 +00:00
|
|
|
AC_SUBST(SIMCONF)
|
|
|
|
|
1996-06-03 15:58:45 +00:00
|
|
|
AC_OUTPUT(Makefile,
|
|
|
|
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|