Fix PR ld/22727 (TLS breakage in PIC/PIE mode on SPARC).
[deliverable/binutils-gdb.git] / sim / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 m4_include([../config/override.m4])
3 AC_PREREQ(2.59)dnl
4 AC_INIT(Makefile.in)
5
6 AC_PROG_CC
7 AC_PROG_INSTALL
8 AC_CHECK_TOOL(AR, ar)
9 AC_CHECK_TOOL(RANLIB, ranlib, :)
10
11 AC_CANONICAL_SYSTEM
12 AC_ARG_PROGRAM
13 AC_PROG_CC
14 AC_SUBST(CFLAGS)
15 AC_SUBST(HDEFINES)
16 AR=${AR-ar}
17 AC_SUBST(AR)
18 AC_PROG_RANLIB
19
20 # Put a plausible default for CC_FOR_BUILD in Makefile.
21 if test -z "$CC_FOR_BUILD"; then
22 if test "x$cross_compiling" = "xno"; then
23 CC_FOR_BUILD='$(CC)'
24 else
25 CC_FOR_BUILD=gcc
26 fi
27 fi
28 AC_SUBST(CC_FOR_BUILD)
29 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
30 AC_SUBST(CFLAGS_FOR_BUILD)
31
32 # If a cpu ever has more than one simulator to choose from, use
33 # --enable-sim=... to choose.
34 AC_ARG_ENABLE(sim,
35 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
36 [case "${enableval}" in
37 yes | no) ;;
38 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
39 esac])
40
41 m4_define([SIM_ARCH], [
42 sim_arch=$1
43 AC_CONFIG_SUBDIRS($1)
44 ])
45 if test "${enable_sim}" != no; then
46 sinclude(configure.tgt)
47 AC_CONFIG_SUBDIRS(testsuite)
48 if test "$sim_igen" = yes; then
49 AC_CONFIG_SUBDIRS(igen)
50 fi
51 fi
52
53 AC_OUTPUT(Makefile)
54
55 exit 0
This page took 0.032871 seconds and 4 git commands to generate.