80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.12.1
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
89 ac_default_prefix
=/usr
/local
90 # Any additions from configure.in:
92 --enable-maintainer-mode Enable developer functionality."
94 --enable-sim-bswap Use Host specific BSWAP instruction."
96 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
98 --enable-sim-debug=opts Enable debugging flags"
100 --enable-sim-stdio Specify whether to use stdio for console input/output."
102 --enable-sim-trace=opts Enable tracing flags"
104 --enable-sim-profile=opts Enable profiling flags"
106 # Initialize some variables set by options.
107 # The variables have the same names as the options, with
108 # dashes changed to underlines.
110 cache_file
=.
/config.cache
119 program_transform_name
=s
,x
,x
,
127 bindir
='${exec_prefix}/bin'
128 sbindir
='${exec_prefix}/sbin'
129 libexecdir
='${exec_prefix}/libexec'
130 datadir
='${prefix}/share'
131 sysconfdir
='${prefix}/etc'
132 sharedstatedir
='${prefix}/com'
133 localstatedir
='${prefix}/var'
134 libdir
='${exec_prefix}/lib'
135 includedir
='${prefix}/include'
136 oldincludedir
='/usr/include'
137 infodir
='${prefix}/info'
138 mandir
='${prefix}/man'
140 # Initialize some other variables.
143 SHELL
=${CONFIG_SHELL-/bin/sh}
144 # Maximum number of lines to put in a shell here document.
151 # If the previous option needs an argument, assign it.
152 if test -n "$ac_prev"; then
153 eval "$ac_prev=\$ac_option"
159 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
163 # Accept the important Cygnus configure options, so we can diagnose typos.
167 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
169 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
170 bindir
="$ac_optarg" ;;
172 -build |
--build |
--buil |
--bui |
--bu)
174 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
175 build
="$ac_optarg" ;;
177 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
178 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
179 ac_prev
=cache_file
;;
180 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
181 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
182 cache_file
="$ac_optarg" ;;
184 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
186 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
188 datadir
="$ac_optarg" ;;
190 -disable-* |
--disable-*)
191 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}=no" ;;
199 -enable-* |
--enable-*)
200 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
210 eval "enable_${ac_feature}='$ac_optarg'" ;;
212 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
213 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
214 |
--exec |
--exe |
--ex)
215 ac_prev
=exec_prefix
;;
216 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
217 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
218 |
--exec=* |
--exe=* |
--ex=*)
219 exec_prefix
="$ac_optarg" ;;
221 -gas |
--gas |
--ga |
--g)
222 # Obsolete; use --with-gas.
225 -help |
--help |
--hel |
--he)
226 # Omit some internal or obsolete options to make the list less imposing.
227 # This message is too long to be a string in the A/UX 3.1 sh.
229 Usage: configure [options] [host]
230 Options: [defaults in brackets after descriptions]
232 --cache-file=FILE cache test results in FILE
233 --help print this message
234 --no-create do not create output files
235 --quiet, --silent do not print \`checking...' messages
236 --version print the version of autoconf that created configure
237 Directory and file names:
238 --prefix=PREFIX install architecture-independent files in PREFIX
240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
242 --bindir=DIR user executables in DIR [EPREFIX/bin]
243 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
244 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
245 --datadir=DIR read-only architecture-independent data in DIR
247 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
248 --sharedstatedir=DIR modifiable architecture-independent data in DIR
250 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
251 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
252 --includedir=DIR C header files in DIR [PREFIX/include]
253 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
254 --infodir=DIR info documentation in DIR [PREFIX/info]
255 --mandir=DIR man documentation in DIR [PREFIX/man]
256 --srcdir=DIR find the sources in DIR [configure dir or ..]
257 --program-prefix=PREFIX prepend PREFIX to installed program names
258 --program-suffix=SUFFIX append SUFFIX to installed program names
259 --program-transform-name=PROGRAM
260 run sed PROGRAM on installed program names
264 --build=BUILD configure for building on BUILD [BUILD=HOST]
265 --host=HOST configure for HOST [guessed]
266 --target=TARGET configure for TARGET [TARGET=HOST]
267 Features and packages:
268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
272 --x-includes=DIR X include files are in DIR
273 --x-libraries=DIR X library files are in DIR
275 if test -n "$ac_help"; then
276 echo "--enable and --with options recognized:$ac_help"
280 -host |
--host |
--hos |
--ho)
282 -host=* |
--host=* |
--hos=* |
--ho=*)
285 -includedir |
--includedir |
--includedi |
--included |
--include \
286 |
--includ |
--inclu |
--incl |
--inc)
287 ac_prev
=includedir
;;
288 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
289 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
290 includedir
="$ac_optarg" ;;
292 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
294 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
295 infodir
="$ac_optarg" ;;
297 -libdir |
--libdir |
--libdi |
--libd)
299 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
300 libdir
="$ac_optarg" ;;
302 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
303 |
--libexe |
--libex |
--libe)
304 ac_prev
=libexecdir
;;
305 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
306 |
--libexe=* |
--libex=* |
--libe=*)
307 libexecdir
="$ac_optarg" ;;
309 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
310 |
--localstate |
--localstat |
--localsta |
--localst \
311 |
--locals |
--local |
--loca |
--loc |
--lo)
312 ac_prev
=localstatedir
;;
313 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
314 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
315 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
316 localstatedir
="$ac_optarg" ;;
318 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
320 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
321 mandir
="$ac_optarg" ;;
324 # Obsolete; use --without-fp.
327 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
331 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
332 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
335 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
336 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
337 |
--oldin |
--oldi |
--old |
--ol |
--o)
338 ac_prev
=oldincludedir
;;
339 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
340 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
341 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
342 oldincludedir
="$ac_optarg" ;;
344 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
346 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
347 prefix
="$ac_optarg" ;;
349 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
350 |
--program-pre |
--program-pr |
--program-p)
351 ac_prev
=program_prefix
;;
352 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
353 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
354 program_prefix
="$ac_optarg" ;;
356 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
357 |
--program-suf |
--program-su |
--program-s)
358 ac_prev
=program_suffix
;;
359 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
360 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
361 program_suffix
="$ac_optarg" ;;
363 -program-transform-name |
--program-transform-name \
364 |
--program-transform-nam |
--program-transform-na \
365 |
--program-transform-n |
--program-transform- \
366 |
--program-transform |
--program-transfor \
367 |
--program-transfo |
--program-transf \
368 |
--program-trans |
--program-tran \
369 |
--progr-tra |
--program-tr |
--program-t)
370 ac_prev
=program_transform_name
;;
371 -program-transform-name=* |
--program-transform-name=* \
372 |
--program-transform-nam=* |
--program-transform-na=* \
373 |
--program-transform-n=* |
--program-transform-=* \
374 |
--program-transform=* |
--program-transfor=* \
375 |
--program-transfo=* |
--program-transf=* \
376 |
--program-trans=* |
--program-tran=* \
377 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
378 program_transform_name
="$ac_optarg" ;;
380 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
381 |
-silent |
--silent |
--silen |
--sile |
--sil)
384 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
386 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
388 sbindir
="$ac_optarg" ;;
390 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
391 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
392 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
394 ac_prev
=sharedstatedir
;;
395 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
396 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
397 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
399 sharedstatedir
="$ac_optarg" ;;
401 -site |
--site |
--sit)
403 -site=* |
--site=* |
--sit=*)
406 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
408 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
409 srcdir
="$ac_optarg" ;;
411 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
412 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
413 ac_prev
=sysconfdir
;;
414 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
415 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
416 sysconfdir
="$ac_optarg" ;;
418 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
420 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
421 target
="$ac_optarg" ;;
423 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
426 -version |
--version |
--versio |
--versi |
--vers)
427 echo "configure generated by autoconf version 2.12.1"
431 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package
=`echo $ac_package| sed 's/-/_/g'`
441 eval "with_${ac_package}='$ac_optarg'" ;;
443 -without-* |
--without-*)
444 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package
=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}=no" ;;
453 # Obsolete; use --with-x.
456 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
457 |
--x-incl |
--x-inc |
--x-in |
--x-i)
458 ac_prev
=x_includes
;;
459 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
460 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
461 x_includes
="$ac_optarg" ;;
463 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
464 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
465 ac_prev
=x_libraries
;;
466 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
467 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
468 x_libraries
="$ac_optarg" ;;
470 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
474 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
475 echo "configure: warning: $ac_option: invalid host type" 1>&2
477 if test "x$nonopt" != xNONE
; then
478 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
486 if test -n "$ac_prev"; then
487 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
492 # File descriptor usage:
495 # 2 errors and warnings
496 # 3 some systems may open it to /dev/tty
497 # 4 used on the Kubota Titan
498 # 6 checking for... messages and results
499 # 5 compiler messages saved in config.log
500 if test "$silent" = yes; then
508 This file contains any messages produced by compilers while
509 running configure, to aid debugging if configure makes a mistake.
512 # Strip out --no-create and --no-recursion so they do not pile up.
513 # Also quote any args containing shell metacharacters.
518 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
519 |
--no-cr |
--no-c) ;;
520 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
521 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
522 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
523 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
524 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
529 # Only set these to C if already set. These must not be set unconditionally
530 # because not all systems understand e.g. LANG=C (notably SCO).
531 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
532 # Non-C LC_CTYPE values break the ctype check.
533 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
534 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
535 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
536 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
539 rm -rf conftest
* confdefs.h
540 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 # A filename unique to this package, relative to the directory that
544 # configure is in, which we can look for to find out if srcdir is correct.
545 ac_unique_file
=Makefile.
in
547 # Find the source files, if location was not specified.
548 if test -z "$srcdir"; then
549 ac_srcdir_defaulted
=yes
550 # Try the directory containing this script, then its parent.
552 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
553 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
555 if test ! -r $srcdir/$ac_unique_file; then
559 ac_srcdir_defaulted
=no
561 if test ! -r $srcdir/$ac_unique_file; then
562 if test "$ac_srcdir_defaulted" = yes; then
563 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
565 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
570 # Prefer explicitly selected file to automatically selected ones.
571 if test -z "$CONFIG_SITE"; then
572 if test "x$prefix" != xNONE
; then
573 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
575 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578 for ac_site_file
in $CONFIG_SITE; do
579 if test -r "$ac_site_file"; then
580 echo "loading site script $ac_site_file"
585 if test -r "$cache_file"; then
586 echo "loading cache $cache_file"
589 echo "creating cache $cache_file"
594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
595 ac_cpp
='$CPP $CPPFLAGS'
596 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
597 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
598 cross_compiling
=$ac_cv_prog_cc_cross
600 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
601 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
602 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
609 ac_n
= ac_c
='\c' ac_t
=
614 # This is intended for use by the target specific directories, and by us.
615 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
616 echo "configure:617: checking how to run the C preprocessor" >&5
617 # On Suns, sometimes $CPP names a directory.
618 if test -n "$CPP" && test -d "$CPP"; then
621 if test -z "$CPP"; then
622 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 # This must be in double quotes, not single quotes, because CPP may get
626 # substituted into the Makefile and "${CC-cc}" will confuse make.
628 # On the NeXT, cc -E runs the code through the compiler's parser,
629 # not just through cpp.
630 cat > conftest.
$ac_ext <<EOF
631 #line 632 "configure"
632 #include "confdefs.h"
636 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
637 { (eval echo configure
:638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
638 ac_err
=`grep -v '^ *+' conftest.out`
639 if test -z "$ac_err"; then
643 echo "configure: failed program was:" >&5
644 cat conftest.
$ac_ext >&5
646 CPP
="${CC-cc} -E -traditional-cpp"
647 cat > conftest.
$ac_ext <<EOF
648 #line 649 "configure"
649 #include "confdefs.h"
653 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
654 { (eval echo configure
:655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
655 ac_err
=`grep -v '^ *+' conftest.out`
656 if test -z "$ac_err"; then
660 echo "configure: failed program was:" >&5
661 cat conftest.
$ac_ext >&5
668 ac_cv_prog_CPP
="$CPP"
670 CPP
="$ac_cv_prog_CPP"
672 ac_cv_prog_CPP
="$CPP"
674 echo "$ac_t""$CPP" 1>&6
677 # autoconf.info says this should be called right after AC_INIT.
681 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
682 if test -f $ac_dir/install-sh
; then
684 ac_install_sh
="$ac_aux_dir/install-sh -c"
686 elif test -f $ac_dir/install.sh
; then
688 ac_install_sh
="$ac_aux_dir/install.sh -c"
692 if test -z "$ac_aux_dir"; then
693 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
695 ac_config_guess
=$ac_aux_dir/config.guess
696 ac_config_sub
=$ac_aux_dir/config.sub
697 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
700 # Do some error checking and defaulting for the host and target type.
702 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
705 # 1. You are not allowed to specify --host, --target, and nonopt at the
707 # 2. Host defaults to nonopt.
708 # 3. If nonopt is not specified, then host defaults to the current host,
709 # as determined by config.guess.
710 # 4. Target and build default to nonopt.
711 # 5. If nonopt is not specified, then target and build default to host.
713 # The aliases save the names the user supplied, while $host etc.
714 # will get canonicalized.
715 case $host---$target---$nonopt in
716 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
717 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
721 # Make sure we can run config.sub.
722 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
723 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
726 echo $ac_n "checking host system type""... $ac_c" 1>&6
727 echo "configure:728: checking host system type" >&5
730 case "$host_alias" in
734 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
735 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
737 *) host_alias
=$nonopt ;;
741 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
742 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$host" 1>&6
747 echo $ac_n "checking target system type""... $ac_c" 1>&6
748 echo "configure:749: checking target system type" >&5
751 case "$target_alias" in
754 NONE
) target_alias
=$host_alias ;;
755 *) target_alias
=$nonopt ;;
759 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
760 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
761 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
762 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo "$ac_t""$target" 1>&6
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
769 case "$build_alias" in
772 NONE
) build_alias
=$host_alias ;;
773 *) build_alias
=$nonopt ;;
777 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
778 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
781 echo "$ac_t""$build" 1>&6
783 test "$host_alias" != "$target_alias" &&
784 test "$program_prefix$program_suffix$program_transform_name" = \
786 program_prefix
=${target_alias}-
788 if test "$program_transform_name" = s
,x
,x
,; then
789 program_transform_name
=
791 # Double any \ or $. echo might interpret backslashes.
792 cat <<\EOF_SED
> conftestsed
793 s
,\\,\\\\,g
; s
,\$
,$$
,g
795 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
798 test "$program_prefix" != NONE
&&
799 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
800 # Use a double $ so make ignores it.
801 test "$program_suffix" != NONE
&&
802 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
804 # sed with no file args requires a program.
805 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
807 # Extract the first word of "gcc", so it can be a program name with args.
808 set dummy gcc
; ac_word
=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC
="$CC" # Let the user override the test.
817 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
818 for ac_dir
in $PATH; do
819 test -z "$ac_dir" && ac_dir
=.
820 if test -f $ac_dir/$ac_word; then
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
832 echo "$ac_t""no" 1>&6
835 if test -z "$CC"; then
836 # Extract the first word of "cc", so it can be a program name with args.
837 set dummy cc
; ac_word
=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC
="$CC" # Let the user override the test.
846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
848 for ac_dir
in $PATH; do
849 test -z "$ac_dir" && ac_dir
=.
850 if test -f $ac_dir/$ac_word; then
851 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
860 if test $ac_prog_rejected = yes; then
861 # We found a bogon in the path, so make sure we never use it.
862 set dummy
$ac_cv_prog_CC
864 if test $# -gt 0; then
865 # We chose a different compiler from the bogus one.
866 # However, it has the same basename, so the bogon will be chosen
867 # first if we set CC to just the basename; use the full file name.
869 set dummy
"$ac_dir/$ac_word" "$@"
877 if test -n "$CC"; then
878 echo "$ac_t""$CC" 1>&6
880 echo "$ac_t""no" 1>&6
883 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp
='$CPP $CPPFLAGS'
892 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling
=$ac_cv_prog_cc_cross
896 cat > conftest.
$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
901 if { (eval echo configure
:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
902 ac_cv_prog_cc_works
=yes
903 # If we can't run a trivial program, we are probably using a cross compiler.
904 if (.
/conftest
; exit) 2>/dev
/null
; then
905 ac_cv_prog_cc_cross
=no
907 ac_cv_prog_cc_cross
=yes
910 echo "configure: failed program was:" >&5
911 cat conftest.
$ac_ext >&5
912 ac_cv_prog_cc_works
=no
916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
917 if test $ac_cv_prog_cc_works = no
; then
918 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
923 cross_compiling
=$ac_cv_prog_cc_cross
925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
926 echo "configure:927: checking whether we are using GNU C" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 cat > conftest.c
<<EOF
935 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
942 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
944 if test $ac_cv_prog_gcc = yes; then
946 ac_test_CFLAGS
="${CFLAGS+set}"
947 ac_save_CFLAGS
="$CFLAGS"
949 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
950 echo "configure:951: checking whether ${CC-cc} accepts -g" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 echo 'void f(){}' > conftest.c
955 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
964 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
965 if test "$ac_test_CFLAGS" = set; then
966 CFLAGS
="$ac_save_CFLAGS"
967 elif test $ac_cv_prog_cc_g = yes; then
974 test "${CFLAGS+set}" = set || CFLAGS
="-g"
977 # Find a good install program. We prefer a C program (faster),
978 # so one script is as good as another. But avoid the broken or
979 # incompatible versions:
980 # SysV /etc/install, /usr/sbin/install
981 # SunOS /usr/etc/install
984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
987 # ./install, which can be erroneously created by make from ./install.sh.
988 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
989 echo "configure:990: checking for a BSD compatible install" >&5
990 if test -z "$INSTALL"; then
991 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
995 for ac_dir
in $PATH; do
996 # Account for people who put trailing slashes in PATH elements.
998 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1000 # OSF1 and SCO ODT 3.0 have their own names for install.
1001 # Don't use installbsd from OSF since it installs stuff as root
1003 for ac_prog
in ginstall scoinst
install; do
1004 if test -f $ac_dir/$ac_prog; then
1005 if test $ac_prog = install &&
1006 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1007 # AIX install. It has an incompatible calling convention.
1010 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1021 if test "${ac_cv_path_install+set}" = set; then
1022 INSTALL
="$ac_cv_path_install"
1024 # As a last resort, use the slow shell script. We don't cache a
1025 # path for INSTALL within a source directory, because that will
1026 # break other packages using the cache if that directory is
1027 # removed, or if the path is relative.
1028 INSTALL
="$ac_install_sh"
1031 echo "$ac_t""$INSTALL" 1>&6
1033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1034 # It thinks the first close brace ends the variable substitution.
1035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1037 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1040 # Put a plausible default for CC_FOR_BUILD in Makefile.
1041 if test "x$cross_compiling" = "xno"; then
1042 CC_FOR_BUILD
='$(CC)'
1052 # Extract the first word of "ranlib", so it can be a program name with args.
1053 set dummy ranlib
; ac_word
=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$RANLIB"; then
1060 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1063 for ac_dir
in $PATH; do
1064 test -z "$ac_dir" && ac_dir
=.
1065 if test -f $ac_dir/$ac_word; then
1066 ac_cv_prog_RANLIB
="ranlib"
1071 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1074 RANLIB
="$ac_cv_prog_RANLIB"
1075 if test -n "$RANLIB"; then
1076 echo "$ac_t""$RANLIB" 1>&6
1078 echo "$ac_t""no" 1>&6
1082 # Check for common headers.
1083 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1084 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1085 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
1087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1089 echo "configure:1090: checking for $ac_hdr" >&5
1090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 cat > conftest.
$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1099 { (eval echo configure
:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1100 ac_err
=`grep -v '^ *+' conftest.out`
1101 if test -z "$ac_err"; then
1103 eval "ac_cv_header_$ac_safe=yes"
1106 echo "configure: failed program was:" >&5
1107 cat conftest.
$ac_ext >&5
1109 eval "ac_cv_header_$ac_safe=no"
1113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1114 echo "$ac_t""yes" 1>&6
1115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1116 cat >> confdefs.h
<<EOF
1117 #define $ac_tr_hdr 1
1121 echo "$ac_t""no" 1>&6
1125 for ac_hdr
in sys
/time.h sys
/resource.h
1127 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_hdr" >&5
1130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftest.
$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1139 { (eval echo configure
:1140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1140 ac_err
=`grep -v '^ *+' conftest.out`
1141 if test -z "$ac_err"; then
1143 eval "ac_cv_header_$ac_safe=yes"
1146 echo "configure: failed program was:" >&5
1147 cat conftest.
$ac_ext >&5
1149 eval "ac_cv_header_$ac_safe=no"
1153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1154 echo "$ac_t""yes" 1>&6
1155 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1156 cat >> confdefs.h
<<EOF
1157 #define $ac_tr_hdr 1
1161 echo "$ac_t""no" 1>&6
1165 for ac_hdr
in fcntl.h
1167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_hdr" >&5
1170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 cat > conftest.
$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1179 { (eval echo configure
:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1180 ac_err
=`grep -v '^ *+' conftest.out`
1181 if test -z "$ac_err"; then
1183 eval "ac_cv_header_$ac_safe=yes"
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1189 eval "ac_cv_header_$ac_safe=no"
1193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1196 cat >> confdefs.h
<<EOF
1197 #define $ac_tr_hdr 1
1201 echo "$ac_t""no" 1>&6
1205 for ac_func
in getrusage
time sigaction
1207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1208 echo "configure:1209: checking for $ac_func" >&5
1209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1215 /* System header to define __stub macros and hopefully few prototypes,
1216 which can conflict with char $ac_func(); below. */
1218 /* Override any gcc2 internal prototype to avoid an error. */
1219 /* We use char because int might match the return type of a gcc2
1220 builtin and then its argument prototype would still apply. */
1225 /* The GNU C library defines this for functions which it implements
1226 to always fail with ENOSYS. Some functions are actually named
1227 something starting with __ and the normal name is an alias. */
1228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1236 if { (eval echo configure
:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1238 eval "ac_cv_func_$ac_func=yes"
1240 echo "configure: failed program was:" >&5
1241 cat conftest.
$ac_ext >&5
1243 eval "ac_cv_func_$ac_func=no"
1248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1249 echo "$ac_t""yes" 1>&6
1250 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1251 cat >> confdefs.h
<<EOF
1252 #define $ac_tr_func 1
1256 echo "$ac_t""no" 1>&6
1261 .
${srcdir}/..
/..
/bfd
/configure.
host
1265 USE_MAINTAINER_MODE
=no
1266 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1267 if test "${enable_maintainer_mode+set}" = set; then
1268 enableval
="$enable_maintainer_mode"
1269 case "${enableval}" in
1270 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
1272 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
1274 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
1275 echo "Setting maintainer mode" 6>&1
1283 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1284 if test "${enable_sim_bswap+set}" = set; then
1285 enableval
="$enable_sim_bswap"
1286 case "${enableval}" in
1287 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1288 no
) sim_bswap
="-DWITH_BSWAP=0";;
1289 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1291 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1292 echo "Setting bswap flags = $sim_bswap" 6>&1
1300 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1301 if test "${enable_sim_cflags+set}" = set; then
1302 enableval
="$enable_sim_cflags"
1303 case "${enableval}" in
1304 yes) sim_cflags
="-O2";;
1305 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1307 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1309 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1310 echo "Setting sim cflags = $sim_cflags" 6>&1
1318 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1319 if test "${enable_sim_debug+set}" = set; then
1320 enableval
="$enable_sim_debug"
1321 case "${enableval}" in
1322 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1323 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1324 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1326 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1327 echo "Setting sim debug = $sim_debug" 6>&1
1335 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1336 if test "${enable_sim_stdio+set}" = set; then
1337 enableval
="$enable_sim_stdio"
1338 case "${enableval}" in
1339 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1340 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1341 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1343 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1344 echo "Setting stdio flags = $sim_stdio" 6>&1
1352 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1353 if test "${enable_sim_trace+set}" = set; then
1354 enableval
="$enable_sim_trace"
1355 case "${enableval}" in
1356 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1357 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1359 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1362 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1363 if test x
"$sim_trace" = x
; then
1364 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1366 sim_trace
="${sim_trace}|TRACE_$x"
1369 sim_trace
="$sim_trace)'" ;;
1371 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1372 echo "Setting sim trace = $sim_trace" 6>&1
1380 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1381 if test "${enable_sim_profile+set}" = set; then
1382 enableval
="$enable_sim_profile"
1383 case "${enableval}" in
1384 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1385 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1387 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1390 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1391 if test x
"$sim_profile" = x
; then
1392 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1394 sim_profile
="${sim_profile}|PROFILE_$x"
1397 sim_profile
="$sim_profile)'" ;;
1399 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1400 echo "Setting sim profile = $sim_profile" 6>&1
1408 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1409 echo "configure:1410: checking return type of signal handlers" >&5
1410 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 cat > conftest.
$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1416 #include <sys/types.h>
1422 extern "C" void (*signal (int, void (*)(int)))(int);
1424 void (*signal ()) ();
1431 if { (eval echo configure
:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1433 ac_cv_type_signal
=void
1435 echo "configure: failed program was:" >&5
1436 cat conftest.
$ac_ext >&5
1438 ac_cv_type_signal
=int
1443 echo "$ac_t""$ac_cv_type_signal" 1>&6
1444 cat >> confdefs.h
<<EOF
1445 #define RETSIGTYPE $ac_cv_type_signal
1454 sim_link_links
=tconfig.h
1455 if test -f ${srcdir}/tconfig.
in
1457 sim_link_files
=tconfig.
in
1459 sim_link_files
=..
/common
/tconfig.
in
1462 # targ-vals.def points to the libc macro description file.
1464 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1466 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1467 sim_link_links
="${sim_link_links} targ-vals.def"
1471 # Put a useful copy of CPP_FOR_TARGET in Makefile.
1472 # This is only used to build the target values header files. These files are
1473 # shipped with distributions so CPP_FOR_TARGET only needs to work in
1474 # developer's trees. This value is borrowed from ../../Makefile.in.
1475 CPP_FOR_TARGET
="\` \
1476 if test -f \$\${rootme}/../../gcc/Makefile ; then \
1477 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
1478 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
1480 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
1483 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
1486 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
1491 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
1492 if test x
"${host}" = x
"${target}" ; then
1495 TARGET_SUBDIR
=${target_alias}
1499 # These aren't all needed yet, but will be eventually.
1500 for ac_hdr
in stdlib.h string.h
strings.h
time.h sys
/times.h
1502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_hdr" >&5
1505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 cat > conftest.
$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1514 { (eval echo configure
:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1515 ac_err
=`grep -v '^ *+' conftest.out`
1516 if test -z "$ac_err"; then
1518 eval "ac_cv_header_$ac_safe=yes"
1521 echo "configure: failed program was:" >&5
1522 cat conftest.
$ac_ext >&5
1524 eval "ac_cv_header_$ac_safe=no"
1528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1529 echo "$ac_t""yes" 1>&6
1530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1531 cat >> confdefs.h
<<EOF
1532 #define $ac_tr_hdr 1
1536 echo "$ac_t""no" 1>&6
1542 cat > confcache
<<\EOF
1543 # This file is a shell script that caches the results of configure
1544 # tests run on this system so they can be shared between configure
1545 # scripts and configure runs. It is not useful on other systems.
1546 # If it contains results you don't want to keep, you may remove or edit it.
1548 # By default, configure uses ./config.cache as the cache file,
1549 # creating it if it does not exist already. You can give configure
1550 # the --cache-file=FILE option to use a different cache file; that is
1551 # what configure does when it calls configure scripts in
1552 # subdirectories, so they share the cache.
1553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1554 # config.status only pays attention to the cache file if you give it the
1555 # --recheck option to rerun configure.
1558 # The following way of writing the cache mishandles newlines in values,
1559 # but we know of no workaround that is simple, portable, and efficient.
1560 # So, don't put newlines in cache variables' values.
1561 # Ultrix sh set writes to stderr and can't be redirected directly,
1562 # and sets the high bit in the cache file unless we assign to the vars.
1564 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1566 # `set' does not quote correctly, so add quotes (double-quote substitution
1567 # turns \\\\ into \\, and sed turns \\ into \).
1569 -e "s/'/'\\\\''/g" \
1570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1573 # `set' quotes correctly as required by POSIX, so do not add quotes.
1574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1577 if cmp -s $cache_file confcache
; then
1580 if test -w $cache_file; then
1581 echo "updating cache $cache_file"
1582 cat confcache
> $cache_file
1584 echo "not updating unwritable cache $cache_file"
1589 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1591 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1592 # Let make expand exec_prefix.
1593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1595 # Any assignment to VPATH causes Sun make to only execute
1596 # the first set of double-colon rules, so remove it if not needed.
1597 # If there is a colon in the path, we need to keep it.
1598 if test "x$srcdir" = x.
; then
1599 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1602 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1604 DEFS
=-DHAVE_CONFIG_H
1606 # Without the "./", some shells look in PATH for config.status.
1607 : ${CONFIG_STATUS=./config.status}
1609 echo creating
$CONFIG_STATUS
1610 rm -f $CONFIG_STATUS
1611 cat > $CONFIG_STATUS <<EOF
1613 # Generated automatically by configure.
1614 # Run this file to recreate the current configuration.
1615 # This directory was configured as follows,
1616 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1618 # $0 $ac_configure_args
1620 # Compiler output produced by configure, useful for debugging
1621 # configure, is in ./config.log if it exists.
1623 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1626 case "\$ac_option" in
1627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1628 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1629 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1630 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1631 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1633 -help | --help | --hel | --he | --h)
1634 echo "\$ac_cs_usage"; exit 0 ;;
1635 *) echo "\$ac_cs_usage"; exit 1 ;;
1639 ac_given_srcdir=$srcdir
1640 ac_given_INSTALL="$INSTALL"
1642 trap 'rm -fr `echo "Makefile cconfig.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1644 cat >> $CONFIG_STATUS <<EOF
1646 # Protect against being on the right side of a sed subst in config.status.
1647 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1648 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1651 s%@sim_environment@%$sim_environment%g
1652 s%@sim_alignment@%$sim_alignment%g
1653 s%@sim_assert@%$sim_assert%g
1654 s%@sim_bitsize@%$sim_bitsize%g
1655 s%@sim_endian@%$sim_endian%g
1656 s%@sim_hostendian@%$sim_hostendian%g
1657 s%@sim_float@%$sim_float%g
1658 s%@sim_scache@%$sim_scache%g
1659 s%@sim_default_model@%$sim_default_model%g
1660 s%@sim_hardware@%$sim_hardware%g
1661 s%@sim_hw_obj@%$sim_hw_obj%g
1662 s%@sim_dv_src@%$sim_dv_src%g
1663 s%@sim_dv_obj@%$sim_dv_obj%g
1664 s%@sim_inline@%$sim_inline%g
1665 s%@sim_packages@%$sim_packages%g
1666 s%@sim_regparm@%$sim_regparm%g
1667 s%@sim_reserved_bits@%$sim_reserved_bits%g
1668 s%@sim_smp@%$sim_smp%g
1669 s%@sim_stdcall@%$sim_stdcall%g
1670 s%@sim_xor_endian@%$sim_xor_endian%g
1671 s%@sim_warnings@%$sim_warnings%g
1673 s%@CFLAGS@%$CFLAGS%g
1674 s%@CPPFLAGS@%$CPPFLAGS%g
1675 s%@CXXFLAGS@%$CXXFLAGS%g
1677 s%@LDFLAGS@%$LDFLAGS%g
1679 s%@exec_prefix@%$exec_prefix%g
1680 s%@prefix@%$prefix%g
1681 s%@program_transform_name@%$program_transform_name%g
1682 s%@bindir@%$bindir%g
1683 s%@sbindir@%$sbindir%g
1684 s%@libexecdir@%$libexecdir%g
1685 s%@datadir@%$datadir%g
1686 s%@sysconfdir@%$sysconfdir%g
1687 s%@sharedstatedir@%$sharedstatedir%g
1688 s%@localstatedir@%$localstatedir%g
1689 s%@libdir@%$libdir%g
1690 s%@includedir@%$includedir%g
1691 s%@oldincludedir@%$oldincludedir%g
1692 s%@infodir@%$infodir%g
1693 s%@mandir@%$mandir%g
1695 s%@host_alias@%$host_alias%g
1696 s%@host_cpu@%$host_cpu%g
1697 s%@host_vendor@%$host_vendor%g
1698 s%@host_os@%$host_os%g
1699 s%@target@%$target%g
1700 s%@target_alias@%$target_alias%g
1701 s%@target_cpu@%$target_cpu%g
1702 s%@target_vendor@%$target_vendor%g
1703 s%@target_os@%$target_os%g
1705 s%@build_alias@%$build_alias%g
1706 s%@build_cpu@%$build_cpu%g
1707 s%@build_vendor@%$build_vendor%g
1708 s%@build_os@%$build_os%g
1710 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1711 s%@INSTALL_DATA@%$INSTALL_DATA%g
1712 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1713 s%@HDEFINES@%$HDEFINES%g
1715 s%@RANLIB@%$RANLIB%g
1718 s%@sim_bswap@%$sim_bswap%g
1719 s%@sim_cflags@%$sim_cflags%g
1720 s%@sim_debug@%$sim_debug%g
1721 s%@sim_stdio@%$sim_stdio%g
1722 s%@sim_trace@%$sim_trace%g
1723 s%@sim_profile@%$sim_profile%g
1724 s%@CPP_FOR_TARGET@%$CPP_FOR_TARGET%g
1725 s%@TARGET_SUBDIR@%$TARGET_SUBDIR%g
1730 cat >> $CONFIG_STATUS <<\EOF
1732 # Split the substitutions into bite-sized pieces for seds with
1733 # small command number limits, like on Digital OSF/1 and HP-UX.
1734 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1735 ac_file
=1 # Number of current file.
1736 ac_beg
=1 # First line for current file.
1737 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1740 while $ac_more_lines; do
1741 if test $ac_beg -gt 1; then
1742 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1744 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1746 if test ! -s conftest.s
$ac_file; then
1748 rm -f conftest.s
$ac_file
1750 if test -z "$ac_sed_cmds"; then
1751 ac_sed_cmds
="sed -f conftest.s$ac_file"
1753 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1755 ac_file
=`expr $ac_file + 1`
1757 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1760 if test -z "$ac_sed_cmds"; then
1765 cat >> $CONFIG_STATUS <<EOF
1767 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1769 cat >> $CONFIG_STATUS <<\EOF
1770 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1773 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1774 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1775 *) ac_file_in
="${ac_file}.in" ;;
1778 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1780 # Remove last slash and all that follows it. Not all systems have dirname.
1781 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1783 # The file is in a subdirectory.
1784 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1785 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1786 # A "../" for each directory in $ac_dir_suffix.
1787 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1789 ac_dir_suffix
= ac_dots
=
1792 case "$ac_given_srcdir" in
1794 if test -z "$ac_dots"; then top_srcdir
=.
1795 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1796 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1798 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1799 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1802 case "$ac_given_INSTALL" in
1803 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1804 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1807 echo creating
"$ac_file"
1809 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1811 *Makefile
*) ac_comsub
="1i\\
1812 # $configure_input" ;;
1816 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1818 s%@configure_input@%$configure_input%g
1819 s%@srcdir@%$srcdir%g
1820 s%@top_srcdir@%$top_srcdir%g
1821 s%@INSTALL@%$INSTALL%g
1822 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1829 # ac_d sets the value in "#define NAME VALUE" lines.
1830 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1831 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1834 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1835 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1836 ac_uB
='\([ ]\)%\1#\2define\3'
1839 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1840 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1841 ac_eB
='$%\1#\2define\3'
1845 if test "${CONFIG_HEADERS+set}" != set; then
1847 cat >> $CONFIG_STATUS <<EOF
1848 CONFIG_HEADERS="cconfig.h:config.in"
1850 cat >> $CONFIG_STATUS <<\EOF
1852 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1855 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1856 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1857 *) ac_file_in
="${ac_file}.in" ;;
1860 echo creating
$ac_file
1862 rm -f conftest.frag conftest.
in conftest.out
1863 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1864 cat $ac_file_inputs > conftest.
in
1868 # Transform confdefs.h into a sed script conftest.vals that substitutes
1869 # the proper values into config.h.in to produce config.h. And first:
1870 # Protect against being on the right side of a sed subst in config.status.
1871 # Protect against being in an unquoted here document in config.status.
1873 cat > conftest.hdr
<<\EOF
1876 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1880 sed -n -f conftest.hdr confdefs.h > conftest.vals
1883 # This sed command replaces #undef with comments. This is necessary, for
1884 # example, in the case of _POSIX_SOURCE, which is predefined and required
1885 # on some systems where configure will not decide to define it.
1886 cat >> conftest.vals <<\EOF
1887 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1890 # Break up conftest.vals because some shells have a limit on
1891 # the size of here documents, and old seds have small limits too.
1896 ac_lines=`grep -c . conftest.vals
`
1897 # grep -c gives empty output for an empty file on some AIX systems.
1898 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1899 # Write a limited-size here document to conftest.frag.
1900 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1901 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1903 sed -f conftest.frag conftest.in > conftest.out
1905 mv conftest.out conftest.in
1907 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1909 mv conftest.tail conftest.vals
1913 cat >> $CONFIG_STATUS <<\EOF
1914 rm -f conftest.frag conftest.h
1915 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1916 cat conftest.in >> conftest.h
1918 if cmp -s $ac_file conftest.h 2>/dev/null; then
1919 echo "$ac_file is unchanged"
1922 # Remove last slash and all that follows it. Not all systems have dirname.
1923 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1925 # The file is in a subdirectory.
1926 test ! -d "$ac_dir" && mkdir "$ac_dir"
1929 mv conftest.h $ac_file
1934 cat >> $CONFIG_STATUS <<EOF
1937 cat >> $CONFIG_STATUS <<\EOF
1938 case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac
1941 chmod +x $CONFIG_STATUS
1942 rm -fr confdefs* $ac_clean_files
1943 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.07853 seconds and 5 git commands to generate.