Add handling for 3900's SDBBP, DERET, and RFE insns.
[binutils-gdb.git] / sim / mips / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 sinclude(../common/aclocal.m4)
3 AC_PREREQ(2.5)dnl
4 AC_INIT(Makefile.in)
5
6 SIM_AC_COMMON
7
8 dnl Options available in this module
9 SIM_AC_OPTION_INLINE(0)
10 SIM_AC_OPTION_ENDIAN(0)
11 SIM_AC_OPTION_HOSTENDIAN
12 SIM_AC_OPTION_WARNINGS
13
14
15 # Ensure a reasonable default simulator is constructed:
16 case "${target}" in
17 # start-sanitize-tx19
18 mipstx19*-*-*) SIMCONF="-mips1 -mcpu=r1900 -mno-fp --warnings";;
19 # end-sanitize-tx19
20 # start-sanitize-r5900
21 mips64vr59*-*-*) SIMCONF="-mips3 --warnings -mcpu=r5900";;
22 # end-sanitize-r5900
23 mips64*-*-*) SIMCONF="-mips0 --warnings";;
24 mips16*-*-*) SIMCONF="-mips0 --warnings";;
25 mips*-*-*) SIMCONF="-mips2 --warnings";;
26 *) SIMCONF="-mips0 --warnings";;
27 esac
28 AC_SUBST(SIMCONF)
29
30 case "${target}" in
31 # start-sanitize-tx19
32 mipstx19*-*-*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
33 # end-sanitize-tx19
34 *) SIM_SUBTARGET="";;
35 esac
36 AC_SUBST(SIM_SUBTARGET)
37
38 AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h)
39 AC_CHECK_LIB(m, fabs)
40 AC_CHECK_FUNCS(aint anint sqrt)
41
42 SIM_AC_OUTPUT