Andrew's latest changes & print all instruction counts if -I
[deliverable/binutils-gdb.git] / sim / ppc / configure.in
CommitLineData
cb7a6892
MM
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.3)dnl
3AC_INIT(Makefile.in)
4
8b3797aa
MM
5AC_CONFIG_HEADER(config.h:config.in)
6
cb7a6892
MM
7AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
8AC_CANONICAL_SYSTEM
9AC_ARG_PROGRAM
10
11. ${srcdir}/../../bfd/configure.host
12
8b3797aa
MM
13AC_PROG_CC
14AC_SUBST(CFLAGS)
15AC_SUBST(HDEFINES)
16AR=${AR-ar}
17AC_SUBST(AR)
18AC_PROG_RANLIB
19
20# Put a plausible default for CC_FOR_BUILD in Makefile.
21AC_C_CROSS
22if test "x$cross_compiling" = "xno"; then
23 CC_FOR_BUILD='$(CC)'
cb7a6892 24else
8b3797aa 25 CC_FOR_BUILD=gcc
cb7a6892 26fi
8b3797aa 27AC_SUBST(CC_FOR_BUILD)
cb7a6892 28
8b3797aa 29AC_CHECK_HEADERS(string.h strings.h stdlib.h time.h sys/times.h)
cb7a6892 30
8b3797aa
MM
31AC_OUTPUT(Makefile,
32[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
4b935ed4 33
c143ef62
MM
34if test x"$enable_sim_cflags" != x"" -a x"$enable_sim_cflags" != x"no"; then
35 if test "$enable_sim_cflags" = "yes"; then
36 enable_sim_cflags="-fomit-frame-pointer,-O2"
37 fi
38 echo "Setting SIM_CFLAGS=$enable_sim_cflags" | sed -e "s/,/ /g" 1>&6
39 (echo; echo "# --enable-sim-cflags=$enable_sim_cflags";
40 echo "SIM_CFLAGS = $enable_sim_cflags" | sed -e "s/,/ /g") >> Makefile
41else
42 echo "Setting SIM_CFLAGS=" 1>&6
43 (echo; echo "# no --enable-sim-cflags"; echo "SIM_CFLAGS =") >> Makefile
44fi
45
46$srcdir/config.make Makefile CONFIG_FILE --enable-sim-config "$enable_sim_config" \
47 "" "std-config.h" "no" "std-config.h" "yes" "std-config.h" "*" "$enable_sim_config" 1>&6
48
49$srcdir/config.make Makefile IGEN_OPCODE_RULES --enable-sim-opcode "$enable_sim_opcode" \
50 "" "ppc-opcode-simple" "no" "ppc-opcode-simple" "yes" "ppc-opcode-simple" \
a983c8f0 51 "complex" "ppc-opcode-complex" "simple" "ppc-opcode-simple" "stupid" "ppc-opcode-stupid" 1>&6
c143ef62
MM
52
53$srcdir/config.make Makefile DGEN_FLAGS --enable-sim-switch "$enable_sim_switch" \
54 "" "" "no" "" "yes" "-s" 1>&6
55
56$srcdir/config.make Makefile IGEN_DUPLICATE --enable-sim-duplicate "$enable_sim_duplicate" \
57 "" "" "no" "" "yes" "-e" 1>&6
58
59$srcdir/config.make Makefile IGEN_FILTER --enable-sim-filter "$enable_sim_filter" \
60 "" "-f 64" "no" "" "yes" "-f 64" "*" "$enable_sim_filter" 1>&6
61
a983c8f0
MM
62$srcdir/config.make Makefile IGEN_ICACHE --enable-sim-icache "$enable_sim_icache" \
63 "" "" "no" "" "yes" "-r 1024" "*" "-r $enable_sim_icache" 1>&6
64
c143ef62 65flags=""
4b935ed4 66if test x"$enable_sim_inline" != x""; then
4b935ed4
MM
67 case "$enable_sim_inline" in
68 no) flags="";;
c143ef62
MM
69 0) flags=" -DDEFAULT_INLINE=0";;
70 yes | 2) flags=" -DDEFAULT_INLINE=2";;
71 1) flags=" -DDEFAULT_INLINE=1";;
4b935ed4
MM
72 *) for x in `echo "$enable_sim_inline" | sed -e "s/,/ /g"`; do
73 case "$x" in
74 *_INLINE=*) flags="$flags -D$x";;
75 *_INLINE) flags="$flags -D$x=2";;
76 *=*) x=`sed -e "s/=/_INLINE=/"`; flags="$flags -D$x";;
77 *) flags="$flags -D$x""_INLINE=2";;
78 esac
79 done;;
80 esac
4b935ed4 81fi
c143ef62
MM
82if test x"$flags" != x""; then
83 echo "Setting INLINE_CFLAGS=$flags" 1>&6
84 (echo; echo "# --enable-sim-inline=$enable_sim_inline"; echo "INLINE_CFLAGS =$flags") >> Makefile
85else
86 echo "Setting INLINE_CFLAGS=" 1>&6
87 (echo; echo "# no --enable-sim-inline"; echo "INLINE_CFLAGS =") >> Makefile
4b935ed4
MM
88fi
89
c143ef62 90$srcdir/config.hdr config.h WITH_BSWAP --enable-sim-bswap "$enable_sim_bswap" "yes" 1
4b935ed4 91
c143ef62
MM
92case "$target" in
93 *powerpc-*) endian="BIG_ENDIAN";;
94 *powerpcle-*) endian="LITTLE_ENDIAN";;
95 *) echo "Unknown $target" 1>&6; endian="0";;
96esac
4b935ed4 97
c143ef62
MM
98$srcdir/config.hdr config.h WITH_TARGET_BYTE_ORDER --enable-sim-endian "$enable_sim_endian" \
99 "" "0" "no" "0" "yes" "$endian" \
100 "b" "BIG_ENDIAN" "big" "BIG_ENDIAN" "big-endian" "BIG_ENDIAN" \
101 "B" "BIG_ENDIAN" "BIG" "BIG_ENDIAN" "BIG-ENDIAN" "BIG_ENDIAN" \
102 "l" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" \
103 "L" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" 1>&6
4b935ed4 104
c143ef62
MM
105$srcdir/config.hdr config.h WITH_HOST_BYTE_ORDER --enable-sim-hostendian "$enable_sim_hostendian" \
106 "b" "BIG_ENDIAN" "big" "BIG_ENDIAN" "big-endian" "BIG_ENDIAN" \
107 "B" "BIG_ENDIAN" "BIG" "BIG_ENDIAN" "BIG-ENDIAN" "BIG_ENDIAN" \
108 "l" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" \
109 "L" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" 1>&6
4b935ed4 110
c143ef62
MM
111$srcdir/config.hdr config.h WITH_SMP --enable-sim-smp "$enable_sim_smp" \
112 "" "0" "no" "0" "yes" "2" "*" "$enable_sim_smp" 1>&6
4b935ed4 113
c143ef62
MM
114$srcdir/config.hdr config.h WITH_TARGET_WORD_BITSIZE --enable-sim-bitsize "$enable_sim_bitsize" \
115 "yes" "32" "32" "32" "32" "64" "64" 1>&6
4b935ed4 116
c143ef62
MM
117$srcdir/config.hdr config.h WITH_HOST_WORD_BITSIZE --enable-sim-hostbitsize "$enable_sim_hostbitsize" \
118 "yes" "32" "32" "32" "32" "64" "64" 1>&6
119
120$srcdir/config.hdr config.h WITH_ENVIRONMENT --enable-sim-env "$enable_sim_env" \
121 "yes" "0" \
122 "operating" "OPERATING_ENVIRONMENT" "os" "OPERATING_ENVIRONMENT" "oea" "OPERATING_ENVIRONMENT" \
a983c8f0
MM
123 "virtual" "VIRTUAL_ENVIRONMENT" "vea" "VIRTUAL_ENVIRONMENT" \
124 "user" "USER_ENVIRONMENT" "uea" "USER_ENVIRONMENT" \
125 1>&6
c143ef62
MM
126
127$srcdir/config.hdr config.h WITH_TIME_BASE --enable-sim-timebase "$enable_sim_timebase" \
128 "no" "0" "yes" "1" 1>&6
129
130$srcdir/config.hdr config.h WITH_ALIGNMENT --enable-sim-alignment "$enable_sim_alignment" \
131 "no" "NONSTRICT_ALIGNMENT" "nonstrict" "NONSTRICT_ALIGNMENT" \
132 "yes" "STRICT_ALIGNMENT" "strict" "STRICT_ALIGNMENT" 1>&6
133
134$srcdir/config.hdr config.h WITH_FLOATING_POINT --enable-sim-float "$enable_sim_float" \
135 "no" "SOFT_FLOATING_POINT" "soft" "SOFT_FLOATING_POINT" \
136 "yes" "HARD_FLOATING_POINT" "hard" "HARD_FLOATING_POINT" 1>&6
137
138$srcdir/config.hdr config.h WITH_TRACE --enable-sim-trace "$enable_sim_trace" \
139 "no" "0" "yes" "1" 1>&6
140
141$srcdir/config.hdr config.h WITH_ASSERT --enable-sim-assert "$enable_sim_assert" \
142 "no" "0" "yes" "1" 1>&6
4b935ed4 143
c143ef62
MM
144$srcdir/config.hdr config.h WITH_MON --enable-sim-monitor "$enable_sim_monitor" \
145 "no" "0" "yes" "MONITOR_INSTRUCTION_ISSUE|MONITOR_LOAD_STORE_UNIT" \
146 "instruction" "MONITOR_INSTRUCTION_ISSUE" \
147 "memory" "MONITOR_LOAD_STORE_UNIT" 1>&6
This page took 0.039691 seconds and 4 git commands to generate.