3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-sim-bswap Use Host specific BSWAP instruction."
17 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
19 --enable-sim-debug=opts Enable debugging flags"
21 --enable-sim-stdio Specify whether to use stdio for console input/output."
23 --enable-sim-trace=opts Enable tracing flags"
25 --enable-sim-profile=opts Enable profiling flags"
27 --enable-sim-endian=endian Specify target byte endian orientation."
29 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
31 --enable-sim-hostendain=end Specify host byte endian orientation."
33 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
35 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file
=.
/config.cache
50 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.12"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=Makefile.
in
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
544 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
545 echo "configure:546: checking how to run the C preprocessor" >&5
546 # On Suns, sometimes $CPP names a directory.
547 if test -n "$CPP" && test -d "$CPP"; then
550 if test -z "$CPP"; then
551 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
552 echo $ac_n "(cached) $ac_c" 1>&6
554 # This must be in double quotes, not single quotes, because CPP may get
555 # substituted into the Makefile and "${CC-cc}" will confuse make.
557 # On the NeXT, cc -E runs the code through the compiler's parser,
558 # not just through cpp.
559 cat > conftest.
$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
566 { (eval echo configure
:567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
567 ac_err
=`grep -v '^ *+' conftest.out`
568 if test -z "$ac_err"; then
572 echo "configure: failed program was:" >&5
573 cat conftest.
$ac_ext >&5
575 CPP
="${CC-cc} -E -traditional-cpp"
576 cat > conftest.
$ac_ext <<EOF
577 #line 578 "configure"
578 #include "confdefs.h"
582 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
583 { (eval echo configure
:584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
584 ac_err
=`grep -v '^ *+' conftest.out`
585 if test -z "$ac_err"; then
589 echo "configure: failed program was:" >&5
590 cat conftest.
$ac_ext >&5
597 ac_cv_prog_CPP
="$CPP"
599 CPP
="$ac_cv_prog_CPP"
601 ac_cv_prog_CPP
="$CPP"
603 echo "$ac_t""$CPP" 1>&6
606 # autoconf.info says this should be called right after AC_INIT.
610 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
611 if test -f $ac_dir/install-sh
; then
613 ac_install_sh
="$ac_aux_dir/install-sh -c"
615 elif test -f $ac_dir/install.sh
; then
617 ac_install_sh
="$ac_aux_dir/install.sh -c"
621 if test -z "$ac_aux_dir"; then
622 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
624 ac_config_guess
=$ac_aux_dir/config.guess
625 ac_config_sub
=$ac_aux_dir/config.sub
626 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
629 # Do some error checking and defaulting for the host and target type.
631 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
634 # 1. You are not allowed to specify --host, --target, and nonopt at the
636 # 2. Host defaults to nonopt.
637 # 3. If nonopt is not specified, then host defaults to the current host,
638 # as determined by config.guess.
639 # 4. Target and build default to nonopt.
640 # 5. If nonopt is not specified, then target and build default to host.
642 # The aliases save the names the user supplied, while $host etc.
643 # will get canonicalized.
644 case $host---$target---$nonopt in
645 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
646 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 # Make sure we can run config.sub.
651 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
652 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
655 echo $ac_n "checking host system type""... $ac_c" 1>&6
656 echo "configure:657: checking host system type" >&5
659 case "$host_alias" in
663 if host_alias
=`$ac_config_guess`; then :
664 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
666 *) host_alias
=$nonopt ;;
670 host=`$ac_config_sub $host_alias`
671 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo "$ac_t""$host" 1>&6
676 echo $ac_n "checking target system type""... $ac_c" 1>&6
677 echo "configure:678: checking target system type" >&5
680 case "$target_alias" in
683 NONE
) target_alias
=$host_alias ;;
684 *) target_alias
=$nonopt ;;
688 target
=`$ac_config_sub $target_alias`
689 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$target" 1>&6
694 echo $ac_n "checking build system type""... $ac_c" 1>&6
695 echo "configure:696: checking build system type" >&5
698 case "$build_alias" in
701 NONE
) build_alias
=$host_alias ;;
702 *) build_alias
=$nonopt ;;
706 build
=`$ac_config_sub $build_alias`
707 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$build" 1>&6
712 test "$host_alias" != "$target_alias" &&
713 test "$program_prefix$program_suffix$program_transform_name" = \
715 program_prefix
=${target_alias}-
717 if test "$program_transform_name" = s
,x
,x
,; then
718 program_transform_name
=
720 # Double any \ or $. echo might interpret backslashes.
721 cat <<\EOF_SED
> conftestsed
722 s
,\\,\\\\,g
; s
,\$
,$$
,g
724 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
727 test "$program_prefix" != NONE
&&
728 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
729 # Use a double $ so make ignores it.
730 test "$program_suffix" != NONE
&&
731 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
733 # sed with no file args requires a program.
734 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
736 # Extract the first word of "gcc", so it can be a program name with args.
737 set dummy gcc
; ac_word
=$2
738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739 echo "configure:740: checking for $ac_word" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 if test -n "$CC"; then
744 ac_cv_prog_CC
="$CC" # Let the user override the test.
746 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
747 for ac_dir
in $PATH; do
748 test -z "$ac_dir" && ac_dir
=.
749 if test -f $ac_dir/$ac_word; then
758 if test -n "$CC"; then
759 echo "$ac_t""$CC" 1>&6
761 echo "$ac_t""no" 1>&6
764 if test -z "$CC"; then
765 # Extract the first word of "cc", so it can be a program name with args.
766 set dummy cc
; ac_word
=$2
767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
768 echo "configure:769: checking for $ac_word" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 if test -n "$CC"; then
773 ac_cv_prog_CC
="$CC" # Let the user override the test.
775 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
777 for ac_dir
in $PATH; do
778 test -z "$ac_dir" && ac_dir
=.
779 if test -f $ac_dir/$ac_word; then
780 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
789 if test $ac_prog_rejected = yes; then
790 # We found a bogon in the path, so make sure we never use it.
791 set dummy
$ac_cv_prog_CC
793 if test $# -gt 0; then
794 # We chose a different compiler from the bogus one.
795 # However, it has the same basename, so the bogon will be chosen
796 # first if we set CC to just the basename; use the full file name.
798 set dummy
"$ac_dir/$ac_word" "$@"
806 if test -n "$CC"; then
807 echo "$ac_t""$CC" 1>&6
809 echo "$ac_t""no" 1>&6
812 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp
='$CPP $CPPFLAGS'
821 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling
=$ac_cv_prog_cc_cross
825 cat > conftest.
$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
830 if { (eval echo configure
:831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
831 ac_cv_prog_cc_works
=yes
832 # If we can't run a trivial program, we are probably using a cross compiler.
833 if (.
/conftest
; exit) 2>/dev
/null
; then
834 ac_cv_prog_cc_cross
=no
836 ac_cv_prog_cc_cross
=yes
839 echo "configure: failed program was:" >&5
840 cat conftest.
$ac_ext >&5
841 ac_cv_prog_cc_works
=no
845 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
846 if test $ac_cv_prog_cc_works = no
; then
847 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
849 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
850 echo "configure:851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
851 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
852 cross_compiling
=$ac_cv_prog_cc_cross
854 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
855 echo "configure:856: checking whether we are using GNU C" >&5
856 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 cat > conftest.c
<<EOF
864 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
871 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
873 if test $ac_cv_prog_gcc = yes; then
875 ac_test_CFLAGS
="${CFLAGS+set}"
876 ac_save_CFLAGS
="$CFLAGS"
878 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
879 echo "configure:880: checking whether ${CC-cc} accepts -g" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 echo 'void f(){}' > conftest.c
884 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
893 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
894 if test "$ac_test_CFLAGS" = set; then
895 CFLAGS
="$ac_save_CFLAGS"
896 elif test $ac_cv_prog_cc_g = yes; then
903 test "${CFLAGS+set}" = set || CFLAGS
="-g"
906 # Find a good install program. We prefer a C program (faster),
907 # so one script is as good as another. But avoid the broken or
908 # incompatible versions:
909 # SysV /etc/install, /usr/sbin/install
910 # SunOS /usr/etc/install
913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
915 # ./install, which can be erroneously created by make from ./install.sh.
916 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
917 echo "configure:918: checking for a BSD compatible install" >&5
918 if test -z "$INSTALL"; then
919 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
923 for ac_dir
in $PATH; do
924 # Account for people who put trailing slashes in PATH elements.
926 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
928 # OSF1 and SCO ODT 3.0 have their own names for install.
929 for ac_prog
in ginstall installbsd scoinst
install; do
930 if test -f $ac_dir/$ac_prog; then
931 if test $ac_prog = install &&
932 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
933 # AIX install. It has an incompatible calling convention.
934 # OSF/1 installbsd also uses dspmsg, but is usable.
937 ac_cv_path_install
="$ac_dir/$ac_prog -c"
948 if test "${ac_cv_path_install+set}" = set; then
949 INSTALL
="$ac_cv_path_install"
951 # As a last resort, use the slow shell script. We don't cache a
952 # path for INSTALL within a source directory, because that will
953 # break other packages using the cache if that directory is
954 # removed, or if the path is relative.
955 INSTALL
="$ac_install_sh"
958 echo "$ac_t""$INSTALL" 1>&6
960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
961 # It thinks the first close brace ends the variable substitution.
962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
964 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
967 # Put a plausible default for CC_FOR_BUILD in Makefile.
968 if test "x$cross_compiling" = "xno"; then
979 # Extract the first word of "ranlib", so it can be a program name with args.
980 set dummy ranlib
; ac_word
=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 if test -n "$RANLIB"; then
987 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
989 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
990 for ac_dir
in $PATH; do
991 test -z "$ac_dir" && ac_dir
=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_prog_RANLIB
="ranlib"
998 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1001 RANLIB
="$ac_cv_prog_RANLIB"
1002 if test -n "$RANLIB"; then
1003 echo "$ac_t""$RANLIB" 1>&6
1005 echo "$ac_t""no" 1>&6
1009 # Check for common headers.
1010 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1011 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1012 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h sys
/time.h sys
/resource.h
1014 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1016 echo "configure:1017: checking for $ac_hdr" >&5
1017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 cat > conftest.
$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1025 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1026 { (eval echo configure
:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1027 ac_err
=`grep -v '^ *+' conftest.out`
1028 if test -z "$ac_err"; then
1030 eval "ac_cv_header_$ac_safe=yes"
1033 echo "configure: failed program was:" >&5
1034 cat conftest.
$ac_ext >&5
1036 eval "ac_cv_header_$ac_safe=no"
1040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1041 echo "$ac_t""yes" 1>&6
1042 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1043 cat >> confdefs.h
<<EOF
1044 #define $ac_tr_hdr 1
1048 echo "$ac_t""no" 1>&6
1052 for ac_func
in getrusage
time
1054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_func" >&5
1056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 cat > conftest.
$ac_ext <<EOF
1060 #line 1061 "configure"
1061 #include "confdefs.h"
1062 /* System header to define __stub macros and hopefully few prototypes,
1063 which can conflict with char $ac_func(); below. */
1065 /* Override any gcc2 internal prototype to avoid an error. */
1066 /* We use char because int might match the return type of a gcc2
1067 builtin and then its argument prototype would still apply. */
1072 /* The GNU C library defines this for functions which it implements
1073 to always fail with ENOSYS. Some functions are actually named
1074 something starting with __ and the normal name is an alias. */
1075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1083 if { (eval echo configure
:1084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1085 eval "ac_cv_func_$ac_func=yes"
1087 echo "configure: failed program was:" >&5
1088 cat conftest.
$ac_ext >&5
1090 eval "ac_cv_func_$ac_func=no"
1095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1096 echo "$ac_t""yes" 1>&6
1097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1098 cat >> confdefs.h
<<EOF
1099 #define $ac_tr_func 1
1103 echo "$ac_t""no" 1>&6
1108 .
${srcdir}/..
/..
/bfd
/configure.
host
1112 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1113 if test "${enable_sim_bswap+set}" = set; then
1114 enableval
="$enable_sim_bswap"
1115 case "${enableval}" in
1116 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1117 no
) sim_bswap
="-DWITH_BSWAP=0";;
1118 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1120 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1121 echo "Setting bswap flags = $sim_bswap" 6>&1
1129 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1130 if test "${enable_sim_cflags+set}" = set; then
1131 enableval
="$enable_sim_cflags"
1132 case "${enableval}" in
1133 yes) sim_cflags
="-O2";;
1134 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1136 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1138 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1139 echo "Setting sim cflags = $sim_cflags" 6>&1
1147 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1148 if test "${enable_sim_debug+set}" = set; then
1149 enableval
="$enable_sim_debug"
1150 case "${enableval}" in
1151 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1152 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1153 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1155 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1156 echo "Setting sim debug = $sim_debug" 6>&1
1164 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1165 if test "${enable_sim_stdio+set}" = set; then
1166 enableval
="$enable_sim_stdio"
1167 case "${enableval}" in
1168 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1169 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1170 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1172 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1173 echo "Setting stdio flags = $sim_stdio" 6>&1
1181 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1182 if test "${enable_sim_trace+set}" = set; then
1183 enableval
="$enable_sim_trace"
1184 case "${enableval}" in
1185 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1186 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1188 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1191 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1192 if test x
"$sim_trace" = x
; then
1193 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1195 sim_trace
="${sim_trace}|TRACE_$x"
1198 sim_trace
="$sim_trace)'" ;;
1200 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1201 echo "Setting sim trace = $sim_trace" 6>&1
1209 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1210 if test "${enable_sim_profile+set}" = set; then
1211 enableval
="$enable_sim_profile"
1212 case "${enableval}" in
1213 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1214 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1216 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1219 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1220 if test x
"$sim_profile" = x
; then
1221 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1223 sim_profile
="${sim_profile}|PROFILE_$x"
1226 sim_profile
="$sim_profile)'" ;;
1228 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1229 echo "Setting sim profile = $sim_profile" 6>&1
1237 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1238 echo "configure:1239: checking return type of signal handlers" >&5
1239 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 #include <sys/types.h>
1251 extern "C" void (*signal (int, void (*)(int)))(int);
1253 void (*signal ()) ();
1260 if { (eval echo configure
:1261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1262 ac_cv_type_signal
=void
1264 echo "configure: failed program was:" >&5
1265 cat conftest.
$ac_ext >&5
1267 ac_cv_type_signal
=int
1272 echo "$ac_t""$ac_cv_type_signal" 1>&6
1273 cat >> confdefs.h
<<EOF
1274 #define RETSIGTYPE $ac_cv_type_signal
1283 sim_link_links
=tconfig.h
1284 if test -f ${srcdir}/tconfig.
in
1286 sim_link_files
=tconfig.
in
1288 sim_link_files
=..
/common
/tconfig.
in
1291 # targ-vals.def points to the libc macro description file.
1293 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1295 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1296 sim_link_links
="${sim_link_links} targ-vals.def"
1301 wire_endian
="LITTLE_ENDIAN"
1302 default_endian
="LITTLE_ENDIAN"
1303 default_sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN"
1304 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1305 if test "${enable_sim_endian+set}" = set; then
1306 enableval
="$enable_sim_endian"
1307 case "${enableval}" in
1308 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1309 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1310 yes) if test x
"$wire_endian" != x
; then
1311 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1313 echo "No hard-wired endian for target $target" 1>&6
1314 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
1316 no
) if test x
"$default_endian" != x
; then
1317 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1319 echo "No default endian for target $target" 1>&6
1320 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1322 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1324 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1325 echo "Setting endian flags = $sim_endian" 6>&1
1328 sim_endian
="${default_sim_endian}"
1332 wire_alignment
="NONSTRICT_ALIGNMENT"
1333 default_alignment
="NONSTRICT_ALIGNMENT"
1334 default_sim_alignment
="-DWITH_ALIGNMENT="
1336 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1337 if test "${enable_sim_alignment+set}" = set; then
1338 enableval
="$enable_sim_alignment"
1339 case "${enableval}" in
1340 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1341 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1342 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1343 yes) if test x
"$wire_alignment" != x
; then
1344 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1346 echo "No hard-wired alignment for target $target" 1>&6
1347 sim_alignment
="-DWITH_ALIGNMENT=0"
1349 no
) if test x
"$default_alignment" != x
; then
1350 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1352 echo "No default alignment for target $target" 1>&6
1353 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
1355 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
1357 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
1358 echo "Setting alignment flags = $sim_alignment" 6>&1
1361 sim_alignment
="${default_sim_alignment}"
1366 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1367 if test "${enable_sim_hostendian+set}" = set; then
1368 enableval
="$enable_sim_hostendian"
1369 case "${enableval}" in
1370 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1371 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1372 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1373 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1375 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1376 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1380 if test "x$cross_compiling" = "xno"; then
1381 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1382 echo "configure:1383: checking whether byte ordering is bigendian" >&5
1383 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 ac_cv_c_bigendian
=unknown
1387 # See if sys/param.h defines the BYTE_ORDER macro.
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 #include <sys/types.h>
1392 #include <sys/param.h>
1395 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1400 if { (eval echo configure
:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402 # It does; now see whether it defined to BIG_ENDIAN or not.
1403 cat > conftest.
$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 #include <sys/types.h>
1407 #include <sys/param.h>
1410 #if BYTE_ORDER != BIG_ENDIAN
1415 if { (eval echo configure
:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 ac_cv_c_bigendian
=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.
$ac_ext >&5
1422 ac_cv_c_bigendian
=no
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1430 if test $ac_cv_c_bigendian = unknown
; then
1431 if test "$cross_compiling" = yes; then
1432 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1434 cat > conftest.
$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1438 /* Are we little or big endian? From Harbison&Steele. */
1442 char c[sizeof (long)];
1445 exit (u.c[sizeof (long) - 1] == 1);
1448 if { (eval echo configure
:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1450 ac_cv_c_bigendian
=no
1452 echo "configure: failed program was:" >&5
1453 cat conftest.
$ac_ext >&5
1455 ac_cv_c_bigendian
=yes
1463 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1464 if test $ac_cv_c_bigendian = yes; then
1465 cat >> confdefs.h
<<\EOF
1466 #define WORDS_BIGENDIAN 1
1471 if test $ac_cv_c_bigendian = yes; then
1472 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1474 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1477 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1483 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1484 if test "${enable_sim_warnings+set}" = set; then
1485 enableval
="$enable_sim_warnings"
1486 case "${enableval}" in
1487 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1488 no
) sim_warnings
="-w";;
1489 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1491 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
1492 echo "Setting warning flags = $sim_warnings" 6>&1
1500 default_sim_reserved_bits
="1"
1501 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1502 if test "${enable_sim_reserved_bits+set}" = set; then
1503 enableval
="$enable_sim_reserved_bits"
1504 case "${enableval}" in
1505 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
1506 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
1507 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
1509 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
1510 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
1513 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
1518 for ac_func
in time chmod utime fork execve execv chown
1520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_func" >&5
1522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 /* System header to define __stub macros and hopefully few prototypes,
1529 which can conflict with char $ac_func(); below. */
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1538 /* The GNU C library defines this for functions which it implements
1539 to always fail with ENOSYS. Some functions are actually named
1540 something starting with __ and the normal name is an alias. */
1541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1549 if { (eval echo configure
:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1551 eval "ac_cv_func_$ac_func=yes"
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 eval "ac_cv_func_$ac_func=no"
1561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1562 echo "$ac_t""yes" 1>&6
1563 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1564 cat >> confdefs.h
<<EOF
1565 #define $ac_tr_func 1
1569 echo "$ac_t""no" 1>&6
1573 for ac_hdr
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
1575 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_hdr" >&5
1578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure
:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err
=`grep -v '^ *+' conftest.out`
1589 if test -z "$ac_err"; then
1591 eval "ac_cv_header_$ac_safe=yes"
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1597 eval "ac_cv_header_$ac_safe=no"
1601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1602 echo "$ac_t""yes" 1>&6
1603 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1604 cat >> confdefs.h
<<EOF
1605 #define $ac_tr_hdr 1
1609 echo "$ac_t""no" 1>&6
1617 cat > confcache
<<\EOF
1618 # This file is a shell script that caches the results of configure
1619 # tests run on this system so they can be shared between configure
1620 # scripts and configure runs. It is not useful on other systems.
1621 # If it contains results you don't want to keep, you may remove or edit it.
1623 # By default, configure uses ./config.cache as the cache file,
1624 # creating it if it does not exist already. You can give configure
1625 # the --cache-file=FILE option to use a different cache file; that is
1626 # what configure does when it calls configure scripts in
1627 # subdirectories, so they share the cache.
1628 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1629 # config.status only pays attention to the cache file if you give it the
1630 # --recheck option to rerun configure.
1633 # The following way of writing the cache mishandles newlines in values,
1634 # but we know of no workaround that is simple, portable, and efficient.
1635 # So, don't put newlines in cache variables' values.
1636 # Ultrix sh set writes to stderr and can't be redirected directly,
1637 # and sets the high bit in the cache file unless we assign to the vars.
1639 case `(ac_space=' '; set) 2>&1` in
1641 # `set' does not quote correctly, so add quotes (double-quote substitution
1642 # turns \\\\ into \\, and sed turns \\ into \).
1644 -e "s/'/'\\\\''/g" \
1645 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1648 # `set' quotes correctly as required by POSIX, so do not add quotes.
1649 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1652 if cmp -s $cache_file confcache
; then
1655 if test -w $cache_file; then
1656 echo "updating cache $cache_file"
1657 cat confcache
> $cache_file
1659 echo "not updating unwritable cache $cache_file"
1664 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1666 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1667 # Let make expand exec_prefix.
1668 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1670 # Any assignment to VPATH causes Sun make to only execute
1671 # the first set of double-colon rules, so remove it if not needed.
1672 # If there is a colon in the path, we need to keep it.
1673 if test "x$srcdir" = x.
; then
1674 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1677 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1679 DEFS
=-DHAVE_CONFIG_H
1681 # Without the "./", some shells look in PATH for config.status.
1682 : ${CONFIG_STATUS=./config.status}
1684 echo creating
$CONFIG_STATUS
1685 rm -f $CONFIG_STATUS
1686 cat > $CONFIG_STATUS <<EOF
1688 # Generated automatically by configure.
1689 # Run this file to recreate the current configuration.
1690 # This directory was configured as follows,
1691 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1693 # $0 $ac_configure_args
1695 # Compiler output produced by configure, useful for debugging
1696 # configure, is in ./config.log if it exists.
1698 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1701 case "\$ac_option" in
1702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1703 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1704 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1705 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1706 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1708 -help | --help | --hel | --he | --h)
1709 echo "\$ac_cs_usage"; exit 0 ;;
1710 *) echo "\$ac_cs_usage"; exit 1 ;;
1714 ac_given_srcdir=$srcdir
1715 ac_given_INSTALL="$INSTALL"
1717 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
1719 cat >> $CONFIG_STATUS <<EOF
1721 # Protect against being on the right side of a sed subst in config.status.
1722 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1723 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1726 s%@CFLAGS@%$CFLAGS%g
1727 s%@CPPFLAGS@%$CPPFLAGS%g
1728 s%@CXXFLAGS@%$CXXFLAGS%g
1730 s%@LDFLAGS@%$LDFLAGS%g
1732 s%@exec_prefix@%$exec_prefix%g
1733 s%@prefix@%$prefix%g
1734 s%@program_transform_name@%$program_transform_name%g
1735 s%@bindir@%$bindir%g
1736 s%@sbindir@%$sbindir%g
1737 s%@libexecdir@%$libexecdir%g
1738 s%@datadir@%$datadir%g
1739 s%@sysconfdir@%$sysconfdir%g
1740 s%@sharedstatedir@%$sharedstatedir%g
1741 s%@localstatedir@%$localstatedir%g
1742 s%@libdir@%$libdir%g
1743 s%@includedir@%$includedir%g
1744 s%@oldincludedir@%$oldincludedir%g
1745 s%@infodir@%$infodir%g
1746 s%@mandir@%$mandir%g
1748 s%@host_alias@%$host_alias%g
1749 s%@host_cpu@%$host_cpu%g
1750 s%@host_vendor@%$host_vendor%g
1751 s%@host_os@%$host_os%g
1752 s%@target@%$target%g
1753 s%@target_alias@%$target_alias%g
1754 s%@target_cpu@%$target_cpu%g
1755 s%@target_vendor@%$target_vendor%g
1756 s%@target_os@%$target_os%g
1758 s%@build_alias@%$build_alias%g
1759 s%@build_cpu@%$build_cpu%g
1760 s%@build_vendor@%$build_vendor%g
1761 s%@build_os@%$build_os%g
1763 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1764 s%@INSTALL_DATA@%$INSTALL_DATA%g
1765 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1766 s%@HDEFINES@%$HDEFINES%g
1768 s%@RANLIB@%$RANLIB%g
1770 s%@sim_bswap@%$sim_bswap%g
1771 s%@sim_cflags@%$sim_cflags%g
1772 s%@sim_debug@%$sim_debug%g
1773 s%@sim_stdio@%$sim_stdio%g
1774 s%@sim_trace@%$sim_trace%g
1775 s%@sim_profile@%$sim_profile%g
1776 s%@sim_endian@%$sim_endian%g
1777 s%@sim_alignment@%$sim_alignment%g
1778 s%@sim_hostendian@%$sim_hostendian%g
1779 s%@sim_warnings@%$sim_warnings%g
1780 s%@sim_reserved_bits@%$sim_reserved_bits%g
1785 cat >> $CONFIG_STATUS <<\EOF
1787 # Split the substitutions into bite-sized pieces for seds with
1788 # small command number limits, like on Digital OSF/1 and HP-UX.
1789 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1790 ac_file
=1 # Number of current file.
1791 ac_beg
=1 # First line for current file.
1792 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1795 while $ac_more_lines; do
1796 if test $ac_beg -gt 1; then
1797 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1799 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1801 if test ! -s conftest.s
$ac_file; then
1803 rm -f conftest.s
$ac_file
1805 if test -z "$ac_sed_cmds"; then
1806 ac_sed_cmds
="sed -f conftest.s$ac_file"
1808 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1810 ac_file
=`expr $ac_file + 1`
1812 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1815 if test -z "$ac_sed_cmds"; then
1820 cat >> $CONFIG_STATUS <<EOF
1822 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
1824 cat >> $CONFIG_STATUS <<\EOF
1825 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1828 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1829 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1830 *) ac_file_in
="${ac_file}.in" ;;
1833 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1835 # Remove last slash and all that follows it. Not all systems have dirname.
1836 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1837 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1838 # The file is in a subdirectory.
1839 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1840 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1841 # A "../" for each directory in $ac_dir_suffix.
1842 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1844 ac_dir_suffix
= ac_dots
=
1847 case "$ac_given_srcdir" in
1849 if test -z "$ac_dots"; then top_srcdir
=.
1850 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1851 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1853 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1854 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1857 case "$ac_given_INSTALL" in
1858 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1859 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1862 echo creating
"$ac_file"
1864 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1866 *Makefile
*) ac_comsub
="1i\\
1867 # $configure_input" ;;
1871 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1873 s%@configure_input@%$configure_input%g
1874 s%@srcdir@%$srcdir%g
1875 s%@top_srcdir@%$top_srcdir%g
1876 s%@INSTALL@%$INSTALL%g
1877 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1881 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1882 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1884 # ac_d sets the value in "#define NAME VALUE" lines.
1885 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1886 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1889 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1890 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1891 ac_uB
='\([ ]\)%\1#\2define\3'
1894 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1895 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1896 ac_eB
='$%\1#\2define\3'
1900 if test "${CONFIG_HEADERS+set}" != set; then
1902 cat >> $CONFIG_STATUS <<EOF
1903 CONFIG_HEADERS="config.h:config.in"
1905 cat >> $CONFIG_STATUS <<\EOF
1907 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1910 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1911 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1912 *) ac_file_in
="${ac_file}.in" ;;
1915 echo creating
$ac_file
1917 rm -f conftest.frag conftest.
in conftest.out
1918 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1919 cat $ac_file_inputs > conftest.
in
1923 # Transform confdefs.h into a sed script conftest.vals that substitutes
1924 # the proper values into config.h.in to produce config.h. And first:
1925 # Protect against being on the right side of a sed subst in config.status.
1926 # Protect against being in an unquoted here document in config.status.
1928 cat > conftest.hdr
<<\EOF
1931 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1935 sed -n -f conftest.hdr confdefs.h > conftest.vals
1938 # This sed command replaces #undef with comments. This is necessary, for
1939 # example, in the case of _POSIX_SOURCE, which is predefined and required
1940 # on some systems where configure will not decide to define it.
1941 cat >> conftest.vals <<\EOF
1942 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1945 # Break up conftest.vals because some shells have a limit on
1946 # the size of here documents, and old seds have small limits too.
1951 ac_lines=`grep -c . conftest.vals
`
1952 # grep -c gives empty output for an empty file on some AIX systems.
1953 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1954 # Write a limited-size here document to conftest.frag.
1955 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1956 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1958 sed -f conftest.frag conftest.in > conftest.out
1960 mv conftest.out conftest.in
1962 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1964 mv conftest.tail conftest.vals
1968 cat >> $CONFIG_STATUS <<\EOF
1969 rm -f conftest.frag conftest.h
1970 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1971 cat conftest.in >> conftest.h
1973 if cmp -s $ac_file conftest.h 2>/dev/null; then
1974 echo "$ac_file is unchanged"
1977 # Remove last slash and all that follows it. Not all systems have dirname.
1978 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1980 # The file is in a subdirectory.
1981 test ! -d "$ac_dir" && mkdir "$ac_dir"
1984 mv conftest.h $ac_file
1990 cat >> $CONFIG_STATUS <<EOF
1991 ac_sources="$sim_link_files"
1992 ac_dests="$sim_link_links"
1995 cat >> $CONFIG_STATUS <<\EOF
1996 srcdir=$ac_given_srcdir
1997 while test -n "$ac_sources"; do
1998 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1999 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2001 echo "linking $srcdir/$ac_source to $ac_dest"
2003 if test ! -r $srcdir/$ac_source; then
2004 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2008 # Make relative symlinks.
2009 # Remove last slash and all that follows it. Not all systems have dirname.
2010 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2011 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2012 # The dest file is in a subdirectory.
2013 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2014 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2015 # A "../" for each directory in $ac_dest_dir_suffix.
2016 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2018 ac_dest_dir_suffix= ac_dots=
2022 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2023 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2026 # Make a symlink if possible; otherwise try a hard link.
2027 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2028 ln $srcdir/$ac_source $ac_dest; then :
2030 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2034 cat >> $CONFIG_STATUS <<EOF
2037 cat >> $CONFIG_STATUS <<\EOF
2038 case "x$CONFIG_FILES" in
2040 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2041 rm -f Makesim1.tmp Makesim2.tmp Makefile
2042 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2043 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2044 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2045 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2046 <Makefile.sim >Makefile
2047 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2050 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2054 chmod +x $CONFIG_STATUS
2055 rm -fr confdefs* $ac_clean_files
2056 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1