]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/ppc/configure
Lots of changes
[thirdparty/binutils-gdb.git] / sim / ppc / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36
37 # Initialize some other variables.
38 subdirs=
39
40 ac_prev=
41 for ac_option
42 do
43
44 # If the previous option needs an argument, assign it.
45 if test -n "$ac_prev"; then
46 eval "$ac_prev=\$ac_option"
47 ac_prev=
48 continue
49 fi
50
51 case "$ac_option" in
52 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
53 *) ac_optarg= ;;
54 esac
55
56 # Accept the important Cygnus configure options, so we can diagnose typos.
57
58 case "$ac_option" in
59
60 -build | --build | --buil | --bui | --bu | --b)
61 ac_prev=build ;;
62 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
63 build="$ac_optarg" ;;
64
65 -cache-file | --cache-file | --cache-fil | --cache-fi \
66 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
67 ac_prev=cache_file ;;
68 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
69 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
70 cache_file="$ac_optarg" ;;
71
72 -disable-* | --disable-*)
73 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
74 # Reject names that are not valid shell variable names.
75 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
76 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
77 fi
78 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
79 eval "enable_${ac_feature}=no" ;;
80
81 -enable-* | --enable-*)
82 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
83 # Reject names that are not valid shell variable names.
84 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
85 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
86 fi
87 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
88 case "$ac_option" in
89 *=*) ;;
90 *) ac_optarg=yes ;;
91 esac
92 eval "enable_${ac_feature}='$ac_optarg'" ;;
93
94 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
95 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
96 | --exec | --exe | --ex)
97 ac_prev=exec_prefix ;;
98 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
99 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
100 | --exec=* | --exe=* | --ex=*)
101 exec_prefix="$ac_optarg" ;;
102
103 -gas | --gas | --ga | --g)
104 # Obsolete; use --with-gas.
105 with_gas=yes ;;
106
107 -help | --help | --hel | --he)
108 # Omit some internal or obsolete options to make the list less imposing.
109 # This message is too long to be a string in the A/UX 3.1 sh.
110 cat << EOF
111 Usage: configure [options] [host]
112 Options: [defaults in brackets after descriptions]
113 Configuration:
114 --cache-file=FILE cache test results in FILE
115 --help print this message
116 --no-create do not create output files
117 --quiet, --silent do not print \`checking...' messages
118 --version print the version of autoconf that created configure
119 Directory and file names:
120 --prefix=PREFIX install architecture-independent files in PREFIX
121 [$ac_default_prefix]
122 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
123 [same as prefix]
124 --srcdir=DIR find the sources in DIR [configure dir or ..]
125 --program-prefix=PREFIX prepend PREFIX to installed program names
126 --program-suffix=SUFFIX append SUFFIX to installed program names
127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
128 Host type:
129 --build=BUILD configure for building on BUILD [BUILD=HOST]
130 --host=HOST configure for HOST [guessed]
131 --target=TARGET configure for TARGET [TARGET=HOST]
132 Features and packages:
133 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
134 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
135 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
136 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
137 --x-includes=DIR X include files are in DIR
138 --x-libraries=DIR X library files are in DIR
139 --enable and --with options recognized:$ac_help
140 EOF
141 exit 0 ;;
142
143 -host | --host | --hos | --ho)
144 ac_prev=host ;;
145 -host=* | --host=* | --hos=* | --ho=*)
146 host="$ac_optarg" ;;
147
148 -nfp | --nfp | --nf)
149 # Obsolete; use --without-fp.
150 with_fp=no ;;
151
152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
153 | --no-cr | --no-c)
154 no_create=yes ;;
155
156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
158 no_recursion=yes ;;
159
160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
161 ac_prev=prefix ;;
162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
163 prefix="$ac_optarg" ;;
164
165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
166 | --program-pre | --program-pr | --program-p)
167 ac_prev=program_prefix ;;
168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
170 program_prefix="$ac_optarg" ;;
171
172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
173 | --program-suf | --program-su | --program-s)
174 ac_prev=program_suffix ;;
175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
177 program_suffix="$ac_optarg" ;;
178
179 -program-transform-name | --program-transform-name \
180 | --program-transform-nam | --program-transform-na \
181 | --program-transform-n | --program-transform- \
182 | --program-transform | --program-transfor \
183 | --program-transfo | --program-transf \
184 | --program-trans | --program-tran \
185 | --progr-tra | --program-tr | --program-t)
186 ac_prev=program_transform_name ;;
187 -program-transform-name=* | --program-transform-name=* \
188 | --program-transform-nam=* | --program-transform-na=* \
189 | --program-transform-n=* | --program-transform-=* \
190 | --program-transform=* | --program-transfor=* \
191 | --program-transfo=* | --program-transf=* \
192 | --program-trans=* | --program-tran=* \
193 | --progr-tra=* | --program-tr=* | --program-t=*)
194 program_transform_name="$ac_optarg" ;;
195
196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
197 | -silent | --silent | --silen | --sile | --sil)
198 silent=yes ;;
199
200 -site | --site | --sit)
201 ac_prev=site ;;
202 -site=* | --site=* | --sit=*)
203 site="$ac_optarg" ;;
204
205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
206 ac_prev=srcdir ;;
207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
208 srcdir="$ac_optarg" ;;
209
210 -target | --target | --targe | --targ | --tar | --ta | --t)
211 ac_prev=target ;;
212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
213 target="$ac_optarg" ;;
214
215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
216 verbose=yes ;;
217
218 -version | --version | --versio | --versi | --vers)
219 echo "configure generated by autoconf version 2.4"
220 exit 0 ;;
221
222 -with-* | --with-*)
223 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
224 # Reject names that are not valid shell variable names.
225 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
226 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
227 fi
228 ac_package=`echo $ac_package| sed 's/-/_/g'`
229 case "$ac_option" in
230 *=*) ;;
231 *) ac_optarg=yes ;;
232 esac
233 eval "with_${ac_package}='$ac_optarg'" ;;
234
235 -without-* | --without-*)
236 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
240 fi
241 ac_package=`echo $ac_package| sed 's/-/_/g'`
242 eval "with_${ac_package}=no" ;;
243
244 --x)
245 # Obsolete; use --with-x.
246 with_x=yes ;;
247
248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
249 | --x-incl | --x-inc | --x-in | --x-i)
250 ac_prev=x_includes ;;
251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
253 x_includes="$ac_optarg" ;;
254
255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
257 ac_prev=x_libraries ;;
258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
260 x_libraries="$ac_optarg" ;;
261
262 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
263 ;;
264
265 *)
266 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
267 echo "configure: warning: $ac_option: invalid host type" 1>&2
268 fi
269 if test "x$nonopt" != xNONE; then
270 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
271 fi
272 nonopt="$ac_option"
273 ;;
274
275 esac
276 done
277
278 if test -n "$ac_prev"; then
279 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
280 fi
281
282 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
283
284 # File descriptor usage:
285 # 0 standard input
286 # 1 file creation
287 # 2 errors and warnings
288 # 3 some systems may open it to /dev/tty
289 # 4 used on the Kubota Titan
290 # 6 checking for... messages and results
291 # 5 compiler messages saved in config.log
292 if test "$silent" = yes; then
293 exec 6>/dev/null
294 else
295 exec 6>&1
296 fi
297 exec 5>./config.log
298
299 echo "\
300 This file contains any messages produced by compilers while
301 running configure, to aid debugging if configure makes a mistake.
302 " 1>&5
303
304 # Strip out --no-create and --no-recursion so they do not pile up.
305 # Also quote any args containing shell metacharacters.
306 ac_configure_args=
307 for ac_arg
308 do
309 case "$ac_arg" in
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 | --no-cr | --no-c) ;;
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
315 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
316 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
317 esac
318 done
319
320 # NLS nuisances.
321 # Only set LANG and LC_ALL to C if already set.
322 # These must not be set unconditionally because not all systems understand
323 # e.g. LANG=C (notably SCO).
324 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
325 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
326
327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
328 rm -rf conftest* confdefs.h
329 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
330 echo > confdefs.h
331
332 # A filename unique to this package, relative to the directory that
333 # configure is in, which we can look for to find out if srcdir is correct.
334 ac_unique_file=Makefile.in
335
336 # Find the source files, if location was not specified.
337 if test -z "$srcdir"; then
338 ac_srcdir_defaulted=yes
339 # Try the directory containing this script, then its parent.
340 ac_prog=$0
341 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
342 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
343 srcdir=$ac_confdir
344 if test ! -r $srcdir/$ac_unique_file; then
345 srcdir=..
346 fi
347 else
348 ac_srcdir_defaulted=no
349 fi
350 if test ! -r $srcdir/$ac_unique_file; then
351 if test "$ac_srcdir_defaulted" = yes; then
352 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
353 else
354 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
355 fi
356 fi
357 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
358
359 # Prefer explicitly selected file to automatically selected ones.
360 if test -z "$CONFIG_SITE"; then
361 if test "x$prefix" != xNONE; then
362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
363 else
364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
365 fi
366 fi
367 for ac_site_file in $CONFIG_SITE; do
368 if test -r "$ac_site_file"; then
369 echo "loading site script $ac_site_file"
370 . "$ac_site_file"
371 fi
372 done
373
374 if test -r "$cache_file"; then
375 echo "loading cache $cache_file"
376 . $cache_file
377 else
378 echo "creating cache $cache_file"
379 > $cache_file
380 fi
381
382 ac_ext=c
383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
384 ac_cpp='$CPP $CPPFLAGS'
385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
386 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
387
388 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
389 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
390 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
391 ac_n= ac_c='
392 ' ac_t=' '
393 else
394 ac_n=-n ac_c= ac_t=
395 fi
396 else
397 ac_n= ac_c='\c' ac_t=
398 fi
399
400
401
402
403
404 ac_aux_dir=
405 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
406 if test -f $ac_dir/install-sh; then
407 ac_aux_dir=$ac_dir
408 ac_install_sh="$ac_aux_dir/install-sh -c"
409 break
410 elif test -f $ac_dir/install.sh; then
411 ac_aux_dir=$ac_dir
412 ac_install_sh="$ac_aux_dir/install.sh -c"
413 break
414 fi
415 done
416 if test -z "$ac_aux_dir"; then
417 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
418 fi
419 ac_config_guess=$ac_aux_dir/config.guess
420 ac_config_sub=$ac_aux_dir/config.sub
421 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
422
423
424 # Do some error checking and defaulting for the host and target type.
425 # The inputs are:
426 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
427 #
428 # The rules are:
429 # 1. You are not allowed to specify --host, --target, and nonopt at the
430 # same time.
431 # 2. Host defaults to nonopt.
432 # 3. If nonopt is not specified, then host defaults to the current host,
433 # as determined by config.guess.
434 # 4. Target and build default to nonopt.
435 # 5. If nonopt is not specified, then target and build default to host.
436
437 # The aliases save the names the user supplied, while $host etc.
438 # will get canonicalized.
439 case $host---$target---$nonopt in
440 NONE---*---* | *---NONE---* | *---*---NONE) ;;
441 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
442 esac
443
444
445 # Make sure we can run config.sub.
446 if $ac_config_sub sun4 >/dev/null 2>&1; then :
447 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
448 fi
449
450 echo $ac_n "checking host system type""... $ac_c" 1>&6
451
452 host_alias=$host
453 case "$host_alias" in
454 NONE)
455 case $nonopt in
456 NONE)
457 if host_alias=`$ac_config_guess`; then :
458 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
459 fi ;;
460 *) host_alias=$nonopt ;;
461 esac ;;
462 esac
463
464 host=`$ac_config_sub $host_alias`
465 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
466 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
467 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
468 echo "$ac_t""$host" 1>&6
469
470 echo $ac_n "checking target system type""... $ac_c" 1>&6
471
472 target_alias=$target
473 case "$target_alias" in
474 NONE)
475 case $nonopt in
476 NONE) target_alias=$host_alias ;;
477 *) target_alias=$nonopt ;;
478 esac ;;
479 esac
480
481 target=`$ac_config_sub $target_alias`
482 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
483 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
484 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
485 echo "$ac_t""$target" 1>&6
486
487 echo $ac_n "checking build system type""... $ac_c" 1>&6
488
489 build_alias=$build
490 case "$build_alias" in
491 NONE)
492 case $nonopt in
493 NONE) build_alias=$host_alias ;;
494 *) build_alias=$nonopt ;;
495 esac ;;
496 esac
497
498 build=`$ac_config_sub $build_alias`
499 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
500 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
501 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
502 echo "$ac_t""$build" 1>&6
503
504 test "$host_alias" != "$target_alias" &&
505 test "$program_prefix$program_suffix$program_transform_name" = \
506 NONENONEs,x,x, &&
507 program_prefix=${target_alias}-
508
509 if test "$program_transform_name" = s,x,x,; then
510 program_transform_name=
511 else
512 # Double any \ or $.
513 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
514 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
515 rm -f conftestsed
516 fi
517 test "$program_prefix" != NONE &&
518 program_transform_name="s,^,${program_prefix},; $program_transform_name"
519 # Use a double $ so make ignores it.
520 test "$program_suffix" != NONE &&
521 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
522
523 # sed with no file args requires a program.
524 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
525
526
527 . ${srcdir}/../../bfd/configure.host
528
529 # Extract the first word of "gcc", so it can be a program name with args.
530 set dummy gcc; ac_word=$2
531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
534 else
535 if test -n "$CC"; then
536 ac_cv_prog_CC="$CC" # Let the user override the test.
537 else
538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
539 for ac_dir in $PATH; do
540 test -z "$ac_dir" && ac_dir=.
541 if test -f $ac_dir/$ac_word; then
542 ac_cv_prog_CC="gcc"
543 break
544 fi
545 done
546 IFS="$ac_save_ifs"
547 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
548 fi
549 fi
550 CC="$ac_cv_prog_CC"
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
553 else
554 echo "$ac_t""no" 1>&6
555 fi
556
557
558 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
559 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
561 else
562 cat > conftest.c <<EOF
563 #ifdef __GNUC__
564 yes;
565 #endif
566 EOF
567 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
568 ac_cv_prog_gcc=yes
569 else
570 ac_cv_prog_gcc=no
571 fi
572 fi
573 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
574 if test $ac_cv_prog_gcc = yes; then
575 GCC=yes
576 if test "${CFLAGS+set}" != set; then
577 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
578 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
580 else
581 echo 'void f(){}' > conftest.c
582 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
583 ac_cv_prog_gcc_g=yes
584 else
585 ac_cv_prog_gcc_g=no
586 fi
587 rm -f conftest*
588
589 fi
590 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
591 if test $ac_cv_prog_gcc_g = yes; then
592 CFLAGS="-g -O"
593 else
594 CFLAGS="-O"
595 fi
596 fi
597 else
598 GCC=
599 test "${CFLAGS+set}" = set || CFLAGS="-g"
600 fi
601
602
603
604 AR=${AR-ar}
605
606 # Extract the first word of "ranlib", so it can be a program name with args.
607 set dummy ranlib; ac_word=$2
608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
609 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
611 else
612 if test -n "$RANLIB"; then
613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
614 else
615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
616 for ac_dir in $PATH; do
617 test -z "$ac_dir" && ac_dir=.
618 if test -f $ac_dir/$ac_word; then
619 ac_cv_prog_RANLIB="ranlib"
620 break
621 fi
622 done
623 IFS="$ac_save_ifs"
624 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
625 fi
626 fi
627 RANLIB="$ac_cv_prog_RANLIB"
628 if test -n "$RANLIB"; then
629 echo "$ac_t""$RANLIB" 1>&6
630 else
631 echo "$ac_t""no" 1>&6
632 fi
633
634
635 # Put a plausible default for CC_FOR_BUILD in Makefile.
636 # If we cannot run a trivial program, we must be cross compiling.
637 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
638 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
640 else
641 if test "$cross_compiling" = yes; then
642 ac_cv_c_cross=yes
643 else
644 cat > conftest.$ac_ext <<EOF
645 #line 646 "configure"
646 #include "confdefs.h"
647 main(){return(0);}
648 EOF
649 eval $ac_link
650 if test -s conftest && (./conftest; exit) 2>/dev/null; then
651 ac_cv_c_cross=no
652 else
653 ac_cv_c_cross=yes
654 fi
655 fi
656 rm -fr conftest*
657 fi
658 cross_compiling=$ac_cv_c_cross
659 echo "$ac_t""$ac_cv_c_cross" 1>&6
660
661 if test "x$cross_compiling" = "xno"; then
662 CC_FOR_BUILD='$(CC)'
663 else
664 CC_FOR_BUILD=gcc
665 fi
666
667
668 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
669 # On Suns, sometimes $CPP names a directory.
670 if test -n "$CPP" && test -d "$CPP"; then
671 CPP=
672 fi
673 if test -z "$CPP"; then
674 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676 else
677 # This must be in double quotes, not single quotes, because CPP may get
678 # substituted into the Makefile and "${CC-cc}" will confuse make.
679 CPP="${CC-cc} -E"
680 # On the NeXT, cc -E runs the code through the compiler's parser,
681 # not just through cpp.
682 cat > conftest.$ac_ext <<EOF
683 #line 684 "configure"
684 #include "confdefs.h"
685 #include <assert.h>
686 Syntax Error
687 EOF
688 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
689 ac_err=`grep -v '^ *+' conftest.out`
690 if test -z "$ac_err"; then
691 :
692 else
693 echo "$ac_err" >&5
694 rm -rf conftest*
695 CPP="${CC-cc} -E -traditional-cpp"
696 cat > conftest.$ac_ext <<EOF
697 #line 698 "configure"
698 #include "confdefs.h"
699 #include <assert.h>
700 Syntax Error
701 EOF
702 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
703 ac_err=`grep -v '^ *+' conftest.out`
704 if test -z "$ac_err"; then
705 :
706 else
707 echo "$ac_err" >&5
708 rm -rf conftest*
709 CPP=/lib/cpp
710 fi
711 rm -f conftest*
712 fi
713 rm -f conftest*
714 ac_cv_prog_CPP="$CPP"
715 fi
716 CPP="$ac_cv_prog_CPP"
717 else
718 ac_cv_prog_CPP="$CPP"
719 fi
720 echo "$ac_t""$CPP" 1>&6
721
722 for ac_hdr in string.h strings.h stdlib.h time.h sys/times.h
723 do
724 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
728 else
729 cat > conftest.$ac_ext <<EOF
730 #line 731 "configure"
731 #include "confdefs.h"
732 #include <$ac_hdr>
733 EOF
734 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
735 ac_err=`grep -v '^ *+' conftest.out`
736 if test -z "$ac_err"; then
737 rm -rf conftest*
738 eval "ac_cv_header_$ac_safe=yes"
739 else
740 echo "$ac_err" >&5
741 rm -rf conftest*
742 eval "ac_cv_header_$ac_safe=no"
743 fi
744 rm -f conftest*
745 fi
746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
748 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
749 cat >> confdefs.h <<EOF
750 #define $ac_tr_hdr 1
751 EOF
752
753 else
754 echo "$ac_t""no" 1>&6
755 fi
756 done
757
758
759 trap '' 1 2 15
760 cat > confcache <<\EOF
761 # This file is a shell script that caches the results of configure
762 # tests run on this system so they can be shared between configure
763 # scripts and configure runs. It is not useful on other systems.
764 # If it contains results you don't want to keep, you may remove or edit it.
765 #
766 # By default, configure uses ./config.cache as the cache file,
767 # creating it if it does not exist already. You can give configure
768 # the --cache-file=FILE option to use a different cache file; that is
769 # what configure does when it calls configure scripts in
770 # subdirectories, so they share the cache.
771 # Giving --cache-file=/dev/null disables caching, for debugging configure.
772 # config.status only pays attention to the cache file if you give it the
773 # --recheck option to rerun configure.
774 #
775 EOF
776 # Ultrix sh set writes to stderr and can't be redirected directly,
777 # and sets the high bit in the cache file unless we assign to the vars.
778 (set) 2>&1 |
779 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
780 >> confcache
781 if cmp -s $cache_file confcache; then
782 :
783 else
784 if test -w $cache_file; then
785 echo "updating cache $cache_file"
786 cat confcache > $cache_file
787 else
788 echo "not updating unwritable cache $cache_file"
789 fi
790 fi
791 rm -f confcache
792
793 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
794
795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
796 # Let make expand exec_prefix.
797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
798
799 # Any assignment to VPATH causes Sun make to only execute
800 # the first set of double-colon rules, so remove it if not needed.
801 # If there is a colon in the path, we need to keep it.
802 if test "x$srcdir" = x.; then
803 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
804 fi
805
806 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
807
808 DEFS=-DHAVE_CONFIG_H
809
810 # Without the "./", some shells look in PATH for config.status.
811 : ${CONFIG_STATUS=./config.status}
812
813 echo creating $CONFIG_STATUS
814 rm -f $CONFIG_STATUS
815 cat > $CONFIG_STATUS <<EOF
816 #! /bin/sh
817 # Generated automatically by configure.
818 # Run this file to recreate the current configuration.
819 # This directory was configured as follows,
820 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
821 #
822 # $0 $ac_configure_args
823 #
824 # Compiler output produced by configure, useful for debugging
825 # configure, is in ./config.log if it exists.
826
827 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
828 for ac_option
829 do
830 case "\$ac_option" in
831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
832 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
833 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
834 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
835 echo "$CONFIG_STATUS generated by autoconf version 2.4"
836 exit 0 ;;
837 -help | --help | --hel | --he | --h)
838 echo "\$ac_cs_usage"; exit 0 ;;
839 *) echo "\$ac_cs_usage"; exit 1 ;;
840 esac
841 done
842
843 ac_given_srcdir=$srcdir
844
845 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
846
847 # Protect against being on the right side of a sed subst in config.status.
848 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
849 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
850 $ac_vpsub
851 $extrasub
852 s%@CFLAGS@%$CFLAGS%g
853 s%@CPPFLAGS@%$CPPFLAGS%g
854 s%@CXXFLAGS@%$CXXFLAGS%g
855 s%@DEFS@%$DEFS%g
856 s%@LDFLAGS@%$LDFLAGS%g
857 s%@LIBS@%$LIBS%g
858 s%@exec_prefix@%$exec_prefix%g
859 s%@prefix@%$prefix%g
860 s%@program_transform_name@%$program_transform_name%g
861 s%@host@%$host%g
862 s%@host_alias@%$host_alias%g
863 s%@host_cpu@%$host_cpu%g
864 s%@host_vendor@%$host_vendor%g
865 s%@host_os@%$host_os%g
866 s%@target@%$target%g
867 s%@target_alias@%$target_alias%g
868 s%@target_cpu@%$target_cpu%g
869 s%@target_vendor@%$target_vendor%g
870 s%@target_os@%$target_os%g
871 s%@build@%$build%g
872 s%@build_alias@%$build_alias%g
873 s%@build_cpu@%$build_cpu%g
874 s%@build_vendor@%$build_vendor%g
875 s%@build_os@%$build_os%g
876 s%@CC@%$CC%g
877 s%@HDEFINES@%$HDEFINES%g
878 s%@AR@%$AR%g
879 s%@RANLIB@%$RANLIB%g
880 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
881 s%@CPP@%$CPP%g
882
883 CEOF
884 EOF
885 cat >> $CONFIG_STATUS <<EOF
886
887 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
888 EOF
889 cat >> $CONFIG_STATUS <<\EOF
890 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
891 # Support "outfile[:infile]", defaulting infile="outfile.in".
892 case "$ac_file" in
893 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
894 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
895 *) ac_file_in="${ac_file}.in" ;;
896 esac
897
898 # Adjust relative srcdir, etc. for subdirectories.
899
900 # Remove last slash and all that follows it. Not all systems have dirname.
901 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
902 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
903 # The file is in a subdirectory.
904 test ! -d "$ac_dir" && mkdir "$ac_dir"
905 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
908 else
909 ac_dir_suffix= ac_dots=
910 fi
911
912 case "$ac_given_srcdir" in
913 .) srcdir=.
914 if test -z "$ac_dots"; then top_srcdir=.
915 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
916 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
917 *) # Relative path.
918 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
919 top_srcdir="$ac_dots$ac_given_srcdir" ;;
920 esac
921
922 echo creating "$ac_file"
923 rm -f "$ac_file"
924 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
925 case "$ac_file" in
926 *Makefile*) ac_comsub="1i\\
927 # $configure_input" ;;
928 *) ac_comsub= ;;
929 esac
930 sed -e "$ac_comsub
931 s%@configure_input@%$configure_input%g
932 s%@srcdir@%$srcdir%g
933 s%@top_srcdir@%$top_srcdir%g
934 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
935 fi; done
936 rm -f conftest.subs
937
938 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
939 # NAME is the cpp macro being defined and VALUE is the value it is being given.
940 #
941 # ac_d sets the value in "#define NAME VALUE" lines.
942 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
943 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
944 ac_dC='\3'
945 ac_dD='%g'
946 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
947 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
948 ac_uB='\([ ]\)%\1#\2define\3'
949 ac_uC=' '
950 ac_uD='\4%g'
951 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
952 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
953 ac_eB='$%\1#\2define\3'
954 ac_eC=' '
955 ac_eD='%g'
956
957 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
958 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
959 # Support "outfile[:infile]", defaulting infile="outfile.in".
960 case "$ac_file" in
961 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
962 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
963 *) ac_file_in="${ac_file}.in" ;;
964 esac
965
966 echo creating $ac_file
967
968 rm -f conftest.frag conftest.in conftest.out
969 cp $ac_given_srcdir/$ac_file_in conftest.in
970
971 EOF
972
973 # Transform confdefs.h into a sed script conftest.vals that substitutes
974 # the proper values into config.h.in to produce config.h. And first:
975 # Protect against being on the right side of a sed subst in config.status.
976 # Protect against being in an unquoted here document in config.status.
977 rm -f conftest.vals
978 cat > conftest.hdr <<\EOF
979 s/[\\&%]/\\&/g
980 s%[\\$`]%\\&%g
981 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
982 s%ac_d%ac_u%gp
983 s%ac_u%ac_e%gp
984 EOF
985 sed -n -f conftest.hdr confdefs.h > conftest.vals
986 rm -f conftest.hdr
987
988 # This sed command replaces #undef with comments. This is necessary, for
989 # example, in the case of _POSIX_SOURCE, which is predefined and required
990 # on some systems where configure will not decide to define it.
991 cat >> conftest.vals <<\EOF
992 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
993 EOF
994
995 # Break up conftest.vals because some shells have a limit on
996 # the size of here documents, and old seds have small limits too.
997 # Maximum number of lines to put in a single here document.
998 ac_max_here_lines=12
999
1000 rm -f conftest.tail
1001 while :
1002 do
1003 ac_lines=`grep -c . conftest.vals`
1004 # grep -c gives empty output for an empty file on some AIX systems.
1005 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1006 # Write a limited-size here document to conftest.frag.
1007 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1008 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1009 echo 'CEOF
1010 sed -f conftest.frag conftest.in > conftest.out
1011 rm -f conftest.in
1012 mv conftest.out conftest.in
1013 ' >> $CONFIG_STATUS
1014 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1015 rm -f conftest.vals
1016 mv conftest.tail conftest.vals
1017 done
1018 rm -f conftest.vals
1019
1020 cat >> $CONFIG_STATUS <<\EOF
1021 rm -f conftest.frag conftest.h
1022 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1023 cat conftest.in >> conftest.h
1024 rm -f conftest.in
1025 if cmp -s $ac_file conftest.h 2>/dev/null; then
1026 echo "$ac_file is unchanged"
1027 rm -f conftest.h
1028 else
1029 rm -f $ac_file
1030 mv conftest.h $ac_file
1031 fi
1032 fi; done
1033
1034
1035 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1036 exit 0
1037 EOF
1038 chmod +x $CONFIG_STATUS
1039 rm -fr confdefs* $ac_clean_files
1040 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1041
1042
1043 if test x"$enable_sim_cflags" != x"" -a x"$enable_sim_cflags" != x"no"; then
1044 if test "$enable_sim_cflags" = "yes"; then
1045 enable_sim_cflags="-fomit-frame-pointer,-O2"
1046 fi
1047 echo "Setting SIM_CFLAGS=$enable_sim_cflags" | sed -e "s/,/ /g" 1>&6
1048 (echo; echo "# --enable-sim-cflags=$enable_sim_cflags";
1049 echo "SIM_CFLAGS = $enable_sim_cflags" | sed -e "s/,/ /g") >> Makefile
1050 else
1051 echo "Setting SIM_CFLAGS=" 1>&6
1052 (echo; echo "# no --enable-sim-cflags"; echo "SIM_CFLAGS =") >> Makefile
1053 fi
1054
1055 $srcdir/config.make Makefile CONFIG_FILE --enable-sim-config "$enable_sim_config" \
1056 "" "std-config.h" "no" "std-config.h" "yes" "std-config.h" "*" "$enable_sim_config" 1>&6
1057
1058 $srcdir/config.make Makefile IGEN_OPCODE_RULES --enable-sim-opcode "$enable_sim_opcode" \
1059 "" "ppc-opcode-simple" "no" "ppc-opcode-simple" "yes" "ppc-opcode-simple" \
1060 "complex" "ppc-opcode-complex" "simple" "ppc-opcode-simple" 1>&6
1061
1062 $srcdir/config.make Makefile DGEN_FLAGS --enable-sim-switch "$enable_sim_switch" \
1063 "" "" "no" "" "yes" "-s" 1>&6
1064
1065 $srcdir/config.make Makefile IGEN_DUPLICATE --enable-sim-duplicate "$enable_sim_duplicate" \
1066 "" "" "no" "" "yes" "-e" 1>&6
1067
1068 $srcdir/config.make Makefile IGEN_FILTER --enable-sim-filter "$enable_sim_filter" \
1069 "" "-f 64" "no" "" "yes" "-f 64" "*" "$enable_sim_filter" 1>&6
1070
1071 flags=""
1072 if test x"$enable_sim_inline" != x""; then
1073 case "$enable_sim_inline" in
1074 no) flags="";;
1075 0) flags=" -DDEFAULT_INLINE=0";;
1076 yes | 2) flags=" -DDEFAULT_INLINE=2";;
1077 1) flags=" -DDEFAULT_INLINE=1";;
1078 *) for x in `echo "$enable_sim_inline" | sed -e "s/,/ /g"`; do
1079 case "$x" in
1080 *_INLINE=*) flags="$flags -D$x";;
1081 *_INLINE) flags="$flags -D$x=2";;
1082 *=*) x=`sed -e "s/=/_INLINE=/"`; flags="$flags -D$x";;
1083 *) flags="$flags -D$x""_INLINE=2";;
1084 esac
1085 done;;
1086 esac
1087 fi
1088 if test x"$flags" != x""; then
1089 echo "Setting INLINE_CFLAGS=$flags" 1>&6
1090 (echo; echo "# --enable-sim-inline=$enable_sim_inline"; echo "INLINE_CFLAGS =$flags") >> Makefile
1091 else
1092 echo "Setting INLINE_CFLAGS=" 1>&6
1093 (echo; echo "# no --enable-sim-inline"; echo "INLINE_CFLAGS =") >> Makefile
1094 fi
1095
1096 $srcdir/config.hdr config.h WITH_BSWAP --enable-sim-bswap "$enable_sim_bswap" "yes" 1
1097
1098 case "$target" in
1099 *powerpc-*) endian="BIG_ENDIAN";;
1100 *powerpcle-*) endian="LITTLE_ENDIAN";;
1101 *) echo "Unknown $target" 1>&6; endian="0";;
1102 esac
1103
1104 $srcdir/config.hdr config.h WITH_TARGET_BYTE_ORDER --enable-sim-endian "$enable_sim_endian" \
1105 "" "0" "no" "0" "yes" "$endian" \
1106 "b" "BIG_ENDIAN" "big" "BIG_ENDIAN" "big-endian" "BIG_ENDIAN" \
1107 "B" "BIG_ENDIAN" "BIG" "BIG_ENDIAN" "BIG-ENDIAN" "BIG_ENDIAN" \
1108 "l" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" \
1109 "L" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" 1>&6
1110
1111 $srcdir/config.hdr config.h WITH_HOST_BYTE_ORDER --enable-sim-hostendian "$enable_sim_hostendian" \
1112 "b" "BIG_ENDIAN" "big" "BIG_ENDIAN" "big-endian" "BIG_ENDIAN" \
1113 "B" "BIG_ENDIAN" "BIG" "BIG_ENDIAN" "BIG-ENDIAN" "BIG_ENDIAN" \
1114 "l" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" \
1115 "L" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" 1>&6
1116
1117 $srcdir/config.hdr config.h WITH_SMP --enable-sim-smp "$enable_sim_smp" \
1118 "" "0" "no" "0" "yes" "2" "*" "$enable_sim_smp" 1>&6
1119
1120 $srcdir/config.hdr config.h WITH_TARGET_WORD_BITSIZE --enable-sim-bitsize "$enable_sim_bitsize" \
1121 "yes" "32" "32" "32" "32" "64" "64" 1>&6
1122
1123 $srcdir/config.hdr config.h WITH_HOST_WORD_BITSIZE --enable-sim-hostbitsize "$enable_sim_hostbitsize" \
1124 "yes" "32" "32" "32" "32" "64" "64" 1>&6
1125
1126 $srcdir/config.hdr config.h WITH_ENVIRONMENT --enable-sim-env "$enable_sim_env" \
1127 "yes" "0" \
1128 "operating" "OPERATING_ENVIRONMENT" "os" "OPERATING_ENVIRONMENT" "oea" "OPERATING_ENVIRONMENT" \
1129 "virtual" "VIRTUAL_ENVIRONMENT" "vea" "VIRTUAL_ENVIRONMENT" 1>&6
1130
1131 $srcdir/config.hdr config.h WITH_TIME_BASE --enable-sim-timebase "$enable_sim_timebase" \
1132 "no" "0" "yes" "1" 1>&6
1133
1134 $srcdir/config.hdr config.h WITH_ALIGNMENT --enable-sim-alignment "$enable_sim_alignment" \
1135 "no" "NONSTRICT_ALIGNMENT" "nonstrict" "NONSTRICT_ALIGNMENT" \
1136 "yes" "STRICT_ALIGNMENT" "strict" "STRICT_ALIGNMENT" 1>&6
1137
1138 $srcdir/config.hdr config.h WITH_FLOATING_POINT --enable-sim-float "$enable_sim_float" \
1139 "no" "SOFT_FLOATING_POINT" "soft" "SOFT_FLOATING_POINT" \
1140 "yes" "HARD_FLOATING_POINT" "hard" "HARD_FLOATING_POINT" 1>&6
1141
1142 $srcdir/config.hdr config.h WITH_TRACE --enable-sim-trace "$enable_sim_trace" \
1143 "no" "0" "yes" "1" 1>&6
1144
1145 $srcdir/config.hdr config.h WITH_ASSERT --enable-sim-assert "$enable_sim_assert" \
1146 "no" "0" "yes" "1" 1>&6
1147
1148 $srcdir/config.hdr config.h WITH_MON --enable-sim-monitor "$enable_sim_monitor" \
1149 "no" "0" "yes" "MONITOR_INSTRUCTION_ISSUE|MONITOR_LOAD_STORE_UNIT" \
1150 "instruction" "MONITOR_INSTRUCTION_ISSUE" \
1151 "memory" "MONITOR_LOAD_STORE_UNIT" 1>&6