]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/common/configure.in
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / common / configure.in
CommitLineData
58b72d7e
DE
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.5)dnl
3AC_INIT(Makefile.in)
4
5# This is intended for use by the target specific directories, and by us.
08547b1f 6SIM_AC_COMMON(cconfig.h)
58b72d7e
DE
7
8# Put a useful copy of CPP_FOR_TARGET in Makefile.
9# This is only used to build the target values header files. These files are
10# shipped with distributions so CPP_FOR_TARGET only needs to work in
11# developer's trees. This value is borrowed from ../../Makefile.in.
12CPP_FOR_TARGET="\` \
13 if test -f \$\${rootme}/../../gcc/Makefile ; then \
14 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
15 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
16 else \
17 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
18 fi; \
19 else \
20 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
21 echo \$(CC); \
22 else \
23 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
24 fi; \
25 fi\` -E"
26AC_SUBST(CPP_FOR_TARGET)
27
28# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
29if test x"${host}" = x"${target}" ; then
30 TARGET_SUBDIR="."
31else
32 TARGET_SUBDIR=${target_alias}
33fi
34AC_SUBST(TARGET_SUBDIR)
35
58b72d7e
DE
36# These aren't all needed yet, but will be eventually.
37AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h)
38
39AC_OUTPUT(Makefile,
08547b1f 40[case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac])