1995-09-08 18:07:02 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-06-26 03:35:01 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
1995-09-08 18:07:02 +00:00
|
|
|
AC_INIT(Makefile.in)
|
1995-01-16 00:53:05 +00:00
|
|
|
|
1995-09-08 18:07:02 +00:00
|
|
|
AC_CONFIG_HEADER(config.h:config.in)
|
1995-01-16 00:53:05 +00:00
|
|
|
|
1995-09-08 18:07:02 +00:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
1996-06-26 03:35:01 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
1995-01-16 00:53:05 +00:00
|
|
|
|
|
|
|
. ${srcdir}/../../bfd/configure.host
|
|
|
|
|
1995-09-08 18:07:02 +00:00
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(HDEFINES)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
# 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
|
1995-01-16 00:53:05 +00:00
|
|
|
fi
|
1995-09-08 18:07:02 +00:00
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(stdlib.h time.h unistd.h)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether printf must be declared])
|
|
|
|
AC_CACHE_VAL(sim_cv_decl_needed_printf,
|
|
|
|
[AC_TRY_COMPILE([#include <stdio.h>],
|
|
|
|
[int (*pfn) = (int (*)) printf],
|
|
|
|
sim_cv_decl_needed_printf=no, sim_cv_decl_needed_printf=yes)])
|
|
|
|
AC_MSG_RESULT($sim_cv_decl_needed_printf)
|
|
|
|
if test $sim_cv_decl_needed_printf = yes; then
|
|
|
|
AC_DEFINE(NEED_DECLARATION_PRINTF)
|
1995-01-16 00:53:05 +00:00
|
|
|
fi
|
|
|
|
|
1995-09-08 18:07:02 +00:00
|
|
|
AC_OUTPUT(Makefile,
|
|
|
|
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|