2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
846 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-maintainer-mode Enable developer functionality.
858 --enable-sim-bswap Use Host specific BSWAP instruction.
859 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
860 --enable-sim-debug=opts Enable debugging flags
861 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
862 --enable-sim-trace=opts Enable tracing flags
863 --enable-sim-profile=opts Enable profiling flags
864 --enable-sim-inline=inlines Specify
which functions should be inlined.
865 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
866 --enable-sim-hostendian=end Specify
host byte endian orientation.
867 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
868 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
869 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
870 --enable-sim-endian=endian Specify target byte endian orientation.
871 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
872 --enable-sim-float Specify that the target processor has floating point hardware.
873 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
874 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
877 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
878 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
879 --with-x use the X Window System
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Do not use `cd foo
&& pwd` to compute absolute paths, because
928 # the directories may not exist.
930 .) ac_abs_builddir="$ac_dir";;
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by $as_me, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1012 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1013 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1014 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1015 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1016 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1018 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1019 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1021 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1023 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1024 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1025 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1027 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_must_keep_next=false
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 -* ) ac_must_keep_next=true ;;
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close
' the trap.
1107 trap 'exit_status
=$?
1108 # Save into config.log some information that might help in debugging.
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1118 # The following way of writing the cache mishandles newlines in values,
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1141 for ac_var
in $ac_subst_vars
1143 eval ac_val
=$
`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -n "$ac_subst_files"; then
1155 for ac_var
in $ac_subst_files
1157 eval ac_val
=$
`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -s confdefs.h
; then
1170 sed "/^$/d" confdefs.h |
sort
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1177 rm -f core
*.core
&&
1178 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's
/^
/|
/' "$ac_site_file" >&5
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1253 # Check that the precious variables saved in the cache have kept the same
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1266 ac_cache_corrupted=: ;;
1268 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1275 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1300 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1307 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_config_headers="$ac_config_headers config.h:config.in"
1331 # This file contains common code used by all simulators.
1333 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1334 # directory. It is intended to be invoked before any target specific stuff.
1335 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1336 # It is intended to be invoked last.
1338 # The simulator's configure.
in should
look like
:
1340 # dnl Process this file with autoconf to produce a configure script.
1341 # sinclude(../common/aclocal.m4)
1343 # AC_INIT(Makefile.in)
1347 # ... target specific stuff ...
1398 sim_inline
="-DDEFAULT_INLINE=0"
1435 # intl sister-directory configuration rules.
1438 # The idea behind this macro is that there's no need to repeat all the
1439 # autoconf probes done by the intl directory - it's already done them
1440 # for us. In fact, there's no need even to look at the cache for the
1441 # answers. All we need to do is nab a few pieces of information.
1442 # The intl directory is set up to make this easy, by generating a
1443 # small file which can be sourced as a shell script; then we produce
1444 # the necessary substitutions and definitions for this directory.
1452 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1453 # it by inlining the macro's contents.
1454 # This file contains common code used by all simulators.
1456 # common.m4 invokes AC macros used by all simulators and by the common
1457 # directory. It is intended to be included before any target specific
1458 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1459 # the Makefile. It is intended to be invoked last.
1461 # The simulator's configure.in should look like:
1463 # dnl Process this file with autoconf to produce a configure script.
1465 # AC_INIT(Makefile.in)
1466 # AC_CONFIG_HEADER(config.h:config.in)
1468 # sinclude(../common/aclocal.m4)
1469 # sinclude(../common/common.m4)
1471 # ... target specific stuff ...
1474 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1475 if test -f $ac_dir/install-sh
; then
1477 ac_install_sh
="$ac_aux_dir/install-sh -c"
1479 elif test -f $ac_dir/install.sh
; then
1481 ac_install_sh
="$ac_aux_dir/install.sh -c"
1483 elif test -f $ac_dir/shtool
; then
1485 ac_install_sh
="$ac_aux_dir/shtool install -c"
1489 if test -z "$ac_aux_dir"; then
1490 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1491 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1492 { (exit 1); exit 1; }; }
1494 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1495 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1496 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1498 # Make sure we can run config.sub.
1499 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1500 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1501 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1502 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: checking build system type" >&5
1505 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1506 if test "${ac_cv_build+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 ac_cv_build_alias
=$build_alias
1510 test -z "$ac_cv_build_alias" &&
1511 ac_cv_build_alias
=`$ac_config_guess`
1512 test -z "$ac_cv_build_alias" &&
1513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1514 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1515 { (exit 1); exit 1; }; }
1516 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1517 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1518 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1519 { (exit 1); exit 1; }; }
1522 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1523 echo "${ECHO_T}$ac_cv_build" >&6
1525 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1526 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1527 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530 echo "$as_me:$LINENO: checking host system type" >&5
1531 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1532 if test "${ac_cv_host+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 ac_cv_host_alias
=$host_alias
1536 test -z "$ac_cv_host_alias" &&
1537 ac_cv_host_alias
=$ac_cv_build_alias
1538 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1544 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1545 echo "${ECHO_T}$ac_cv_host" >&6
1547 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$as_me:$LINENO: checking target system type" >&5
1553 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1554 if test "${ac_cv_target+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 ac_cv_target_alias
=$target_alias
1558 test "x$ac_cv_target_alias" = "x" &&
1559 ac_cv_target_alias
=$ac_cv_host_alias
1560 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1566 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1567 echo "${ECHO_T}$ac_cv_target" >&6
1568 target
=$ac_cv_target
1569 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 # The aliases save the names the user supplied, while $host etc.
1575 # will get canonicalized.
1576 test -n "$target_alias" &&
1577 test "$program_prefix$program_suffix$program_transform_name" = \
1579 program_prefix
=${target_alias}-
1580 test "$program_prefix" != NONE
&&
1581 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1582 # Use a double $ so make ignores it.
1583 test "$program_suffix" != NONE
&&
1584 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1585 # Double any \ or $. echo might interpret backslashes.
1586 # By default was `s,x,x', remove it if useless.
1587 cat <<\_ACEOF
>conftest.
sed
1588 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1590 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1594 ac_cpp
='$CPP $CPPFLAGS'
1595 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1598 if test -n "$ac_tool_prefix"; then
1599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC
="$CC" # Let the user override the test.
1609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir
=.
1614 for ac_exec_ext
in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test -n "$CC"; then
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628 echo "${ECHO_T}$CC" >&6
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1635 if test -z "$ac_cv_prog_CC"; then
1637 # Extract the first word of "gcc", so it can be a program name with args.
1638 set dummy gcc
; ac_word
=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1651 test -z "$as_dir" && as_dir
=.
1652 for ac_exec_ext
in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC
="gcc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC
="$CC" # Let the user override the test.
1689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir
=.
1694 for ac_exec_ext
in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 if test -n "$CC"; then
1707 echo "$as_me:$LINENO: result: $CC" >&5
1708 echo "${ECHO_T}$CC" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1715 if test -z "$ac_cv_prog_CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc
; ac_word
=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$ac_ct_CC"; then
1725 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir
=.
1732 for ac_exec_ext
in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_ac_ct_CC
="cc"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1744 if test -n "$ac_ct_CC"; then
1745 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746 echo "${ECHO_T}$ac_ct_CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1758 if test -z "$CC"; then
1759 # Extract the first word of "cc", so it can be a program name with args.
1760 set dummy cc
; ac_word
=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 if test -n "$CC"; then
1767 ac_cv_prog_CC
="$CC" # Let the user override the test.
1770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir
=.
1775 for ac_exec_ext
in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778 ac_prog_rejected
=yes
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test $ac_prog_rejected = yes; then
1789 # We found a bogon in the path, so make sure we never use it.
1790 set dummy
$ac_cv_prog_CC
1792 if test $# != 0; then
1793 # We chose a different compiler from the bogus one.
1794 # However, it has the same basename, so the bogon will be chosen
1795 # first if we set CC to just the basename; use the full file name.
1797 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1803 if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1812 if test -z "$CC"; then
1813 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC
="$CC" # Let the user override the test.
1826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir
=.
1831 for ac_exec_ext
in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1851 test -n "$CC" && break
1854 if test -z "$CC"; then
1858 # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy
$ac_prog; ac_word
=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir
=.
1873 for ac_exec_ext
in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC
="$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1893 test -n "$ac_ct_CC" && break
1902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: no acceptable C compiler found in \$PATH
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1908 # Provide some information about the compiler.
1909 echo "$as_me:$LINENO:" \
1910 "checking for C compiler version" >&5
1911 ac_compiler
=`set X $ac_compile; echo $2`
1912 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1913 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1918 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1923 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1928 cat >conftest.
$ac_ext <<_ACEOF
1931 cat confdefs.h
>>conftest.
$ac_ext
1932 cat >>conftest.
$ac_ext <<_ACEOF
1933 /* end confdefs.h. */
1943 ac_clean_files_save
=$ac_clean_files
1944 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1945 # Try to create an executable without -o first, disregard a.out.
1946 # It will help us diagnose broken compilers, and finding out an intuition
1948 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952 (eval $ac_link_default) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 # Find the output, starting from the most likely. This scheme is
1957 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1960 # Be careful to initialize this variable, since it used to be cached.
1961 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1963 # b.out is created by i960 compilers.
1964 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1966 test -f "$ac_file" ||
continue
1968 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1971 # This is the source file.
1974 # We found the default executable, but exeext='' is most
1978 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979 # FIXME: I believe we export ac_cv_exeext for Libtool,
1980 # but it would be cool to find out if it's true. Does anybody
1981 # maintain Libtool? --akim.
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: C compiler cannot create executables
1995 See \`config.log' for more details." >&2;}
1996 { (exit 77); exit 77; }; }
1999 ac_exeext
=$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_file" >&5
2001 echo "${ECHO_T}$ac_file" >&6
2003 # Check the compiler produces executables we can run. If not, either
2004 # the compiler is broken, or we cross compile.
2005 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008 # If not cross compiling, check that we can run a simple program.
2009 if test "$cross_compiling" != yes; then
2010 if { ac_try
='./$ac_file'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2018 if test "$cross_compiling" = maybe
; then
2021 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022 If you meant to cross compile, use \`--host'.
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: cannot run C compiled programs.
2025 If you meant to cross compile, use \`--host'.
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2031 echo "$as_me:$LINENO: result: yes" >&5
2032 echo "${ECHO_T}yes" >&6
2034 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2035 ac_clean_files
=$ac_clean_files_save
2036 # Check the compiler produces executables we can run. If not, either
2037 # the compiler is broken, or we cross compile.
2038 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041 echo "${ECHO_T}$cross_compiling" >&6
2043 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046 (eval $ac_link) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; then
2050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2052 # work properly (i.e., refer to `conftest.exe'), while it won't with
2054 for ac_file
in conftest.exe conftest conftest.
*; do
2055 test -f "$ac_file" ||
continue
2057 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2058 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2065 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2072 rm -f conftest
$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074 echo "${ECHO_T}$ac_cv_exeext" >&6
2076 rm -f conftest.
$ac_ext
2077 EXEEXT
=$ac_cv_exeext
2079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081 if test "${ac_cv_objext+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 cat >conftest.
$ac_ext <<_ACEOF
2087 cat confdefs.h
>>conftest.
$ac_ext
2088 cat >>conftest.
$ac_ext <<_ACEOF
2089 /* end confdefs.h. */
2099 rm -f conftest.o conftest.obj
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2107 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2108 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.
$ac_ext >&5
2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2123 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2125 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126 echo "${ECHO_T}$ac_cv_objext" >&6
2127 OBJEXT
=$ac_cv_objext
2129 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 cat >conftest.
$ac_ext <<_ACEOF
2137 cat confdefs.h
>>conftest.
$ac_ext
2138 cat >>conftest.
$ac_ext <<_ACEOF
2139 /* end confdefs.h. */
2152 rm -f conftest.
$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1
>conftest.err
2158 cat conftest.err
>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try
='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try
='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.
$ac_ext >&5
2181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2182 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2185 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2188 ac_test_CFLAGS
=${CFLAGS+set}
2189 ac_save_CFLAGS
=$CFLAGS
2191 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193 if test "${ac_cv_prog_cc_g+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 cat >conftest.
$ac_ext <<_ACEOF
2199 cat confdefs.h
>>conftest.
$ac_ext
2200 cat >>conftest.
$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2211 rm -f conftest.
$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>conftest.er1
2215 grep -v '^ *+' conftest.er1
>conftest.err
2217 cat conftest.err
>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try
='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try
='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.
$ac_ext >&5
2240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244 if test "$ac_test_CFLAGS" = set; then
2245 CFLAGS
=$ac_save_CFLAGS
2246 elif test $ac_cv_prog_cc_g = yes; then
2247 if test "$GCC" = yes; then
2253 if test "$GCC" = yes; then
2259 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 ac_cv_prog_cc_stdc
=no
2266 cat >conftest.
$ac_ext <<_ACEOF
2269 cat confdefs.h
>>conftest.
$ac_ext
2270 cat >>conftest.
$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 #include <sys/types.h>
2275 #include <sys/stat.h>
2276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2277 struct buf { int x; };
2278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279 static char *e (p, i)
2285 static char *f (char * (*g) (char **, int), char **p, ...)
2290 s = g (p, va_arg (v,int));
2295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2296 function prototypes and stuff, but not '\xHH' hex character constants.
2297 These don't provoke an error unfortunately, instead are silently treated
2298 as 'x'. The following induces an error, until -std1 is added to get
2299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2300 array size at least. It's necessary to write '\x00'==0 to get something
2301 that's true only with -std1. */
2302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2304 int test (int i, double x);
2305 struct s1 {int (*f) (int a);};
2306 struct s2 {int (*f) (double a);};
2307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2318 # Don't try gcc -ansi; that turns off useful extensions and
2319 # breaks some systems' header files.
2320 # AIX -qlanglvl=ansi
2321 # Ultrix and OSF/1 -std1
2322 # HP-UX 10.20 and later -Ae
2323 # HP-UX older versions -Aa -D_HPUX_SOURCE
2324 # SVR4 -Xc -D__EXTENSIONS__
2325 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2327 CC
="$ac_save_CC $ac_arg"
2328 rm -f conftest.
$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2332 grep -v '^ *+' conftest.er1
>conftest.err
2334 cat conftest.err
>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try
='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try
='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cc_stdc
=$ac_arg
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.
$ac_ext >&5
2357 rm -f conftest.err conftest.
$ac_objext
2359 rm -f conftest.
$ac_ext conftest.
$ac_objext
2364 case "x$ac_cv_prog_cc_stdc" in
2366 echo "$as_me:$LINENO: result: none needed" >&5
2367 echo "${ECHO_T}none needed" >&6 ;;
2369 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2374 # Some people use a C++ compiler to compile C. Since we use `exit',
2375 # in C++ we need to declare it. In case someone uses the same compiler
2376 # for both compiling C and C++ we need to have the C++ compiler decide
2377 # the declaration of exit, since it's the most demanding environment.
2378 cat >conftest.
$ac_ext <<_ACEOF
2383 rm -f conftest.
$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1
>conftest.err
2389 cat conftest.err
>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try
='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try
='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 for ac_declaration
in \
2407 'extern "C" void std::exit (int) throw (); using std::exit;' \
2408 'extern "C" void std::exit (int); using std::exit;' \
2409 'extern "C" void exit (int) throw ();' \
2410 'extern "C" void exit (int);' \
2413 cat >conftest.
$ac_ext <<_ACEOF
2416 cat confdefs.h
>>conftest.
$ac_ext
2417 cat >>conftest.
$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2429 rm -f conftest.
$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1
>conftest.err
2435 cat conftest.err
>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try
='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try
='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.
$ac_ext >&5
2458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2459 cat >conftest.
$ac_ext <<_ACEOF
2462 cat confdefs.h
>>conftest.
$ac_ext
2463 cat >>conftest.
$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2474 rm -f conftest.
$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2478 grep -v '^ *+' conftest.er1
>conftest.err
2480 cat conftest.err
>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try
='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try
='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.
$ac_ext >&5
2502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2505 if test -n "$ac_declaration"; then
2506 echo '#ifdef __cplusplus' >>confdefs.h
2507 echo $ac_declaration >>confdefs.h
2508 echo '#endif' >>confdefs.h
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.
$ac_ext >&5
2516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2518 ac_cpp
='$CPP $CPPFLAGS'
2519 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2523 # Find a good install program. We prefer a C program (faster),
2524 # so one script is as good as another. But avoid the broken or
2525 # incompatible versions:
2526 # SysV /etc/install, /usr/sbin/install
2527 # SunOS /usr/etc/install
2528 # IRIX /sbin/install
2530 # AmigaOS /C/install, which installs bootblocks on floppy discs
2531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534 # OS/2's system install, which has a completely different semantic
2535 # ./install, which can be erroneously created by make from ./install.sh.
2536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2538 if test -z "$INSTALL"; then
2539 if test "${ac_cv_path_install+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir
=.
2547 # Account for people who put trailing slashes in PATH elements.
2549 .
/ | .
// |
/cC
/* | \
2550 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2551 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2557 for ac_prog
in ginstall scoinst
install; do
2558 for ac_exec_ext
in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2560 if test $ac_prog = install &&
2561 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2569 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2581 if test "${ac_cv_path_install+set}" = set; then
2582 INSTALL
=$ac_cv_path_install
2584 # As a last resort, use the slow shell script. We don't cache a
2585 # path for INSTALL within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the path is relative.
2588 INSTALL
=$ac_install_sh
2591 echo "$as_me:$LINENO: result: $INSTALL" >&5
2592 echo "${ECHO_T}$INSTALL" >&6
2594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595 # It thinks the first close brace ends the variable substitution.
2596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2600 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2603 # Put a plausible default for CC_FOR_BUILD in Makefile.
2604 if test "x$cross_compiling" = "xno"; then
2605 CC_FOR_BUILD
='$(CC)'
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2617 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_RANLIB+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$RANLIB"; then
2624 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir
=.
2631 for ac_exec_ext
in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 RANLIB
=$ac_cv_prog_RANLIB
2643 if test -n "$RANLIB"; then
2644 echo "$as_me:$LINENO: result: $RANLIB" >&5
2645 echo "${ECHO_T}$RANLIB" >&6
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2652 if test -z "$ac_cv_prog_RANLIB"; then
2653 ac_ct_RANLIB
=$RANLIB
2654 # Extract the first word of "ranlib", so it can be a program name with args.
2655 set dummy ranlib
; ac_word
=$2
2656 echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 if test -n "$ac_ct_RANLIB"; then
2662 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir
=.
2669 for ac_exec_ext
in '' $ac_executable_extensions; do
2670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2681 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2682 if test -n "$ac_ct_RANLIB"; then
2683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2686 echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2690 RANLIB
=$ac_ct_RANLIB
2692 RANLIB
="$ac_cv_prog_RANLIB"
2699 # Check for common headers.
2700 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2701 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2708 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2709 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2710 # On Suns, sometimes $CPP names a directory.
2711 if test -n "$CPP" && test -d "$CPP"; then
2714 if test -z "$CPP"; then
2715 if test "${ac_cv_prog_CPP+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 # Double quotes because CPP needs to be expanded
2719 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2722 for ac_c_preproc_warn_flag
in '' yes
2724 # Use a header file that comes with gcc, so configuring glibc
2725 # with a fresh cross-compiler works.
2726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2727 # <limits.h> exists even on freestanding compilers.
2728 # On the NeXT, cc -E runs the code through the compiler's parser,
2729 # not just through cpp. "Syntax error" is here to catch this case.
2730 cat >conftest.
$ac_ext <<_ACEOF
2733 cat confdefs.h
>>conftest.
$ac_ext
2734 cat >>conftest.
$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2737 # include <limits.h>
2739 # include <assert.h>
2743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2746 grep -v '^ *+' conftest.er1
>conftest.err
2748 cat conftest.err
>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } >/dev
/null
; then
2751 if test -s conftest.err
; then
2752 ac_cpp_err
=$ac_c_preproc_warn_flag
2753 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2760 if test -z "$ac_cpp_err"; then
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.
$ac_ext >&5
2766 # Broken: fails on valid input.
2769 rm -f conftest.err conftest.
$ac_ext
2771 # OK, works on sane cases. Now check whether non-existent headers
2772 # can be detected and how.
2773 cat >conftest.
$ac_ext <<_ACEOF
2776 cat confdefs.h
>>conftest.
$ac_ext
2777 cat >>conftest.
$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779 #include <ac_nonexistent.h>
2781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1
>conftest.err
2786 cat conftest.err
>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } >/dev
/null
; then
2789 if test -s conftest.err
; then
2790 ac_cpp_err
=$ac_c_preproc_warn_flag
2791 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2798 if test -z "$ac_cpp_err"; then
2799 # Broken: success on invalid input.
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.
$ac_ext >&5
2805 # Passes both tests.
2809 rm -f conftest.err conftest.
$ac_ext
2812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2813 rm -f conftest.err conftest.
$ac_ext
2814 if $ac_preproc_ok; then
2826 echo "$as_me:$LINENO: result: $CPP" >&5
2827 echo "${ECHO_T}$CPP" >&6
2829 for ac_c_preproc_warn_flag
in '' yes
2831 # Use a header file that comes with gcc, so configuring glibc
2832 # with a fresh cross-compiler works.
2833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2834 # <limits.h> exists even on freestanding compilers.
2835 # On the NeXT, cc -E runs the code through the compiler's parser,
2836 # not just through cpp. "Syntax error" is here to catch this case.
2837 cat >conftest.
$ac_ext <<_ACEOF
2840 cat confdefs.h
>>conftest.
$ac_ext
2841 cat >>conftest.
$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2844 # include <limits.h>
2846 # include <assert.h>
2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2853 grep -v '^ *+' conftest.er1
>conftest.err
2855 cat conftest.err
>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } >/dev
/null
; then
2858 if test -s conftest.err
; then
2859 ac_cpp_err
=$ac_c_preproc_warn_flag
2860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2867 if test -z "$ac_cpp_err"; then
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.
$ac_ext >&5
2873 # Broken: fails on valid input.
2876 rm -f conftest.err conftest.
$ac_ext
2878 # OK, works on sane cases. Now check whether non-existent headers
2879 # can be detected and how.
2880 cat >conftest.
$ac_ext <<_ACEOF
2883 cat confdefs.h
>>conftest.
$ac_ext
2884 cat >>conftest.
$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 #include <ac_nonexistent.h>
2888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2891 grep -v '^ *+' conftest.er1
>conftest.err
2893 cat conftest.err
>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } >/dev
/null
; then
2896 if test -s conftest.err
; then
2897 ac_cpp_err
=$ac_c_preproc_warn_flag
2898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2905 if test -z "$ac_cpp_err"; then
2906 # Broken: success on invalid input.
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.
$ac_ext >&5
2912 # Passes both tests.
2916 rm -f conftest.err conftest.
$ac_ext
2919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2920 rm -f conftest.err conftest.
$ac_ext
2921 if $ac_preproc_ok; then
2924 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2932 ac_cpp
='$CPP $CPPFLAGS'
2933 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking for egrep" >&5
2939 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2940 if test "${ac_cv_prog_egrep+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2944 then ac_cv_prog_egrep
='grep -E'
2945 else ac_cv_prog_egrep
='egrep'
2948 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2949 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2950 EGREP
=$ac_cv_prog_egrep
2953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2955 if test "${ac_cv_header_stdc+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 cat >conftest.
$ac_ext <<_ACEOF
2961 cat confdefs.h
>>conftest.
$ac_ext
2962 cat >>conftest.
$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2977 rm -f conftest.
$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1
>conftest.err
2983 cat conftest.err
>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try
='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try
='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 ac_cv_header_stdc
=yes
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.
$ac_ext >&5
3004 ac_cv_header_stdc
=no
3006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3008 if test $ac_cv_header_stdc = yes; then
3009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3020 $EGREP "memchr" >/dev
/null
2>&1; then
3023 ac_cv_header_stdc
=no
3029 if test $ac_cv_header_stdc = yes; then
3030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3031 cat >conftest.
$ac_ext <<_ACEOF
3034 cat confdefs.h
>>conftest.
$ac_ext
3035 cat >>conftest.
$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 $EGREP "free" >/dev
/null
2>&1; then
3044 ac_cv_header_stdc
=no
3050 if test $ac_cv_header_stdc = yes; then
3051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3052 if test "$cross_compiling" = yes; then
3055 cat >conftest.
$ac_ext <<_ACEOF
3058 cat confdefs.h
>>conftest.
$ac_ext
3059 cat >>conftest.
$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3062 #if ((' ' & 0x0FF) == 0x020)
3063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3066 # define ISLOWER(c) \
3067 (('a' <= (c) && (c) <= 'i') \
3068 || ('j' <= (c) && (c) <= 'r') \
3069 || ('s' <= (c) && (c) <= 'z'))
3070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3078 for (i = 0; i < 256; i++)
3079 if (XOR (islower (i), ISLOWER (i))
3080 || toupper (i) != TOUPPER (i))
3085 rm -f conftest
$ac_exeext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3098 echo "$as_me: program exited with status $ac_status" >&5
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.
$ac_ext >&5
3103 ac_cv_header_stdc
=no
3105 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3109 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3110 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3111 if test $ac_cv_header_stdc = yes; then
3113 cat >>confdefs.h
<<\_ACEOF
3114 #define STDC_HEADERS 1
3119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3129 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3130 inttypes.h stdint.h unistd.h
3132 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133 echo "$as_me:$LINENO: checking for $ac_header" >&5
3134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 cat >conftest.
$ac_ext <<_ACEOF
3141 cat confdefs.h
>>conftest.
$ac_ext
3142 cat >>conftest.
$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 $ac_includes_default
3146 #include <$ac_header>
3148 rm -f conftest.
$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>conftest.er1
3152 grep -v '^ *+' conftest.er1
>conftest.err
3154 cat conftest.err
>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try
='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try
='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 eval "$as_ac_Header=yes"
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.
$ac_ext >&5
3175 eval "$as_ac_Header=no"
3177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3182 cat >>confdefs.h
<<_ACEOF
3183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3196 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
3198 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3200 echo "$as_me:$LINENO: checking for $ac_header" >&5
3201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3208 # Is the header compilable?
3209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3211 cat >conftest.
$ac_ext <<_ACEOF
3214 cat confdefs.h
>>conftest.
$ac_ext
3215 cat >>conftest.
$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 $ac_includes_default
3218 #include <$ac_header>
3220 rm -f conftest.
$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1
>conftest.err
3226 cat conftest.err
>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try
='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try
='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_header_compiler
=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.
$ac_ext >&5
3247 ac_header_compiler
=no
3249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3251 echo "${ECHO_T}$ac_header_compiler" >&6
3253 # Is the header present?
3254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3256 cat >conftest.
$ac_ext <<_ACEOF
3259 cat confdefs.h
>>conftest.
$ac_ext
3260 cat >>conftest.
$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <$ac_header>
3264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3267 grep -v '^ *+' conftest.er1
>conftest.err
3269 cat conftest.err
>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev
/null
; then
3272 if test -s conftest.err
; then
3273 ac_cpp_err
=$ac_c_preproc_warn_flag
3274 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3281 if test -z "$ac_cpp_err"; then
3282 ac_header_preproc
=yes
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.
$ac_ext >&5
3287 ac_header_preproc
=no
3289 rm -f conftest.err conftest.
$ac_ext
3290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3291 echo "${ECHO_T}$ac_header_preproc" >&6
3293 # So? What about this header?
3294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3300 ac_header_preproc
=yes
3303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3317 ## ------------------------------------------ ##
3318 ## Report this to the AC_PACKAGE_NAME lists. ##
3319 ## ------------------------------------------ ##
3322 sed "s/^/$as_me: WARNING: /" >&2
3325 echo "$as_me:$LINENO: checking for $ac_header" >&5
3326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 eval "$as_ac_Header=\$ac_header_preproc"
3332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3337 cat >>confdefs.h
<<_ACEOF
3338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3347 for ac_header
in sys
/time.h sys
/resource.h
3349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3351 echo "$as_me:$LINENO: checking for $ac_header" >&5
3352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3359 # Is the header compilable?
3360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3362 cat >conftest.
$ac_ext <<_ACEOF
3365 cat confdefs.h
>>conftest.
$ac_ext
3366 cat >>conftest.
$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 $ac_includes_default
3369 #include <$ac_header>
3371 rm -f conftest.
$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>conftest.er1
3375 grep -v '^ *+' conftest.er1
>conftest.err
3377 cat conftest.err
>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try
='test -z "$ac_c_werror_flag"
3381 || test ! -s conftest.err'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; } &&
3387 { ac_try
='test -s conftest.$ac_objext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_header_compiler
=yes
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.
$ac_ext >&5
3398 ac_header_compiler
=no
3400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3402 echo "${ECHO_T}$ac_header_compiler" >&6
3404 # Is the header present?
3405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3407 cat >conftest.
$ac_ext <<_ACEOF
3410 cat confdefs.h
>>conftest.
$ac_ext
3411 cat >>conftest.
$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <$ac_header>
3415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3418 grep -v '^ *+' conftest.er1
>conftest.err
3420 cat conftest.err
>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev
/null
; then
3423 if test -s conftest.err
; then
3424 ac_cpp_err
=$ac_c_preproc_warn_flag
3425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3433 ac_header_preproc
=yes
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.
$ac_ext >&5
3438 ac_header_preproc
=no
3440 rm -f conftest.err conftest.
$ac_ext
3441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3442 echo "${ECHO_T}$ac_header_preproc" >&6
3444 # So? What about this header?
3445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3451 ac_header_preproc
=yes
3454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3468 ## ------------------------------------------ ##
3469 ## Report this to the AC_PACKAGE_NAME lists. ##
3470 ## ------------------------------------------ ##
3473 sed "s/^/$as_me: WARNING: /" >&2
3476 echo "$as_me:$LINENO: checking for $ac_header" >&5
3477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 eval "$as_ac_Header=\$ac_header_preproc"
3483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3488 cat >>confdefs.h
<<_ACEOF
3489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3498 for ac_header
in fcntl.h fpu_control.h
3500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3502 echo "$as_me:$LINENO: checking for $ac_header" >&5
3503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3510 # Is the header compilable?
3511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3513 cat >conftest.
$ac_ext <<_ACEOF
3516 cat confdefs.h
>>conftest.
$ac_ext
3517 cat >>conftest.
$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 $ac_includes_default
3520 #include <$ac_header>
3522 rm -f conftest.
$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1
>conftest.err
3528 cat conftest.err
>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try
='test -z "$ac_c_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try
='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 ac_header_compiler
=yes
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.
$ac_ext >&5
3549 ac_header_compiler
=no
3551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3553 echo "${ECHO_T}$ac_header_compiler" >&6
3555 # Is the header present?
3556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3558 cat >conftest.
$ac_ext <<_ACEOF
3561 cat confdefs.h
>>conftest.
$ac_ext
3562 cat >>conftest.
$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <$ac_header>
3566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3569 grep -v '^ *+' conftest.er1
>conftest.err
3571 cat conftest.err
>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev
/null
; then
3574 if test -s conftest.err
; then
3575 ac_cpp_err
=$ac_c_preproc_warn_flag
3576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3583 if test -z "$ac_cpp_err"; then
3584 ac_header_preproc
=yes
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.
$ac_ext >&5
3589 ac_header_preproc
=no
3591 rm -f conftest.err conftest.
$ac_ext
3592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3593 echo "${ECHO_T}$ac_header_preproc" >&6
3595 # So? What about this header?
3596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3602 ac_header_preproc
=yes
3605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3619 ## ------------------------------------------ ##
3620 ## Report this to the AC_PACKAGE_NAME lists. ##
3621 ## ------------------------------------------ ##
3624 sed "s/^/$as_me: WARNING: /" >&2
3627 echo "$as_me:$LINENO: checking for $ac_header" >&5
3628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 eval "$as_ac_Header=\$ac_header_preproc"
3634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3639 cat >>confdefs.h
<<_ACEOF
3640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3650 for ac_header
in dlfcn.h errno.h sys
/stat.h
3652 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3654 echo "$as_me:$LINENO: checking for $ac_header" >&5
3655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3662 # Is the header compilable?
3663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3665 cat >conftest.
$ac_ext <<_ACEOF
3668 cat confdefs.h
>>conftest.
$ac_ext
3669 cat >>conftest.
$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3672 #include <$ac_header>
3674 rm -f conftest.
$ac_objext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>conftest.er1
3678 grep -v '^ *+' conftest.er1
>conftest.err
3680 cat conftest.err
>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try
='test -z "$ac_c_werror_flag"
3684 || test ! -s conftest.err'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try
='test -s conftest.$ac_objext'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 ac_header_compiler
=yes
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.
$ac_ext >&5
3701 ac_header_compiler
=no
3703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3705 echo "${ECHO_T}$ac_header_compiler" >&6
3707 # Is the header present?
3708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3710 cat >conftest.
$ac_ext <<_ACEOF
3713 cat confdefs.h
>>conftest.
$ac_ext
3714 cat >>conftest.
$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #include <$ac_header>
3718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3719 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3721 grep -v '^ *+' conftest.er1
>conftest.err
3723 cat conftest.err
>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } >/dev
/null
; then
3726 if test -s conftest.err
; then
3727 ac_cpp_err
=$ac_c_preproc_warn_flag
3728 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3735 if test -z "$ac_cpp_err"; then
3736 ac_header_preproc
=yes
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.
$ac_ext >&5
3741 ac_header_preproc
=no
3743 rm -f conftest.err conftest.
$ac_ext
3744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3745 echo "${ECHO_T}$ac_header_preproc" >&6
3747 # So? What about this header?
3748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3754 ac_header_preproc
=yes
3757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3771 ## ------------------------------------------ ##
3772 ## Report this to the AC_PACKAGE_NAME lists. ##
3773 ## ------------------------------------------ ##
3776 sed "s/^/$as_me: WARNING: /" >&2
3779 echo "$as_me:$LINENO: checking for $ac_header" >&5
3780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 eval "$as_ac_Header=\$ac_header_preproc"
3786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3791 cat >>confdefs.h
<<_ACEOF
3792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 for ac_func
in getrusage
time sigaction __setfpucw
3805 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3806 echo "$as_me:$LINENO: checking for $ac_func" >&5
3807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3808 if eval "test \"\${$as_ac_var+set}\" = set"; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 cat >conftest.
$ac_ext <<_ACEOF
3814 cat confdefs.h
>>conftest.
$ac_ext
3815 cat >>conftest.
$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3819 #define $ac_func innocuous_$ac_func
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char $ac_func (); below.
3823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824 <limits.h> exists even on freestanding compilers. */
3827 # include <limits.h>
3829 # include <assert.h>
3834 /* Override any gcc2 internal prototype to avoid an error. */
3839 /* We use char because int might match the return type of a gcc2
3840 builtin and then its argument prototype would still apply. */
3842 /* The GNU C library defines this for functions which it implements
3843 to always fail with ENOSYS. Some functions are actually named
3844 something starting with __ and the normal name is an alias. */
3845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3848 char (*f) () = $ac_func;
3857 return f != $ac_func;
3862 rm -f conftest.
$ac_objext conftest
$ac_exeext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864 (eval $ac_link) 2>conftest.er1
3866 grep -v '^ *+' conftest.er1
>conftest.err
3868 cat conftest.err
>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try
='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try
='test -s conftest$ac_exeext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 eval "$as_ac_var=yes"
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.
$ac_ext >&5
3889 eval "$as_ac_var=no"
3891 rm -f conftest.err conftest.
$ac_objext \
3892 conftest
$ac_exeext conftest.
$ac_ext
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3896 if test `eval echo '${'$as_ac_var'}'` = yes; then
3897 cat >>confdefs.h
<<_ACEOF
3898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3905 # Check for socket libraries
3907 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3908 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3909 if test "${ac_cv_lib_socket_bind+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 ac_check_lib_save_LIBS
=$LIBS
3913 LIBS
="-lsocket $LIBS"
3914 cat >conftest.
$ac_ext <<_ACEOF
3917 cat confdefs.h
>>conftest.
$ac_ext
3918 cat >>conftest.
$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3921 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3936 rm -f conftest.
$ac_objext conftest
$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938 (eval $ac_link) 2>conftest.er1
3940 grep -v '^ *+' conftest.er1
>conftest.err
3942 cat conftest.err
>&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try
='test -z "$ac_c_werror_flag"
3946 || test ! -s conftest.err'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try
='test -s conftest$ac_exeext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 ac_cv_lib_socket_bind
=yes
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.
$ac_ext >&5
3963 ac_cv_lib_socket_bind
=no
3965 rm -f conftest.err conftest.
$ac_objext \
3966 conftest
$ac_exeext conftest.
$ac_ext
3967 LIBS
=$ac_check_lib_save_LIBS
3969 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3970 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3971 if test $ac_cv_lib_socket_bind = yes; then
3972 cat >>confdefs.h
<<_ACEOF
3973 #define HAVE_LIBSOCKET 1
3976 LIBS
="-lsocket $LIBS"
3981 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3982 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3983 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 ac_check_lib_save_LIBS
=$LIBS
3988 cat >conftest.
$ac_ext <<_ACEOF
3991 cat confdefs.h
>>conftest.
$ac_ext
3992 cat >>conftest.
$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3995 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char gethostbyname ();
4010 rm -f conftest.
$ac_objext conftest
$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1
>conftest.err
4016 cat conftest.err
>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try
='test -z "$ac_c_werror_flag"
4020 || test ! -s conftest.err'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try
='test -s conftest$ac_exeext'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_cv_lib_nsl_gethostbyname
=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.
$ac_ext >&5
4037 ac_cv_lib_nsl_gethostbyname
=no
4039 rm -f conftest.err conftest.
$ac_objext \
4040 conftest
$ac_exeext conftest.
$ac_ext
4041 LIBS
=$ac_check_lib_save_LIBS
4043 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4044 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4045 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4046 cat >>confdefs.h
<<_ACEOF
4047 #define HAVE_LIBNSL 1
4055 .
${srcdir}/..
/..
/bfd
/configure.
host
4059 USE_MAINTAINER_MODE
=no
4060 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4061 if test "${enable_maintainer_mode+set}" = set; then
4062 enableval
="$enable_maintainer_mode"
4063 case "${enableval}" in
4064 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4066 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4067 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4068 { (exit 1); exit 1; }; }; MAINT
="#" ;;
4070 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4071 echo "Setting maintainer mode" 6>&1
4078 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4079 if test "${enable_sim_bswap+set}" = set; then
4080 enableval
="$enable_sim_bswap"
4081 case "${enableval}" in
4082 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4083 no
) sim_bswap
="-DWITH_BSWAP=0";;
4084 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4085 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4086 { (exit 1); exit 1; }; }; sim_bswap
="";;
4088 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4089 echo "Setting bswap flags = $sim_bswap" 6>&1
4096 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4097 if test "${enable_sim_cflags+set}" = set; then
4098 enableval
="$enable_sim_cflags"
4099 case "${enableval}" in
4100 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4101 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4102 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4103 { (exit 1); exit 1; }; }; sim_cflags
="";;
4105 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4107 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4108 echo "Setting sim cflags = $sim_cflags" 6>&1
4115 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4116 if test "${enable_sim_debug+set}" = set; then
4117 enableval
="$enable_sim_debug"
4118 case "${enableval}" in
4119 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4120 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4121 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4123 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4124 echo "Setting sim debug = $sim_debug" 6>&1
4131 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4132 if test "${enable_sim_stdio+set}" = set; then
4133 enableval
="$enable_sim_stdio"
4134 case "${enableval}" in
4135 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4136 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4137 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4138 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4139 { (exit 1); exit 1; }; }; sim_stdio
="";;
4141 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4142 echo "Setting stdio flags = $sim_stdio" 6>&1
4149 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4150 if test "${enable_sim_trace+set}" = set; then
4151 enableval
="$enable_sim_trace"
4152 case "${enableval}" in
4153 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4154 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4156 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4159 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4160 if test x
"$sim_trace" = x
; then
4161 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4163 sim_trace
="${sim_trace}|TRACE_$x"
4166 sim_trace
="$sim_trace)'" ;;
4168 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4169 echo "Setting sim trace = $sim_trace" 6>&1
4176 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4177 if test "${enable_sim_profile+set}" = set; then
4178 enableval
="$enable_sim_profile"
4179 case "${enableval}" in
4180 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4181 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4183 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4186 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4187 if test x
"$sim_profile" = x
; then
4188 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4190 sim_profile
="${sim_profile}|PROFILE_$x"
4193 sim_profile
="$sim_profile)'" ;;
4195 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4196 echo "Setting sim profile = $sim_profile" 6>&1
4199 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4203 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4204 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4205 if test "${ac_cv_type_signal+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 cat >conftest.
$ac_ext <<_ACEOF
4211 cat confdefs.h
>>conftest.
$ac_ext
4212 cat >>conftest.
$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <sys/types.h>
4220 extern "C" void (*signal (int, void (*)(int)))(int);
4222 void (*signal ()) ();
4233 rm -f conftest.
$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>conftest.er1
4237 grep -v '^ *+' conftest.er1
>conftest.err
4239 cat conftest.err
>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try
='test -z "$ac_c_werror_flag"
4243 || test ! -s conftest.err'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try
='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_type_signal
=void
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.
$ac_ext >&5
4260 ac_cv_type_signal
=int
4262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4264 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4265 echo "${ECHO_T}$ac_cv_type_signal" >&6
4267 cat >>confdefs.h
<<_ACEOF
4268 #define RETSIGTYPE $ac_cv_type_signal
4278 sim_link_links
=tconfig.h
4279 if test -f ${srcdir}/tconfig.
in
4281 sim_link_files
=tconfig.
in
4283 sim_link_files
=..
/common
/tconfig.
in
4286 # targ-vals.def points to the libc macro description file.
4288 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4290 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4291 sim_link_links
="${sim_link_links} targ-vals.def"
4295 default_sim_inline
=""
4296 # Check whether --enable-sim-inline or --disable-sim-inline was given.
4297 if test "${enable_sim_inline+set}" = set; then
4298 enableval
="$enable_sim_inline"
4300 case "$enableval" in
4301 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4302 0) sim_inline
="-DDEFAULT_INLINE=0";;
4303 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4304 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4305 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4308 *_INLINE
=*) new_flag
="-D$x";;
4309 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4310 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4311 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4313 if test x
"$sim_inline" = x
""; then
4314 sim_inline
="$new_flag"
4316 sim_inline
="$sim_inline $new_flag"
4320 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4321 echo "Setting inline flags = $sim_inline" 6>&1
4325 if test "x$cross_compiling" = "xno"; then
4326 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4327 sim_inline
="${default_sim_inline}"
4328 if test x
"$silent" != x
"yes"; then
4329 echo "Setting inline flags = $sim_inline" 6>&1
4335 sim_inline
="-DDEFAULT_INLINE=0"
4338 wire_alignment
="NONSTRICT_ALIGNMENT"
4339 default_alignment
=""
4341 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4342 if test "${enable_sim_alignment+set}" = set; then
4343 enableval
="$enable_sim_alignment"
4344 case "${enableval}" in
4345 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4346 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4347 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4348 yes) if test x
"$wire_alignment" != x
; then
4349 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4351 if test x
"$default_alignment" != x
; then
4352 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4354 echo "No hard-wired alignment for target $target" 1>&6
4355 sim_alignment
="-DWITH_ALIGNMENT=0"
4358 no
) if test x
"$default_alignment" != x
; then
4359 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4361 if test x
"$wire_alignment" != x
; then
4362 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4364 echo "No default alignment for target $target" 1>&6
4365 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4368 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4369 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4370 { (exit 1); exit 1; }; }; sim_alignment
="";;
4372 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4373 echo "Setting alignment flags = $sim_alignment" 6>&1
4376 if test x
"$default_alignment" != x
; then
4377 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4379 if test x
"$wire_alignment" != x
; then
4380 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4387 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4388 if test "${enable_sim_hostendian+set}" = set; then
4389 enableval
="$enable_sim_hostendian"
4390 case "${enableval}" in
4391 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4392 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4393 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4394 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4395 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4396 { (exit 1); exit 1; }; }; sim_hostendian
="";;
4398 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4399 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4403 if test "x$cross_compiling" = "xno"; then
4404 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4405 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4406 if test "${ac_cv_c_bigendian+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 # See if sys/param.h defines the BYTE_ORDER macro.
4410 cat >conftest.
$ac_ext <<_ACEOF
4413 cat confdefs.h
>>conftest.
$ac_ext
4414 cat >>conftest.
$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 #include <sys/param.h>
4422 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4430 rm -f conftest.
$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1
>conftest.err
4436 cat conftest.err
>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try
='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try
='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 # It does; now see whether it defined to BIG_ENDIAN or not.
4453 cat >conftest.
$ac_ext <<_ACEOF
4456 cat confdefs.h
>>conftest.
$ac_ext
4457 cat >>conftest.
$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 #include <sys/types.h>
4460 #include <sys/param.h>
4465 #if BYTE_ORDER != BIG_ENDIAN
4473 rm -f conftest.
$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
4477 grep -v '^ *+' conftest.er1
>conftest.err
4479 cat conftest.err
>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try
='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try
='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 ac_cv_c_bigendian
=yes
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4500 ac_cv_c_bigendian
=no
4502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.
$ac_ext >&5
4507 # It does not; compile a test program.
4508 if test "$cross_compiling" = yes; then
4509 # try to guess the endianness by grepping values into an object file
4510 ac_cv_c_bigendian
=unknown
4511 cat >conftest.
$ac_ext <<_ACEOF
4514 cat confdefs.h
>>conftest.
$ac_ext
4515 cat >>conftest.
$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4518 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4519 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4520 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4521 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4522 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4526 _ascii (); _ebcdic ();
4531 rm -f conftest.
$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1
>conftest.err
4537 cat conftest.err
>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4554 ac_cv_c_bigendian
=yes
4556 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4557 if test "$ac_cv_c_bigendian" = unknown
; then
4558 ac_cv_c_bigendian
=no
4560 # finding both strings is unlikely to happen, but who knows?
4561 ac_cv_c_bigendian
=unknown
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.
$ac_ext >&5
4569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4571 cat >conftest.
$ac_ext <<_ACEOF
4574 cat confdefs.h
>>conftest.
$ac_ext
4575 cat >>conftest.
$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4580 /* Are we little or big endian? From Harbison&Steele. */
4584 char c[sizeof (long)];
4587 exit (u.c[sizeof (long) - 1] == 1);
4590 rm -f conftest
$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_cv_c_bigendian
=no
4603 echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.
$ac_ext >&5
4608 ac_cv_c_bigendian
=yes
4610 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4615 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4616 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4617 case $ac_cv_c_bigendian in
4620 cat >>confdefs.h
<<\_ACEOF
4621 #define WORDS_BIGENDIAN 1
4627 { { echo "$as_me:$LINENO: error: unknown endianness
4628 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4629 echo "$as_me: error: unknown endianness
4630 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4631 { (exit 1); exit 1; }; } ;;
4634 if test $ac_cv_c_bigendian = yes; then
4635 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4637 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4640 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4644 # NOTE: Don't add -Wall or -Wunused, they both include
4645 # -Wunused-parameter which reports bogus warnings.
4646 # NOTE: If you add to this list, remember to update
4647 # gdb/doc/gdbint.texinfo.
4648 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4649 -Wformat -Wparentheses -Wpointer-arith"
4650 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4651 if test x
${CFLAGS+set} = xset
; then
4655 build_warnings
="${build_warnings} -Wuninitialized"
4659 build_warnings
="${build_warnings} -Wuninitialized"
4661 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4662 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4663 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4664 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4665 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4666 # -Woverloaded-virtual -Winline -Werror"
4667 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4668 if test "${enable_build_warnings+set}" = set; then
4669 enableval
="$enable_build_warnings"
4670 case "${enableval}" in
4672 no
) build_warnings
="-w";;
4673 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4674 build_warnings
="${build_warnings} ${t}";;
4675 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4676 build_warnings
="${t} ${build_warnings}";;
4677 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4679 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4680 echo "Setting compiler warning flags = $build_warnings" 6>&1
4682 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4683 if test "${enable_sim_build_warnings+set}" = set; then
4684 enableval
="$enable_sim_build_warnings"
4685 case "${enableval}" in
4687 no
) build_warnings
="-w";;
4688 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4689 build_warnings
="${build_warnings} ${t}";;
4690 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4691 build_warnings
="${t} ${build_warnings}";;
4692 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4694 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4695 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4699 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4701 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4702 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4703 # Separate out the -Werror flag as some files just cannot be
4704 # compiled with it enabled.
4705 for w
in ${build_warnings}; do
4707 -Werr*) WERROR_CFLAGS
=-Werror ;;
4708 *) # Check that GCC accepts it
4709 saved_CFLAGS
="$CFLAGS"
4711 cat >conftest.
$ac_ext <<_ACEOF
4714 cat confdefs.h
>>conftest.
$ac_ext
4715 cat >>conftest.
$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4726 rm -f conftest.
$ac_objext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>conftest.er1
4730 grep -v '^ *+' conftest.er1
>conftest.err
4732 cat conftest.err
>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try
='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try
='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.
$ac_ext >&5
4754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4755 CFLAGS
="$saved_CFLAGS"
4758 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4759 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4763 default_sim_reserved_bits
="1"
4764 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
4765 if test "${enable_sim_reserved_bits+set}" = set; then
4766 enableval
="$enable_sim_reserved_bits"
4767 case "${enableval}" in
4768 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
4769 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
4770 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
4771 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
4772 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
4774 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
4775 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
4778 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
4783 # Instead of defining a `subtarget' macro, code should be checking
4784 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
4788 mips64vr
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
4789 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
4790 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
4791 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
4792 *) SIM_SUBTARGET
="";;
4799 # Select the byte order of the target
4804 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
4805 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
4806 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
4807 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
4808 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
4809 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
4810 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
4811 *) default_endian
=BIG_ENDIAN
;;
4814 wire_endian
="$mips_endian"
4815 default_endian
="$default_endian"
4816 # Check whether --enable-sim-endian or --disable-sim-endian was given.
4817 if test "${enable_sim_endian+set}" = set; then
4818 enableval
="$enable_sim_endian"
4819 case "${enableval}" in
4820 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4821 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4822 yes) if test x
"$wire_endian" != x
; then
4823 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4825 if test x
"$default_endian" != x
; then
4826 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4828 echo "No hard-wired endian for target $target" 1>&6
4829 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
4832 no
) if test x
"$default_endian" != x
; then
4833 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4835 if test x
"$wire_endian" != x
; then
4836 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4838 echo "No default endian for target $target" 1>&6
4839 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4842 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4843 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4844 { (exit 1); exit 1; }; }; sim_endian
="";;
4846 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
4847 echo "Setting endian flags = $sim_endian" 6>&1
4850 if test x
"$default_endian" != x
; then
4851 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4853 if test x
"$wire_endian" != x
; then
4854 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4864 # Select the bitsize of the target
4868 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
4869 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
4870 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
4871 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
4872 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
4873 *) mips_bitsize
=64 ; mips_msb
=63 ;;
4875 wire_word_bitsize
="$mips_bitsize"
4876 wire_word_msb
="$mips_msb"
4877 wire_address_bitsize
="$mips_addr_bitsize"
4878 wire_cell_bitsize
=""
4879 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
4880 if test "${enable_sim_bitsize+set}" = set; then
4881 enableval
="$enable_sim_bitsize"
4883 case "${enableval}" in
4884 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
4885 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
4886 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4887 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4888 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
4889 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
4891 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
4893 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
4894 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
4896 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
4898 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
4899 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4903 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
4906 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
4907 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
4908 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
4909 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4913 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
4916 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
4917 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
4918 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
4919 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4922 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
4923 echo "Setting bitsize flags = $sim_bitsize" 6>&1
4927 if test x
"$wire_word_bitsize" != x
; then
4928 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
4930 if test x
"$wire_word_msb" != x
; then
4931 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
4933 if test x
"$wire_address_bitsize" != x
; then
4934 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
4936 if test x
"$wire_cell_bitsize" != x
; then
4937 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
4944 # Select the floating hardware support of the target
4946 mips_fpu
=HARDWARE_FLOATING_POINT
4949 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
4952 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
4953 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
4954 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
4955 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
4956 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
4957 *) mips_fpu
=HARD_FLOATING_POINT
;;
4960 default_sim_float
="$mips_fpu"
4961 default_sim_float_bitsize
="$mips_fpu_bitsize"
4962 # Check whether --enable-sim-float or --disable-sim-float was given.
4963 if test "${enable_sim_float+set}" = set; then
4964 enableval
="$enable_sim_float"
4965 case "${enableval}" in
4966 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
4967 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
4968 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
4969 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
4970 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
4971 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
4972 { (exit 1); exit 1; }; }; sim_float
="";;
4974 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
4975 echo "Setting float flags = $sim_float" 6>&1
4980 if test x
"${default_sim_float}" != x
""; then
4981 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
4983 if test x
"${default_sim_float_bitsize}" != x
""; then
4984 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
4992 # Select the level of SMP support
4998 default_sim_smp
="$mips_smp"
4999 # Check whether --enable-sim-smp or --disable-sim-smp was given.
5000 if test "${enable_sim_smp+set}" = set; then
5001 enableval
="$enable_sim_smp"
5002 case "${enableval}" in
5003 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
5004 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
5005 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
5007 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
5008 echo "Setting smp flags = $sim_smp" 6>&1
5011 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
5012 if test x
"$silent" != x
"yes"; then
5013 echo "Setting smp flags = $sim_smp" 6>&1
5020 # Select the IGEN architecture
5023 sim_igen_machine
="-M mipsIV"
5024 sim_m16_machine
="-M mips16,mipsIII"
5025 sim_igen_filter
="32,64,f"
5027 sim_mach_default
="mips8000"
5030 mips
*tx39
*) sim_gen
=IGEN
5031 sim_igen_filter
="32,f"
5032 sim_igen_machine
="-M r3900"
5034 mips64vr43
*-*-*) sim_gen
=IGEN
5035 sim_igen_machine
="-M mipsIV"
5036 sim_mach_default
="mips8000"
5038 mips64vr5
*-*-*) sim_gen
=IGEN
5039 sim_igen_machine
="-M vr5000"
5040 sim_mach_default
="mips5000"
5042 mips64vr41
*) sim_gen
=M16
5043 sim_igen_machine
="-M vr4100"
5044 sim_m16_machine
="-M vr4100"
5045 sim_igen_filter
="32,64,f"
5047 sim_mach_default
="mips4100"
5049 mips64vr-
*-* | mips64vrel-
*-*)
5051 sim_multi_configs
="\
5052 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5053 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5054 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5055 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5056 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5057 sim_multi_default
=mips5000
5059 mips64
*-*-*) sim_igen_filter
="32,64,f"
5062 mips16
*-*-*) sim_gen
=M16
5063 sim_igen_filter
="32,64,f"
5066 mipsisa32r2
*-*-*) sim_gen
=M16
5067 sim_igen_machine
="-M mips32r2,mips16,mips16e,dsp"
5068 sim_m16_machine
="-M mips16,mips16e,mips32r2"
5069 sim_igen_filter
="32,f"
5070 sim_mach_default
="mipsisa32r2"
5072 mipsisa32
*-*-*) sim_gen
=M16
5073 sim_igen_machine
="-M mips32,mips16,mips16e,dsp"
5074 sim_m16_machine
="-M mips16,mips16e,mips32"
5075 sim_igen_filter
="32,f"
5076 sim_mach_default
="mipsisa32"
5078 mipsisa64r2
*-*-*) sim_gen
=M16
5079 sim_igen_machine
="-M mips64r2,mips3d,mips16,mips16e,dsp"
5080 sim_m16_machine
="-M mips16,mips16e,mips64r2"
5081 sim_igen_filter
="32,64,f"
5082 sim_mach_default
="mipsisa64r2"
5084 mipsisa64sb1
*-*-*) sim_gen
=IGEN
5085 sim_igen_machine
="-M mips64,mips3d,sb1"
5086 sim_igen_filter
="32,64,f"
5087 sim_mach_default
="mips_sb1"
5089 mipsisa64
*-*-*) sim_gen
=M16
5090 sim_igen_machine
="-M mips64,mips3d,mips16,mips16e,dsp"
5091 sim_m16_machine
="-M mips16,mips16e,mips64"
5092 sim_igen_filter
="32,64,f"
5093 sim_mach_default
="mipsisa64"
5095 mips
*lsi
*) sim_gen
=M16
5096 sim_igen_machine
="-M mipsIII,mips16"
5097 sim_m16_machine
="-M mips16,mipsIII"
5098 sim_igen_filter
="32,f"
5100 sim_mach_default
="mips4000"
5102 mips
*-*-*) sim_gen
=IGEN
5103 sim_igen_filter
="32,f"
5107 # The MULTI generator can combine several simulation engines into one.
5108 # executable. A configuration which uses the MULTI should set two
5109 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5111 # ${sim_multi_configs} is the list of engines to build. Each
5112 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5115 # - NAME is a C-compatible prefix for the engine,
5116 # - MACHINE is a -M argument,
5117 # - FILTER is a -F argument, and
5118 # - BFDMACHS is a comma-separated list of bfd machines that the
5119 # simulator can run.
5121 # Each entry will have a separate simulation engine whose prefix is
5122 # m32<NAME>. If the machine list includes "mips16", there will also
5123 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5124 # generated using the same machine list as the 32-bit version,
5125 # but the filter will be "16" instead of FILTER.
5127 # The simulator compares the bfd mach against BFDMACHS to decide
5128 # which engine to use. Entries in BFDMACHS should be bfd_mach
5129 # values with "bfd_mach_" removed. ${sim_multi_default} says
5130 # which entry should be the default.
5131 if test ${sim_gen} = MULTI
; then
5133 # Simple sanity check.
5134 if test -z "${sim_multi_configs}" ||
test -z "${sim_multi_default}"; then
5135 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
5136 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
5137 { (exit 1); exit 1; }; }
5140 # Start in a known state.
5141 rm -f multi-include.h multi-run.c
5144 sim_multi_obj
=multi-run.o
5145 sim_multi_igen_configs
=
5148 cat << __EOF__ > multi-run.c
5149 /* Main entry point for MULTI simulators.
5150 Copyright (C) 2003 Free Software Foundation, Inc.
5152 This program is free software; you can redistribute it and/or modify
5153 it under the terms of the GNU General Public License as published by
5154 the Free Software Foundation; either version 2 of the License, or
5155 (at your option) any later version.
5157 This program is distributed in the hope that it will be useful,
5158 but WITHOUT ANY WARRANTY; without even the implied warranty of
5159 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5160 GNU General Public License for more details.
5162 You should have received a copy of the GNU General Public License
5163 along with this program; if not, write to the Free Software
5164 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5168 This file was generated by sim/mips/configure. */
5170 #include "sim-main.h"
5171 #include "multi-include.h"
5177 sim_engine_run (SIM_DESC sd,
5180 int signal) /* ignore */
5184 if (STATE_ARCHITECTURE (sd) == NULL)
5185 mach = bfd_mach_${sim_multi_default};
5187 mach = STATE_ARCHITECTURE (SD)->mach;
5193 for fc in ${sim_multi_configs}; do
5195 # Split up the entry. ${c} contains the first three elements.
5196 # Note: outer sqaure brackets are m4 quotes.
5197 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5198 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5199 name
=`echo ${c} | sed 's/:.*//'`
5200 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5201 filter
=`echo ${c} | sed 's/.*://'`
5203 # Build the following lists:
5205 # sim_multi_flags: all -M and -F flags used by the simulator
5206 # sim_multi_src: all makefile-generated source files
5207 # sim_multi_obj: the objects for ${sim_multi_src}
5208 # sim_multi_igen_configs: igen configuration strings.
5210 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5211 # or m16) followed by the NAME, MACHINE and FILTER part of
5212 # the ${sim_multi_configs} entry.
5213 sim_multi_flags
="${sim_multi_flags} -F ${filter} -M ${machine}"
5215 # Check whether mips16 handling is needed.
5218 # Run igen twice, once for normal mode and once for mips16.
5221 # The top-level function for the mips16 simulator is
5222 # in a file m16${name}_run.c, generated by the
5223 # tmp-run-multi Makefile rule.
5224 sim_multi_src
="${sim_multi_src} m16${name}_run.c"
5225 sim_multi_obj
="${sim_multi_obj} m16${name}_run.o"
5226 sim_multi_flags
="${sim_multi_flags} -F 16"
5233 # Now add the list of igen-generated files to ${sim_multi_src}
5234 # and ${sim_multi_obj}.
5236 for base
in engine icache idecode model semantics support
; do
5237 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.c"
5238 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.h"
5239 sim_multi_obj
="${sim_multi_obj} ${w}${name}_${base}.o"
5241 sim_multi_igen_configs
="${sim_multi_igen_configs} ${w}${c}"
5244 # Add an include for the engine.h file. This file declares the
5245 # top-level foo_engine_run() function.
5246 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5248 # Add case statements for this engine to sim_engine_run().
5249 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5250 echo " case bfd_mach_${mach}:" >> multi-run.c
5251 if test ${mach} = ${sim_multi_default}; then
5252 echo " default:" >> multi-run.c
5253 sim_seen_default
=yes
5256 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5258 echo " break;" >> multi-run.c
5261 # Check whether we added a 'default:' label.
5262 if test ${sim_seen_default} = no
; then
5263 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
5264 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
5265 { (exit 1); exit 1; }; }
5268 cat << __EOF__ >> multi-run.c
5273 mips_mach_multi (SIM_DESC sd)
5275 if (STATE_ARCHITECTURE (sd) == NULL)
5276 return bfd_mach_${sim_multi_default};
5278 switch (STATE_ARCHITECTURE (SD)->mach)
5282 # Add case statements for this engine to mips_mach_multi().
5283 for fc in ${sim_multi_configs}; do
5285 # Split up the entry. ${c} contains the first three elements.
5286 # Note: outer sqaure brackets are m4 quotes.
5287 c=`echo ${fc} | sed 's/:[^:]*$//'`
5288 bfdmachs=`echo ${fc} | sed 's/.*://'`
5290 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5291 echo " case bfd_mach_
${mach}:" >> multi-run.c
5295 cat << __EOF__ >> multi-run.c
5296 return (STATE_ARCHITECTURE (SD)->mach);
5298 return bfd_mach_${sim_multi_default};
5303 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5306 sim_multi_src=doesnt-exist.c
5308 if test x"${sim_mach_default}" = x""; then
5309 { { echo "$as_me:$LINENO: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&5
5310 echo "$as_me: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&2;}
5311 { (exit 1); exit 1; }; }
5313 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_
${sim_mach_default}"
5315 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5316 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5327 # Add simulated hardware devices
5333 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio
"
5334 mips_extra_objs="dv-sockser.o
"
5335 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5342 if test x"$hw_enabled" = x"yes"; then
5347 if test "$hw_devices"; then
5348 hardware="core pal glue
"
5350 hardware="core pal glue
$hw_extra_devices"
5352 sim_hw_cflags="-DWITH_HW=1"
5354 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5355 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5356 if test "${enable_sim_hardware+set}" = set; then
5357 enableval="$enable_sim_hardware"
5359 case "${enableval}" in
5362 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5363 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5364 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5366 if test "$sim_hw_p" != yes; then
5368 sim_hw_cflags="-DWITH_HW=0"
5371 sim_hw_cflags="-DWITH_HW=1"
5374 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
5375 for i in $hardware ; do
5378 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
5382 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5383 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5387 if test "$sim_hw_p" != yes; then
5389 sim_hw_cflags="-DWITH_HW=0"
5392 if test x"$silent" != x"yes"; then
5393 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5399 # Choose simulator engine
5401 *) mips_igen_engine="engine.o
"
5407 echo "$as_me:$LINENO: checking
for X
" >&5
5408 echo $ECHO_N "checking
for X...
$ECHO_C" >&6
5411 # Check whether --with-x or --without-x was given.
5412 if test "${with_x+set}" = set; then
5416 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5417 if test "x
$with_x" = xno; then
5418 # The user explicitly disabled X.
5421 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
5422 # Both variables are already set.
5425 if test "${ac_cv_have_x+set}" = set; then
5426 echo $ECHO_N "(cached
) $ECHO_C" >&6
5428 # One or both of the vars are not set, and there is no cached value.
5429 ac_x_includes=no ac_x_libraries=no
5431 if mkdir conftest.dir; then
5433 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5434 cat >Imakefile <<'_ACEOF'
5436 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5438 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5439 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
5440 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5441 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5442 for ac_extension in a so sl; do
5443 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5444 test -f $ac_im_libdir/libX11.$ac_extension; then
5445 ac_im_usrlibdir=$ac_im_libdir; break
5448 # Screen out bogus values from the imake configuration. They are
5449 # bogus both because they are the default anyway, and because
5450 # using them would break gcc on systems where it needs fixed includes.
5451 case $ac_im_incroot in
5453 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
5455 case $ac_im_usrlibdir in
5457 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5464 # Standard set of common directories for X headers.
5465 # Check X11 before X11Rn because it is often a symlink to the current release.
5477 /usr/local/X11/include
5478 /usr/local/X11R6/include
5479 /usr/local/X11R5/include
5480 /usr/local/X11R4/include
5482 /usr/local/include/X11
5483 /usr/local/include/X11R6
5484 /usr/local/include/X11R5
5485 /usr/local/include/X11R4
5489 /usr/XFree86/include/X11
5493 /usr/unsupported/include
5495 /usr/local/x11r5/include
5496 /usr/lpp/Xamples/include
5498 /usr/openwin/include
5499 /usr/openwin/share/include'
5501 if test "$ac_x_includes" = no; then
5502 # Guess where to find include files, by looking for Intrinsic.h.
5503 # First, try using that file with no special directory specified.
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <X11/Intrinsic.h>
5512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5519 (exit $ac_status); } >/dev/null; then
5520 if test -s conftest.err; then
5521 ac_cpp_err=$ac_c_preproc_warn_flag
5522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 if test -z "$ac_cpp_err"; then
5530 # We can compile using X headers with no special include directory.
5533 echo "$as_me: failed program was
:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 for ac_dir in $ac_x_header_dirs; do
5537 if test -r "$ac_dir/X11
/Intrinsic.h
"; then
5538 ac_x_includes=$ac_dir
5543 rm -f conftest.err conftest.$ac_ext
5544 fi # $ac_x_includes = no
5546 if test "$ac_x_libraries" = no; then
5547 # Check for the libraries.
5548 # See if we find them without any special options.
5549 # Don't add to $LIBS permanently.
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <X11/Intrinsic.h>
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5588 (exit $ac_status); }; }; then
5590 # We can link X programs with no special library path.
5593 echo "$as_me: failed program was
:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5597 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5599 # Don't even attempt the hair of trying to link an X program!
5600 for ac_extension in a so sl; do
5601 if test -r $ac_dir/libXt.$ac_extension; then
5602 ac_x_libraries=$ac_dir
5608 rm -f conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610 fi # $ac_x_libraries = no
5612 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5613 # Didn't find X anywhere. Cache the known absence of X.
5614 ac_cv_have_x="have_x
=no
"
5616 # Record where we found X for the cache.
5617 ac_cv_have_x="have_x
=yes \
5618 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
5623 eval "$ac_cv_have_x"
5626 if test "$have_x" != yes; then
5627 echo "$as_me:$LINENO: result
: $have_x" >&5
5628 echo "${ECHO_T}$have_x" >&6
5631 # If each of the values was on the command line, it overrides each guess.
5632 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
5633 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5634 # Update the cache value to reflect the command line values.
5635 ac_cv_have_x="have_x
=yes \
5636 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
5637 echo "$as_me:$LINENO: result
: libraries
$x_libraries, headers
$x_includes" >&5
5638 echo "${ECHO_T}libraries
$x_libraries, headers
$x_includes" >&6
5648 for ac_header in string.h strings.h stdlib.h stdlib.h
5650 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
5651 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
5652 echo "$as_me:$LINENO: checking
for $ac_header" >&5
5653 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
5654 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
5655 echo $ECHO_N "(cached
) $ECHO_C" >&6
5657 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
5658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5660 # Is the header compilable?
5661 echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
5662 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 #include <$ac_header>
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5676 grep -v '^ *+' conftest.er1 >conftest.err
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_header_compiler=yes
5696 echo "$as_me: failed program was
:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5699 ac_header_compiler=no
5701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5702 echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
5703 echo "${ECHO_T}$ac_header_compiler" >&6
5705 # Is the header present?
5706 echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
5707 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6
5708 cat >conftest.$ac_ext <<_ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <$ac_header>
5716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5723 (exit $ac_status); } >/dev/null; then
5724 if test -s conftest.err; then
5725 ac_cpp_err=$ac_c_preproc_warn_flag
5726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5733 if test -z "$ac_cpp_err"; then
5734 ac_header_preproc=yes
5736 echo "$as_me: failed program was
:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_header_preproc=no
5741 rm -f conftest.err conftest.$ac_ext
5742 echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
5743 echo "${ECHO_T}$ac_header_preproc" >&6
5745 # So? What about this header?
5746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5748 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
5749 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
5750 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
5751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
5752 ac_header_preproc=yes
5755 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
5756 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
5757 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
5758 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
5759 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
5760 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
5761 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
5762 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
5763 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
5764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
5765 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
5766 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
5769 ## ------------------------------------------ ##
5770 ## Report this to the AC_PACKAGE_NAME lists. ##
5771 ## ------------------------------------------ ##
5774 sed "s
/^
/$as_me: WARNING
: /" >&2
5777 echo "$as_me:$LINENO: checking
for $ac_header" >&5
5778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
5779 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
5780 echo $ECHO_N "(cached
) $ECHO_C" >&6
5782 eval "$as_ac_Header=\
$ac_header_preproc"
5784 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
5785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
5798 echo "$as_me:$LINENO: checking
for fabs
in -lm" >&5
5799 echo $ECHO_N "checking
for fabs
in -lm...
$ECHO_C" >&6
5800 if test "${ac_cv_lib_m_fabs+set}" = set; then
5801 echo $ECHO_N "(cached
) $ECHO_C" >&6
5803 ac_check_lib_save_LIBS=$LIBS
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5812 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_cv_lib_m_fabs=yes
5851 echo "$as_me: failed program was
:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5856 rm -f conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 echo "$as_me:$LINENO: result
: $ac_cv_lib_m_fabs" >&5
5861 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
5862 if test $ac_cv_lib_m_fabs = yes; then
5863 cat >>confdefs.h <<_ACEOF
5874 for ac_func in aint anint sqrt
5876 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
5877 echo "$as_me:$LINENO: checking
for $ac_func" >&5
5878 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6
5879 if eval "test \"\
${$as_ac_var+set}\" = set"; then
5880 echo $ECHO_N "(cached
) $ECHO_C" >&6
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5890 #define $ac_func innocuous_$ac_func
5892 /* System header to define __stub macros and hopefully few prototypes,
5893 which can conflict with char $ac_func (); below.
5894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5895 <limits.h> exists even on freestanding compilers. */
5898 # include <limits.h>
5900 # include <assert.h>
5905 /* Override any gcc2 internal prototype to avoid an error. */
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5913 /* The GNU C library defines this for functions which it implements
5914 to always fail with ENOSYS. Some functions are actually named
5915 something starting with __ and the normal name is an alias. */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 char (*f) () = $ac_func;
5928 return f != $ac_func;
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 eval "$as_ac_var=yes"
5957 echo "$as_me: failed program was
:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 eval "$as_ac_var=no
"
5962 rm -f conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5965 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_var'}'`" >&5
5966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5967 if test `eval echo '${'$as_ac_var'}'` = yes; then
5968 cat >>confdefs.h <<_ACEOF
5969 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
5977 ac_sources="$sim_link_files"
5978 ac_dests="$sim_link_links"
5979 while test -n "$ac_sources"; do
5980 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5981 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5982 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5984 ac_config_links="$ac_config_links $ac_config_links_1"
5987 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5988 cgen_breaks="break cgen_rtx_error
";
5991 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
5993 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
5995 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
5997 ac_config_commands="$ac_config_commands Makefile
"
5999 ac_config_commands="$ac_config_commands stamp-h
"
6001 cat >confcache <<\_ACEOF
6002 # This file is a shell script that caches the results of configure
6003 # tests run on this system so they can be shared between configure
6004 # scripts and configure runs, see configure's option --config-cache.
6005 # It is not useful on other systems. If it contains results you don't
6006 # want to keep, you may remove or edit it.
6008 # config.status only pays attention to the cache file if you give it
6009 # the --recheck option to rerun configure.
6011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6017 # The following way of writing the cache mishandles newlines in values,
6018 # but we know of no workaround that is simple, portable, and efficient.
6019 # So, don't put newlines in cache variables' values.
6020 # Ultrix sh set writes to stderr and can't be redirected directly,
6021 # and sets the high bit in the cache file unless we assign to the vars.
6024 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6026 # `set' does not quote correctly, so add quotes (double-quote
6027 # substitution turns \\\\ into \\, and sed turns \\ into \).
6030 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
6033 # `set' quotes correctly as required by POSIX, so do not add quotes.
6035 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
6042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6044 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6046 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6047 if test -w $cache_file; then
6048 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
6049 cat confcache >$cache_file
6051 echo "not updating unwritable cache
$cache_file"
6056 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
6057 # Let make expand exec_prefix.
6058 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
6060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6062 # trailing colons and then remove the whole line if VPATH becomes empty
6063 # (actually we leave an empty line to preserve line numbers).
6064 if test "x
$srcdir" = x.; then
6065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6066 s/:*\$(srcdir):*/:/;
6067 s/:*\${srcdir}:*/:/;
6069 s/^\([^=]*=[ ]*\):*/\1/;
6075 DEFS=-DHAVE_CONFIG_H
6079 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
6080 # 1. Remove the extension, and $U if already installed.
6081 ac_i=`echo "$ac_i" |
6082 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6084 ac_libobjs="$ac_libobjs $ac_i\
$U.
$ac_objext"
6085 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6089 LTLIBOBJS=$ac_ltlibobjs
6093 : ${CONFIG_STATUS=./config.status}
6094 ac_clean_files_save=$ac_clean_files
6095 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6096 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
6097 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
6098 cat >$CONFIG_STATUS <<_ACEOF
6100 # Generated by $as_me.
6101 # Run this file to recreate the current configuration.
6102 # Compiler output produced by configure, useful for debugging
6103 # configure, is in config.log if it exists.
6108 SHELL=\${CONFIG_SHELL-$SHELL}
6111 cat >>$CONFIG_STATUS <<\_ACEOF
6112 ## --------------------- ##
6113 ## M4sh Initialization. ##
6114 ## --------------------- ##
6116 # Be Bourne compatible
6117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6120 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6121 # is contrary to our usage. Disable this feature.
6122 alias -g '${1+"$@"}'='"$@
"'
6123 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6126 DUALCASE=1; export DUALCASE # for MKS sh
6128 # Support unset when possible.
6129 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6136 # Work around bugs in pre-3.0 UWIN ksh.
6137 $as_unset ENV MAIL MAILPATH
6144 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6145 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6146 LC_TELEPHONE LC_TIME
6148 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6149 eval $as_var=C; export $as_var
6155 # Required to use basename.
6156 if expr a : '\(a\)' >/dev/null 2>&1; then
6162 if (basename /) >/dev/null 2>&1 && test "X
`basename / 2>&1`" = "X
/"; then
6163 as_basename=basename
6169 # Name of the executable.
6170 as_me=`$as_basename "$0" ||
6171 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6172 X"$0" : 'X\(//\)$' \| \
6173 X"$0" : 'X\(/\)$' \| \
6174 . : '\(.\)' 2>/dev/null ||
6176 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6177 /^X\/\(\/\/\)$/{ s//\1/; q; }
6178 /^X\/\(\/\).*/{ s//\1/; q; }
6182 # PATH needs CR, and LINENO needs CR and PATH.
6183 # Avoid depending upon Character Ranges.
6184 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6185 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6186 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6187 as_cr_digits='0123456789'
6188 as_cr_alnum=$as_cr_Letters$as_cr_digits
6190 # The user is always right.
6191 if test "${PATH_SEPARATOR+set}" != set; then
6192 echo "#! /bin/sh" >conf$$.sh
6193 echo "exit 0" >>conf$$.sh
6195 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6206 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6207 test "x$as_lineno_1" != "x$as_lineno_2" &&
6208 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6209 # Find who we are. Look in the path if we contain no path at all
6212 *[\\/]* ) as_myself
=$0 ;;
6213 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir
=.
6218 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6223 # We did not find ourselves, most probably we were run as `sh COMMAND'
6224 # in which case we are not to be found in the path.
6225 if test "x$as_myself" = x
; then
6228 if test ! -f "$as_myself"; then
6229 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6230 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6231 { (exit 1); exit 1; }; }
6233 case $CONFIG_SHELL in
6235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6236 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6239 test -z "$as_dir" && as_dir
=.
6240 for as_base
in sh bash ksh sh5
; do
6243 if ("$as_dir/$as_base" -c '
6246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6247 test "x$as_lineno_1" != "x$as_lineno_2" &&
6248 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6249 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6250 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6251 CONFIG_SHELL
=$as_dir/$as_base
6253 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6261 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6262 # uniformly replaced by the line number. The first 'sed' inserts a
6263 # line-number line before each line; the second 'sed' does the real
6264 # work. The second script uses 'N' to pair each line-number line
6265 # with the numbered line, and appends trailing '-' during
6266 # substitution so that $LINENO is not a special case at line end.
6267 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6268 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6269 sed '=' <$as_myself |
6274 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6277 s,^['$as_cr_digits']*\n,,
6279 chmod +x
$as_me.lineno ||
6280 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6281 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6282 { (exit 1); exit 1; }; }
6284 # Don't try to exec as it changes $[0], causing all sort of problems
6285 # (the dirname of $[0] is not the place where we might find the
6286 # original and so on. Autoconf is especially sensible to this).
6288 # Exit status is that of the last command.
6293 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6294 *c
*,-n*) ECHO_N
= ECHO_C
='
6296 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6297 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6300 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6306 rm -f conf$$ conf$$.exe conf$$.
file
6308 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6309 # We could just check for DJGPP; but this test a) works b) is more generic
6310 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6311 if test -f conf$$.exe
; then
6312 # Don't use ln at all; we don't have any links
6317 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6322 rm -f conf$$ conf$$.exe conf$$.
file
6324 if mkdir
-p .
2>/dev
/null
; then
6327 test -d .
/-p && rmdir .
/-p
6331 as_executable_p
="test -f"
6333 # Sed expression to map a string onto a valid CPP name.
6334 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6336 # Sed expression to map a string onto a valid variable name.
6337 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6341 # We need space, tab and new line, in precisely that order.
6351 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6352 # report actual input values of CONFIG_FILES etc. instead of their
6353 # values after options handling. Logging --version etc. is OK.
6357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6358 ## Running $as_me. ##
6363 This file was extended by $as_me, which was
6364 generated by GNU Autoconf 2.59. Invocation command line was
6366 CONFIG_FILES = $CONFIG_FILES
6367 CONFIG_HEADERS = $CONFIG_HEADERS
6368 CONFIG_LINKS = $CONFIG_LINKS
6369 CONFIG_COMMANDS = $CONFIG_COMMANDS
6373 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6377 # Files that config.status was made for.
6378 if test -n "$ac_config_files"; then
6379 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6382 if test -n "$ac_config_headers"; then
6383 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6386 if test -n "$ac_config_links"; then
6387 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6390 if test -n "$ac_config_commands"; then
6391 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6394 cat >>$CONFIG_STATUS <<\_ACEOF
6397 \`$as_me' instantiates files from templates according to the
6398 current configuration.
6400 Usage: $0 [OPTIONS] [FILE]...
6402 -h, --help print this help, then exit
6403 -V, --version print version number, then exit
6404 -q, --quiet do not print progress messages
6405 -d, --debug don't remove temporary files
6406 --recheck update $as_me by reconfiguring in the same conditions
6407 --file=FILE[:TEMPLATE]
6408 instantiate the configuration file FILE
6409 --header=FILE[:TEMPLATE]
6410 instantiate the configuration header FILE
6412 Configuration files:
6415 Configuration headers:
6418 Configuration links:
6421 Configuration commands:
6424 Report bugs to <bug-autoconf@gnu.org>."
6427 cat >>$CONFIG_STATUS <<_ACEOF
6430 configured by $0, generated by GNU Autoconf 2.59,
6431 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6433 Copyright (C) 2003 Free Software Foundation, Inc.
6434 This config.status script is free software; the Free Software Foundation
6435 gives unlimited permission to copy, distribute and modify it."
6440 cat >>$CONFIG_STATUS <<\_ACEOF
6441 # If no file are specified by the user, then we need to provide default
6442 # value. By we need to know if files were specified by the user.
6448 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6449 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6457 *) # This is not an option, so the user has probably given explicit
6460 ac_need_defaults
=false
;;
6464 # Handling of the options.
6466 cat >>$CONFIG_STATUS <<\_ACEOF
6467 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6469 --version |
--vers* |
-V )
6470 echo "$ac_cs_version"; exit 0 ;;
6472 # Conflict between --help and --header
6473 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6474 Try \`$0 --help' for more information." >&5
6475 echo "$as_me: error: ambiguous option: $1
6476 Try \`$0 --help' for more information." >&2;}
6477 { (exit 1); exit 1; }; };;
6478 --help |
--hel |
-h )
6479 echo "$ac_cs_usage"; exit 0 ;;
6480 --debug |
--d* |
-d )
6482 --file |
--fil |
--fi |
--f )
6484 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6485 ac_need_defaults
=false
;;
6486 --header |
--heade |
--head |
--hea )
6488 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6489 ac_need_defaults
=false
;;
6490 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6491 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6495 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6496 Try \`$0 --help' for more information." >&5
6497 echo "$as_me: error: unrecognized option: $1
6498 Try \`$0 --help' for more information." >&2;}
6499 { (exit 1); exit 1; }; } ;;
6501 *) ac_config_targets
="$ac_config_targets $1" ;;
6507 ac_configure_extra_args
=
6509 if $ac_cs_silent; then
6511 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6515 cat >>$CONFIG_STATUS <<_ACEOF
6516 if \$ac_cs_recheck; then
6517 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6518 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6527 cat >>$CONFIG_STATUS <<\_ACEOF
6528 for ac_config_target
in $ac_config_targets
6530 case "$ac_config_target" in
6531 # Handling of arguments.
6532 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6533 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6534 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6535 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6536 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6537 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6538 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6540 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6541 { (exit 1); exit 1; }; };;
6545 # If the user did not use the arguments to specify the items to instantiate,
6546 # then the envvar interface is used. Set only those that are not.
6547 # We use the long form for the default assignment because of an extremely
6548 # bizarre bug on SunOS 4.1.3.
6549 if $ac_need_defaults; then
6550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6552 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6556 # Have a temporary directory for convenience. Make it in the build tree
6557 # simply because there is no reason to put it here, and in addition,
6558 # creating and moving files from /tmp can sometimes cause problems.
6559 # Create a temporary directory, and hook for its removal unless debugging.
6562 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6563 trap '{ (exit 1); exit 1; }' 1 2 13 15
6566 # Create a (secure) tmp directory for tmp files.
6569 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6570 test -n "$tmp" && test -d "$tmp"
6573 tmp
=.
/confstat$$
-$RANDOM
6574 (umask 077 && mkdir
$tmp)
6577 echo "$me: cannot create a temporary directory in ." >&2
6578 { (exit 1); exit 1; }
6583 cat >>$CONFIG_STATUS <<_ACEOF
6586 # CONFIG_FILES section.
6589 # No need to generate the scripts if there are no CONFIG_FILES.
6590 # This happens for instance when ./config.status config.h
6591 if test -n "\$CONFIG_FILES"; then
6592 # Protect against being on the right side of a sed subst in config.status.
6593 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6594 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6595 s,@SHELL@,$SHELL,;t t
6596 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6597 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6598 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6599 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6600 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6601 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6602 s,@exec_prefix@,$exec_prefix,;t t
6603 s,@prefix@,$prefix,;t t
6604 s,@program_transform_name@,$program_transform_name,;t t
6605 s,@bindir@,$bindir,;t t
6606 s,@sbindir@,$sbindir,;t t
6607 s,@libexecdir@,$libexecdir,;t t
6608 s,@datadir@,$datadir,;t t
6609 s,@sysconfdir@,$sysconfdir,;t t
6610 s,@sharedstatedir@,$sharedstatedir,;t t
6611 s,@localstatedir@,$localstatedir,;t t
6612 s,@libdir@,$libdir,;t t
6613 s,@includedir@,$includedir,;t t
6614 s,@oldincludedir@,$oldincludedir,;t t
6615 s,@infodir@,$infodir,;t t
6616 s,@mandir@,$mandir,;t t
6617 s,@build_alias@,$build_alias,;t t
6618 s,@host_alias@,$host_alias,;t t
6619 s,@target_alias@,$target_alias,;t t
6621 s,@ECHO_C@,$ECHO_C,;t t
6622 s,@ECHO_N@,$ECHO_N,;t t
6623 s,@ECHO_T@,$ECHO_T,;t t
6625 s,@sim_environment@,$sim_environment,;t t
6626 s,@sim_alignment@,$sim_alignment,;t t
6627 s,@sim_assert@,$sim_assert,;t t
6628 s,@sim_bitsize@,$sim_bitsize,;t t
6629 s,@sim_endian@,$sim_endian,;t t
6630 s,@sim_hostendian@,$sim_hostendian,;t t
6631 s,@sim_float@,$sim_float,;t t
6632 s,@sim_scache@,$sim_scache,;t t
6633 s,@sim_default_model@,$sim_default_model,;t t
6634 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6635 s,@sim_hw_objs@,$sim_hw_objs,;t t
6636 s,@sim_hw@,$sim_hw,;t t
6637 s,@sim_inline@,$sim_inline,;t t
6638 s,@sim_packages@,$sim_packages,;t t
6639 s,@sim_regparm@,$sim_regparm,;t t
6640 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6641 s,@sim_smp@,$sim_smp,;t t
6642 s,@sim_stdcall@,$sim_stdcall,;t t
6643 s,@sim_xor_endian@,$sim_xor_endian,;t t
6644 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6645 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6646 s,@build@,$build,;t t
6647 s,@build_cpu@,$build_cpu,;t t
6648 s,@build_vendor@,$build_vendor,;t t
6649 s,@build_os@,$build_os,;t t
6651 s,@host_cpu@,$host_cpu,;t t
6652 s,@host_vendor@,$host_vendor,;t t
6653 s,@host_os@,$host_os,;t t
6654 s,@target@,$target,;t t
6655 s,@target_cpu@,$target_cpu,;t t
6656 s,@target_vendor@,$target_vendor,;t t
6657 s,@target_os@,$target_os,;t t
6659 s,@CFLAGS@,$CFLAGS,;t t
6660 s,@LDFLAGS@,$LDFLAGS,;t t
6661 s,@CPPFLAGS@,$CPPFLAGS,;t t
6662 s,@ac_ct_CC@,$ac_ct_CC,;t t
6663 s,@EXEEXT@,$EXEEXT,;t t
6664 s,@OBJEXT@,$OBJEXT,;t t
6665 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6666 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6667 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6668 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6669 s,@HDEFINES@,$HDEFINES,;t t
6671 s,@RANLIB@,$RANLIB,;t t
6672 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6674 s,@EGREP@,$EGREP,;t t
6675 s,@MAINT@,$MAINT,;t t
6676 s,@sim_bswap@,$sim_bswap,;t t
6677 s,@sim_cflags@,$sim_cflags,;t t
6678 s,@sim_debug@,$sim_debug,;t t
6679 s,@sim_stdio@,$sim_stdio,;t t
6680 s,@sim_trace@,$sim_trace,;t t
6681 s,@sim_profile@,$sim_profile,;t t
6682 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
6683 s,@sim_igen_flags@,$sim_igen_flags,;t t
6684 s,@sim_m16_flags@,$sim_m16_flags,;t t
6685 s,@sim_gen@,$sim_gen,;t t
6686 s,@sim_multi_flags@,$sim_multi_flags,;t t
6687 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
6688 s,@sim_multi_src@,$sim_multi_src,;t t
6689 s,@sim_multi_obj@,$sim_multi_obj,;t t
6690 s,@mips_extra_objs@,$mips_extra_objs,;t t
6691 s,@mips_igen_engine@,$mips_igen_engine,;t t
6692 s,@mips_extra_libs@,$mips_extra_libs,;t t
6693 s,@cgen_breaks@,$cgen_breaks,;t t
6694 s,@LIBOBJS@,$LIBOBJS,;t t
6695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6700 cat >>$CONFIG_STATUS <<\_ACEOF
6701 # Split the substitutions into bite-sized pieces for seds with
6702 # small command number limits, like on Digital OSF/1 and HP-UX.
6704 ac_sed_frag
=1 # Number of current file.
6705 ac_beg
=1 # First line for current file.
6706 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6709 while $ac_more_lines; do
6710 if test $ac_beg -gt 1; then
6711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6713 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6715 if test ! -s $tmp/subs.frag
; then
6718 # The purpose of the label and of the branching condition is to
6719 # speed up the sed processing (if there are no `@' at all, there
6720 # is no need to browse any of the substitutions).
6721 # These are the two extra sed commands mentioned above.
6723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6724 if test -z "$ac_sed_cmds"; then
6725 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6727 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6729 ac_sed_frag
=`expr $ac_sed_frag + 1`
6731 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6734 if test -z "$ac_sed_cmds"; then
6737 fi # test -n "$CONFIG_FILES"
6740 cat >>$CONFIG_STATUS <<\_ACEOF
6741 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6744 - |
*:- |
*:-:* ) # input from stdin
6746 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6747 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6748 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6749 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6750 * ) ac_file_in
=$ac_file.
in ;;
6753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6754 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6756 X"$ac_file" : 'X\(//\)[^/]' \| \
6757 X"$ac_file" : 'X\(//\)$' \| \
6758 X"$ac_file" : 'X\(/\)' \| \
6759 . : '\(.\)' 2>/dev/null ||
6761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6763 /^X\(\/\/\)$/{ s//\1/; q; }
6764 /^X\(\/\).*/{ s//\1/; q; }
6766 { if $as_mkdir_p; then
6771 while test ! -d "$as_dir"; do
6772 as_dirs
="$as_dir $as_dirs"
6773 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6775 X"$as_dir" : 'X\(//\)[^/]' \| \
6776 X"$as_dir" : 'X\(//\)$' \| \
6777 X"$as_dir" : 'X\(/\)' \| \
6778 . : '\(.\)' 2>/dev/null ||
6780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6782 /^X\(\/\/\)$/{ s//\1/; q; }
6783 /^X\(\/\).*/{ s//\1/; q; }
6786 test ! -n "$as_dirs" || mkdir
$as_dirs
6787 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6789 { (exit 1); exit 1; }; }; }
6793 if test "$ac_dir" != .
; then
6794 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6795 # A "../" for each directory in $ac_dir_suffix.
6796 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6798 ac_dir_suffix
= ac_top_builddir
=
6802 .
) # No --srcdir option. We are building in place.
6804 if test -z "$ac_top_builddir"; then
6807 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6809 [\\/]* | ?
:[\\/]* ) # Absolute path.
6810 ac_srcdir
=$srcdir$ac_dir_suffix;
6811 ac_top_srcdir
=$srcdir ;;
6813 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6814 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6817 # Do not use `cd foo && pwd` to compute absolute paths, because
6818 # the directories may not exist.
6820 .
) ac_abs_builddir
="$ac_dir";;
6823 .
) ac_abs_builddir
=`pwd`;;
6824 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6825 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6828 case $ac_abs_builddir in
6829 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6831 case ${ac_top_builddir}.
in
6832 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6833 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6834 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6837 case $ac_abs_builddir in
6838 .
) ac_abs_srcdir
=$ac_srcdir;;
6841 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6842 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6843 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6846 case $ac_abs_builddir in
6847 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6849 case $ac_top_srcdir in
6850 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6851 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6852 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6858 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6859 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6862 if test x
"$ac_file" != x-
; then
6863 { echo "$as_me:$LINENO: creating $ac_file" >&5
6864 echo "$as_me: creating $ac_file" >&6;}
6867 # Let's still pretend it is `configure' which instantiates (i.e., don't
6868 # use $as_me), people would be surprised to read:
6869 # /* config.h. Generated by config.status. */
6870 if test x
"$ac_file" = x-
; then
6873 configure_input
="$ac_file. "
6875 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6876 sed 's,.*/,,'` by configure."
6878 # First look for the input files in the build tree, otherwise in the
6880 ac_file_inputs
=`IFS=:
6881 for f in $ac_file_in; do
6883 -) echo $tmp/stdin ;;
6885 # Absolute (can't be DOS-style, as IFS=:)
6886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6887 echo "$as_me: error: cannot find input file: $f" >&2;}
6888 { (exit 1); exit 1; }; }
6891 if test -f "$f"; then
6894 elif test -f "$srcdir/$f"; then
6899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6900 echo "$as_me: error: cannot find input file: $f" >&2;}
6901 { (exit 1); exit 1; }; }
6904 done` ||
{ (exit 1); exit 1; }
6906 cat >>$CONFIG_STATUS <<_ACEOF
6910 cat >>$CONFIG_STATUS <<\_ACEOF
6912 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6913 s
,@configure_input@
,$configure_input,;t t
6914 s
,@srcdir@
,$ac_srcdir,;t t
6915 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6916 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6917 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6918 s
,@builddir@
,$ac_builddir,;t t
6919 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6920 s
,@top_builddir@
,$ac_top_builddir,;t t
6921 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6922 s
,@INSTALL@
,$ac_INSTALL,;t t
6923 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6925 if test x"$ac_file" != x-; then
6926 mv $tmp/out $ac_file
6934 cat >>$CONFIG_STATUS <<\_ACEOF
6937 # CONFIG_HEADER section.
6940 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6941 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6943 # ac_d sets the value in "#define NAME VALUE" lines.
6944 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6945 ac_dB
='[ ].*$,\1#\2'
6948 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6949 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6950 ac_uB
='$,\1#\2define\3'
6954 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6957 - |
*:- |
*:-:* ) # input from stdin
6959 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6960 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6961 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6962 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6963 * ) ac_file_in
=$ac_file.
in ;;
6966 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6967 echo "$as_me: creating $ac_file" >&6;}
6969 # First look for the input files in the build tree, otherwise in the
6971 ac_file_inputs
=`IFS=:
6972 for f in $ac_file_in; do
6974 -) echo $tmp/stdin ;;
6976 # Absolute (can't be DOS-style, as IFS=:)
6977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6978 echo "$as_me: error: cannot find input file: $f" >&2;}
6979 { (exit 1); exit 1; }; }
6980 # Do quote $f, to prevent DOS paths from being IFS'd.
6983 if test -f "$f"; then
6986 elif test -f "$srcdir/$f"; then
6991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6992 echo "$as_me: error: cannot find input file: $f" >&2;}
6993 { (exit 1); exit 1; }; }
6996 done` ||
{ (exit 1); exit 1; }
6997 # Remove the trailing spaces.
6998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7002 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7003 # `conftest.undefs', that substitutes the proper values into
7004 # config.h.in to produce config.h. The first handles `#define'
7005 # templates, and the second `#undef' templates.
7006 # And first: Protect against being on the right side of a sed subst in
7007 # config.status. Protect against being in an unquoted here document
7009 rm -f conftest.defines conftest.undefs
7010 # Using a here document instead of a string reduces the quoting nightmare.
7011 # Putting comments in sed scripts is not portable.
7013 # `end' is used to avoid that the second main sed command (meant for
7014 # 0-ary CPP macros) applies to n-ary macro definitions.
7015 # See the Autoconf documentation for `clear'.
7016 cat >confdef2sed.
sed <<\_ACEOF
7021 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7023 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7026 # If some macros were called several times there might be several times
7027 # the same #defines, which is useless. Nevertheless, we may not want to
7028 # sort them, since we want the *last* AC-DEFINE to be honored.
7029 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7030 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7031 rm -f confdef2sed.sed
7033 # This sed command replaces #undef with comments. This is necessary, for
7034 # example, in the case of _POSIX_SOURCE, which is predefined and required
7035 # on some systems where configure will not decide to define it.
7036 cat >>conftest.undefs <<\_ACEOF
7037 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7040 # Break up conftest.defines because some shells have a limit on the size
7041 # of here documents, and old seds have small limits too (100 cmds).
7042 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7043 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7044 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7045 echo ' :' >>$CONFIG_STATUS
7047 while grep . conftest.defines >/dev/null
7049 # Write a limited-size here document to $tmp/defines.sed.
7050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7051 # Speed up: don't consider the non `#define' lines.
7052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7053 # Work around the forget-to-reset-the-flag bug.
7054 echo 't clr' >>$CONFIG_STATUS
7055 echo ': clr' >>$CONFIG_STATUS
7056 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7062 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7063 rm -f conftest.defines
7064 mv conftest.
tail conftest.defines
7066 rm -f conftest.defines
7067 echo ' fi # grep' >>$CONFIG_STATUS
7068 echo >>$CONFIG_STATUS
7070 # Break up conftest.undefs because some shells have a limit on the size
7071 # of here documents, and old seds have small limits too (100 cmds).
7072 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7074 while grep . conftest.undefs
>/dev
/null
7076 # Write a limited-size here document to $tmp/undefs.sed.
7077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7078 # Speed up: don't consider the non
`#undef'
7079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7080 # Work around the forget-to-reset-the-flag bug.
7081 echo 't clr' >>$CONFIG_STATUS
7082 echo ': clr' >>$CONFIG_STATUS
7083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7090 rm -f conftest.undefs
7091 mv conftest.tail conftest.undefs
7093 rm -f conftest.undefs
7095 cat >>$CONFIG_STATUS <<\_ACEOF
7096 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7097 # use $as_me), people would be surprised to read:
7098 # /* config.h. Generated by config.status. */
7099 if test x
"$ac_file" = x-
; then
7100 echo "/* Generated by configure. */" >$tmp/config.h
7102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7104 cat $tmp/in >>$tmp/config.h
7106 if test x
"$ac_file" != x-
; then
7107 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7109 echo "$as_me: $ac_file is unchanged" >&6;}
7111 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7113 X"$ac_file" : 'X\(//\)[^/]' \| \
7114 X"$ac_file" : 'X\(//\)$' \| \
7115 X"$ac_file" : 'X\(/\)' \| \
7116 . : '\(.\)' 2>/dev/null ||
7118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7120 /^X\(\/\/\)$/{ s//\1/; q; }
7121 /^X\(\/\).*/{ s//\1/; q; }
7123 { if $as_mkdir_p; then
7128 while test ! -d "$as_dir"; do
7129 as_dirs
="$as_dir $as_dirs"
7130 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7132 X"$as_dir" : 'X\(//\)[^/]' \| \
7133 X"$as_dir" : 'X\(//\)$' \| \
7134 X"$as_dir" : 'X\(/\)' \| \
7135 . : '\(.\)' 2>/dev/null ||
7137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7139 /^X\(\/\/\)$/{ s//\1/; q; }
7140 /^X\(\/\).*/{ s//\1/; q; }
7143 test ! -n "$as_dirs" || mkdir
$as_dirs
7144 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7146 { (exit 1); exit 1; }; }; }
7149 mv $tmp/config.h
$ac_file
7157 cat >>$CONFIG_STATUS <<\_ACEOF
7160 # CONFIG_LINKS section.
7163 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
7164 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7165 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7167 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7168 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7170 if test ! -r $srcdir/$ac_source; then
7171 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7172 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7173 { (exit 1); exit 1; }; }
7177 # Make relative symlinks.
7178 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7179 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7180 X"$ac_dest" : 'X\(//\)[^/]' \| \
7181 X"$ac_dest" : 'X\(//\)$' \| \
7182 X"$ac_dest" : 'X\(/\)' \| \
7183 . : '\(.\)' 2>/dev/null ||
7185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7187 /^X\(\/\/\)$/{ s//\1/; q; }
7188 /^X\(\/\).*/{ s//\1/; q; }
7190 { if $as_mkdir_p; then
7191 mkdir
-p "$ac_dest_dir"
7193 as_dir
="$ac_dest_dir"
7195 while test ! -d "$as_dir"; do
7196 as_dirs
="$as_dir $as_dirs"
7197 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7199 X"$as_dir" : 'X\(//\)[^/]' \| \
7200 X"$as_dir" : 'X\(//\)$' \| \
7201 X"$as_dir" : 'X\(/\)' \| \
7202 . : '\(.\)' 2>/dev/null ||
7204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7206 /^X\(\/\/\)$/{ s//\1/; q; }
7207 /^X\(\/\).*/{ s//\1/; q; }
7210 test ! -n "$as_dirs" || mkdir
$as_dirs
7211 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7212 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7213 { (exit 1); exit 1; }; }; }
7217 if test "$ac_dest_dir" != .
; then
7218 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7219 # A "../" for each directory in $ac_dir_suffix.
7220 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7222 ac_dir_suffix
= ac_top_builddir
=
7226 .
) # No --srcdir option. We are building in place.
7228 if test -z "$ac_top_builddir"; then
7231 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7233 [\\/]* | ?
:[\\/]* ) # Absolute path.
7234 ac_srcdir
=$srcdir$ac_dir_suffix;
7235 ac_top_srcdir
=$srcdir ;;
7237 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7238 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7241 # Do not use `cd foo && pwd` to compute absolute paths, because
7242 # the directories may not exist.
7244 .
) ac_abs_builddir
="$ac_dest_dir";;
7246 case "$ac_dest_dir" in
7247 .
) ac_abs_builddir
=`pwd`;;
7248 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
7249 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
7252 case $ac_abs_builddir in
7253 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7255 case ${ac_top_builddir}.
in
7256 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7257 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7258 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7261 case $ac_abs_builddir in
7262 .
) ac_abs_srcdir
=$ac_srcdir;;
7265 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7266 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7267 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7270 case $ac_abs_builddir in
7271 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7273 case $ac_top_srcdir in
7274 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7275 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7276 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7282 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
7283 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
7286 # Try a symlink, then a hard link, then a copy.
7287 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
7288 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
7289 cp -p $srcdir/$ac_source $ac_dest ||
7290 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7291 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7292 { (exit 1); exit 1; }; }
7295 cat >>$CONFIG_STATUS <<\_ACEOF
7298 # CONFIG_COMMANDS section.
7300 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7301 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7302 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7303 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7304 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7305 X"$ac_dest" : 'X\(//\)[^/]' \| \
7306 X"$ac_dest" : 'X\(//\)$' \| \
7307 X"$ac_dest" : 'X\(/\)' \| \
7308 . : '\(.\)' 2>/dev/null ||
7310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7312 /^X\(\/\/\)$/{ s//\1/; q; }
7313 /^X\(\/\).*/{ s//\1/; q; }
7315 { if $as_mkdir_p; then
7320 while test ! -d "$as_dir"; do
7321 as_dirs
="$as_dir $as_dirs"
7322 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7324 X"$as_dir" : 'X\(//\)[^/]' \| \
7325 X"$as_dir" : 'X\(//\)$' \| \
7326 X"$as_dir" : 'X\(/\)' \| \
7327 . : '\(.\)' 2>/dev/null ||
7329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7331 /^X\(\/\/\)$/{ s//\1/; q; }
7332 /^X\(\/\).*/{ s//\1/; q; }
7335 test ! -n "$as_dirs" || mkdir
$as_dirs
7336 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7337 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7338 { (exit 1); exit 1; }; }; }
7342 if test "$ac_dir" != .
; then
7343 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7344 # A "../" for each directory in $ac_dir_suffix.
7345 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7347 ac_dir_suffix
= ac_top_builddir
=
7351 .
) # No --srcdir option. We are building in place.
7353 if test -z "$ac_top_builddir"; then
7356 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7358 [\\/]* | ?
:[\\/]* ) # Absolute path.
7359 ac_srcdir
=$srcdir$ac_dir_suffix;
7360 ac_top_srcdir
=$srcdir ;;
7362 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7363 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7366 # Do not use `cd foo && pwd` to compute absolute paths, because
7367 # the directories may not exist.
7369 .
) ac_abs_builddir
="$ac_dir";;
7372 .
) ac_abs_builddir
=`pwd`;;
7373 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7374 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7377 case $ac_abs_builddir in
7378 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7380 case ${ac_top_builddir}.
in
7381 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7382 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7383 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7386 case $ac_abs_builddir in
7387 .
) ac_abs_srcdir
=$ac_srcdir;;
7390 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7391 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7392 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7395 case $ac_abs_builddir in
7396 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7398 case $ac_top_srcdir in
7399 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7400 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7401 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7406 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7407 echo "$as_me: executing $ac_dest commands" >&6;}
7409 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7410 rm -f Makesim1.tmp Makesim2.tmp Makefile
7411 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
7412 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7413 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7414 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7415 <Makefile.sim
>Makefile
7416 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7418 stamp-h
) echo > stamp-h
;;
7423 cat >>$CONFIG_STATUS <<\_ACEOF
7425 { (exit 0); exit 0; }
7427 chmod +x
$CONFIG_STATUS
7428 ac_clean_files
=$ac_clean_files_save
7431 # configure is writing to config.log, and then calls config.status.
7432 # config.status does its own redirection, appending to config.log.
7433 # Unfortunately, on DOS this fails, as config.log is still kept open
7434 # by configure, so config.status won't be able to write to it; its
7435 # output is simply discarded. So we exec the FD to /dev/null,
7436 # effectively closing config.log, so it can be properly (re)opened and
7437 # appended to by config.status. When coming back to configure, we
7438 # need to make the FD available again.
7439 if test "$no_create" != yes; then
7441 ac_config_status_args
=
7442 test "$silent" = yes &&
7443 ac_config_status_args
="$ac_config_status_args --quiet"
7445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7448 # would make configure fail if this is the last instruction.
7449 $ac_cs_success ||
{ (exit 1); exit 1; }