1 dnl Process this file with autoconf to produce a configure script.
8 AC_CHECK_TOOL(RANLIB, ranlib, :)
10 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
20 # Put a plausible default for CC_FOR_BUILD in Makefile.
22 if test "x$cross_compiling" = "xno"; then
27 AC_SUBST(CC_FOR_BUILD)
29 # The PowerPC simulator uses the GCC extension long long as well as
30 # ANSI prototypes, so don't enable it for random host compilers
33 AC_ARG_ENABLE(sim-powerpc,
34 [ --enable-sim-powerpc ],
35 [case "${enableval}" in
36 yes) powerpc_sim=yes ;;
38 *) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;;
39 esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
41 # WHEN ADDING ENTRIES TO THIS MATRIX:
42 # Make sure that the left side always has two dashes. Otherwise you
43 # can get spurious matches. Even for unambiguous cases, do this as a
44 # convention, else the table becomes a real mess to understand and maintain.
47 arm*-*-*) sim_target=arm ;;
49 d10v-*-*) sim_target=d10v ;;
51 h8300*-*-*) sim_target=h8300 ;;
52 h8500-*-*) sim_target=h8500 ;;
54 # The MIPS simulator can only be compiled
56 if test "${GCC}" = "yes"; then
62 sh*-*-*) sim_target=sh ;;
63 powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* )
64 if test x"$powerpc_sim" = x"yes"; then sim_target=ppc; fi ;;
66 v850-*-*) sim_target=v850 ;;
68 w65-*-*) sim_target=w65 ;;
69 z8k*-*-*) sim_target=z8k ;;
70 sparc*-*-*) # The SPARC simulator can only be compiled
72 if test "${GCC}" = "yes"; then
81 configdirs=${sim_target}
82 AC_CONFIG_SUBDIRS($configdirs)