3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file
=.
/config.cache
40 program_transform_name
=s
,x
,x
,
48 bindir
='${exec_prefix}/bin'
49 sbindir
='${exec_prefix}/sbin'
50 libexecdir
='${exec_prefix}/libexec'
51 datadir
='${prefix}/share'
52 sysconfdir
='${prefix}/etc'
53 sharedstatedir
='${prefix}/com'
54 localstatedir
='${prefix}/var'
55 libdir
='${exec_prefix}/lib'
56 includedir
='${prefix}/include'
57 oldincludedir
='/usr/include'
58 infodir
='${prefix}/info'
59 mandir
='${prefix}/man'
61 # Initialize some other variables.
64 # Maximum number of lines to put in a shell here document.
71 # If the previous option needs an argument, assign it.
72 if test -n "$ac_prev"; then
73 eval "$ac_prev=\$ac_option"
79 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 # Accept the important Cygnus configure options, so we can diagnose typos.
87 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
89 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
90 bindir
="$ac_optarg" ;;
92 -build |
--build |
--buil |
--bui |
--bu)
94 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
97 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
98 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
100 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
101 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
102 cache_file
="$ac_optarg" ;;
104 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
106 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
108 datadir
="$ac_optarg" ;;
110 -disable-* |
--disable-*)
111 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
117 eval "enable_${ac_feature}=no" ;;
119 -enable-* |
--enable-*)
120 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}='$ac_optarg'" ;;
132 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
133 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
134 |
--exec |
--exe |
--ex)
135 ac_prev
=exec_prefix
;;
136 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
137 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
138 |
--exec=* |
--exe=* |
--ex=*)
139 exec_prefix
="$ac_optarg" ;;
141 -gas |
--gas |
--ga |
--g)
142 # Obsolete; use --with-gas.
145 -help |
--help |
--hel |
--he)
146 # Omit some internal or obsolete options to make the list less imposing.
147 # This message is too long to be a string in the A/UX 3.1 sh.
149 Usage: configure [options] [host]
150 Options: [defaults in brackets after descriptions]
152 --cache-file=FILE cache test results in FILE
153 --help print this message
154 --no-create do not create output files
155 --quiet, --silent do not print \`checking...' messages
156 --version print the version of autoconf that created configure
157 Directory and file names:
158 --prefix=PREFIX install architecture-independent files in PREFIX
160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 --bindir=DIR user executables in DIR [EPREFIX/bin]
163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
165 --datadir=DIR read-only architecture-independent data in DIR
167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
168 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
171 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
172 --includedir=DIR C header files in DIR [PREFIX/include]
173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
174 --infodir=DIR info documentation in DIR [PREFIX/info]
175 --mandir=DIR man documentation in DIR [PREFIX/man]
176 --srcdir=DIR find the sources in DIR [configure dir or ..]
177 --program-prefix=PREFIX prepend PREFIX to installed program names
178 --program-suffix=SUFFIX append SUFFIX to installed program names
179 --program-transform-name=PROGRAM
180 run sed PROGRAM on installed program names
184 --build=BUILD configure for building on BUILD [BUILD=HOST]
185 --host=HOST configure for HOST [guessed]
186 --target=TARGET configure for TARGET [TARGET=HOST]
187 Features and packages:
188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
192 --x-includes=DIR X include files are in DIR
193 --x-libraries=DIR X library files are in DIR
195 if test -n "$ac_help"; then
196 echo "--enable and --with options recognized:$ac_help"
200 -host |
--host |
--hos |
--ho)
202 -host=* |
--host=* |
--hos=* |
--ho=*)
205 -includedir |
--includedir |
--includedi |
--included |
--include \
206 |
--includ |
--inclu |
--incl |
--inc)
207 ac_prev
=includedir
;;
208 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
209 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
210 includedir
="$ac_optarg" ;;
212 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
214 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
215 infodir
="$ac_optarg" ;;
217 -libdir |
--libdir |
--libdi |
--libd)
219 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
220 libdir
="$ac_optarg" ;;
222 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
223 |
--libexe |
--libex |
--libe)
224 ac_prev
=libexecdir
;;
225 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
226 |
--libexe=* |
--libex=* |
--libe=*)
227 libexecdir
="$ac_optarg" ;;
229 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
230 |
--localstate |
--localstat |
--localsta |
--localst \
231 |
--locals |
--local |
--loca |
--loc |
--lo)
232 ac_prev
=localstatedir
;;
233 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
234 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
235 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
236 localstatedir
="$ac_optarg" ;;
238 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
240 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
241 mandir
="$ac_optarg" ;;
244 # Obsolete; use --without-fp.
247 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
251 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
252 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
255 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
256 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
257 |
--oldin |
--oldi |
--old |
--ol |
--o)
258 ac_prev
=oldincludedir
;;
259 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
260 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
261 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
262 oldincludedir
="$ac_optarg" ;;
264 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
266 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
267 prefix
="$ac_optarg" ;;
269 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
270 |
--program-pre |
--program-pr |
--program-p)
271 ac_prev
=program_prefix
;;
272 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
273 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
274 program_prefix
="$ac_optarg" ;;
276 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
277 |
--program-suf |
--program-su |
--program-s)
278 ac_prev
=program_suffix
;;
279 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
280 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
281 program_suffix
="$ac_optarg" ;;
283 -program-transform-name |
--program-transform-name \
284 |
--program-transform-nam |
--program-transform-na \
285 |
--program-transform-n |
--program-transform- \
286 |
--program-transform |
--program-transfor \
287 |
--program-transfo |
--program-transf \
288 |
--program-trans |
--program-tran \
289 |
--progr-tra |
--program-tr |
--program-t)
290 ac_prev
=program_transform_name
;;
291 -program-transform-name=* |
--program-transform-name=* \
292 |
--program-transform-nam=* |
--program-transform-na=* \
293 |
--program-transform-n=* |
--program-transform-=* \
294 |
--program-transform=* |
--program-transfor=* \
295 |
--program-transfo=* |
--program-transf=* \
296 |
--program-trans=* |
--program-tran=* \
297 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
298 program_transform_name
="$ac_optarg" ;;
300 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
301 |
-silent |
--silent |
--silen |
--sile |
--sil)
304 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
306 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
308 sbindir
="$ac_optarg" ;;
310 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
311 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
312 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
314 ac_prev
=sharedstatedir
;;
315 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
316 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
317 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
319 sharedstatedir
="$ac_optarg" ;;
321 -site |
--site |
--sit)
323 -site=* |
--site=* |
--sit=*)
326 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
328 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
329 srcdir
="$ac_optarg" ;;
331 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
332 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
333 ac_prev
=sysconfdir
;;
334 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
335 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
336 sysconfdir
="$ac_optarg" ;;
338 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
340 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
341 target
="$ac_optarg" ;;
343 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
346 -version |
--version |
--versio |
--versi |
--vers)
347 echo "configure generated by autoconf version 2.12.1"
351 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 ac_package
=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}='$ac_optarg'" ;;
363 -without-* |
--without-*)
364 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package
=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}=no" ;;
373 # Obsolete; use --with-x.
376 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
377 |
--x-incl |
--x-inc |
--x-in |
--x-i)
378 ac_prev
=x_includes
;;
379 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
380 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
381 x_includes
="$ac_optarg" ;;
383 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
384 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
385 ac_prev
=x_libraries
;;
386 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
387 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
388 x_libraries
="$ac_optarg" ;;
390 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395 echo "configure: warning: $ac_option: invalid host type" 1>&2
397 if test "x$nonopt" != xNONE
; then
398 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 if test -n "$ac_prev"; then
407 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412 # File descriptor usage:
415 # 2 errors and warnings
416 # 3 some systems may open it to /dev/tty
417 # 4 used on the Kubota Titan
418 # 6 checking for... messages and results
419 # 5 compiler messages saved in config.log
420 if test "$silent" = yes; then
428 This file contains any messages produced by compilers while
429 running configure, to aid debugging if configure makes a mistake.
432 # Strip out --no-create and --no-recursion so they do not pile up.
433 # Also quote any args containing shell metacharacters.
438 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
439 |
--no-cr |
--no-c) ;;
440 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
441 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
442 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
444 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
449 # Only set these to C if already set. These must not be set unconditionally
450 # because not all systems understand e.g. LANG=C (notably SCO).
451 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452 # Non-C LC_CTYPE values break the ctype check.
453 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
454 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
455 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
456 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest
* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
465 ac_unique_file
=Makefile.
in
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469 ac_srcdir_defaulted
=yes
470 # Try the directory containing this script, then its parent.
472 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
475 if test ! -r $srcdir/$ac_unique_file; then
479 ac_srcdir_defaulted
=no
481 if test ! -r $srcdir/$ac_unique_file; then
482 if test "$ac_srcdir_defaulted" = yes; then
483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492 if test "x$prefix" != xNONE
; then
493 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
495 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 for ac_site_file
in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
505 if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
509 echo "creating cache $cache_file"
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp
='$CPP $CPPFLAGS'
516 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 cross_compiling
=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
529 ac_n
= ac_c
='\c' ac_t
=
534 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
535 echo "configure:536: checking how to run the C preprocessor" >&5
536 # On Suns, sometimes $CPP names a directory.
537 if test -n "$CPP" && test -d "$CPP"; then
540 if test -z "$CPP"; then
541 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
542 echo $ac_n "(cached) $ac_c" 1>&6
544 # This must be in double quotes, not single quotes, because CPP may get
545 # substituted into the Makefile and "${CC-cc}" will confuse make.
547 # On the NeXT, cc -E runs the code through the compiler's parser,
548 # not just through cpp.
549 cat > conftest.
$ac_ext <<EOF
550 #line 551 "configure"
551 #include "confdefs.h"
555 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
556 { (eval echo configure
:557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
557 ac_err
=`grep -v '^ *+' conftest.out`
558 if test -z "$ac_err"; then
562 echo "configure: failed program was:" >&5
563 cat conftest.
$ac_ext >&5
565 CPP
="${CC-cc} -E -traditional-cpp"
566 cat > conftest.
$ac_ext <<EOF
567 #line 568 "configure"
568 #include "confdefs.h"
572 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
573 { (eval echo configure
:574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
574 ac_err
=`grep -v '^ *+' conftest.out`
575 if test -z "$ac_err"; then
579 echo "configure: failed program was:" >&5
580 cat conftest.
$ac_ext >&5
587 ac_cv_prog_CPP
="$CPP"
589 CPP
="$ac_cv_prog_CPP"
591 ac_cv_prog_CPP
="$CPP"
593 echo "$ac_t""$CPP" 1>&6
596 # autoconf.info says this should be called right after AC_INIT.
600 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
601 if test -f $ac_dir/install-sh
; then
603 ac_install_sh
="$ac_aux_dir/install-sh -c"
605 elif test -f $ac_dir/install.sh
; then
607 ac_install_sh
="$ac_aux_dir/install.sh -c"
611 if test -z "$ac_aux_dir"; then
612 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
614 ac_config_guess
=$ac_aux_dir/config.guess
615 ac_config_sub
=$ac_aux_dir/config.sub
616 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
619 # Do some error checking and defaulting for the host and target type.
621 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
624 # 1. You are not allowed to specify --host, --target, and nonopt at the
626 # 2. Host defaults to nonopt.
627 # 3. If nonopt is not specified, then host defaults to the current host,
628 # as determined by config.guess.
629 # 4. Target and build default to nonopt.
630 # 5. If nonopt is not specified, then target and build default to host.
632 # The aliases save the names the user supplied, while $host etc.
633 # will get canonicalized.
634 case $host---$target---$nonopt in
635 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
636 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
640 # Make sure we can run config.sub.
641 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
642 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
645 echo $ac_n "checking host system type""... $ac_c" 1>&6
646 echo "configure:647: checking host system type" >&5
649 case "$host_alias" in
653 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
654 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656 *) host_alias
=$nonopt ;;
660 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
661 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$host" 1>&6
666 echo $ac_n "checking target system type""... $ac_c" 1>&6
667 echo "configure:668: checking target system type" >&5
670 case "$target_alias" in
673 NONE
) target_alias
=$host_alias ;;
674 *) target_alias
=$nonopt ;;
678 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
679 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682 echo "$ac_t""$target" 1>&6
684 echo $ac_n "checking build system type""... $ac_c" 1>&6
685 echo "configure:686: checking build system type" >&5
688 case "$build_alias" in
691 NONE
) build_alias
=$host_alias ;;
692 *) build_alias
=$nonopt ;;
696 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
697 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$build" 1>&6
702 test "$host_alias" != "$target_alias" &&
703 test "$program_prefix$program_suffix$program_transform_name" = \
705 program_prefix
=${target_alias}-
707 if test "$program_transform_name" = s
,x
,x
,; then
708 program_transform_name
=
710 # Double any \ or $. echo might interpret backslashes.
711 cat <<\EOF_SED
> conftestsed
712 s
,\\,\\\\,g
; s
,\$
,$$
,g
714 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
717 test "$program_prefix" != NONE
&&
718 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
719 # Use a double $ so make ignores it.
720 test "$program_suffix" != NONE
&&
721 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
723 # sed with no file args requires a program.
724 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
726 # Extract the first word of "gcc", so it can be a program name with args.
727 set dummy gcc
; ac_word
=$2
728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729 echo "configure:730: checking for $ac_word" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 if test -n "$CC"; then
734 ac_cv_prog_CC
="$CC" # Let the user override the test.
736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
737 for ac_dir
in $PATH; do
738 test -z "$ac_dir" && ac_dir
=.
739 if test -f $ac_dir/$ac_word; then
748 if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
751 echo "$ac_t""no" 1>&6
754 if test -z "$CC"; then
755 # Extract the first word of "cc", so it can be a program name with args.
756 set dummy cc
; ac_word
=$2
757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
758 echo "configure:759: checking for $ac_word" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 if test -n "$CC"; then
763 ac_cv_prog_CC
="$CC" # Let the user override the test.
765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
767 for ac_dir
in $PATH; do
768 test -z "$ac_dir" && ac_dir
=.
769 if test -f $ac_dir/$ac_word; then
770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
779 if test $ac_prog_rejected = yes; then
780 # We found a bogon in the path, so make sure we never use it.
781 set dummy
$ac_cv_prog_CC
783 if test $# -gt 0; then
784 # We chose a different compiler from the bogus one.
785 # However, it has the same basename, so the bogon will be chosen
786 # first if we set CC to just the basename; use the full file name.
788 set dummy
"$ac_dir/$ac_word" "$@"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
799 echo "$ac_t""no" 1>&6
802 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
805 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
806 echo "configure:807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp
='$CPP $CPPFLAGS'
811 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling
=$ac_cv_prog_cc_cross
815 cat > conftest.
$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
820 if { (eval echo configure
:821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
821 ac_cv_prog_cc_works
=yes
822 # If we can't run a trivial program, we are probably using a cross compiler.
823 if (.
/conftest
; exit) 2>/dev
/null
; then
824 ac_cv_prog_cc_cross
=no
826 ac_cv_prog_cc_cross
=yes
829 echo "configure: failed program was:" >&5
830 cat conftest.
$ac_ext >&5
831 ac_cv_prog_cc_works
=no
835 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
836 if test $ac_cv_prog_cc_works = no
; then
837 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
841 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
842 cross_compiling
=$ac_cv_prog_cc_cross
844 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
845 echo "configure:846: checking whether we are using GNU C" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 cat > conftest.c
<<EOF
854 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
861 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
863 if test $ac_cv_prog_gcc = yes; then
865 ac_test_CFLAGS
="${CFLAGS+set}"
866 ac_save_CFLAGS
="$CFLAGS"
868 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
869 echo "configure:870: checking whether ${CC-cc} accepts -g" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 echo 'void f(){}' > conftest.c
874 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
883 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
884 if test "$ac_test_CFLAGS" = set; then
885 CFLAGS
="$ac_save_CFLAGS"
886 elif test $ac_cv_prog_cc_g = yes; then
893 test "${CFLAGS+set}" = set || CFLAGS
="-g"
896 # Find a good install program. We prefer a C program (faster),
897 # so one script is as good as another. But avoid the broken or
898 # incompatible versions:
899 # SysV /etc/install, /usr/sbin/install
900 # SunOS /usr/etc/install
903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
905 # ./install, which can be erroneously created by make from ./install.sh.
906 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
907 echo "configure:908: checking for a BSD compatible install" >&5
908 if test -z "$INSTALL"; then
909 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
913 for ac_dir
in $PATH; do
914 # Account for people who put trailing slashes in PATH elements.
916 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
918 # OSF1 and SCO ODT 3.0 have their own names for install.
919 for ac_prog
in ginstall installbsd scoinst
install; do
920 if test -f $ac_dir/$ac_prog; then
921 if test $ac_prog = install &&
922 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
923 # AIX install. It has an incompatible calling convention.
924 # OSF/1 installbsd also uses dspmsg, but is usable.
927 ac_cv_path_install
="$ac_dir/$ac_prog -c"
938 if test "${ac_cv_path_install+set}" = set; then
939 INSTALL
="$ac_cv_path_install"
941 # As a last resort, use the slow shell script. We don't cache a
942 # path for INSTALL within a source directory, because that will
943 # break other packages using the cache if that directory is
944 # removed, or if the path is relative.
945 INSTALL
="$ac_install_sh"
948 echo "$ac_t""$INSTALL" 1>&6
950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
951 # It thinks the first close brace ends the variable substitution.
952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
954 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
957 # Put a plausible default for CC_FOR_BUILD in Makefile.
958 if test "x$cross_compiling" = "xno"; then
969 # Extract the first word of "ranlib", so it can be a program name with args.
970 set dummy ranlib
; ac_word
=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$RANLIB"; then
977 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
980 for ac_dir
in $PATH; do
981 test -z "$ac_dir" && ac_dir
=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_RANLIB
="ranlib"
988 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
991 RANLIB
="$ac_cv_prog_RANLIB"
992 if test -n "$RANLIB"; then
993 echo "$ac_t""$RANLIB" 1>&6
995 echo "$ac_t""no" 1>&6
999 # Check for common headers.
1000 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1001 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1002 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h sys
/time.h sys
/resource.h
1004 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_hdr" >&5
1007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 cat > conftest.
$ac_ext <<EOF
1011 #line 1012 "configure"
1012 #include "confdefs.h"
1015 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1016 { (eval echo configure
:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1017 ac_err
=`grep -v '^ *+' conftest.out`
1018 if test -z "$ac_err"; then
1020 eval "ac_cv_header_$ac_safe=yes"
1023 echo "configure: failed program was:" >&5
1024 cat conftest.
$ac_ext >&5
1026 eval "ac_cv_header_$ac_safe=no"
1030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1031 echo "$ac_t""yes" 1>&6
1032 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1033 cat >> confdefs.h
<<EOF
1034 #define $ac_tr_hdr 1
1038 echo "$ac_t""no" 1>&6
1042 for ac_func
in getrusage
time
1044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1045 echo "configure:1046: checking for $ac_func" >&5
1046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 /* System header to define __stub macros and hopefully few prototypes,
1053 which can conflict with char $ac_func(); below. */
1055 /* Override any gcc2 internal prototype to avoid an error. */
1056 /* We use char because int might match the return type of a gcc2
1057 builtin and then its argument prototype would still apply. */
1062 /* The GNU C library defines this for functions which it implements
1063 to always fail with ENOSYS. Some functions are actually named
1064 something starting with __ and the normal name is an alias. */
1065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1073 if { (eval echo configure
:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1075 eval "ac_cv_func_$ac_func=yes"
1077 echo "configure: failed program was:" >&5
1078 cat conftest.
$ac_ext >&5
1080 eval "ac_cv_func_$ac_func=no"
1085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1086 echo "$ac_t""yes" 1>&6
1087 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1088 cat >> confdefs.h
<<EOF
1089 #define $ac_tr_func 1
1093 echo "$ac_t""no" 1>&6
1098 .
${srcdir}/..
/..
/bfd
/configure.
host
1102 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1103 if test "${enable_sim_bswap+set}" = set; then
1104 enableval
="$enable_sim_bswap"
1105 case "${enableval}" in
1106 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1107 no
) sim_bswap
="-DWITH_BSWAP=0";;
1108 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1110 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1111 echo "Setting bswap flags = $sim_bswap" 6>&1
1119 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1120 if test "${enable_sim_cflags+set}" = set; then
1121 enableval
="$enable_sim_cflags"
1122 case "${enableval}" in
1123 yes) sim_cflags
="-O2";;
1124 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1126 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1128 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1129 echo "Setting sim cflags = $sim_cflags" 6>&1
1137 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1138 if test "${enable_sim_debug+set}" = set; then
1139 enableval
="$enable_sim_debug"
1140 case "${enableval}" in
1141 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1142 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1143 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1145 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1146 echo "Setting sim debug = $sim_debug" 6>&1
1154 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1155 if test "${enable_sim_stdio+set}" = set; then
1156 enableval
="$enable_sim_stdio"
1157 case "${enableval}" in
1158 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1159 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1160 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1162 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1163 echo "Setting stdio flags = $sim_stdio" 6>&1
1171 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1172 if test "${enable_sim_trace+set}" = set; then
1173 enableval
="$enable_sim_trace"
1174 case "${enableval}" in
1175 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1176 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1178 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1181 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1182 if test x
"$sim_trace" = x
; then
1183 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1185 sim_trace
="${sim_trace}|TRACE_$x"
1188 sim_trace
="$sim_trace)'" ;;
1190 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1191 echo "Setting sim trace = $sim_trace" 6>&1
1199 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1200 if test "${enable_sim_profile+set}" = set; then
1201 enableval
="$enable_sim_profile"
1202 case "${enableval}" in
1203 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1204 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1206 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1209 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1210 if test x
"$sim_profile" = x
; then
1211 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1213 sim_profile
="${sim_profile}|PROFILE_$x"
1216 sim_profile
="$sim_profile)'" ;;
1218 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1219 echo "Setting sim profile = $sim_profile" 6>&1
1227 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1228 echo "configure:1229: checking return type of signal handlers" >&5
1229 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftest.
$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1235 #include <sys/types.h>
1241 extern "C" void (*signal (int, void (*)(int)))(int);
1243 void (*signal ()) ();
1250 if { (eval echo configure
:1251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1252 ac_cv_type_signal
=void
1254 echo "configure: failed program was:" >&5
1255 cat conftest.
$ac_ext >&5
1257 ac_cv_type_signal
=int
1262 echo "$ac_t""$ac_cv_type_signal" 1>&6
1263 cat >> confdefs.h
<<EOF
1264 #define RETSIGTYPE $ac_cv_type_signal
1273 sim_link_links
=tconfig.h
1274 if test -f ${srcdir}/tconfig.
in
1276 sim_link_files
=tconfig.
in
1278 sim_link_files
=..
/common
/tconfig.
in
1281 # targ-vals.def points to the libc macro description file.
1283 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1285 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1286 sim_link_links
="${sim_link_links} targ-vals.def"
1290 for ac_hdr
in unistd.h
1292 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_hdr" >&5
1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.
$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1303 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1304 { (eval echo configure
:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1305 ac_err
=`grep -v '^ *+' conftest.out`
1306 if test -z "$ac_err"; then
1308 eval "ac_cv_header_$ac_safe=yes"
1311 echo "configure: failed program was:" >&5
1312 cat conftest.
$ac_ext >&5
1314 eval "ac_cv_header_$ac_safe=no"
1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1319 echo "$ac_t""yes" 1>&6
1320 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1321 cat >> confdefs.h
<<EOF
1322 #define $ac_tr_hdr 1
1326 echo "$ac_t""no" 1>&6
1334 cat > confcache
<<\EOF
1335 # This file is a shell script that caches the results of configure
1336 # tests run on this system so they can be shared between configure
1337 # scripts and configure runs. It is not useful on other systems.
1338 # If it contains results you don't want to keep, you may remove or edit it.
1340 # By default, configure uses ./config.cache as the cache file,
1341 # creating it if it does not exist already. You can give configure
1342 # the --cache-file=FILE option to use a different cache file; that is
1343 # what configure does when it calls configure scripts in
1344 # subdirectories, so they share the cache.
1345 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1346 # config.status only pays attention to the cache file if you give it the
1347 # --recheck option to rerun configure.
1350 # The following way of writing the cache mishandles newlines in values,
1351 # but we know of no workaround that is simple, portable, and efficient.
1352 # So, don't put newlines in cache variables' values.
1353 # Ultrix sh set writes to stderr and can't be redirected directly,
1354 # and sets the high bit in the cache file unless we assign to the vars.
1356 case `(ac_space=' '; set) 2>&1` in
1358 # `set' does not quote correctly, so add quotes (double-quote substitution
1359 # turns \\\\ into \\, and sed turns \\ into \).
1361 -e "s/'/'\\\\''/g" \
1362 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1365 # `set' quotes correctly as required by POSIX, so do not add quotes.
1366 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1369 if cmp -s $cache_file confcache
; then
1372 if test -w $cache_file; then
1373 echo "updating cache $cache_file"
1374 cat confcache
> $cache_file
1376 echo "not updating unwritable cache $cache_file"
1381 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1383 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1384 # Let make expand exec_prefix.
1385 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1387 # Any assignment to VPATH causes Sun make to only execute
1388 # the first set of double-colon rules, so remove it if not needed.
1389 # If there is a colon in the path, we need to keep it.
1390 if test "x$srcdir" = x.
; then
1391 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1394 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1396 DEFS
=-DHAVE_CONFIG_H
1398 # Without the "./", some shells look in PATH for config.status.
1399 : ${CONFIG_STATUS=./config.status}
1401 echo creating
$CONFIG_STATUS
1402 rm -f $CONFIG_STATUS
1403 cat > $CONFIG_STATUS <<EOF
1405 # Generated automatically by configure.
1406 # Run this file to recreate the current configuration.
1407 # This directory was configured as follows,
1408 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1410 # $0 $ac_configure_args
1412 # Compiler output produced by configure, useful for debugging
1413 # configure, is in ./config.log if it exists.
1415 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1418 case "\$ac_option" in
1419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1420 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1421 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1422 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1423 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1425 -help | --help | --hel | --he | --h)
1426 echo "\$ac_cs_usage"; exit 0 ;;
1427 *) echo "\$ac_cs_usage"; exit 1 ;;
1431 ac_given_srcdir=$srcdir
1432 ac_given_INSTALL="$INSTALL"
1434 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
1436 cat >> $CONFIG_STATUS <<EOF
1438 # Protect against being on the right side of a sed subst in config.status.
1439 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1440 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1443 s%@CFLAGS@%$CFLAGS%g
1444 s%@CPPFLAGS@%$CPPFLAGS%g
1445 s%@CXXFLAGS@%$CXXFLAGS%g
1447 s%@LDFLAGS@%$LDFLAGS%g
1449 s%@exec_prefix@%$exec_prefix%g
1450 s%@prefix@%$prefix%g
1451 s%@program_transform_name@%$program_transform_name%g
1452 s%@bindir@%$bindir%g
1453 s%@sbindir@%$sbindir%g
1454 s%@libexecdir@%$libexecdir%g
1455 s%@datadir@%$datadir%g
1456 s%@sysconfdir@%$sysconfdir%g
1457 s%@sharedstatedir@%$sharedstatedir%g
1458 s%@localstatedir@%$localstatedir%g
1459 s%@libdir@%$libdir%g
1460 s%@includedir@%$includedir%g
1461 s%@oldincludedir@%$oldincludedir%g
1462 s%@infodir@%$infodir%g
1463 s%@mandir@%$mandir%g
1465 s%@host_alias@%$host_alias%g
1466 s%@host_cpu@%$host_cpu%g
1467 s%@host_vendor@%$host_vendor%g
1468 s%@host_os@%$host_os%g
1469 s%@target@%$target%g
1470 s%@target_alias@%$target_alias%g
1471 s%@target_cpu@%$target_cpu%g
1472 s%@target_vendor@%$target_vendor%g
1473 s%@target_os@%$target_os%g
1475 s%@build_alias@%$build_alias%g
1476 s%@build_cpu@%$build_cpu%g
1477 s%@build_vendor@%$build_vendor%g
1478 s%@build_os@%$build_os%g
1480 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1481 s%@INSTALL_DATA@%$INSTALL_DATA%g
1482 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1483 s%@HDEFINES@%$HDEFINES%g
1485 s%@RANLIB@%$RANLIB%g
1487 s%@sim_bswap@%$sim_bswap%g
1488 s%@sim_cflags@%$sim_cflags%g
1489 s%@sim_debug@%$sim_debug%g
1490 s%@sim_stdio@%$sim_stdio%g
1491 s%@sim_trace@%$sim_trace%g
1492 s%@sim_profile@%$sim_profile%g
1497 cat >> $CONFIG_STATUS <<\EOF
1499 # Split the substitutions into bite-sized pieces for seds with
1500 # small command number limits, like on Digital OSF/1 and HP-UX.
1501 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1502 ac_file
=1 # Number of current file.
1503 ac_beg
=1 # First line for current file.
1504 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1507 while $ac_more_lines; do
1508 if test $ac_beg -gt 1; then
1509 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1511 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1513 if test ! -s conftest.s
$ac_file; then
1515 rm -f conftest.s
$ac_file
1517 if test -z "$ac_sed_cmds"; then
1518 ac_sed_cmds
="sed -f conftest.s$ac_file"
1520 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1522 ac_file
=`expr $ac_file + 1`
1524 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1527 if test -z "$ac_sed_cmds"; then
1532 cat >> $CONFIG_STATUS <<EOF
1534 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
1536 cat >> $CONFIG_STATUS <<\EOF
1537 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1540 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1541 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1542 *) ac_file_in
="${ac_file}.in" ;;
1545 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1547 # Remove last slash and all that follows it. Not all systems have dirname.
1548 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1549 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1550 # The file is in a subdirectory.
1551 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1552 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1553 # A "../" for each directory in $ac_dir_suffix.
1554 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1556 ac_dir_suffix
= ac_dots
=
1559 case "$ac_given_srcdir" in
1561 if test -z "$ac_dots"; then top_srcdir
=.
1562 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1563 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1565 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1566 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1569 case "$ac_given_INSTALL" in
1570 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1571 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1574 echo creating
"$ac_file"
1576 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1578 *Makefile
*) ac_comsub
="1i\\
1579 # $configure_input" ;;
1583 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1585 s%@configure_input@%$configure_input%g
1586 s%@srcdir@%$srcdir%g
1587 s%@top_srcdir@%$top_srcdir%g
1588 s%@INSTALL@%$INSTALL%g
1589 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1593 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1594 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1596 # ac_d sets the value in "#define NAME VALUE" lines.
1597 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1598 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1601 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1602 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1603 ac_uB
='\([ ]\)%\1#\2define\3'
1606 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1607 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1608 ac_eB
='$%\1#\2define\3'
1612 if test "${CONFIG_HEADERS+set}" != set; then
1614 cat >> $CONFIG_STATUS <<EOF
1615 CONFIG_HEADERS="config.h:config.in"
1617 cat >> $CONFIG_STATUS <<\EOF
1619 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1620 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1622 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1623 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1624 *) ac_file_in
="${ac_file}.in" ;;
1627 echo creating
$ac_file
1629 rm -f conftest.frag conftest.
in conftest.out
1630 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1631 cat $ac_file_inputs > conftest.
in
1635 # Transform confdefs.h into a sed script conftest.vals that substitutes
1636 # the proper values into config.h.in to produce config.h. And first:
1637 # Protect against being on the right side of a sed subst in config.status.
1638 # Protect against being in an unquoted here document in config.status.
1640 cat > conftest.hdr
<<\EOF
1643 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1647 sed -n -f conftest.hdr confdefs.h > conftest.vals
1650 # This sed command replaces #undef with comments. This is necessary, for
1651 # example, in the case of _POSIX_SOURCE, which is predefined and required
1652 # on some systems where configure will not decide to define it.
1653 cat >> conftest.vals <<\EOF
1654 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1657 # Break up conftest.vals because some shells have a limit on
1658 # the size of here documents, and old seds have small limits too.
1663 ac_lines=`grep -c . conftest.vals
`
1664 # grep -c gives empty output for an empty file on some AIX systems.
1665 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1666 # Write a limited-size here document to conftest.frag.
1667 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1668 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1670 sed -f conftest.frag conftest.in > conftest.out
1672 mv conftest.out conftest.in
1674 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1676 mv conftest.tail conftest.vals
1680 cat >> $CONFIG_STATUS <<\EOF
1681 rm -f conftest.frag conftest.h
1682 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1683 cat conftest.in >> conftest.h
1685 if cmp -s $ac_file conftest.h 2>/dev/null; then
1686 echo "$ac_file is unchanged"
1689 # Remove last slash and all that follows it. Not all systems have dirname.
1690 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1691 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1692 # The file is in a subdirectory.
1693 test ! -d "$ac_dir" && mkdir "$ac_dir"
1696 mv conftest.h $ac_file
1702 cat >> $CONFIG_STATUS <<EOF
1703 ac_sources="$sim_link_files"
1704 ac_dests="$sim_link_links"
1707 cat >> $CONFIG_STATUS <<\EOF
1708 srcdir=$ac_given_srcdir
1709 while test -n "$ac_sources"; do
1710 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1711 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1713 echo "linking $srcdir/$ac_source to $ac_dest"
1715 if test ! -r $srcdir/$ac_source; then
1716 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1720 # Make relative symlinks.
1721 # Remove last slash and all that follows it. Not all systems have dirname.
1722 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
1723 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1724 # The dest file is in a subdirectory.
1725 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1726 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
1727 # A "../" for each directory in $ac_dest_dir_suffix.
1728 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
1730 ac_dest_dir_suffix= ac_dots=
1734 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1735 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1738 # Make a symlink if possible; otherwise try a hard link.
1739 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1740 ln $srcdir/$ac_source $ac_dest; then :
1742 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1746 cat >> $CONFIG_STATUS <<EOF
1749 cat >> $CONFIG_STATUS <<\EOF
1750 case "x$CONFIG_FILES" in
1752 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
1753 rm -f Makesim1.tmp Makesim2.tmp Makefile
1754 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
1755 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
1756 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
1757 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
1758 <Makefile.sim >Makefile
1759 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
1762 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
1766 chmod +x $CONFIG_STATUS
1767 rm -fr confdefs* $ac_clean_files
1768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1