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
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_hdr
in sys
/time.h sys
/resource.h
1136 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_hdr" >&5
1139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1147 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1148 { (eval echo configure
:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1149 ac_err
=`grep -v '^ *+' conftest.out`
1150 if test -z "$ac_err"; then
1152 eval "ac_cv_header_$ac_safe=yes"
1155 echo "configure: failed program was:" >&5
1156 cat conftest.
$ac_ext >&5
1158 eval "ac_cv_header_$ac_safe=no"
1162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1163 echo "$ac_t""yes" 1>&6
1164 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1165 cat >> confdefs.h
<<EOF
1166 #define $ac_tr_hdr 1
1170 echo "$ac_t""no" 1>&6
1174 for ac_hdr
in fcntl.h
1176 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_hdr" >&5
1179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 cat > conftest.
$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1187 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1188 { (eval echo configure
:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1189 ac_err
=`grep -v '^ *+' conftest.out`
1190 if test -z "$ac_err"; then
1192 eval "ac_cv_header_$ac_safe=yes"
1195 echo "configure: failed program was:" >&5
1196 cat conftest.
$ac_ext >&5
1198 eval "ac_cv_header_$ac_safe=no"
1202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1204 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1205 cat >> confdefs.h
<<EOF
1206 #define $ac_tr_hdr 1
1210 echo "$ac_t""no" 1>&6
1214 for ac_func
in getrusage
time sigaction
1216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1217 echo "configure:1218: checking for $ac_func" >&5
1218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* System header to define __stub macros and hopefully few prototypes,
1225 which can conflict with char $ac_func(); below. */
1227 /* Override any gcc2 internal prototype to avoid an error. */
1228 /* We use char because int might match the return type of a gcc2
1229 builtin and then its argument prototype would still apply. */
1234 /* The GNU C library defines this for functions which it implements
1235 to always fail with ENOSYS. Some functions are actually named
1236 something starting with __ and the normal name is an alias. */
1237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1245 if { (eval echo configure
:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1247 eval "ac_cv_func_$ac_func=yes"
1249 echo "configure: failed program was:" >&5
1250 cat conftest.
$ac_ext >&5
1252 eval "ac_cv_func_$ac_func=no"
1257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1258 echo "$ac_t""yes" 1>&6
1259 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1260 cat >> confdefs.h
<<EOF
1261 #define $ac_tr_func 1
1265 echo "$ac_t""no" 1>&6
1270 .
${srcdir}/..
/..
/bfd
/configure.
host
1274 USE_MAINTAINER_MODE
=no
1275 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1276 if test "${enable_maintainer_mode+set}" = set; then
1277 enableval
="$enable_maintainer_mode"
1278 case "${enableval}" in
1279 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
1281 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
1283 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
1284 echo "Setting maintainer mode" 6>&1
1292 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1293 if test "${enable_sim_bswap+set}" = set; then
1294 enableval
="$enable_sim_bswap"
1295 case "${enableval}" in
1296 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1297 no
) sim_bswap
="-DWITH_BSWAP=0";;
1298 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1300 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1301 echo "Setting bswap flags = $sim_bswap" 6>&1
1309 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1310 if test "${enable_sim_cflags+set}" = set; then
1311 enableval
="$enable_sim_cflags"
1312 case "${enableval}" in
1313 yes) sim_cflags
="-O2";;
1314 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1316 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1318 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1319 echo "Setting sim cflags = $sim_cflags" 6>&1
1327 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1328 if test "${enable_sim_debug+set}" = set; then
1329 enableval
="$enable_sim_debug"
1330 case "${enableval}" in
1331 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1332 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1333 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1335 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1336 echo "Setting sim debug = $sim_debug" 6>&1
1344 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1345 if test "${enable_sim_stdio+set}" = set; then
1346 enableval
="$enable_sim_stdio"
1347 case "${enableval}" in
1348 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1349 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1350 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1352 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1353 echo "Setting stdio flags = $sim_stdio" 6>&1
1361 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1362 if test "${enable_sim_trace+set}" = set; then
1363 enableval
="$enable_sim_trace"
1364 case "${enableval}" in
1365 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1366 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1368 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1371 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1372 if test x
"$sim_trace" = x
; then
1373 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1375 sim_trace
="${sim_trace}|TRACE_$x"
1378 sim_trace
="$sim_trace)'" ;;
1380 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1381 echo "Setting sim trace = $sim_trace" 6>&1
1389 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1390 if test "${enable_sim_profile+set}" = set; then
1391 enableval
="$enable_sim_profile"
1392 case "${enableval}" in
1393 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1394 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1396 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1399 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1400 if test x
"$sim_profile" = x
; then
1401 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1403 sim_profile
="${sim_profile}|PROFILE_$x"
1406 sim_profile
="$sim_profile)'" ;;
1408 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1409 echo "Setting sim profile = $sim_profile" 6>&1
1417 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1418 echo "configure:1419: checking return type of signal handlers" >&5
1419 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 cat > conftest.
$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <sys/types.h>
1431 extern "C" void (*signal (int, void (*)(int)))(int);
1433 void (*signal ()) ();
1440 if { (eval echo configure
:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1442 ac_cv_type_signal
=void
1444 echo "configure: failed program was:" >&5
1445 cat conftest.
$ac_ext >&5
1447 ac_cv_type_signal
=int
1452 echo "$ac_t""$ac_cv_type_signal" 1>&6
1453 cat >> confdefs.h
<<EOF
1454 #define RETSIGTYPE $ac_cv_type_signal
1463 sim_link_links
=tconfig.h
1464 if test -f ${srcdir}/tconfig.
in
1466 sim_link_files
=tconfig.
in
1468 sim_link_files
=..
/common
/tconfig.
in
1471 # targ-vals.def points to the libc macro description file.
1473 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1475 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1476 sim_link_links
="${sim_link_links} targ-vals.def"
1480 sim_link_files
="${sim_link_files} m32r-sim.h ../../opcodes/m32r-opc.h"
1481 sim_link_links
="${sim_link_links} cpu-sim.h cpu-opc.h"
1484 wire_endian
="BIG_ENDIAN"
1486 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1487 if test "${enable_sim_endian+set}" = set; then
1488 enableval
="$enable_sim_endian"
1489 case "${enableval}" in
1490 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1491 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1492 yes) if test x
"$wire_endian" != x
; then
1493 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1495 if test x
"$default_endian" != x
; then
1496 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
1498 echo "No hard-wired endian for target $target" 1>&6
1499 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
1502 no
) if test x
"$default_endian" != x
; then
1503 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1505 if test x
"$wire_endian" != x
; then
1506 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
1508 echo "No default endian for target $target" 1>&6
1509 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1512 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1514 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1515 echo "Setting endian flags = $sim_endian" 6>&1
1518 if test x
"$default_endian" != x
; then
1519 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1521 if test x
"$wire_endian" != x
; then
1522 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1529 wire_alignment
="NONSTRICT_ALIGNMENT"
1530 default_alignment
=""
1532 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1533 if test "${enable_sim_alignment+set}" = set; then
1534 enableval
="$enable_sim_alignment"
1535 case "${enableval}" in
1536 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1537 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1538 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1539 yes) if test x
"$wire_alignment" != x
; then
1540 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1542 if test x
"$default_alignment" != x
; then
1543 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
1545 echo "No hard-wired alignment for target $target" 1>&6
1546 sim_alignment
="-DWITH_ALIGNMENT=0"
1549 no
) if test x
"$default_alignment" != x
; then
1550 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1552 if test x
"$wire_alignment" != x
; then
1553 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
1555 echo "No default alignment for target $target" 1>&6
1556 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
1559 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
1561 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
1562 echo "Setting alignment flags = $sim_alignment" 6>&1
1565 if test x
"$default_alignment" != x
; then
1566 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1568 if test x
"$wire_alignment" != x
; then
1569 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1577 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1578 if test "${enable_sim_hostendian+set}" = set; then
1579 enableval
="$enable_sim_hostendian"
1580 case "${enableval}" in
1581 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1582 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1583 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1584 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1586 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1587 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1591 if test "x$cross_compiling" = "xno"; then
1592 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1593 echo "configure:1594: checking whether byte ordering is bigendian" >&5
1594 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 ac_cv_c_bigendian
=unknown
1598 # See if sys/param.h defines the BYTE_ORDER macro.
1599 cat > conftest.
$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602 #include <sys/types.h>
1603 #include <sys/param.h>
1606 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1611 if { (eval echo configure
:1612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1613 # It does; now see whether it defined to BIG_ENDIAN or not.
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <sys/types.h>
1618 #include <sys/param.h>
1621 #if BYTE_ORDER != BIG_ENDIAN
1626 if { (eval echo configure
:1627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 ac_cv_c_bigendian
=yes
1630 echo "configure: failed program was:" >&5
1631 cat conftest.
$ac_ext >&5
1633 ac_cv_c_bigendian
=no
1637 echo "configure: failed program was:" >&5
1638 cat conftest.
$ac_ext >&5
1641 if test $ac_cv_c_bigendian = unknown
; then
1642 if test "$cross_compiling" = yes; then
1643 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1649 /* Are we little or big endian? From Harbison&Steele. */
1653 char c[sizeof (long)];
1656 exit (u.c[sizeof (long) - 1] == 1);
1659 if { (eval echo configure
:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1661 ac_cv_c_bigendian
=no
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 ac_cv_c_bigendian
=yes
1674 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1675 if test $ac_cv_c_bigendian = yes; then
1676 cat >> confdefs.h
<<\EOF
1677 #define WORDS_BIGENDIAN 1
1682 if test $ac_cv_c_bigendian = yes; then
1683 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1685 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1688 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1693 default_sim_scache
="1024"
1694 # Check whether --enable-sim-scache or --disable-sim-scache was given.
1695 if test "${enable_sim_scache+set}" = set; then
1696 enableval
="$enable_sim_scache"
1697 case "${enableval}" in
1698 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
1699 no
) sim_scache
="-DWITH_SCACHE=0" ;;
1700 [0-9]*) sim_cache
=${enableval};;
1701 *) { echo "configure: error: "Bad value
$enableval passed to
--enable-sim-scache"" 1>&2; exit 1; };
1704 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
1705 echo "Setting scache size = $sim_scache" 6>&1
1708 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
1713 default_sim_default_model
="m32r/d"
1714 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
1715 if test "${enable_sim_default_model+set}" = set; then
1716 enableval
="$enable_sim_default_model"
1717 case "${enableval}" in
1718 yes|no
) { echo "configure: error: "Missing argument to
--enable-sim-default-model"" 1>&2; exit 1; };;
1719 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
1721 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
1722 echo "Setting default model = $sim_default_model" 6>&1
1725 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
1730 # Check whether --enable-sim-environment or --disable-sim-environment was given.
1731 if test "${enable_sim_environment+set}" = set; then
1732 enableval
="$enable_sim_environment"
1733 case "${enableval}" in
1734 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
1735 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
1736 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
1737 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
1738 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-environment"" 1>&2; exit 1; };
1739 sim_environment
="";;
1741 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
1742 echo "Setting sim environment = $sim_environment" 6>&1
1745 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
1749 if test ${USE_MAINTAINER_MODE} = yes ; then
1750 # Extract the first word of "guile", so it can be a program name with args.
1751 set dummy guile
; ac_word
=$2
1752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_word" >&5
1754 if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 if test -n "$SCHEME"; then
1758 ac_cv_prog_SCHEME
="$SCHEME" # Let the user override the test.
1760 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1761 for ac_dir
in $PATH; do
1762 test -z "$ac_dir" && ac_dir
=.
1763 if test -f $ac_dir/$ac_word; then
1764 ac_cv_prog_SCHEME
="guile"
1769 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME
="guile"
1772 SCHEME
="$ac_cv_prog_SCHEME"
1773 if test -n "$SCHEME"; then
1774 echo "$ac_t""$SCHEME" 1>&6
1776 echo "$ac_t""no" 1>&6
1784 cat > confcache
<<\EOF
1785 # This file is a shell script that caches the results of configure
1786 # tests run on this system so they can be shared between configure
1787 # scripts and configure runs. It is not useful on other systems.
1788 # If it contains results you don't want to keep, you may remove or edit it.
1790 # By default, configure uses ./config.cache as the cache file,
1791 # creating it if it does not exist already. You can give configure
1792 # the --cache-file=FILE option to use a different cache file; that is
1793 # what configure does when it calls configure scripts in
1794 # subdirectories, so they share the cache.
1795 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1796 # config.status only pays attention to the cache file if you give it the
1797 # --recheck option to rerun configure.
1800 # The following way of writing the cache mishandles newlines in values,
1801 # but we know of no workaround that is simple, portable, and efficient.
1802 # So, don't put newlines in cache variables' values.
1803 # Ultrix sh set writes to stderr and can't be redirected directly,
1804 # and sets the high bit in the cache file unless we assign to the vars.
1806 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1808 # `set' does not quote correctly, so add quotes (double-quote substitution
1809 # turns \\\\ into \\, and sed turns \\ into \).
1811 -e "s/'/'\\\\''/g" \
1812 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1815 # `set' quotes correctly as required by POSIX, so do not add quotes.
1816 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1819 if cmp -s $cache_file confcache
; then
1822 if test -w $cache_file; then
1823 echo "updating cache $cache_file"
1824 cat confcache
> $cache_file
1826 echo "not updating unwritable cache $cache_file"
1831 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1833 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1834 # Let make expand exec_prefix.
1835 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1837 # Any assignment to VPATH causes Sun make to only execute
1838 # the first set of double-colon rules, so remove it if not needed.
1839 # If there is a colon in the path, we need to keep it.
1840 if test "x$srcdir" = x.
; then
1841 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1844 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1846 DEFS
=-DHAVE_CONFIG_H
1848 # Without the "./", some shells look in PATH for config.status.
1849 : ${CONFIG_STATUS=./config.status}
1851 echo creating
$CONFIG_STATUS
1852 rm -f $CONFIG_STATUS
1853 cat > $CONFIG_STATUS <<EOF
1855 # Generated automatically by configure.
1856 # Run this file to recreate the current configuration.
1857 # This directory was configured as follows,
1858 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1860 # $0 $ac_configure_args
1862 # Compiler output produced by configure, useful for debugging
1863 # configure, is in ./config.log if it exists.
1865 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1868 case "\$ac_option" in
1869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1870 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1871 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1872 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1873 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1875 -help | --help | --hel | --he | --h)
1876 echo "\$ac_cs_usage"; exit 0 ;;
1877 *) echo "\$ac_cs_usage"; exit 1 ;;
1881 ac_given_srcdir=$srcdir
1882 ac_given_INSTALL="$INSTALL"
1884 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
1886 cat >> $CONFIG_STATUS <<EOF
1888 # Protect against being on the right side of a sed subst in config.status.
1889 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1890 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1893 s%@sim_environment@%$sim_environment%g
1894 s%@sim_alignment@%$sim_alignment%g
1895 s%@sim_assert@%$sim_assert%g
1896 s%@sim_bitsize@%$sim_bitsize%g
1897 s%@sim_endian@%$sim_endian%g
1898 s%@sim_hostendian@%$sim_hostendian%g
1899 s%@sim_float@%$sim_float%g
1900 s%@sim_scache@%$sim_scache%g
1901 s%@sim_default_model@%$sim_default_model%g
1902 s%@sim_hardware@%$sim_hardware%g
1903 s%@sim_inline@%$sim_inline%g
1904 s%@sim_packages@%$sim_packages%g
1905 s%@sim_regparm@%$sim_regparm%g
1906 s%@sim_reserved_bits@%$sim_reserved_bits%g
1907 s%@sim_smp@%$sim_smp%g
1908 s%@sim_stdcall@%$sim_stdcall%g
1909 s%@sim_xor_endian@%$sim_xor_endian%g
1910 s%@sim_warnings@%$sim_warnings%g
1912 s%@CFLAGS@%$CFLAGS%g
1913 s%@CPPFLAGS@%$CPPFLAGS%g
1914 s%@CXXFLAGS@%$CXXFLAGS%g
1916 s%@LDFLAGS@%$LDFLAGS%g
1918 s%@exec_prefix@%$exec_prefix%g
1919 s%@prefix@%$prefix%g
1920 s%@program_transform_name@%$program_transform_name%g
1921 s%@bindir@%$bindir%g
1922 s%@sbindir@%$sbindir%g
1923 s%@libexecdir@%$libexecdir%g
1924 s%@datadir@%$datadir%g
1925 s%@sysconfdir@%$sysconfdir%g
1926 s%@sharedstatedir@%$sharedstatedir%g
1927 s%@localstatedir@%$localstatedir%g
1928 s%@libdir@%$libdir%g
1929 s%@includedir@%$includedir%g
1930 s%@oldincludedir@%$oldincludedir%g
1931 s%@infodir@%$infodir%g
1932 s%@mandir@%$mandir%g
1934 s%@host_alias@%$host_alias%g
1935 s%@host_cpu@%$host_cpu%g
1936 s%@host_vendor@%$host_vendor%g
1937 s%@host_os@%$host_os%g
1938 s%@target@%$target%g
1939 s%@target_alias@%$target_alias%g
1940 s%@target_cpu@%$target_cpu%g
1941 s%@target_vendor@%$target_vendor%g
1942 s%@target_os@%$target_os%g
1944 s%@build_alias@%$build_alias%g
1945 s%@build_cpu@%$build_cpu%g
1946 s%@build_vendor@%$build_vendor%g
1947 s%@build_os@%$build_os%g
1949 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1950 s%@INSTALL_DATA@%$INSTALL_DATA%g
1951 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1952 s%@HDEFINES@%$HDEFINES%g
1954 s%@RANLIB@%$RANLIB%g
1957 s%@sim_bswap@%$sim_bswap%g
1958 s%@sim_cflags@%$sim_cflags%g
1959 s%@sim_debug@%$sim_debug%g
1960 s%@sim_stdio@%$sim_stdio%g
1961 s%@sim_trace@%$sim_trace%g
1962 s%@sim_profile@%$sim_profile%g
1963 s%@SCHEME@%$SCHEME%g
1968 cat >> $CONFIG_STATUS <<\EOF
1970 # Split the substitutions into bite-sized pieces for seds with
1971 # small command number limits, like on Digital OSF/1 and HP-UX.
1972 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1973 ac_file
=1 # Number of current file.
1974 ac_beg
=1 # First line for current file.
1975 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1978 while $ac_more_lines; do
1979 if test $ac_beg -gt 1; then
1980 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1982 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1984 if test ! -s conftest.s
$ac_file; then
1986 rm -f conftest.s
$ac_file
1988 if test -z "$ac_sed_cmds"; then
1989 ac_sed_cmds
="sed -f conftest.s$ac_file"
1991 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1993 ac_file
=`expr $ac_file + 1`
1995 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1998 if test -z "$ac_sed_cmds"; then
2003 cat >> $CONFIG_STATUS <<EOF
2005 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
2007 cat >> $CONFIG_STATUS <<\EOF
2008 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2011 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2012 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2013 *) ac_file_in
="${ac_file}.in" ;;
2016 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2018 # Remove last slash and all that follows it. Not all systems have dirname.
2019 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2020 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2021 # The file is in a subdirectory.
2022 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2023 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2024 # A "../" for each directory in $ac_dir_suffix.
2025 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2027 ac_dir_suffix
= ac_dots
=
2030 case "$ac_given_srcdir" in
2032 if test -z "$ac_dots"; then top_srcdir
=.
2033 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2034 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2036 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2037 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2040 case "$ac_given_INSTALL" in
2041 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2042 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2045 echo creating
"$ac_file"
2047 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2049 *Makefile
*) ac_comsub
="1i\\
2050 # $configure_input" ;;
2054 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2056 s%@configure_input@%$configure_input%g
2057 s%@srcdir@%$srcdir%g
2058 s%@top_srcdir@%$top_srcdir%g
2059 s%@INSTALL@%$INSTALL%g
2060 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2064 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2065 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2067 # ac_d sets the value in "#define NAME VALUE" lines.
2068 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2069 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2072 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2073 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2074 ac_uB
='\([ ]\)%\1#\2define\3'
2077 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2078 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2079 ac_eB
='$%\1#\2define\3'
2083 if test "${CONFIG_HEADERS+set}" != set; then
2085 cat >> $CONFIG_STATUS <<EOF
2086 CONFIG_HEADERS="config.h:config.in"
2088 cat >> $CONFIG_STATUS <<\EOF
2090 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2093 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2094 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2095 *) ac_file_in
="${ac_file}.in" ;;
2098 echo creating
$ac_file
2100 rm -f conftest.frag conftest.
in conftest.out
2101 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2102 cat $ac_file_inputs > conftest.
in
2106 # Transform confdefs.h into a sed script conftest.vals that substitutes
2107 # the proper values into config.h.in to produce config.h. And first:
2108 # Protect against being on the right side of a sed subst in config.status.
2109 # Protect against being in an unquoted here document in config.status.
2111 cat > conftest.hdr
<<\EOF
2114 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2118 sed -n -f conftest.hdr confdefs.h > conftest.vals
2121 # This sed command replaces #undef with comments. This is necessary, for
2122 # example, in the case of _POSIX_SOURCE, which is predefined and required
2123 # on some systems where configure will not decide to define it.
2124 cat >> conftest.vals <<\EOF
2125 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2128 # Break up conftest.vals because some shells have a limit on
2129 # the size of here documents, and old seds have small limits too.
2134 ac_lines=`grep -c . conftest.vals
`
2135 # grep -c gives empty output for an empty file on some AIX systems.
2136 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2137 # Write a limited-size here document to conftest.frag.
2138 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2139 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2141 sed -f conftest.frag conftest.in > conftest.out
2143 mv conftest.out conftest.in
2145 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2147 mv conftest.tail conftest.vals
2151 cat >> $CONFIG_STATUS <<\EOF
2152 rm -f conftest.frag conftest.h
2153 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2154 cat conftest.in >> conftest.h
2156 if cmp -s $ac_file conftest.h 2>/dev/null; then
2157 echo "$ac_file is unchanged"
2160 # Remove last slash and all that follows it. Not all systems have dirname.
2161 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2162 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2163 # The file is in a subdirectory.
2164 test ! -d "$ac_dir" && mkdir "$ac_dir"
2167 mv conftest.h $ac_file
2173 cat >> $CONFIG_STATUS <<EOF
2174 ac_sources="$sim_link_files"
2175 ac_dests="$sim_link_links"
2178 cat >> $CONFIG_STATUS <<\EOF
2179 srcdir=$ac_given_srcdir
2180 while test -n "$ac_sources"; do
2181 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2182 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2184 echo "linking $srcdir/$ac_source to $ac_dest"
2186 if test ! -r $srcdir/$ac_source; then
2187 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2191 # Make relative symlinks.
2192 # Remove last slash and all that follows it. Not all systems have dirname.
2193 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2194 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2195 # The dest file is in a subdirectory.
2196 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2197 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2198 # A "../" for each directory in $ac_dest_dir_suffix.
2199 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2201 ac_dest_dir_suffix= ac_dots=
2205 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2206 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2209 # Make a symlink if possible; otherwise try a hard link.
2210 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2211 ln $srcdir/$ac_source $ac_dest; then :
2213 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2217 cat >> $CONFIG_STATUS <<EOF
2220 cat >> $CONFIG_STATUS <<\EOF
2221 case "x$CONFIG_FILES" in
2223 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2224 rm -f Makesim1.tmp Makesim2.tmp Makefile
2225 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2226 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2227 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2228 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2229 <Makefile.sim >Makefile
2230 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2233 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2237 chmod +x $CONFIG_STATUS
2238 rm -fr confdefs* $ac_clean_files
2239 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1