78 # Guess values for system-dependent variables and create Makefiles.
79 # Generated automatically using autoconf version 2.12.1
80 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
82 # This configure script is free software; the Free Software Foundation
83 # gives unlimited permission to copy, distribute and modify it.
87 ac_default_prefix=/usr/local
88 # Any additions from configure.in:
90 --enable-maintainer-mode Enable developer functionality."
92 --enable-sim-bswap Use Host specific BSWAP instruction."
94 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
96 --enable-sim-debug=opts Enable debugging flags"
98 --enable-sim-stdio Specify whether to use stdio for console input/output."
100 --enable-sim-trace=opts Enable tracing flags"
102 --enable-sim-profile=opts Enable profiling flags"
104 --enable-sim-endian=endian Specify target byte endian orientation."
106 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
108 --enable-sim-hostendian=end Specify host byte endian orientation."
110 --enable-sim-scache=size Specify simulator execution cache size."
112 --enable-sim-default-model=model Specify default model to simulate."
114 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment."
116 # Initialize some variables set by options.
117 # The variables have the same names as the options, with
118 # dashes changed to underlines.
120 cache_file=./config.cache
129 program_transform_name=s,x,x,
137 bindir='${exec_prefix}/bin'
138 sbindir='${exec_prefix}/sbin'
139 libexecdir='${exec_prefix}/libexec'
140 datadir='${prefix}/share'
141 sysconfdir='${prefix}/etc'
142 sharedstatedir='${prefix}/com'
143 localstatedir='${prefix}/var'
144 libdir='${exec_prefix}/lib'
145 includedir='${prefix}/include'
146 oldincludedir='/usr/include'
147 infodir='${prefix}/info'
148 mandir='${prefix}/man'
150 # Initialize some other variables.
153 SHELL=${CONFIG_SHELL-/bin/sh}
154 # Maximum number of lines to put in a shell here document.
161 # If the previous option needs an argument, assign it.
162 if test -n "$ac_prev"; then
163 eval "$ac_prev=\$ac_option"
169 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
173 # Accept the important Cygnus configure options, so we can diagnose typos.
177 -bindir | --bindir | --bindi | --bind | --bin | --bi)
179 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
180 bindir="$ac_optarg" ;;
182 -build | --build | --buil | --bui | --bu)
184 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
185 build="$ac_optarg" ;;
187 -cache-file | --cache-file | --cache-fil | --cache-fi \
188 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
189 ac_prev=cache_file ;;
190 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
191 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
192 cache_file="$ac_optarg" ;;
194 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
196 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
198 datadir="$ac_optarg" ;;
200 -disable-* | --disable-*)
201 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
202 # Reject names that are not valid shell variable names.
203 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
204 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
206 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
207 eval "enable_${ac_feature}=no" ;;
209 -enable-* | --enable-*)
210 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
211 # Reject names that are not valid shell variable names.
212 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
213 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
215 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
220 eval "enable_${ac_feature}='$ac_optarg'" ;;
222 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
223 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
224 | --exec | --exe | --ex)
225 ac_prev=exec_prefix ;;
226 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
227 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
228 | --exec=* | --exe=* | --ex=*)
229 exec_prefix="$ac_optarg" ;;
231 -gas | --gas | --ga | --g)
232 # Obsolete; use --with-gas.
235 -help | --help | --hel | --he)
236 # Omit some internal or obsolete options to make the list less imposing.
237 # This message is too long to be a string in the A/UX 3.1 sh.
239 Usage: configure [options] [host]
240 Options: [defaults in brackets after descriptions]
242 --cache-file=FILE cache test results in FILE
243 --help print this message
244 --no-create do not create output files
245 --quiet, --silent do not print \`checking...' messages
246 --version print the version of autoconf that created configure
247 Directory and file names:
248 --prefix=PREFIX install architecture-independent files in PREFIX
250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
252 --bindir=DIR user executables in DIR [EPREFIX/bin]
253 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
254 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
255 --datadir=DIR read-only architecture-independent data in DIR
257 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
258 --sharedstatedir=DIR modifiable architecture-independent data in DIR
260 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
261 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
262 --includedir=DIR C header files in DIR [PREFIX/include]
263 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
264 --infodir=DIR info documentation in DIR [PREFIX/info]
265 --mandir=DIR man documentation in DIR [PREFIX/man]
266 --srcdir=DIR find the sources in DIR [configure dir or ..]
267 --program-prefix=PREFIX prepend PREFIX to installed program names
268 --program-suffix=SUFFIX append SUFFIX to installed program names
269 --program-transform-name=PROGRAM
270 run sed PROGRAM on installed program names
274 --build=BUILD configure for building on BUILD [BUILD=HOST]
275 --host=HOST configure for HOST [guessed]
276 --target=TARGET configure for TARGET [TARGET=HOST]
277 Features and packages:
278 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
279 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
280 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
281 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
282 --x-includes=DIR X include files are in DIR
283 --x-libraries=DIR X library files are in DIR
285 if test -n "$ac_help"; then
286 echo "--enable and --with options recognized:$ac_help"
290 -host | --host | --hos | --ho)
292 -host=* | --host=* | --hos=* | --ho=*)
295 -includedir | --includedir | --includedi | --included | --include \
296 | --includ | --inclu | --incl | --inc)
297 ac_prev=includedir ;;
298 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
299 | --includ=* | --inclu=* | --incl=* | --inc=*)
300 includedir="$ac_optarg" ;;
302 -infodir | --infodir | --infodi | --infod | --info | --inf)
304 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
305 infodir="$ac_optarg" ;;
307 -libdir | --libdir | --libdi | --libd)
309 -libdir=* | --libdir=* | --libdi=* | --libd=*)
310 libdir="$ac_optarg" ;;
312 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
313 | --libexe | --libex | --libe)
314 ac_prev=libexecdir ;;
315 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
316 | --libexe=* | --libex=* | --libe=*)
317 libexecdir="$ac_optarg" ;;
319 -localstatedir | --localstatedir | --localstatedi | --localstated \
320 | --localstate | --localstat | --localsta | --localst \
321 | --locals | --local | --loca | --loc | --lo)
322 ac_prev=localstatedir ;;
323 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
324 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
325 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
326 localstatedir="$ac_optarg" ;;
328 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
330 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
331 mandir="$ac_optarg" ;;
334 # Obsolete; use --without-fp.
337 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
341 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
342 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
345 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
346 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
347 | --oldin | --oldi | --old | --ol | --o)
348 ac_prev=oldincludedir ;;
349 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
350 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
351 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
352 oldincludedir="$ac_optarg" ;;
354 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
356 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
357 prefix="$ac_optarg" ;;
359 -program-prefix | --program-prefix | --program-prefi | --program-pref \
360 | --program-pre | --program-pr | --program-p)
361 ac_prev=program_prefix ;;
362 -program-prefix=* | --program-prefix=* | --program-prefi=* \
363 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
364 program_prefix="$ac_optarg" ;;
366 -program-suffix | --program-suffix | --program-suffi | --program-suff \
367 | --program-suf | --program-su | --program-s)
368 ac_prev=program_suffix ;;
369 -program-suffix=* | --program-suffix=* | --program-suffi=* \
370 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
371 program_suffix="$ac_optarg" ;;
373 -program-transform-name | --program-transform-name \
374 | --program-transform-nam | --program-transform-na \
375 | --program-transform-n | --program-transform- \
376 | --program-transform | --program-transfor \
377 | --program-transfo | --program-transf \
378 | --program-trans | --program-tran \
379 | --progr-tra | --program-tr | --program-t)
380 ac_prev=program_transform_name ;;
381 -program-transform-name=* | --program-transform-name=* \
382 | --program-transform-nam=* | --program-transform-na=* \
383 | --program-transform-n=* | --program-transform-=* \
384 | --program-transform=* | --program-transfor=* \
385 | --program-transfo=* | --program-transf=* \
386 | --program-trans=* | --program-tran=* \
387 | --progr-tra=* | --program-tr=* | --program-t=*)
388 program_transform_name="$ac_optarg" ;;
390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
391 | -silent | --silent | --silen | --sile | --sil)
394 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
396 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
398 sbindir="$ac_optarg" ;;
400 -sharedstatedir | --sharedstatedir | --sharedstatedi \
401 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
402 | --sharedst | --shareds | --shared | --share | --shar \
404 ac_prev=sharedstatedir ;;
405 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
406 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
407 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
409 sharedstatedir="$ac_optarg" ;;
411 -site | --site | --sit)
413 -site=* | --site=* | --sit=*)
416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
419 srcdir="$ac_optarg" ;;
421 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
422 | --syscon | --sysco | --sysc | --sys | --sy)
423 ac_prev=sysconfdir ;;
424 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
425 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
426 sysconfdir="$ac_optarg" ;;
428 -target | --target | --targe | --targ | --tar | --ta | --t)
430 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
431 target="$ac_optarg" ;;
433 -v | -verbose | --verbose | --verbos | --verbo | --verb)
436 -version | --version | --versio | --versi | --vers)
437 echo "configure generated by autoconf version 2.12.1"
441 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package=`echo $ac_package| sed 's/-/_/g'`
451 eval "with_${ac_package}='$ac_optarg'" ;;
453 -without-* | --without-*)
454 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
455 # Reject names that are not valid shell variable names.
456 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
457 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
459 ac_package=`echo $ac_package| sed 's/-/_/g'`
460 eval "with_${ac_package}=no" ;;
463 # Obsolete; use --with-x.
466 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
467 | --x-incl | --x-inc | --x-in | --x-i)
468 ac_prev=x_includes ;;
469 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
470 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
471 x_includes="$ac_optarg" ;;
473 -x-libraries | --x-libraries | --x-librarie | --x-librari \
474 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
475 ac_prev=x_libraries ;;
476 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
477 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
478 x_libraries="$ac_optarg" ;;
480 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
484 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
485 echo "configure: warning: $ac_option: invalid host type" 1>&2
487 if test "x$nonopt" != xNONE; then
488 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
496 if test -n "$ac_prev"; then
497 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
500 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
502 # File descriptor usage:
505 # 2 errors and warnings
506 # 3 some systems may open it to /dev/tty
507 # 4 used on the Kubota Titan
508 # 6 checking for... messages and results
509 # 5 compiler messages saved in config.log
510 if test "$silent" = yes; then
518 This file contains any messages produced by compilers while
519 running configure, to aid debugging if configure makes a mistake.
522 # Strip out --no-create and --no-recursion so they do not pile up.
523 # Also quote any args containing shell metacharacters.
528 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
529 | --no-cr | --no-c) ;;
530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
532 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
533 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
534 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
539 # Only set these to C if already set. These must not be set unconditionally
540 # because not all systems understand e.g. LANG=C (notably SCO).
541 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
542 # Non-C LC_CTYPE values break the ctype check.
543 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
544 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
545 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
546 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
548 # confdefs.h avoids OS command line length limits that DEFS can exceed.
549 rm -rf conftest* confdefs.h
550 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
553 # A filename unique to this package, relative to the directory that
554 # configure is in, which we can look for to find out if srcdir is correct.
555 ac_unique_file=Makefile.in
557 # Find the source files, if location was not specified.
558 if test -z "$srcdir"; then
559 ac_srcdir_defaulted=yes
560 # Try the directory containing this script, then its parent.
562 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
563 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
565 if test ! -r $srcdir/$ac_unique_file; then
569 ac_srcdir_defaulted=no
571 if test ! -r $srcdir/$ac_unique_file; then
572 if test "$ac_srcdir_defaulted" = yes; then
573 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
575 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
578 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
580 # Prefer explicitly selected file to automatically selected ones.
581 if test -z "$CONFIG_SITE"; then
582 if test "x$prefix" != xNONE; then
583 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
585 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
588 for ac_site_file in $CONFIG_SITE; do
589 if test -r "$ac_site_file"; then
590 echo "loading site script $ac_site_file"
595 if test -r "$cache_file"; then
596 echo "loading cache $cache_file"
599 echo "creating cache $cache_file"
604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
605 ac_cpp='$CPP $CPPFLAGS'
606 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
607 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
608 cross_compiling=$ac_cv_prog_cc_cross
610 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
611 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
612 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
619 ac_n= ac_c='\c' ac_t=
624 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
625 echo "configure:626: checking how to run the C preprocessor" >&5
626 # On Suns, sometimes $CPP names a directory.
627 if test -n "$CPP" && test -d "$CPP"; then
630 if test -z "$CPP"; then
631 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 # This must be in double quotes, not single quotes, because CPP may get
635 # substituted into the Makefile and "${CC-cc}" will confuse make.
637 # On the NeXT, cc -E runs the code through the compiler's parser,
638 # not just through cpp.
639 cat > conftest.$ac_ext <<EOF
640 #line 641 "configure"
641 #include "confdefs.h"
645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
646 { (eval echo configure:647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
647 ac_err=`grep -v '^ *+' conftest.out`
648 if test -z "$ac_err"; then
652 echo "configure: failed program was:" >&5
653 cat conftest.$ac_ext >&5
655 CPP="${CC-cc} -E -traditional-cpp"
656 cat > conftest.$ac_ext <<EOF
657 #line 658 "configure"
658 #include "confdefs.h"
662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
663 { (eval echo configure:664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
664 ac_err=`grep -v '^ *+' conftest.out`
665 if test -z "$ac_err"; then
669 echo "configure: failed program was:" >&5
670 cat conftest.$ac_ext >&5
677 ac_cv_prog_CPP="$CPP"
679 CPP="$ac_cv_prog_CPP"
681 ac_cv_prog_CPP="$CPP"
683 echo "$ac_t""$CPP" 1>&6
686 # autoconf.info says this should be called right after AC_INIT.
690 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
691 if test -f $ac_dir/install-sh; then
693 ac_install_sh="$ac_aux_dir/install-sh -c"
695 elif test -f $ac_dir/install.sh; then
697 ac_install_sh="$ac_aux_dir/install.sh -c"
701 if test -z "$ac_aux_dir"; then
702 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
704 ac_config_guess=$ac_aux_dir/config.guess
705 ac_config_sub=$ac_aux_dir/config.sub
706 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
709 # Do some error checking and defaulting for the host and target type.
711 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
714 # 1. You are not allowed to specify --host, --target, and nonopt at the
716 # 2. Host defaults to nonopt.
717 # 3. If nonopt is not specified, then host defaults to the current host,
718 # as determined by config.guess.
719 # 4. Target and build default to nonopt.
720 # 5. If nonopt is not specified, then target and build default to host.
722 # The aliases save the names the user supplied, while $host etc.
723 # will get canonicalized.
724 case $host---$target---$nonopt in
725 NONE---*---* | *---NONE---* | *---*---NONE) ;;
726 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
730 # Make sure we can run config.sub.
731 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
732 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
735 echo $ac_n "checking host system type""... $ac_c" 1>&6
736 echo "configure:737: checking host system type" >&5
739 case "$host_alias" in
743 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
744 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
746 *) host_alias=$nonopt ;;
750 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
751 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
752 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
753 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo "$ac_t""$host" 1>&6
756 echo $ac_n "checking target system type""... $ac_c" 1>&6
757 echo "configure:758: checking target system type" >&5
760 case "$target_alias" in
763 NONE) target_alias=$host_alias ;;
764 *) target_alias=$nonopt ;;
768 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
769 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
770 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
771 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
772 echo "$ac_t""$target" 1>&6
774 echo $ac_n "checking build system type""... $ac_c" 1>&6
775 echo "configure:776: checking build system type" >&5
778 case "$build_alias" in
781 NONE) build_alias=$host_alias ;;
782 *) build_alias=$nonopt ;;
786 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
787 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
788 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
789 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo "$ac_t""$build" 1>&6
792 test "$host_alias" != "$target_alias" &&
793 test "$program_prefix$program_suffix$program_transform_name" = \
795 program_prefix=${target_alias}-
797 if test "$program_transform_name" = s,x,x,; then
798 program_transform_name=
800 # Double any \ or $. echo might interpret backslashes.
801 cat <<\EOF_SED > conftestsed
802 s,\\,\\\\,g; s,\$,$$,g
804 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
807 test "$program_prefix" != NONE &&
808 program_transform_name="s,^,${program_prefix},; $program_transform_name"
809 # Use a double $ so make ignores it.
810 test "$program_suffix" != NONE &&
811 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
813 # sed with no file args requires a program.
814 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
816 # Extract the first word of "gcc", so it can be a program name with args.
817 set dummy gcc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC="$CC" # Let the user override the test.
826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
827 for ac_dir in $PATH; do
828 test -z "$ac_dir" && ac_dir=.
829 if test -f $ac_dir/$ac_word; then
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
845 # Extract the first word of "cc", so it can be a program name with args.
846 set dummy cc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857 for ac_dir in $PATH; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
869 if test $ac_prog_rejected = yes; then
870 # We found a bogon in the path, so make sure we never use it.
871 set dummy $ac_cv_prog_CC
873 if test $# -gt 0; then
874 # We chose a different compiler from the bogus one.
875 # However, it has the same basename, so the bogon will be chosen
876 # first if we set CC to just the basename; use the full file name.
878 set dummy "$ac_dir/$ac_word" "$@"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
910 if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
911 ac_cv_prog_cc_works=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (./conftest; exit) 2>/dev/null; then
914 ac_cv_prog_cc_cross=no
916 ac_cv_prog_cc_cross=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.$ac_ext >&5
921 ac_cv_prog_cc_works=no
925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
926 if test $ac_cv_prog_cc_works = no; then
927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
932 cross_compiling=$ac_cv_prog_cc_cross
934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
935 echo "configure:936: checking whether we are using GNU C" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 cat > conftest.c <<EOF
944 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
951 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953 if test $ac_cv_prog_gcc = yes; then
955 ac_test_CFLAGS="${CFLAGS+set}"
956 ac_save_CFLAGS="$CFLAGS"
958 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${CC-cc} accepts -g" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 echo 'void f(){}' > conftest.c
964 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
973 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
974 if test "$ac_test_CFLAGS" = set; then
975 CFLAGS="$ac_save_CFLAGS"
976 elif test $ac_cv_prog_cc_g = yes; then
983 test "${CFLAGS+set}" = set || CFLAGS="-g"
986 # Find a good install program. We prefer a C program (faster),
987 # so one script is as good as another. But avoid the broken or
988 # incompatible versions:
989 # SysV /etc/install, /usr/sbin/install
990 # SunOS /usr/etc/install
993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
996 # ./install, which can be erroneously created by make from ./install.sh.
997 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
998 echo "configure:999: checking for a BSD compatible install" >&5
999 if test -z "$INSTALL"; then
1000 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1004 for ac_dir in $PATH; do
1005 # Account for people who put trailing slashes in PATH elements.
1007 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1009 # OSF1 and SCO ODT 3.0 have their own names for install.
1010 # Don't use installbsd from OSF since it installs stuff as root
1012 for ac_prog in ginstall scoinst install; do
1013 if test -f $ac_dir/$ac_prog; then
1014 if test $ac_prog = install &&
1015 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1016 # AIX install. It has an incompatible calling convention.
1019 ac_cv_path_install="$ac_dir/$ac_prog -c"
1030 if test "${ac_cv_path_install+set}" = set; then
1031 INSTALL="$ac_cv_path_install"
1033 # As a last resort, use the slow shell script. We don't cache a
1034 # path for INSTALL within a source directory, because that will
1035 # break other packages using the cache if that directory is
1036 # removed, or if the path is relative.
1037 INSTALL="$ac_install_sh"
1040 echo "$ac_t""$INSTALL" 1>&6
1042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1043 # It thinks the first close brace ends the variable substitution.
1044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1049 # Put a plausible default for CC_FOR_BUILD in Makefile.
1050 if test "x$cross_compiling" = "xno"; then
1051 CC_FOR_BUILD='$(CC)'
1061 # Extract the first word of "ranlib", so it can be a program name with args.
1062 set dummy ranlib; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$RANLIB"; then
1069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1072 for ac_dir in $PATH; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_RANLIB="ranlib"
1080 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1083 RANLIB="$ac_cv_prog_RANLIB"
1084 if test -n "$RANLIB"; then
1085 echo "$ac_t""$RANLIB" 1>&6
1087 echo "$ac_t""no" 1>&6
1091 # Check for common headers.
1092 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1093 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1094 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h sys/time.h sys/resource.h
1096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_hdr" >&5
1099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1104 "configure"
1104 #include "confdefs.h"
1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err=`grep -v '^ *+' conftest.out`
1110 if test -z "$ac_err"; then
1112 eval "ac_cv_header_$ac_safe=yes"
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1118 eval "ac_cv_header_$ac_safe=no"
1122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1123 echo "$ac_t""yes" 1>&6
1124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1125 cat >> confdefs.h <<EOF
1126 #define $ac_tr_hdr 1
1130 echo "$ac_t""no" 1>&6
1134 for ac_func in getrusage time sigaction
1136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_func" >&5
1138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1144 /* System header to define __stub macros and hopefully few prototypes,
1145 which can conflict with char $ac_func(); below. */
1147 /* Override any gcc2 internal prototype to avoid an error. */
1148 /* We use char because int might match the return type of a gcc2
1149 builtin and then its argument prototype would still apply. */
1154 /* The GNU C library defines this for functions which it implements
1155 to always fail with ENOSYS. Some functions are actually named
1156 something starting with __ and the normal name is an alias. */
1157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1165 if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1167 eval "ac_cv_func_$ac_func=yes"
1169 echo "configure: failed program was:" >&5
1170 cat conftest.$ac_ext >&5
1172 eval "ac_cv_func_$ac_func=no"
1177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1178 echo "$ac_t""yes" 1>&6
1179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1180 cat >> confdefs.h <<EOF
1181 #define $ac_tr_func 1
1185 echo "$ac_t""no" 1>&6
1190 . ${srcdir}/../../bfd/configure.host
1194 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1195 if test "${enable_maintainer_mode+set}" = set; then
1196 enableval="$enable_maintainer_mode"
1197 case "${enableval}" in
1200 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
1202 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
1203 echo "Setting maintainer mode" 6>&1
1211 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1212 if test "${enable_sim_bswap+set}" = set; then
1213 enableval="$enable_sim_bswap"
1214 case "${enableval}" in
1215 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1216 no) sim_bswap="-DWITH_BSWAP=0";;
1217 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
1219 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
1220 echo "Setting bswap flags = $sim_bswap" 6>&1
1228 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1229 if test "${enable_sim_cflags+set}" = set; then
1230 enableval="$enable_sim_cflags"
1231 case "${enableval}" in
1232 yes) sim_cflags="-O2";;
1233 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
1235 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1237 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
1238 echo "Setting sim cflags = $sim_cflags" 6>&1
1246 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1247 if test "${enable_sim_debug+set}" = set; then
1248 enableval="$enable_sim_debug"
1249 case "${enableval}" in
1250 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
1251 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
1252 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1254 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
1255 echo "Setting sim debug = $sim_debug" 6>&1
1263 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1264 if test "${enable_sim_stdio+set}" = set; then
1265 enableval="$enable_sim_stdio"
1266 case "${enableval}" in
1267 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
1268 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
1269 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
1271 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
1272 echo "Setting stdio flags = $sim_stdio" 6>&1
1280 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1281 if test "${enable_sim_trace+set}" = set; then
1282 enableval="$enable_sim_trace"
1283 case "${enableval}" in
1284 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
1285 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
1287 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1290 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1291 if test x"$sim_trace" = x; then
1292 sim_trace="-DWITH_TRACE='(TRACE_$x"
1294 sim_trace="${sim_trace}|TRACE_$x"
1297 sim_trace="$sim_trace)'" ;;
1299 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
1300 echo "Setting sim trace = $sim_trace" 6>&1
1308 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1309 if test "${enable_sim_profile+set}" = set; then
1310 enableval="$enable_sim_profile"
1311 case "${enableval}" in
1312 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
1313 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
1315 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1318 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1319 if test x"$sim_profile" = x; then
1320 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
1322 sim_profile="${sim_profile}|PROFILE_$x"
1325 sim_profile="$sim_profile)'" ;;
1327 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
1328 echo "Setting sim profile = $sim_profile" 6>&1
1336 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1337 echo "configure:1338: checking return type of signal handlers" >&5
1338 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 #include <sys/types.h>
1350 extern "C" void (*signal (int, void (*)(int)))(int);
1352 void (*signal ()) ();
1359 if { (eval echo configure:1360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1361 ac_cv_type_signal=void
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 ac_cv_type_signal=int
1371 echo "$ac_t""$ac_cv_type_signal" 1>&6
1372 cat >> confdefs.h <<EOF
1373 #define RETSIGTYPE $ac_cv_type_signal
1382 sim_link_links=tconfig.h
1383 if test -f ${srcdir}/tconfig.in
1385 sim_link_files=tconfig.in
1387 sim_link_files=../common/tconfig.in
1390 # targ-vals.def points to the libc macro description file.
1392 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
1394 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
1395 sim_link_links="${sim_link_links} targ-vals.def"
1399 sim_link_files="${sim_link_files} m32r-sim.h ../../opcodes/m32r-opc.h"
1400 sim_link_links="${sim_link_links} cpu-sim.h cpu-opc.h"
1403 wire_endian="BIG_ENDIAN"
1405 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1406 if test "${enable_sim_endian+set}" = set; then
1407 enableval="$enable_sim_endian"
1408 case "${enableval}" in
1409 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1410 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1411 yes) if test x"$wire_endian" != x; then
1412 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1414 if test x"$default_endian" != x; then
1415 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
1417 echo "No hard-wired endian for target $target" 1>&6
1418 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
1421 no) if test x"$default_endian" != x; then
1422 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1424 if test x"$wire_endian" != x; then
1425 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
1427 echo "No default endian for target $target" 1>&6
1428 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1431 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
1433 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
1434 echo "Setting endian flags = $sim_endian" 6>&1
1437 if test x"$default_endian" != x; then
1438 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1440 if test x"$wire_endian" != x; then
1441 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1448 wire_alignment="NONSTRICT_ALIGNMENT"
1449 default_alignment=""
1451 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1452 if test "${enable_sim_alignment+set}" = set; then
1453 enableval="$enable_sim_alignment"
1454 case "${enableval}" in
1455 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1456 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1457 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1458 yes) if test x"$wire_alignment" != x; then
1459 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
1461 if test x"$default_alignment" != x; then
1462 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
1464 echo "No hard-wired alignment for target $target" 1>&6
1465 sim_alignment="-DWITH_ALIGNMENT=0"
1468 no) if test x"$default_alignment" != x; then
1469 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1471 if test x"$wire_alignment" != x; then
1472 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
1474 echo "No default alignment for target $target" 1>&6
1475 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
1478 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
1480 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
1481 echo "Setting alignment flags = $sim_alignment" 6>&1
1484 if test x"$default_alignment" != x; then
1485 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1487 if test x"$wire_alignment" != x; then
1488 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
1496 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1497 if test "${enable_sim_hostendian+set}" = set; then
1498 enableval="$enable_sim_hostendian"
1499 case "${enableval}" in
1500 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
1501 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1502 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1503 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
1505 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
1506 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1510 if test "x$cross_compiling" = "xno"; then
1511 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether byte ordering is bigendian" >&5
1513 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 ac_cv_c_bigendian=unknown
1517 # See if sys/param.h defines the BYTE_ORDER macro.
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 #include <sys/types.h>
1522 #include <sys/param.h>
1525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1530 if { (eval echo configure:1531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1532 # It does; now see whether it defined to BIG_ENDIAN or not.
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 #include <sys/types.h>
1537 #include <sys/param.h>
1540 #if BYTE_ORDER != BIG_ENDIAN
1545 if { (eval echo configure:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 ac_cv_c_bigendian=yes
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 ac_cv_c_bigendian=no
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1560 if test $ac_cv_c_bigendian = unknown; then
1561 if test "$cross_compiling" = yes; then
1562 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1568 /* Are we little or big endian? From Harbison&Steele. */
1572 char c[sizeof (long)];
1575 exit (u.c[sizeof (long) - 1] == 1);
1578 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1580 ac_cv_c_bigendian=no
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1585 ac_cv_c_bigendian=yes
1593 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1594 if test $ac_cv_c_bigendian = yes; then
1595 cat >> confdefs.h <<\EOF
1596 #define WORDS_BIGENDIAN 1
1601 if test $ac_cv_c_bigendian = yes; then
1602 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1604 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1607 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
1612 default_sim_scache="1024"
1613 # Check whether --enable-sim-scache or --disable-sim-scache was given.
1614 if test "${enable_sim_scache+set}" = set; then
1615 enableval="$enable_sim_scache"
1616 case "${enableval}" in
1617 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
1618 no) sim_scache="-DWITH_SCACHE=0" ;;
1619 [0-9]*) sim_cache=${enableval};;
1620 *) { echo "configure: error: "Bad value $enableval passed to --enable-sim-scache"" 1>&2; exit 1; };
1623 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
1624 echo "Setting scache size = $sim_scache" 6>&1
1627 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
1632 default_sim_default_model="m32r/d"
1633 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
1634 if test "${enable_sim_default_model+set}" = set; then
1635 enableval="$enable_sim_default_model"
1636 case "${enableval}" in
1637 yes|no) { echo "configure: error: "Missing argument to --enable-sim-default-model"" 1>&2; exit 1; };;
1638 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
1640 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
1641 echo "Setting default model = $sim_default_model" 6>&1
1644 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
1649 # Check whether --enable-sim-environment or --disable-sim-environment was given.
1650 if test "${enable_sim_environment+set}" = set; then
1651 enableval="$enable_sim_environment"
1652 case "${enableval}" in
1653 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
1654 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
1655 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
1656 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
1657 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-environment"" 1>&2; exit 1; };
1658 sim_environment="";;
1660 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
1661 echo "Setting sim environment = $sim_environment" 6>&1
1664 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
1671 cat > confcache <<\EOF
1672 # This file is a shell script that caches the results of configure
1673 # tests run on this system so they can be shared between configure
1674 # scripts and configure runs. It is not useful on other systems.
1675 # If it contains results you don't want to keep, you may remove or edit it.
1677 # By default, configure uses ./config.cache as the cache file,
1678 # creating it if it does not exist already. You can give configure
1679 # the --cache-file=FILE option to use a different cache file; that is
1680 # what configure does when it calls configure scripts in
1681 # subdirectories, so they share the cache.
1682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1683 # config.status only pays attention to the cache file if you give it the
1684 # --recheck option to rerun configure.
1687 # The following way of writing the cache mishandles newlines in values,
1688 # but we know of no workaround that is simple, portable, and efficient.
1689 # So, don't put newlines in cache variables' values.
1690 # Ultrix sh set writes to stderr and can't be redirected directly,
1691 # and sets the high bit in the cache file unless we assign to the vars.
1693 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1695 # `set' does not quote correctly, so add quotes (double-quote substitution
1696 # turns \\\\ into \\, and sed turns \\ into \).
1698 -e "s/'/'\\\\''/g" \
1699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1702 # `set' quotes correctly as required by POSIX, so do not add quotes.
1703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1706 if cmp -s $cache_file confcache; then
1709 if test -w $cache_file; then
1710 echo "updating cache $cache_file"
1711 cat confcache > $cache_file
1713 echo "not updating unwritable cache $cache_file"
1718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1721 # Let make expand exec_prefix.
1722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1724 # Any assignment to VPATH causes Sun make to only execute
1725 # the first set of double-colon rules, so remove it if not needed.
1726 # If there is a colon in the path, we need to keep it.
1727 if test "x$srcdir" = x.; then
1728 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1733 DEFS=-DHAVE_CONFIG_H
1735 # Without the "./", some shells look in PATH for config.status.
1736 : ${CONFIG_STATUS=./config.status}
1738 echo creating $CONFIG_STATUS
1739 rm -f $CONFIG_STATUS
1740 cat > $CONFIG_STATUS <<EOF
1742 # Generated automatically by configure.
1743 # Run this file to recreate the current configuration.
1744 # This directory was configured as follows,
1745 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1747 # $0 $ac_configure_args
1749 # Compiler output produced by configure, useful for debugging
1750 # configure, is in ./config.log if it exists.
1752 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1755 case "\$ac_option" in
1756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1757 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1758 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1759 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1760 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1762 -help | --help | --hel | --he | --h)
1763 echo "\$ac_cs_usage"; exit 0 ;;
1764 *) echo "\$ac_cs_usage"; exit 1 ;;
1768 ac_given_srcdir=$srcdir
1769 ac_given_INSTALL="$INSTALL"
1771 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1773 cat >> $CONFIG_STATUS <<EOF
1775 # Protect against being on the right side of a sed subst in config.status.
1776 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1777 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1780 s%@sim_environment@%$sim_environment%g
1781 s%@sim_alignment@%$sim_alignment%g
1782 s%@sim_assert@%$sim_assert%g
1783 s%@sim_bitsize@%$sim_bitsize%g
1784 s%@sim_endian@%$sim_endian%g
1785 s%@sim_hostendian@%$sim_hostendian%g
1786 s%@sim_float@%$sim_float%g
1787 s%@sim_scache@%$sim_scache%g
1788 s%@sim_default_model@%$sim_default_model%g
1789 s%@sim_hardware@%$sim_hardware%g
1790 s%@sim_inline@%$sim_inline%g
1791 s%@sim_packages@%$sim_packages%g
1792 s%@sim_regparm@%$sim_regparm%g
1793 s%@sim_reserved_bits@%$sim_reserved_bits%g
1794 s%@sim_smp@%$sim_smp%g
1795 s%@sim_stdcall@%$sim_stdcall%g
1796 s%@sim_xor_endian@%$sim_xor_endian%g
1797 s%@sim_warnings@%$sim_warnings%g
1799 s%@CFLAGS@%$CFLAGS%g
1800 s%@CPPFLAGS@%$CPPFLAGS%g
1801 s%@CXXFLAGS@%$CXXFLAGS%g
1803 s%@LDFLAGS@%$LDFLAGS%g
1805 s%@exec_prefix@%$exec_prefix%g
1806 s%@prefix@%$prefix%g
1807 s%@program_transform_name@%$program_transform_name%g
1808 s%@bindir@%$bindir%g
1809 s%@sbindir@%$sbindir%g
1810 s%@libexecdir@%$libexecdir%g
1811 s%@datadir@%$datadir%g
1812 s%@sysconfdir@%$sysconfdir%g
1813 s%@sharedstatedir@%$sharedstatedir%g
1814 s%@localstatedir@%$localstatedir%g
1815 s%@libdir@%$libdir%g
1816 s%@includedir@%$includedir%g
1817 s%@oldincludedir@%$oldincludedir%g
1818 s%@infodir@%$infodir%g
1819 s%@mandir@%$mandir%g
1821 s%@host_alias@%$host_alias%g
1822 s%@host_cpu@%$host_cpu%g
1823 s%@host_vendor@%$host_vendor%g
1824 s%@host_os@%$host_os%g
1825 s%@target@%$target%g
1826 s%@target_alias@%$target_alias%g
1827 s%@target_cpu@%$target_cpu%g
1828 s%@target_vendor@%$target_vendor%g
1829 s%@target_os@%$target_os%g
1831 s%@build_alias@%$build_alias%g
1832 s%@build_cpu@%$build_cpu%g
1833 s%@build_vendor@%$build_vendor%g
1834 s%@build_os@%$build_os%g
1836 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1837 s%@INSTALL_DATA@%$INSTALL_DATA%g
1838 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1839 s%@HDEFINES@%$HDEFINES%g
1841 s%@RANLIB@%$RANLIB%g
1844 s%@sim_bswap@%$sim_bswap%g
1845 s%@sim_cflags@%$sim_cflags%g
1846 s%@sim_debug@%$sim_debug%g
1847 s%@sim_stdio@%$sim_stdio%g
1848 s%@sim_trace@%$sim_trace%g
1849 s%@sim_profile@%$sim_profile%g
1854 cat >> $CONFIG_STATUS <<\EOF
1856 # Split the substitutions into bite-sized pieces for seds with
1857 # small command number limits, like on Digital OSF/1 and HP-UX.
1858 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1859 ac_file=1 # Number of current file.
1860 ac_beg=1 # First line for current file.
1861 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1864 while $ac_more_lines; do
1865 if test $ac_beg -gt 1; then
1866 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1868 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1870 if test ! -s conftest.s$ac_file; then
1872 rm -f conftest.s$ac_file
1874 if test -z "$ac_sed_cmds"; then
1875 ac_sed_cmds="sed -f conftest.s$ac_file"
1877 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1879 ac_file=`expr $ac_file + 1`
1881 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1884 if test -z "$ac_sed_cmds"; then
1889 cat >> $CONFIG_STATUS <<EOF
1891 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
1893 cat >> $CONFIG_STATUS <<\EOF
1894 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1897 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1898 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1899 *) ac_file_in="${ac_file}.in" ;;
1902 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1904 # Remove last slash and all that follows it. Not all systems have dirname.
1905 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1906 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1907 # The file is in a subdirectory.
1908 test ! -d "$ac_dir" && mkdir "$ac_dir"
1909 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1910 # A "../" for each directory in $ac_dir_suffix.
1911 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1913 ac_dir_suffix= ac_dots=
1916 case "$ac_given_srcdir" in
1918 if test -z "$ac_dots"; then top_srcdir=.
1919 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1920 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1922 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1923 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1926 case "$ac_given_INSTALL" in
1927 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1928 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1931 echo creating "$ac_file"
1933 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1935 *Makefile*) ac_comsub="1i\\
1936 # $configure_input" ;;
1940 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1942 s%@configure_input@%$configure_input%g
1943 s%@srcdir@%$srcdir%g
1944 s%@top_srcdir@%$top_srcdir%g
1945 s%@INSTALL@%$INSTALL%g
1946 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1950 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1951 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1953 # ac_d sets the value in "#define NAME VALUE" lines.
1954 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1955 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1958 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1959 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1960 ac_uB='\([ ]\)%\1#\2define\3'
1963 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1964 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1965 ac_eB='$%\1#\2define\3'
1969 if test "${CONFIG_HEADERS+set}" != set; then
1971 cat >> $CONFIG_STATUS <<EOF
1972 CONFIG_HEADERS="config.h:config.in"
1974 cat >> $CONFIG_STATUS <<\EOF
1976 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1979 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1980 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1981 *) ac_file_in="${ac_file}.in" ;;
1984 echo creating $ac_file
1986 rm -f conftest.frag conftest.in conftest.out
1987 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1988 cat $ac_file_inputs > conftest.in
1992 # Transform confdefs.h into a sed script conftest.vals that substitutes
1993 # the proper values into config.h.in to produce config.h. And first:
1994 # Protect against being on the right side of a sed subst in config.status.
1995 # Protect against being in an unquoted here document in config.status.
1997 cat > conftest.hdr <<\EOF
2000 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2004 sed -n -f conftest.hdr confdefs.h > conftest.vals
2007 # This sed command replaces #undef with comments. This is necessary, for
2008 # example, in the case of _POSIX_SOURCE, which is predefined and required
2009 # on some systems where configure will not decide to define it.
2010 cat >> conftest.vals <<\EOF
2011 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2014 # Break up conftest.vals because some shells have a limit on
2015 # the size of here documents, and old seds have small limits too.
2020 ac_lines=`grep -c . conftest.vals`
2021 # grep -c gives empty output for an empty file on some AIX systems.
2022 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2023 # Write a limited-size here document to conftest.frag.
2024 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2025 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2027 sed -f conftest.frag conftest.in > conftest.out
2029 mv conftest.out conftest.in
2031 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2033 mv conftest.tail conftest.vals
2037 cat >> $CONFIG_STATUS <<\EOF
2038 rm -f conftest.frag conftest.h
2039 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2040 cat conftest.in >> conftest.h
2042 if cmp -s $ac_file conftest.h 2>/dev/null; then
2043 echo "$ac_file is unchanged"
2046 # Remove last slash and all that follows it. Not all systems have dirname.
2047 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2048 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2049 # The file is in a subdirectory.
2050 test ! -d "$ac_dir" && mkdir "$ac_dir"
2053 mv conftest.h $ac_file
2059 cat >> $CONFIG_STATUS <<EOF
2060 ac_sources="$sim_link_files"
2061 ac_dests="$sim_link_links"
2064 cat >> $CONFIG_STATUS <<\EOF
2065 srcdir=$ac_given_srcdir
2066 while test -n "$ac_sources"; do
2067 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2068 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2070 echo "linking $srcdir/$ac_source to $ac_dest"
2072 if test ! -r $srcdir/$ac_source; then
2073 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2077 # Make relative symlinks.
2078 # Remove last slash and all that follows it. Not all systems have dirname.
2079 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2080 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2081 # The dest file is in a subdirectory.
2082 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2083 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2084 # A "../" for each directory in $ac_dest_dir_suffix.
2085 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2087 ac_dest_dir_suffix= ac_dots=
2091 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2092 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2095 # Make a symlink if possible; otherwise try a hard link.
2096 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2097 ln $srcdir/$ac_source $ac_dest; then :
2099 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2103 cat >> $CONFIG_STATUS <<EOF
2106 cat >> $CONFIG_STATUS <<\EOF
2107 case "x$CONFIG_FILES" in
2109 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2110 rm -f Makesim1.tmp Makesim2.tmp Makefile
2111 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2112 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2113 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2114 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2115 <Makefile.sim >Makefile
2116 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2119 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2123 chmod +x $CONFIG_STATUS
2124 rm -fr confdefs* $ac_clean_files
2125 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1