75 # Guess values for system-dependent variables and create Makefiles.
76 # Generated automatically using autoconf version 2.12
77 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
79 # This configure script is free software; the Free Software Foundation
80 # gives unlimited permission to copy, distribute and modify it.
84 ac_default_prefix
=/usr
/local
85 # Any additions from configure.in:
87 --enable-sim-bswap Use Host specific BSWAP instruction."
89 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
91 --enable-sim-debug=opts Enable debugging flags"
93 --enable-sim-stdio Specify whether to use stdio for console input/output."
95 --enable-sim-trace=opts Enable tracing flags"
97 --enable-sim-profile=opts Enable profiling flags"
99 --enable-sim-inline=inlines Specify which functions should be inlined."
101 --enable-sim-endian=endian Specify target byte endian orientation."
103 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
105 --enable-sim-hostendain=end Specify host byte endian orientation."
107 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
109 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
111 # Initialize some variables set by options.
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
115 cache_file
=.
/config.cache
124 program_transform_name
=s
,x
,x
,
132 bindir
='${exec_prefix}/bin'
133 sbindir
='${exec_prefix}/sbin'
134 libexecdir
='${exec_prefix}/libexec'
135 datadir
='${prefix}/share'
136 sysconfdir
='${prefix}/etc'
137 sharedstatedir
='${prefix}/com'
138 localstatedir
='${prefix}/var'
139 libdir
='${exec_prefix}/lib'
140 includedir
='${prefix}/include'
141 oldincludedir
='/usr/include'
142 infodir
='${prefix}/info'
143 mandir
='${prefix}/man'
145 # Initialize some other variables.
148 # Maximum number of lines to put in a shell here document.
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
163 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
173 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
174 bindir
="$ac_optarg" ;;
176 -build |
--build |
--buil |
--bui |
--bu)
178 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
179 build
="$ac_optarg" ;;
181 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
182 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
183 ac_prev
=cache_file
;;
184 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
185 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
186 cache_file
="$ac_optarg" ;;
188 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
190 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
192 datadir
="$ac_optarg" ;;
194 -disable-* |
--disable-*)
195 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}=no" ;;
203 -enable-* |
--enable-*)
204 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}='$ac_optarg'" ;;
216 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
217 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
218 |
--exec |
--exe |
--ex)
219 ac_prev
=exec_prefix
;;
220 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
221 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
222 |
--exec=* |
--exe=* |
--ex=*)
223 exec_prefix
="$ac_optarg" ;;
225 -gas |
--gas |
--ga |
--g)
226 # Obsolete; use --with-gas.
229 -help |
--help |
--hel |
--he)
230 # Omit some internal or obsolete options to make the list less imposing.
231 # This message is too long to be a string in the A/UX 3.1 sh.
233 Usage: configure [options] [host]
234 Options: [defaults in brackets after descriptions]
236 --cache-file=FILE cache test results in FILE
237 --help print this message
238 --no-create do not create output files
239 --quiet, --silent do not print \`checking...' messages
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
284 -host |
--host |
--hos |
--ho)
286 -host=* |
--host=* |
--hos=* |
--ho=*)
289 -includedir |
--includedir |
--includedi |
--included |
--include \
290 |
--includ |
--inclu |
--incl |
--inc)
291 ac_prev
=includedir
;;
292 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
293 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
294 includedir
="$ac_optarg" ;;
296 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
298 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
299 infodir
="$ac_optarg" ;;
301 -libdir |
--libdir |
--libdi |
--libd)
303 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
304 libdir
="$ac_optarg" ;;
306 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
307 |
--libexe |
--libex |
--libe)
308 ac_prev
=libexecdir
;;
309 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
310 |
--libexe=* |
--libex=* |
--libe=*)
311 libexecdir
="$ac_optarg" ;;
313 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
314 |
--localstate |
--localstat |
--localsta |
--localst \
315 |
--locals |
--local |
--loca |
--loc |
--lo)
316 ac_prev
=localstatedir
;;
317 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
318 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
319 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
320 localstatedir
="$ac_optarg" ;;
322 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
324 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
325 mandir
="$ac_optarg" ;;
328 # Obsolete; use --without-fp.
331 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
335 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
336 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
339 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
340 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
341 |
--oldin |
--oldi |
--old |
--ol |
--o)
342 ac_prev
=oldincludedir
;;
343 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
344 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
345 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
346 oldincludedir
="$ac_optarg" ;;
348 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
350 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
351 prefix
="$ac_optarg" ;;
353 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
354 |
--program-pre |
--program-pr |
--program-p)
355 ac_prev
=program_prefix
;;
356 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
357 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
358 program_prefix
="$ac_optarg" ;;
360 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
361 |
--program-suf |
--program-su |
--program-s)
362 ac_prev
=program_suffix
;;
363 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
364 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
365 program_suffix
="$ac_optarg" ;;
367 -program-transform-name |
--program-transform-name \
368 |
--program-transform-nam |
--program-transform-na \
369 |
--program-transform-n |
--program-transform- \
370 |
--program-transform |
--program-transfor \
371 |
--program-transfo |
--program-transf \
372 |
--program-trans |
--program-tran \
373 |
--progr-tra |
--program-tr |
--program-t)
374 ac_prev
=program_transform_name
;;
375 -program-transform-name=* |
--program-transform-name=* \
376 |
--program-transform-nam=* |
--program-transform-na=* \
377 |
--program-transform-n=* |
--program-transform-=* \
378 |
--program-transform=* |
--program-transfor=* \
379 |
--program-transfo=* |
--program-transf=* \
380 |
--program-trans=* |
--program-tran=* \
381 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
382 program_transform_name
="$ac_optarg" ;;
384 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
385 |
-silent |
--silent |
--silen |
--sile |
--sil)
388 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
390 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
392 sbindir
="$ac_optarg" ;;
394 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
395 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
396 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
398 ac_prev
=sharedstatedir
;;
399 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
400 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
401 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
403 sharedstatedir
="$ac_optarg" ;;
405 -site |
--site |
--sit)
407 -site=* |
--site=* |
--sit=*)
410 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
412 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
413 srcdir
="$ac_optarg" ;;
415 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
416 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
417 ac_prev
=sysconfdir
;;
418 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
419 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
420 sysconfdir
="$ac_optarg" ;;
422 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
424 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
425 target
="$ac_optarg" ;;
427 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
430 -version |
--version |
--versio |
--versi |
--vers)
431 echo "configure generated by autoconf version 2.12"
435 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package
=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}='$ac_optarg'" ;;
447 -without-* |
--without-*)
448 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package
=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}=no" ;;
457 # Obsolete; use --with-x.
460 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
461 |
--x-incl |
--x-inc |
--x-in |
--x-i)
462 ac_prev
=x_includes
;;
463 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
464 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
465 x_includes
="$ac_optarg" ;;
467 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
468 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
469 ac_prev
=x_libraries
;;
470 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
471 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
472 x_libraries
="$ac_optarg" ;;
474 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
479 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 if test "x$nonopt" != xNONE
; then
482 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
490 if test -n "$ac_prev"; then
491 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496 # File descriptor usage:
499 # 2 errors and warnings
500 # 3 some systems may open it to /dev/tty
501 # 4 used on the Kubota Titan
502 # 6 checking for... messages and results
503 # 5 compiler messages saved in config.log
504 if test "$silent" = yes; then
512 This file contains any messages produced by compilers while
513 running configure, to aid debugging if configure makes a mistake.
516 # Strip out --no-create and --no-recursion so they do not pile up.
517 # Also quote any args containing shell metacharacters.
522 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
523 |
--no-cr |
--no-c) ;;
524 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
525 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
526 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
527 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
528 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
533 # Only set these to C if already set. These must not be set unconditionally
534 # because not all systems understand e.g. LANG=C (notably SCO).
535 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
536 # Non-C LC_CTYPE values break the ctype check.
537 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
538 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
539 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
540 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
543 rm -rf conftest
* confdefs.h
544 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
547 # A filename unique to this package, relative to the directory that
548 # configure is in, which we can look for to find out if srcdir is correct.
549 ac_unique_file
=Makefile.
in
551 # Find the source files, if location was not specified.
552 if test -z "$srcdir"; then
553 ac_srcdir_defaulted
=yes
554 # Try the directory containing this script, then its parent.
556 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
557 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
559 if test ! -r $srcdir/$ac_unique_file; then
563 ac_srcdir_defaulted
=no
565 if test ! -r $srcdir/$ac_unique_file; then
566 if test "$ac_srcdir_defaulted" = yes; then
567 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
569 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
574 # Prefer explicitly selected file to automatically selected ones.
575 if test -z "$CONFIG_SITE"; then
576 if test "x$prefix" != xNONE
; then
577 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
579 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582 for ac_site_file
in $CONFIG_SITE; do
583 if test -r "$ac_site_file"; then
584 echo "loading site script $ac_site_file"
589 if test -r "$cache_file"; then
590 echo "loading cache $cache_file"
593 echo "creating cache $cache_file"
598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
599 ac_cpp
='$CPP $CPPFLAGS'
600 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
601 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 cross_compiling
=$ac_cv_prog_cc_cross
604 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
613 ac_n
= ac_c
='\c' ac_t
=
618 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
619 echo "configure:620: checking how to run the C preprocessor" >&5
620 # On Suns, sometimes $CPP names a directory.
621 if test -n "$CPP" && test -d "$CPP"; then
624 if test -z "$CPP"; then
625 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
628 # This must be in double quotes, not single quotes, because CPP may get
629 # substituted into the Makefile and "${CC-cc}" will confuse make.
631 # On the NeXT, cc -E runs the code through the compiler's parser,
632 # not just through cpp.
633 cat > conftest.
$ac_ext <<EOF
634 #line 635 "configure"
635 #include "confdefs.h"
639 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
640 { (eval echo configure
:641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
641 ac_err
=`grep -v '^ *+' conftest.out`
642 if test -z "$ac_err"; then
646 echo "configure: failed program was:" >&5
647 cat conftest.
$ac_ext >&5
649 CPP
="${CC-cc} -E -traditional-cpp"
650 cat > conftest.
$ac_ext <<EOF
651 #line 652 "configure"
652 #include "confdefs.h"
656 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
657 { (eval echo configure
:658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
658 ac_err
=`grep -v '^ *+' conftest.out`
659 if test -z "$ac_err"; then
663 echo "configure: failed program was:" >&5
664 cat conftest.
$ac_ext >&5
671 ac_cv_prog_CPP
="$CPP"
673 CPP
="$ac_cv_prog_CPP"
675 ac_cv_prog_CPP
="$CPP"
677 echo "$ac_t""$CPP" 1>&6
680 # autoconf.info says this should be called right after AC_INIT.
684 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
685 if test -f $ac_dir/install-sh
; then
687 ac_install_sh
="$ac_aux_dir/install-sh -c"
689 elif test -f $ac_dir/install.sh
; then
691 ac_install_sh
="$ac_aux_dir/install.sh -c"
695 if test -z "$ac_aux_dir"; then
696 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
698 ac_config_guess
=$ac_aux_dir/config.guess
699 ac_config_sub
=$ac_aux_dir/config.sub
700 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
703 # Do some error checking and defaulting for the host and target type.
705 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
708 # 1. You are not allowed to specify --host, --target, and nonopt at the
710 # 2. Host defaults to nonopt.
711 # 3. If nonopt is not specified, then host defaults to the current host,
712 # as determined by config.guess.
713 # 4. Target and build default to nonopt.
714 # 5. If nonopt is not specified, then target and build default to host.
716 # The aliases save the names the user supplied, while $host etc.
717 # will get canonicalized.
718 case $host---$target---$nonopt in
719 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
720 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
724 # Make sure we can run config.sub.
725 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
726 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
729 echo $ac_n "checking host system type""... $ac_c" 1>&6
730 echo "configure:731: checking host system type" >&5
733 case "$host_alias" in
737 if host_alias
=`$ac_config_guess`; then :
738 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
740 *) host_alias
=$nonopt ;;
744 host=`$ac_config_sub $host_alias`
745 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$host" 1>&6
750 echo $ac_n "checking target system type""... $ac_c" 1>&6
751 echo "configure:752: checking target system type" >&5
754 case "$target_alias" in
757 NONE
) target_alias
=$host_alias ;;
758 *) target_alias
=$nonopt ;;
762 target
=`$ac_config_sub $target_alias`
763 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766 echo "$ac_t""$target" 1>&6
768 echo $ac_n "checking build system type""... $ac_c" 1>&6
769 echo "configure:770: checking build system type" >&5
772 case "$build_alias" in
775 NONE
) build_alias
=$host_alias ;;
776 *) build_alias
=$nonopt ;;
780 build
=`$ac_config_sub $build_alias`
781 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
782 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
783 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
784 echo "$ac_t""$build" 1>&6
786 test "$host_alias" != "$target_alias" &&
787 test "$program_prefix$program_suffix$program_transform_name" = \
789 program_prefix
=${target_alias}-
791 if test "$program_transform_name" = s
,x
,x
,; then
792 program_transform_name
=
794 # Double any \ or $. echo might interpret backslashes.
795 cat <<\EOF_SED
> conftestsed
796 s
,\\,\\\\,g
; s
,\$
,$$
,g
798 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
801 test "$program_prefix" != NONE
&&
802 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
803 # Use a double $ so make ignores it.
804 test "$program_suffix" != NONE
&&
805 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
807 # sed with no file args requires a program.
808 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc
; ac_word
=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC
="$CC" # Let the user override the test.
820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
821 for ac_dir
in $PATH; do
822 test -z "$ac_dir" && ac_dir
=.
823 if test -f $ac_dir/$ac_word; then
832 if test -n "$CC"; then
833 echo "$ac_t""$CC" 1>&6
835 echo "$ac_t""no" 1>&6
838 if test -z "$CC"; then
839 # Extract the first word of "cc", so it can be a program name with args.
840 set dummy cc
; ac_word
=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$CC"; then
847 ac_cv_prog_CC
="$CC" # Let the user override the test.
849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
851 for ac_dir
in $PATH; do
852 test -z "$ac_dir" && ac_dir
=.
853 if test -f $ac_dir/$ac_word; then
854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
863 if test $ac_prog_rejected = yes; then
864 # We found a bogon in the path, so make sure we never use it.
865 set dummy
$ac_cv_prog_CC
867 if test $# -gt 0; then
868 # We chose a different compiler from the bogus one.
869 # However, it has the same basename, so the bogon will be chosen
870 # first if we set CC to just the basename; use the full file name.
872 set dummy
"$ac_dir/$ac_word" "$@"
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
883 echo "$ac_t""no" 1>&6
886 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
890 echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
894 ac_cpp
='$CPP $CPPFLAGS'
895 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
896 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
897 cross_compiling
=$ac_cv_prog_cc_cross
899 cat > conftest.
$ac_ext <<EOF
900 #line 901 "configure"
901 #include "confdefs.h"
904 if { (eval echo configure
:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
905 ac_cv_prog_cc_works
=yes
906 # If we can't run a trivial program, we are probably using a cross compiler.
907 if (.
/conftest
; exit) 2>/dev
/null
; then
908 ac_cv_prog_cc_cross
=no
910 ac_cv_prog_cc_cross
=yes
913 echo "configure: failed program was:" >&5
914 cat conftest.
$ac_ext >&5
915 ac_cv_prog_cc_works
=no
919 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
920 if test $ac_cv_prog_cc_works = no
; then
921 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
925 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
926 cross_compiling
=$ac_cv_prog_cc_cross
928 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
929 echo "configure:930: checking whether we are using GNU C" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 cat > conftest.c
<<EOF
938 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
945 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
947 if test $ac_cv_prog_gcc = yes; then
949 ac_test_CFLAGS
="${CFLAGS+set}"
950 ac_save_CFLAGS
="$CFLAGS"
952 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
953 echo "configure:954: checking whether ${CC-cc} accepts -g" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 echo 'void f(){}' > conftest.c
958 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
967 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
968 if test "$ac_test_CFLAGS" = set; then
969 CFLAGS
="$ac_save_CFLAGS"
970 elif test $ac_cv_prog_cc_g = yes; then
977 test "${CFLAGS+set}" = set || CFLAGS
="-g"
980 # Find a good install program. We prefer a C program (faster),
981 # so one script is as good as another. But avoid the broken or
982 # incompatible versions:
983 # SysV /etc/install, /usr/sbin/install
984 # SunOS /usr/etc/install
987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
989 # ./install, which can be erroneously created by make from ./install.sh.
990 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
991 echo "configure:992: checking for a BSD compatible install" >&5
992 if test -z "$INSTALL"; then
993 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
997 for ac_dir
in $PATH; do
998 # Account for people who put trailing slashes in PATH elements.
1000 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1002 # OSF1 and SCO ODT 3.0 have their own names for install.
1003 for ac_prog
in ginstall installbsd scoinst
install; do
1004 if test -f $ac_dir/$ac_prog; then
1005 if test $ac_prog = install &&
1006 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1007 # AIX install. It has an incompatible calling convention.
1008 # OSF/1 installbsd also uses dspmsg, but is usable.
1011 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1022 if test "${ac_cv_path_install+set}" = set; then
1023 INSTALL
="$ac_cv_path_install"
1025 # As a last resort, use the slow shell script. We don't cache a
1026 # path for INSTALL within a source directory, because that will
1027 # break other packages using the cache if that directory is
1028 # removed, or if the path is relative.
1029 INSTALL
="$ac_install_sh"
1032 echo "$ac_t""$INSTALL" 1>&6
1034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1035 # It thinks the first close brace ends the variable substitution.
1036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1038 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1041 # Put a plausible default for CC_FOR_BUILD in Makefile.
1042 if test "x$cross_compiling" = "xno"; then
1043 CC_FOR_BUILD
='$(CC)'
1053 # Extract the first word of "ranlib", so it can be a program name with args.
1054 set dummy ranlib
; ac_word
=$2
1055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1056 echo "configure:1057: checking for $ac_word" >&5
1057 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 if test -n "$RANLIB"; then
1061 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1063 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1064 for ac_dir
in $PATH; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_RANLIB
="ranlib"
1072 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1075 RANLIB
="$ac_cv_prog_RANLIB"
1076 if test -n "$RANLIB"; then
1077 echo "$ac_t""$RANLIB" 1>&6
1079 echo "$ac_t""no" 1>&6
1083 # Check for common headers.
1084 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1085 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1086 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h sys
/time.h sys
/resource.h
1088 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_hdr" >&5
1091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 cat > conftest.
$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1099 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1100 { (eval echo configure
:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1101 ac_err
=`grep -v '^ *+' conftest.out`
1102 if test -z "$ac_err"; then
1104 eval "ac_cv_header_$ac_safe=yes"
1107 echo "configure: failed program was:" >&5
1108 cat conftest.
$ac_ext >&5
1110 eval "ac_cv_header_$ac_safe=no"
1114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1115 echo "$ac_t""yes" 1>&6
1116 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1117 cat >> confdefs.h
<<EOF
1118 #define $ac_tr_hdr 1
1122 echo "$ac_t""no" 1>&6
1126 for ac_func
in getrusage
time
1128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_func" >&5
1130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftest.
$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1136 /* System header to define __stub macros and hopefully few prototypes,
1137 which can conflict with char $ac_func(); below. */
1139 /* Override any gcc2 internal prototype to avoid an error. */
1140 /* We use char because int might match the return type of a gcc2
1141 builtin and then its argument prototype would still apply. */
1146 /* The GNU C library defines this for functions which it implements
1147 to always fail with ENOSYS. Some functions are actually named
1148 something starting with __ and the normal name is an alias. */
1149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1157 if { (eval echo configure
:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1159 eval "ac_cv_func_$ac_func=yes"
1161 echo "configure: failed program was:" >&5
1162 cat conftest.
$ac_ext >&5
1164 eval "ac_cv_func_$ac_func=no"
1169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1170 echo "$ac_t""yes" 1>&6
1171 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1172 cat >> confdefs.h
<<EOF
1173 #define $ac_tr_func 1
1177 echo "$ac_t""no" 1>&6
1182 .
${srcdir}/..
/..
/bfd
/configure.
host
1186 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1187 if test "${enable_sim_bswap+set}" = set; then
1188 enableval
="$enable_sim_bswap"
1189 case "${enableval}" in
1190 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1191 no
) sim_bswap
="-DWITH_BSWAP=0";;
1192 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1194 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1195 echo "Setting bswap flags = $sim_bswap" 6>&1
1203 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1204 if test "${enable_sim_cflags+set}" = set; then
1205 enableval
="$enable_sim_cflags"
1206 case "${enableval}" in
1207 yes) sim_cflags
="-O2";;
1208 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1210 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1212 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1213 echo "Setting sim cflags = $sim_cflags" 6>&1
1221 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1222 if test "${enable_sim_debug+set}" = set; then
1223 enableval
="$enable_sim_debug"
1224 case "${enableval}" in
1225 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1226 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1227 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1229 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1230 echo "Setting sim debug = $sim_debug" 6>&1
1238 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1239 if test "${enable_sim_stdio+set}" = set; then
1240 enableval
="$enable_sim_stdio"
1241 case "${enableval}" in
1242 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1243 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1244 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1246 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1247 echo "Setting stdio flags = $sim_stdio" 6>&1
1255 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1256 if test "${enable_sim_trace+set}" = set; then
1257 enableval
="$enable_sim_trace"
1258 case "${enableval}" in
1259 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1260 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1262 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1265 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1266 if test x
"$sim_trace" = x
; then
1267 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1269 sim_trace
="${sim_trace}|TRACE_$x"
1272 sim_trace
="$sim_trace)'" ;;
1274 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1275 echo "Setting sim trace = $sim_trace" 6>&1
1283 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1284 if test "${enable_sim_profile+set}" = set; then
1285 enableval
="$enable_sim_profile"
1286 case "${enableval}" in
1287 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1288 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1290 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1293 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1294 if test x
"$sim_profile" = x
; then
1295 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1297 sim_profile
="${sim_profile}|PROFILE_$x"
1300 sim_profile
="$sim_profile)'" ;;
1302 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1303 echo "Setting sim profile = $sim_profile" 6>&1
1311 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1312 echo "configure:1313: checking return type of signal handlers" >&5
1313 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1319 #include <sys/types.h>
1325 extern "C" void (*signal (int, void (*)(int)))(int);
1327 void (*signal ()) ();
1334 if { (eval echo configure
:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1336 ac_cv_type_signal
=void
1338 echo "configure: failed program was:" >&5
1339 cat conftest.
$ac_ext >&5
1341 ac_cv_type_signal
=int
1346 echo "$ac_t""$ac_cv_type_signal" 1>&6
1347 cat >> confdefs.h
<<EOF
1348 #define RETSIGTYPE $ac_cv_type_signal
1357 sim_link_links
=tconfig.h
1358 if test -f ${srcdir}/tconfig.
in
1360 sim_link_files
=tconfig.
in
1362 sim_link_files
=..
/common
/tconfig.
in
1365 # targ-vals.def points to the libc macro description file.
1367 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1369 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1370 sim_link_links
="${sim_link_links} targ-vals.def"
1375 default_sim_inline
="-DDEFAULT_INLINE=0"
1376 # Check whether --enable-sim-inline or --disable-sim-inline was given.
1377 if test "${enable_sim_inline+set}" = set; then
1378 enableval
="$enable_sim_inline"
1380 case "$enableval" in
1381 no
) sim_inline
="-DDEFAULT_INLINE=0";;
1382 0) sim_inline
="-DDEFAULT_INLINE=0";;
1383 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
1384 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
1385 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1388 *_INLINE
=*) new_flag
="-D$x";;
1389 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
1390 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
1391 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
1393 if test x
"$sim_inline" = x
""; then
1394 sim_inline
="$new_flag"
1396 sim_inline
="$sim_inline $new_flag"
1400 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
1401 echo "Setting inline flags = $sim_inline" 6>&1
1404 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
1405 sim_inline
="${default_sim_inline}"
1406 if test x
"$silent" != x
"yes"; then
1407 echo "Setting inline flags = $sim_inline" 6>&1
1415 wire_endian
="LITTLE_ENDIAN"
1417 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1418 if test "${enable_sim_endian+set}" = set; then
1419 enableval
="$enable_sim_endian"
1420 case "${enableval}" in
1421 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1422 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1423 yes) if test x
"$wire_endian" != x
; then
1424 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1426 if test x
"$default_endian" != x
; then
1427 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
1429 echo "No hard-wired endian for target $target" 1>&6
1430 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
1433 no
) if test x
"$default_endian" != x
; then
1434 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1436 if test x
"$wire_endian" != x
; then
1437 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
1439 echo "No default endian for target $target" 1>&6
1440 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1443 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1445 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1446 echo "Setting endian flags = $sim_endian" 6>&1
1449 if test x
"$default_endian" != x
; then
1450 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1452 if test x
"$wire_endian" != x
; then
1453 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1460 wire_alignment
="FORCED_ALIGNMENT"
1461 default_alignment
=""
1463 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1464 if test "${enable_sim_alignment+set}" = set; then
1465 enableval
="$enable_sim_alignment"
1466 case "${enableval}" in
1467 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1468 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1469 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1470 yes) if test x
"$wire_alignment" != x
; then
1471 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1473 if test x
"$default_alignment" != x
; then
1474 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
1476 echo "No hard-wired alignment for target $target" 1>&6
1477 sim_alignment
="-DWITH_ALIGNMENT=0"
1480 no
) if test x
"$default_alignment" != x
; then
1481 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1483 if test x
"$wire_alignment" != x
; then
1484 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
1486 echo "No default alignment for target $target" 1>&6
1487 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
1490 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
1492 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
1493 echo "Setting alignment flags = $sim_alignment" 6>&1
1496 if test x
"$default_alignment" != x
; then
1497 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1499 if test x
"$wire_alignment" != x
; then
1500 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1508 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1509 if test "${enable_sim_hostendian+set}" = set; then
1510 enableval
="$enable_sim_hostendian"
1511 case "${enableval}" in
1512 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1513 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1514 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1515 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1517 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1518 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1522 if test "x$cross_compiling" = "xno"; then
1523 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1524 echo "configure:1525: checking whether byte ordering is bigendian" >&5
1525 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 ac_cv_c_bigendian
=unknown
1529 # See if sys/param.h defines the BYTE_ORDER macro.
1530 cat > conftest.
$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 #include <sys/types.h>
1534 #include <sys/param.h>
1537 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1542 if { (eval echo configure
:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1544 # It does; now see whether it defined to BIG_ENDIAN or not.
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <sys/types.h>
1549 #include <sys/param.h>
1552 #if BYTE_ORDER != BIG_ENDIAN
1557 if { (eval echo configure
:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1559 ac_cv_c_bigendian
=yes
1561 echo "configure: failed program was:" >&5
1562 cat conftest.
$ac_ext >&5
1564 ac_cv_c_bigendian
=no
1568 echo "configure: failed program was:" >&5
1569 cat conftest.
$ac_ext >&5
1572 if test $ac_cv_c_bigendian = unknown
; then
1573 if test "$cross_compiling" = yes; then
1574 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1576 cat > conftest.
$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1580 /* Are we little or big endian? From Harbison&Steele. */
1584 char c[sizeof (long)];
1587 exit (u.c[sizeof (long) - 1] == 1);
1590 if { (eval echo configure
:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1592 ac_cv_c_bigendian
=no
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1597 ac_cv_c_bigendian
=yes
1605 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1606 if test $ac_cv_c_bigendian = yes; then
1607 cat >> confdefs.h
<<\EOF
1608 #define WORDS_BIGENDIAN 1
1613 if test $ac_cv_c_bigendian = yes; then
1614 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1616 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1619 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1624 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1625 if test "${enable_sim_warnings+set}" = set; then
1626 enableval
="$enable_sim_warnings"
1627 case "${enableval}" in
1628 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1629 no
) sim_warnings
="-w";;
1630 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1632 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
1633 echo "Setting warning flags = $sim_warnings" 6>&1
1640 default_sim_reserved_bits
="1"
1641 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1642 if test "${enable_sim_reserved_bits+set}" = set; then
1643 enableval
="$enable_sim_reserved_bits"
1644 case "${enableval}" in
1645 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
1646 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
1647 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
1649 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
1650 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
1653 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
1657 for ac_hdr
in stdlib.h unistd.h string.h
strings.h
1659 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_hdr" >&5
1662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.
$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1670 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1671 { (eval echo configure
:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1672 ac_err
=`grep -v '^ *+' conftest.out`
1673 if test -z "$ac_err"; then
1675 eval "ac_cv_header_$ac_safe=yes"
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1681 eval "ac_cv_header_$ac_safe=no"
1685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1686 echo "$ac_t""yes" 1>&6
1687 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1688 cat >> confdefs.h
<<EOF
1689 #define $ac_tr_hdr 1
1693 echo "$ac_t""no" 1>&6
1697 for ac_func
in getpid
kill
1699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_func" >&5
1701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 /* System header to define __stub macros and hopefully few prototypes,
1708 which can conflict with char $ac_func(); below. */
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1717 /* The GNU C library defines this for functions which it implements
1718 to always fail with ENOSYS. Some functions are actually named
1719 something starting with __ and the normal name is an alias. */
1720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1728 if { (eval echo configure
:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1730 eval "ac_cv_func_$ac_func=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.
$ac_ext >&5
1735 eval "ac_cv_func_$ac_func=no"
1740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1741 echo "$ac_t""yes" 1>&6
1742 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1743 cat >> confdefs.h
<<EOF
1744 #define $ac_tr_func 1
1748 echo "$ac_t""no" 1>&6
1756 cat > confcache
<<\EOF
1757 # This file is a shell script that caches the results of configure
1758 # tests run on this system so they can be shared between configure
1759 # scripts and configure runs. It is not useful on other systems.
1760 # If it contains results you don't want to keep, you may remove or edit it.
1762 # By default, configure uses ./config.cache as the cache file,
1763 # creating it if it does not exist already. You can give configure
1764 # the --cache-file=FILE option to use a different cache file; that is
1765 # what configure does when it calls configure scripts in
1766 # subdirectories, so they share the cache.
1767 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1768 # config.status only pays attention to the cache file if you give it the
1769 # --recheck option to rerun configure.
1772 # The following way of writing the cache mishandles newlines in values,
1773 # but we know of no workaround that is simple, portable, and efficient.
1774 # So, don't put newlines in cache variables' values.
1775 # Ultrix sh set writes to stderr and can't be redirected directly,
1776 # and sets the high bit in the cache file unless we assign to the vars.
1778 case `(ac_space=' '; set) 2>&1` in
1780 # `set' does not quote correctly, so add quotes (double-quote substitution
1781 # turns \\\\ into \\, and sed turns \\ into \).
1783 -e "s/'/'\\\\''/g" \
1784 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1787 # `set' quotes correctly as required by POSIX, so do not add quotes.
1788 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1791 if cmp -s $cache_file confcache
; then
1794 if test -w $cache_file; then
1795 echo "updating cache $cache_file"
1796 cat confcache
> $cache_file
1798 echo "not updating unwritable cache $cache_file"
1803 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1805 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1806 # Let make expand exec_prefix.
1807 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1809 # Any assignment to VPATH causes Sun make to only execute
1810 # the first set of double-colon rules, so remove it if not needed.
1811 # If there is a colon in the path, we need to keep it.
1812 if test "x$srcdir" = x.
; then
1813 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1816 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1818 DEFS
=-DHAVE_CONFIG_H
1820 # Without the "./", some shells look in PATH for config.status.
1821 : ${CONFIG_STATUS=./config.status}
1823 echo creating
$CONFIG_STATUS
1824 rm -f $CONFIG_STATUS
1825 cat > $CONFIG_STATUS <<EOF
1827 # Generated automatically by configure.
1828 # Run this file to recreate the current configuration.
1829 # This directory was configured as follows,
1830 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1832 # $0 $ac_configure_args
1834 # Compiler output produced by configure, useful for debugging
1835 # configure, is in ./config.log if it exists.
1837 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1840 case "\$ac_option" in
1841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1842 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1843 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1844 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1845 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1847 -help | --help | --hel | --he | --h)
1848 echo "\$ac_cs_usage"; exit 0 ;;
1849 *) echo "\$ac_cs_usage"; exit 1 ;;
1853 ac_given_srcdir=$srcdir
1854 ac_given_INSTALL="$INSTALL"
1856 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
1858 cat >> $CONFIG_STATUS <<EOF
1860 # Protect against being on the right side of a sed subst in config.status.
1861 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1862 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1865 s%@sim_alignment@%$sim_alignment%g
1866 s%@sim_assert@%$sim_assert%g
1867 s%@sim_bitsize@%$sim_bitsize%g
1868 s%@sim_endian@%$sim_endian%g
1869 s%@sim_hostendian@%$sim_hostendian%g
1870 s%@sim_float@%$sim_float%g
1871 s%@sim_scache@%$sim_scache%g
1872 s%@sim_default_model@%$sim_default_model%g
1873 s%@sim_hardware@%$sim_hardware%g
1874 s%@sim_inline@%$sim_inline%g
1875 s%@sim_packages@%$sim_packages%g
1876 s%@sim_regparm@%$sim_regparm%g
1877 s%@sim_reserved_bits@%$sim_reserved_bits%g
1878 s%@sim_smp@%$sim_smp%g
1879 s%@sim_stdcall@%$sim_stdcall%g
1880 s%@sim_xor_endian@%$sim_xor_endian%g
1881 s%@sim_warnings@%$sim_warnings%g
1882 s%@CFLAGS@%$CFLAGS%g
1883 s%@CPPFLAGS@%$CPPFLAGS%g
1884 s%@CXXFLAGS@%$CXXFLAGS%g
1886 s%@LDFLAGS@%$LDFLAGS%g
1888 s%@exec_prefix@%$exec_prefix%g
1889 s%@prefix@%$prefix%g
1890 s%@program_transform_name@%$program_transform_name%g
1891 s%@bindir@%$bindir%g
1892 s%@sbindir@%$sbindir%g
1893 s%@libexecdir@%$libexecdir%g
1894 s%@datadir@%$datadir%g
1895 s%@sysconfdir@%$sysconfdir%g
1896 s%@sharedstatedir@%$sharedstatedir%g
1897 s%@localstatedir@%$localstatedir%g
1898 s%@libdir@%$libdir%g
1899 s%@includedir@%$includedir%g
1900 s%@oldincludedir@%$oldincludedir%g
1901 s%@infodir@%$infodir%g
1902 s%@mandir@%$mandir%g
1904 s%@host_alias@%$host_alias%g
1905 s%@host_cpu@%$host_cpu%g
1906 s%@host_vendor@%$host_vendor%g
1907 s%@host_os@%$host_os%g
1908 s%@target@%$target%g
1909 s%@target_alias@%$target_alias%g
1910 s%@target_cpu@%$target_cpu%g
1911 s%@target_vendor@%$target_vendor%g
1912 s%@target_os@%$target_os%g
1914 s%@build_alias@%$build_alias%g
1915 s%@build_cpu@%$build_cpu%g
1916 s%@build_vendor@%$build_vendor%g
1917 s%@build_os@%$build_os%g
1919 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1920 s%@INSTALL_DATA@%$INSTALL_DATA%g
1921 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1922 s%@HDEFINES@%$HDEFINES%g
1924 s%@RANLIB@%$RANLIB%g
1926 s%@sim_bswap@%$sim_bswap%g
1927 s%@sim_cflags@%$sim_cflags%g
1928 s%@sim_debug@%$sim_debug%g
1929 s%@sim_stdio@%$sim_stdio%g
1930 s%@sim_trace@%$sim_trace%g
1931 s%@sim_profile@%$sim_profile%g
1936 cat >> $CONFIG_STATUS <<\EOF
1938 # Split the substitutions into bite-sized pieces for seds with
1939 # small command number limits, like on Digital OSF/1 and HP-UX.
1940 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1941 ac_file
=1 # Number of current file.
1942 ac_beg
=1 # First line for current file.
1943 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1946 while $ac_more_lines; do
1947 if test $ac_beg -gt 1; then
1948 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1950 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1952 if test ! -s conftest.s
$ac_file; then
1954 rm -f conftest.s
$ac_file
1956 if test -z "$ac_sed_cmds"; then
1957 ac_sed_cmds
="sed -f conftest.s$ac_file"
1959 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1961 ac_file
=`expr $ac_file + 1`
1963 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1966 if test -z "$ac_sed_cmds"; then
1971 cat >> $CONFIG_STATUS <<EOF
1973 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
1975 cat >> $CONFIG_STATUS <<\EOF
1976 for ac_file
in ..
$CONFIG_FILES; 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 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1986 # Remove last slash and all that follows it. Not all systems have dirname.
1987 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1988 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1989 # The file is in a subdirectory.
1990 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1991 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1992 # A "../" for each directory in $ac_dir_suffix.
1993 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1995 ac_dir_suffix
= ac_dots
=
1998 case "$ac_given_srcdir" in
2000 if test -z "$ac_dots"; then top_srcdir
=.
2001 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2002 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2004 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2005 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2008 case "$ac_given_INSTALL" in
2009 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2010 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2013 echo creating
"$ac_file"
2015 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2017 *Makefile
*) ac_comsub
="1i\\
2018 # $configure_input" ;;
2022 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2024 s%@configure_input@%$configure_input%g
2025 s%@srcdir@%$srcdir%g
2026 s%@top_srcdir@%$top_srcdir%g
2027 s%@INSTALL@%$INSTALL%g
2028 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2032 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2033 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2035 # ac_d sets the value in "#define NAME VALUE" lines.
2036 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2037 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2040 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2041 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2042 ac_uB
='\([ ]\)%\1#\2define\3'
2045 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2046 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2047 ac_eB
='$%\1#\2define\3'
2051 if test "${CONFIG_HEADERS+set}" != set; then
2053 cat >> $CONFIG_STATUS <<EOF
2054 CONFIG_HEADERS="config.h:config.in"
2056 cat >> $CONFIG_STATUS <<\EOF
2058 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2061 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2062 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2063 *) ac_file_in
="${ac_file}.in" ;;
2066 echo creating
$ac_file
2068 rm -f conftest.frag conftest.
in conftest.out
2069 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2070 cat $ac_file_inputs > conftest.
in
2074 # Transform confdefs.h into a sed script conftest.vals that substitutes
2075 # the proper values into config.h.in to produce config.h. And first:
2076 # Protect against being on the right side of a sed subst in config.status.
2077 # Protect against being in an unquoted here document in config.status.
2079 cat > conftest.hdr
<<\EOF
2082 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2086 sed -n -f conftest.hdr confdefs.h > conftest.vals
2089 # This sed command replaces #undef with comments. This is necessary, for
2090 # example, in the case of _POSIX_SOURCE, which is predefined and required
2091 # on some systems where configure will not decide to define it.
2092 cat >> conftest.vals <<\EOF
2093 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2096 # Break up conftest.vals because some shells have a limit on
2097 # the size of here documents, and old seds have small limits too.
2102 ac_lines=`grep -c . conftest.vals
`
2103 # grep -c gives empty output for an empty file on some AIX systems.
2104 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2105 # Write a limited-size here document to conftest.frag.
2106 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2107 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2109 sed -f conftest.frag conftest.in > conftest.out
2111 mv conftest.out conftest.in
2113 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2115 mv conftest.tail conftest.vals
2119 cat >> $CONFIG_STATUS <<\EOF
2120 rm -f conftest.frag conftest.h
2121 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2122 cat conftest.in >> conftest.h
2124 if cmp -s $ac_file conftest.h 2>/dev/null; then
2125 echo "$ac_file is unchanged"
2128 # Remove last slash and all that follows it. Not all systems have dirname.
2129 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2130 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2131 # The file is in a subdirectory.
2132 test ! -d "$ac_dir" && mkdir "$ac_dir"
2135 mv conftest.h $ac_file
2141 cat >> $CONFIG_STATUS <<EOF
2142 ac_sources="$sim_link_files"
2143 ac_dests="$sim_link_links"
2146 cat >> $CONFIG_STATUS <<\EOF
2147 srcdir=$ac_given_srcdir
2148 while test -n "$ac_sources"; do
2149 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2150 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2152 echo "linking $srcdir/$ac_source to $ac_dest"
2154 if test ! -r $srcdir/$ac_source; then
2155 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2159 # Make relative symlinks.
2160 # Remove last slash and all that follows it. Not all systems have dirname.
2161 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2162 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2163 # The dest file is in a subdirectory.
2164 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2165 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2166 # A "../" for each directory in $ac_dest_dir_suffix.
2167 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2169 ac_dest_dir_suffix= ac_dots=
2173 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2174 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2177 # Make a symlink if possible; otherwise try a hard link.
2178 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2179 ln $srcdir/$ac_source $ac_dest; then :
2181 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2185 cat >> $CONFIG_STATUS <<EOF
2188 cat >> $CONFIG_STATUS <<\EOF
2189 case "x$CONFIG_FILES" in
2191 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2192 rm -f Makesim1.tmp Makesim2.tmp Makefile
2193 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2194 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2195 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2196 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2197 <Makefile.sim >Makefile
2198 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2201 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2205 chmod +x $CONFIG_STATUS
2206 rm -fr confdefs* $ac_clean_files
2207 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1