]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/w65/configure.in
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / w65 / configure.in
CommitLineData
b6de8f6a 1dnl Process this file with autoconf to produce a configure script.
59fb3497 2sinclude(../common/aclocal.m4)
78c09e4a 3AC_PREREQ(2.5)dnl
b6de8f6a 4AC_INIT(Makefile.in)
321a78a5 5
b6de8f6a 6AC_CONFIG_HEADER(config.h:config.in)
321a78a5 7
b6de8f6a
ILT
8AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
9AC_CANONICAL_SYSTEM
10AC_ARG_PROGRAM
78c09e4a
JM
11AC_PROG_CC
12AC_PROG_INSTALL
321a78a5
SC
13
14. ${srcdir}/../../bfd/configure.host
15
b6de8f6a
ILT
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.
b6de8f6a
ILT
23if test "x$cross_compiling" = "xno"; then
24 CC_FOR_BUILD='$(CC)'
25else
26 CC_FOR_BUILD=gcc
321a78a5 27fi
b6de8f6a
ILT
28AC_SUBST(CC_FOR_BUILD)
29
7c9e1739
TT
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
b6de8f6a
ILT
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)
321a78a5
SC
45fi
46
b6de8f6a
ILT
47AC_OUTPUT(Makefile,
48[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])