1 dnl Process this file with autoconf to produce a configure script.
2 sinclude(../common/aclocal.m4)
6 AC_CONFIG_HEADER(config.h:config.in)
8 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
14 . ${srcdir}/../../bfd/configure.host
22 # Put a plausible default for CC_FOR_BUILD in Makefile.
23 if test "x$cross_compiling" = "xno"; then
28 AC_SUBST(CC_FOR_BUILD)
30 dnl We don't use gettext, but bfd does. So we do the appropriate checks
31 dnl to see if there are intl libraries we should link against.
35 AC_CHECK_HEADERS(stdlib.h time.h unistd.h)
37 AC_MSG_CHECKING([whether printf must be declared])
38 AC_CACHE_VAL(sim_cv_decl_needed_printf,
39 [AC_TRY_COMPILE([#include <stdio.h>],
40 [int (*pfn) = (int (*)) printf],
41 sim_cv_decl_needed_printf=no, sim_cv_decl_needed_printf=yes)])
42 AC_MSG_RESULT($sim_cv_decl_needed_printf)
43 if test $sim_cv_decl_needed_printf = yes; then
44 AC_DEFINE(NEED_DECLARATION_PRINTF)
48 [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])