New simulator.
[deliverable/binutils-gdb.git] / sim / w65 / configure.in
CommitLineData
c906108c
SS
1dnl Process this file with autoconf to produce a configure script.
2sinclude(../common/aclocal.m4)
3AC_PREREQ(2.5)dnl
4AC_INIT(Makefile.in)
5
6AC_CONFIG_HEADER(config.h:config.in)
7
8AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
9AC_CANONICAL_SYSTEM
10AC_ARG_PROGRAM
11AC_PROG_CC
12AC_PROG_INSTALL
13
14. ${srcdir}/../../bfd/configure.host
15
16AC_SUBST(CFLAGS)
17AC_SUBST(HDEFINES)
18AR=${AR-ar}
19AC_SUBST(AR)
20AC_PROG_RANLIB
21
22# Put a plausible default for CC_FOR_BUILD in Makefile.
23if test "x$cross_compiling" = "xno"; then
24 CC_FOR_BUILD='$(CC)'
25else
26 CC_FOR_BUILD=gcc
27fi
28AC_SUBST(CC_FOR_BUILD)
29
30dnl We don't use gettext, but bfd does. So we do the appropriate checks
31dnl to see if there are intl libraries we should link against.
32ALL_LINGUAS=
33CY_GNU_GETTEXT
34
35AC_CHECK_HEADERS(stdlib.h time.h unistd.h)
36
37AC_MSG_CHECKING([whether printf must be declared])
38AC_CACHE_VAL(sim_cv_decl_needed_printf,
39[AC_TRY_COMPILE([#include <stdio.h>],
40[int (*pfn) = (int (*)) printf],
41sim_cv_decl_needed_printf=no, sim_cv_decl_needed_printf=yes)])
42AC_MSG_RESULT($sim_cv_decl_needed_printf)
43if test $sim_cv_decl_needed_printf = yes; then
44 AC_DEFINE(NEED_DECLARATION_PRINTF)
45fi
46
47AC_OUTPUT(Makefile,
48[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
This page took 0.075207 seconds and 4 git commands to generate.