1 dnl Process this file with autoconf to produce a configure script.
2 m4_include([../config/override.m4])
9 AC_CHECK_TOOL(RANLIB, ranlib, :)
20 # Put a plausible default for CC_FOR_BUILD in Makefile.
21 if test "x$cross_compiling" = "xno"; then
26 AC_SUBST(CC_FOR_BUILD)
27 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
28 AC_SUBST(CFLAGS_FOR_BUILD)
30 # If a cpu ever has more than one simulator to choose from, use
31 # --enable-sim=... to choose.
34 [case "${enableval}" in
36 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
39 # WHEN ADDING ENTRIES TO THIS MATRIX:
41 # Make sure that the left side always has two dashes. Otherwise you
42 # can get spurious matches. Even for unambiguous cases, do this as a
43 # convention, else the table becomes a real mess to understand and
46 if test "${enable_sim}" != no; then
51 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
52 AC_CONFIG_SUBDIRS(arm)
56 AC_CONFIG_SUBDIRS(avr)
59 AC_CONFIG_SUBDIRS(cr16)
62 cris-*-* | crisv32-*-*)
63 AC_CONFIG_SUBDIRS(cris)
67 AC_CONFIG_SUBDIRS(d10v)
70 AC_CONFIG_SUBDIRS(frv)
74 AC_CONFIG_SUBDIRS(h8300)
78 AC_CONFIG_SUBDIRS(iq2000)
82 AC_CONFIG_SUBDIRS(lm32)
86 AC_CONFIG_SUBDIRS(m32c)
89 AC_CONFIG_SUBDIRS(m32r)
92 m68hc11-*-*|m6811-*-*)
93 AC_CONFIG_SUBDIRS(m68hc11)
97 AC_CONFIG_SUBDIRS(mcore)
101 AC_CONFIG_SUBDIRS(microblaze)
105 AC_CONFIG_SUBDIRS(mips)
110 AC_CONFIG_SUBDIRS(mn10300)
114 AC_CONFIG_SUBDIRS(moxie)
118 AC_CONFIG_SUBDIRS(sh64)
122 AC_CONFIG_SUBDIRS(sh)
125 sparc-*-rtems*|sparc-*-elf*)
126 AC_CONFIG_SUBDIRS(erc32)
130 AC_CONFIG_SUBDIRS(ppc)
133 AC_CONFIG_SUBDIRS(v850)
138 # No simulator subdir, so the subdir "common" isn't needed.
142 if test "$testsuite" = yes; then
143 AC_CONFIG_SUBDIRS(testsuite)
145 if test "$common" = yes; then
146 AC_CONFIG_SUBDIRS(common)
148 if test "$igen" = yes; then
149 AC_CONFIG_SUBDIRS(igen)