1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59)dnl
3AC_INIT(Makefile.in)
4AC_CONFIG_HEADER(config.h:config.in)
5
6sinclude(../common/aclocal.m4)
7
8# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
9# it by inlining the macro's contents.
10sinclude(../common/common.m4)
11
12SIM_AC_OPTION_ENDIAN(BIG_ENDIAN)
13SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT)
14SIM_AC_OPTION_HOSTENDIAN
15SIM_AC_OPTION_SCACHE(16384)
16SIM_AC_OPTION_DEFAULT_MODEL(fr500)
17SIM_AC_OPTION_ENVIRONMENT
18SIM_AC_OPTION_CGEN_MAINT
19
20#
21# Enable making unknown traps dump out registers
22#
23AC_ARG_ENABLE(sim-trapdump,
24[  --enable-sim-trapdump		Make unknown traps dump the registers],
25[case "${enableval}" in
26  yes) sim_trapdump="-DTRAPDUMP=1";;
27  no)  sim_trapdump="-DTRAPDUMP=0";;
28  *)   AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-trapdump"); sim_trapdump="";;
29esac
30if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then
31  echo "Setting sim_trapdump = $sim_trapdump" 6>&1
32fi],[sim_trapdump=""])dnl
33AC_SUBST(sim_trapdump)
34
35SIM_AC_OUTPUT
36