1 dnl Process this file with autoconf to produce a configure script.
8 AC_CHECK_TOOL(RANLIB, ranlib, :)
19 # Put a plausible default for CC_FOR_BUILD in Makefile.
20 if test "x$cross_compiling" = "xno"; then
25 AC_SUBST(CC_FOR_BUILD)
26 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
27 AC_SUBST(CFLAGS_FOR_BUILD)
29 # If a cpu ever has more than one simulator to choose from, use
30 # --enable-sim=... to choose.
33 [case "${enableval}" in
35 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
38 # WHEN ADDING ENTRIES TO THIS MATRIX:
40 # Make sure that the left side always has two dashes. Otherwise you
41 # can get spurious matches. Even for unambiguous cases, do this as a
42 # convention, else the table becomes a real mess to understand and
45 if test "${enable_sim}" != no; then
50 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
51 AC_CONFIG_SUBDIRS(arm)
54 cris-*-* | crisv32-*-*)
55 AC_CONFIG_SUBDIRS(cris)
59 AC_CONFIG_SUBDIRS(d10v)
62 AC_CONFIG_SUBDIRS(frv)
66 AC_CONFIG_SUBDIRS(h8300)
70 AC_CONFIG_SUBDIRS(iq2000)
74 AC_CONFIG_SUBDIRS(m32c)
77 AC_CONFIG_SUBDIRS(m32r)
80 m68hc11-*-*|m6811-*-*)
81 AC_CONFIG_SUBDIRS(m68hc11)
85 AC_CONFIG_SUBDIRS(mcore)
89 AC_CONFIG_SUBDIRS(mips)
94 AC_CONFIG_SUBDIRS(mn10300)
98 AC_CONFIG_SUBDIRS(sh64)
102 AC_CONFIG_SUBDIRS(sh)
105 sparc-*-rtems*|sparc-*-elf*)
106 AC_CONFIG_SUBDIRS(erc32)
110 AC_CONFIG_SUBDIRS(ppc)
113 AC_CONFIG_SUBDIRS(v850)
118 # No simulator subdir, so the subdir "common" isn't needed.
122 if test "$testsuite" = yes; then
123 AC_CONFIG_SUBDIRS(testsuite)
125 if test "$common" = yes; then
126 AC_CONFIG_SUBDIRS(common)
128 if test "$igen" = yes; then
129 AC_CONFIG_SUBDIRS(igen)