]> Git Repo - binutils.git/blame - sim/w65/configure.in
Thu Oct 31 19:13:55 1996 Martin M. Hunt <[email protected]>
[binutils.git] / sim / w65 / configure.in
CommitLineData
b6de8f6a 1dnl Process this file with autoconf to produce a configure script.
78c09e4a 2AC_PREREQ(2.5)dnl
b6de8f6a 3AC_INIT(Makefile.in)
321a78a5 4
b6de8f6a 5AC_CONFIG_HEADER(config.h:config.in)
321a78a5 6
b6de8f6a
ILT
7AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
8AC_CANONICAL_SYSTEM
9AC_ARG_PROGRAM
78c09e4a
JM
10AC_PROG_CC
11AC_PROG_INSTALL
321a78a5
SC
12
13. ${srcdir}/../../bfd/configure.host
14
b6de8f6a
ILT
15AC_SUBST(CFLAGS)
16AC_SUBST(HDEFINES)
17AR=${AR-ar}
18AC_SUBST(AR)
19AC_PROG_RANLIB
20
21# Put a plausible default for CC_FOR_BUILD in Makefile.
22AC_C_CROSS
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
30AC_CHECK_HEADERS(stdlib.h time.h unistd.h)
31
32AC_MSG_CHECKING([whether printf must be declared])
33AC_CACHE_VAL(sim_cv_decl_needed_printf,
34[AC_TRY_COMPILE([#include <stdio.h>],
35[int (*pfn) = (int (*)) printf],
36sim_cv_decl_needed_printf=no, sim_cv_decl_needed_printf=yes)])
37AC_MSG_RESULT($sim_cv_decl_needed_printf)
38if test $sim_cv_decl_needed_printf = yes; then
39 AC_DEFINE(NEED_DECLARATION_PRINTF)
321a78a5
SC
40fi
41
b6de8f6a
ILT
42AC_OUTPUT(Makefile,
43[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
This page took 0.155409 seconds and 4 git commands to generate.