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
='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 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu 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 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-sim-alignment=align Specify strict or nonstrict alignment.
854 --enable-sim-assert Specify whether to perform random assertions.
855 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
856 --enable-sim-bswap Use the BSWAP instruction on Intel
486s and Pentiums.
857 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
858 --enable-sim-config=file Override default config
file
859 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
860 --enable-sim-default-model=which Specify default PowerPC to model.
861 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
862 --enable-sim-endian=endian Specify target byte endian orientation.
863 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
864 --enable-sim-filter=rule Specify filter rules.
865 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
866 --enable-sim-hardware=list Specify the hardware to be included
in the build.
867 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
868 --enable-sim-hostendian=end Specify
host byte endian orientation.
869 --enable-sim-icache=size Specify instruction-decode cache size and
type.
870 --enable-sim-inline=inlines Specify
which functions should be inlined.
871 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
872 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
873 --enable-sim-model=which Specify PowerPC to model.
874 --enable-sim-model-issue Specify whether to simulate model specific actions
875 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
876 --enable-sim-opcode=which Override default opcode lookup.
877 --enable-sim-packages=list Specify the packages to be included
in the build.
878 --enable-sim-regparm=nr-parm Pass parameters
in registers instead of on the stack
- x86
/GCC specific.
879 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
880 --enable-sim-smp=n Specify number of processors to configure
for.
881 --enable-sim-stdcall=type Use an alternative
function call
/return mechanism
- x86
/GCC specific.
882 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
883 --enable-sim-switch Use a switch instead of a table
for instruction call.
884 --enable-sim-timebase Specify whether the PPC timebase is supported.
885 --enable-sim-trace Specify whether tracing is supported.
886 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
887 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
890 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
891 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
892 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
893 --with-bugurl=URL Direct users to URL to report a bug
895 Some influential environment variables
:
896 CC C compiler
command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
899 nonstandard directory
<lib dir
>
900 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
901 headers
in a nonstandard directory
<include dir
>
904 Use these variables to override the choices made by
`configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
922 ac_dir_suffix= ac_top_builddir=
926 .) # No --srcdir option. We are building in place.
928 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Do not use `cd foo
&& pwd` to compute absolute paths, because
942 # the directories may not exist.
944 .) ac_abs_builddir="$ac_dir";;
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1026 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1027 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1028 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1029 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1030 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1033 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1035 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1037 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1038 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1039 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1040 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1041 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_must_keep_next=false
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 -* ) ac_must_keep_next=true ;;
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close
' the trap.
1121 trap 'exit_status
=$?
1122 # Save into config.log some information that might help in debugging.
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1132 # The following way of writing the cache mishandles newlines in values,
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1155 for ac_var
in $ac_subst_vars
1157 eval ac_val
=$
`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -n "$ac_subst_files"; then
1169 for ac_var
in $ac_subst_files
1171 eval ac_val
=$
`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1177 if test -s confdefs.h
; then
1184 sed "/^$/d" confdefs.h |
sort
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1191 rm -f core
*.core
&&
1192 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 # Predefined preprocessor variables.
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's
/^
/|
/' "$ac_site_file" >&5
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1267 # Check that the precious variables saved in the cache have kept the same
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1280 ac_cache_corrupted=: ;;
1282 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1289 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1314 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1321 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1349 elif test -f $ac_dir/install.sh; then
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1353 elif test -f $ac_dir/shtool; then
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 # Find a good install program. We prefer a C program (faster),
1369 # so one script is as good as another. But avoid the broken or
1370 # incompatible versions:
1371 # SysV /etc/install, /usr/sbin/install
1372 # SunOS /usr/etc/install
1373 # IRIX /sbin/install
1375 # AmigaOS /C/install, which installs bootblocks on floppy discs
1376 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379 # OS/2's system install, which has a completely different semantic
1380 # ./install, which can be erroneously created by make from ./install.sh.
1381 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1383 if test -z "$INSTALL"; then
1384 if test "${ac_cv_path_install+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1391 test -z "$as_dir" && as_dir
=.
1392 # Account for people who put trailing slashes in PATH elements.
1394 .
/ | .
// |
/cC
/* | \
1395 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1396 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1399 # OSF1 and SCO ODT 3.0 have their own names for install.
1400 # Don't use installbsd from OSF since it installs stuff as root
1402 for ac_prog
in ginstall scoinst
install; do
1403 for ac_exec_ext
in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1405 if test $ac_prog = install &&
1406 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1407 # AIX install. It has an incompatible calling convention.
1409 elif test $ac_prog = install &&
1410 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1411 # program-specific install script used by HP pwplus--don't use.
1414 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL
=$ac_cv_path_install
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL
=$ac_install_sh
1436 echo "$as_me:$LINENO: result: $INSTALL" >&5
1437 echo "${ECHO_T}$INSTALL" >&6
1439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440 # It thinks the first close brace ends the variable substitution.
1441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1445 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1448 ac_cpp
='$CPP $CPPFLAGS'
1449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1452 if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1454 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC
="$CC" # Let the user override the test.
1463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1467 test -z "$as_dir" && as_dir
=.
1468 for ac_exec_ext
in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 if test -n "$CC"; then
1481 echo "$as_me:$LINENO: result: $CC" >&5
1482 echo "${ECHO_T}$CC" >&6
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1489 if test -z "$ac_cv_prog_CC"; then
1491 # Extract the first word of "gcc", so it can be a program name with args.
1492 set dummy gcc
; ac_word
=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$ac_ct_CC"; then
1499 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir
=.
1506 for ac_exec_ext
in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_CC
="gcc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1518 if test -n "$ac_ct_CC"; then
1519 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520 echo "${ECHO_T}$ac_ct_CC" >&6
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1531 if test -z "$CC"; then
1532 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1534 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC
="$CC" # Let the user override the test.
1543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir
=.
1548 for ac_exec_ext
in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1569 if test -z "$ac_cv_prog_CC"; then
1571 # Extract the first word of "cc", so it can be a program name with args.
1572 set dummy cc
; ac_word
=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir
=.
1586 for ac_exec_ext
in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_ac_ct_CC
="cc"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1598 if test -n "$ac_ct_CC"; then
1599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600 echo "${ECHO_T}$ac_ct_CC" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1612 if test -z "$CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614 set dummy cc
; ac_word
=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC
="$CC" # Let the user override the test.
1624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir
=.
1629 for ac_exec_ext
in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1632 ac_prog_rejected
=yes
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test $ac_prog_rejected = yes; then
1643 # We found a bogon in the path, so make sure we never use it.
1644 set dummy
$ac_cv_prog_CC
1646 if test $# != 0; then
1647 # We chose a different compiler from the bogus one.
1648 # However, it has the same basename, so the bogon will be chosen
1649 # first if we set CC to just the basename; use the full file name.
1651 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1657 if test -n "$CC"; then
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1666 if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1671 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC
="$CC" # Let the user override the test.
1680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir
=.
1685 for ac_exec_ext
in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699 echo "${ECHO_T}$CC" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1705 test -n "$CC" && break
1708 if test -z "$CC"; then
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy
$ac_prog; ac_word
=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 if test -n "$ac_ct_CC"; then
1720 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir
=.
1727 for ac_exec_ext
in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_CC
="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1739 if test -n "$ac_ct_CC"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741 echo "${ECHO_T}$ac_ct_CC" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$ac_ct_CC" && break
1756 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1757 See \`config.log' for more details." >&5
1758 echo "$as_me: error: no acceptable C compiler found in \$PATH
1759 See \`config.log' for more details." >&2;}
1760 { (exit 1); exit 1; }; }
1762 # Provide some information about the compiler.
1763 echo "$as_me:$LINENO:" \
1764 "checking for C compiler version" >&5
1765 ac_compiler
=`set X $ac_compile; echo $2`
1766 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1767 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1772 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1777 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1782 cat >conftest.
$ac_ext <<_ACEOF
1785 cat confdefs.h
>>conftest.
$ac_ext
1786 cat >>conftest.
$ac_ext <<_ACEOF
1787 /* end confdefs.h. */
1797 ac_clean_files_save
=$ac_clean_files
1798 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1799 # Try to create an executable without -o first, disregard a.out.
1800 # It will help us diagnose broken compilers, and finding out an intuition
1802 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1804 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1805 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1806 (eval $ac_link_default) 2>&5
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # Find the output, starting from the most likely. This scheme is
1811 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1814 # Be careful to initialize this variable, since it used to be cached.
1815 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1817 # b.out is created by i960 compilers.
1818 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1820 test -f "$ac_file" ||
continue
1822 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1825 # This is the source file.
1828 # We found the default executable, but exeext='' is most
1832 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 # FIXME: I believe we export ac_cv_exeext for Libtool,
1834 # but it would be cool to find out if it's true. Does anybody
1835 # maintain Libtool? --akim.
1843 echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.
$ac_ext >&5
1846 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847 See \`config.log' for more details." >&5
1848 echo "$as_me: error: C compiler cannot create executables
1849 See \`config.log' for more details." >&2;}
1850 { (exit 77); exit 77; }; }
1853 ac_exeext
=$ac_cv_exeext
1854 echo "$as_me:$LINENO: result: $ac_file" >&5
1855 echo "${ECHO_T}$ac_file" >&6
1857 # Check the compiler produces executables we can run. If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862 # If not cross compiling, check that we can run a simple program.
1863 if test "$cross_compiling" != yes; then
1864 if { ac_try
='./$ac_file'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; }; then
1872 if test "$cross_compiling" = maybe
; then
1875 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'.
1877 See \`config.log' for more details." >&5
1878 echo "$as_me: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'.
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
1885 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1888 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1889 ac_clean_files
=$ac_clean_files_save
1890 # Check the compiler produces executables we can run. If not, either
1891 # the compiler is broken, or we cross compile.
1892 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1893 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1894 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1895 echo "${ECHO_T}$cross_compiling" >&6
1897 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1898 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1900 (eval $ac_link) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1906 # work properly (i.e., refer to `conftest.exe'), while it won't with
1908 for ac_file
in conftest.exe conftest conftest.
*; do
1909 test -f "$ac_file" ||
continue
1911 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1912 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1926 rm -f conftest
$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1928 echo "${ECHO_T}$ac_cv_exeext" >&6
1930 rm -f conftest.
$ac_ext
1931 EXEEXT
=$ac_cv_exeext
1933 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1935 if test "${ac_cv_objext+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 cat >conftest.
$ac_ext <<_ACEOF
1941 cat confdefs.h
>>conftest.
$ac_ext
1942 cat >>conftest.
$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1953 rm -f conftest.o conftest.obj
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1961 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1962 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1967 echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.
$ac_ext >&5
1970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1973 See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
1977 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1979 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1980 echo "${ECHO_T}$ac_cv_objext" >&6
1981 OBJEXT
=$ac_cv_objext
1983 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 cat >conftest.
$ac_ext <<_ACEOF
1991 cat confdefs.h
>>conftest.
$ac_ext
1992 cat >>conftest.
$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
2006 rm -f conftest.
$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>conftest.er1
2010 grep -v '^ *+' conftest.er1
>conftest.err
2012 cat conftest.err
>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try
='test -z "$ac_c_werror_flag"
2016 || test ! -s conftest.err'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; } &&
2022 { ac_try
='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.
$ac_ext >&5
2035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2039 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2041 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2042 ac_test_CFLAGS
=${CFLAGS+set}
2043 ac_save_CFLAGS
=$CFLAGS
2045 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2047 if test "${ac_cv_prog_cc_g+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 cat >conftest.
$ac_ext <<_ACEOF
2053 cat confdefs.h
>>conftest.
$ac_ext
2054 cat >>conftest.
$ac_ext <<_ACEOF
2055 /* end confdefs.h. */
2065 rm -f conftest.
$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2069 grep -v '^ *+' conftest.er1
>conftest.err
2071 cat conftest.err
>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try
='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try
='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2089 echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.
$ac_ext >&5
2094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2097 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2098 if test "$ac_test_CFLAGS" = set; then
2099 CFLAGS
=$ac_save_CFLAGS
2100 elif test $ac_cv_prog_cc_g = yes; then
2101 if test "$GCC" = yes; then
2107 if test "$GCC" = yes; then
2113 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2114 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 ac_cv_prog_cc_stdc
=no
2120 cat >conftest.
$ac_ext <<_ACEOF
2123 cat confdefs.h
>>conftest.
$ac_ext
2124 cat >>conftest.
$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2128 #include <sys/types.h>
2129 #include <sys/stat.h>
2130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2131 struct buf { int x; };
2132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2133 static char *e (p, i)
2139 static char *f (char * (*g) (char **, int), char **p, ...)
2144 s = g (p, va_arg (v,int));
2149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2150 function prototypes and stuff, but not '\xHH' hex character constants.
2151 These don't provoke an error unfortunately, instead are silently treated
2152 as 'x'. The following induces an error, until -std1 is added to get
2153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2154 array size at least. It's necessary to write '\x00'==0 to get something
2155 that's true only with -std1. */
2156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX -qlanglvl=ansi
2175 # Ultrix and OSF/1 -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions -Aa -D_HPUX_SOURCE
2178 # SVR4 -Xc -D__EXTENSIONS__
2179 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2181 CC
="$ac_save_CC $ac_arg"
2182 rm -f conftest.
$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1
>conftest.err
2188 cat conftest.err
>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try
='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try
='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc
=$ac_arg
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2211 rm -f conftest.err conftest.
$ac_objext
2213 rm -f conftest.
$ac_ext conftest.
$ac_objext
2218 case "x$ac_cv_prog_cc_stdc" in
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.
$ac_ext <<_ACEOF
2237 rm -f conftest.
$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1
>conftest.err
2243 cat conftest.err
>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try
='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try
='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 for ac_declaration
in \
2261 'extern "C" void std::exit (int) throw (); using std::exit;' \
2262 'extern "C" void std::exit (int); using std::exit;' \
2263 'extern "C" void exit (int) throw ();' \
2264 'extern "C" void exit (int);' \
2267 cat >conftest.
$ac_ext <<_ACEOF
2270 cat confdefs.h
>>conftest.
$ac_ext
2271 cat >>conftest.
$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2283 rm -f conftest.
$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1
>conftest.err
2289 cat conftest.err
>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try
='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try
='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.
$ac_ext >&5
2312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
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
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.
$ac_ext >&5
2356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2359 if test -n "$ac_declaration"; then
2360 echo '#ifdef __cplusplus' >>confdefs.h
2361 echo $ac_declaration >>confdefs.h
2362 echo '#endif' >>confdefs.h
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.
$ac_ext >&5
2370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 ac_cpp
='$CPP $CPPFLAGS'
2373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2378 # Put a plausible default for CC_FOR_BUILD in Makefile.
2379 if test "x$cross_compiling" = "xno"; then
2380 CC_FOR_BUILD
='$(CC)'
2384 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
2387 # If we haven't got the data from the intl directory,
2388 # assume NLS is disabled.
2397 if test -f ..
/..
/intl
/config.intl
; then
2398 . ..
/..
/intl
/config.intl
2400 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2401 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2402 if test x
"$USE_NLS" != xyes
; then
2403 echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6
2406 echo "$as_me:$LINENO: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6
2409 cat >>confdefs.h
<<\_ACEOF
2410 #define ENABLE_NLS 1
2414 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2415 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2416 # Look for .po and .gmo files in the source directory.
2419 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
2420 # If there aren't any .gmo files the shell will give us the
2421 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2423 case "$cat" in *\
**)
2426 # The quadruple backslash is collapsed to a double backslash
2427 # by the backticks, then collapsed again by the double quotes,
2428 # leaving us with one backslash in the sed expression (right
2429 # before the dot that mustn't act as a wildcard).
2430 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2431 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
2432 # The user is allowed to set LINGUAS to a list of languages to
2433 # install catalogs for. If it's empty that means "all of them."
2434 if test "x$LINGUAS" = x
; then
2435 CATALOGS
="$CATALOGS $cat"
2436 XLINGUAS
="$XLINGUAS $lang"
2438 case "$LINGUAS" in *$lang*)
2439 CATALOGS
="$CATALOGS $cat"
2440 XLINGUAS
="$XLINGUAS $lang"
2446 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2447 echo "${ECHO_T}$LINGUAS" >&6
2461 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2462 if test "${enable_sim_alignment+set}" = set; then
2463 enableval
="$enable_sim_alignment"
2464 case "${enableval}" in
2465 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2466 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2467 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
2468 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2469 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2470 { (exit 1); exit 1; }; }; sim_alignment
="";;
2472 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
2473 echo "Setting alignment flags = $sim_alignment" 6>&1
2479 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2480 if test "${enable_sim_assert+set}" = set; then
2481 enableval
="$enable_sim_assert"
2482 case "${enableval}" in
2483 yes) sim_assert
="-DWITH_ASSERT=1";;
2484 no
) sim_assert
="-DWITH_ASSERT=0";;
2485 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2486 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2487 { (exit 1); exit 1; }; }; sim_assert
="";;
2489 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
2490 echo "Setting assert flags = $sim_assert" 6>&1
2496 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2497 if test "${enable_sim_bitsize+set}" = set; then
2498 enableval
="$enable_sim_bitsize"
2499 case "${enableval}" in
2500 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2501 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2502 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2503 { (exit 1); exit 1; }; }; sim_bitsize
="";;
2505 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
2506 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2512 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2513 if test "${enable_sim_bswap+set}" = set; then
2514 enableval
="$enable_sim_bswap"
2515 case "${enableval}" in
2516 yes) sim_bswap
="-DWITH_BSWAP=1";;
2517 no
) sim_bswap
="-DWITH_BSWAP=0";;
2518 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2519 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2520 { (exit 1); exit 1; }; }; sim_bswap
="";;
2522 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
2523 echo "Setting bswap flags = $sim_bswap" 6>&1
2529 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2530 if test "${enable_sim_cflags+set}" = set; then
2531 enableval
="$enable_sim_cflags"
2532 case "${enableval}" in
2533 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
2535 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2537 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
2538 echo "Setting sim cflags = $sim_cflags" 6>&1
2544 # Check whether --enable-sim-config or --disable-sim-config was given.
2545 if test "${enable_sim_config+set}" = set; then
2546 enableval
="$enable_sim_config"
2547 case "${enableval}" in
2548 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2549 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2550 { (exit 1); exit 1; }; };;
2551 *) if test -f "${srcdir}/${enableval}"; then
2552 sim_config
="${enableval}";
2553 elif test -f "${srcdir}/${enableval}-config.h"; then
2554 sim_config
="${enableval}-config.h"
2556 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2557 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2558 { (exit 1); exit 1; }; };
2559 sim_config
=std-config.h
2562 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
2563 echo "Setting config flags = $sim_config" 6>&1
2566 sim_config
="std-config.h"
2567 if test x
"$silent" != x
"yes"; then
2568 echo "Setting config flags = $sim_config" 6>&1
2572 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2573 if test "${enable_sim_decode_mechanism+set}" = set; then
2574 enableval
="$enable_sim_decode_mechanism"
2575 case "${enableval}" in
2576 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2577 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2578 { (exit 1); exit 1; }; };;
2579 array|switch|padded-switch|goto-switch
) sim_decode_mechanism
="-T ${enableval}";;
2580 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2581 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2582 { (exit 1); exit 1; }; };
2583 sim_decode_mechanism
="switch";;
2585 if test x
"$silent" != x
"yes" && test x
"$sim_decode_mechanism" != x
""; then
2586 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2589 sim_decode_mechanism
=""
2590 if test x
"$silent" != x
"yes"; then
2591 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2595 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2596 if test "${enable_sim_default_model+set}" = set; then
2597 enableval
="$enable_sim_default_model"
2598 case "${enableval}" in
2599 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2600 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2601 { (exit 1); exit 1; }; };;
2602 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
2604 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
2605 echo "Setting default-model flags = $sim_default_model" 6>&1
2608 sim_default_model
=""
2611 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2612 if test "${enable_sim_duplicate+set}" = set; then
2613 enableval
="$enable_sim_duplicate"
2614 case "${enableval}" in
2617 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2618 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2619 { (exit 1); exit 1; }; }; sim_dup
="";;
2621 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
2622 echo "Setting duplicate flags = $sim_dup" 6>&1
2626 if test x
"$silent" != x
"yes"; then
2627 echo "Setting duplicate flags = $sim_dup" 6>&1
2631 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2632 if test "${enable_sim_endian+set}" = set; then
2633 enableval
="$enable_sim_endian"
2634 case "${enableval}" in
2635 yes) case "$target" in
2636 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2637 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2638 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2640 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2641 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2642 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2643 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2644 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2645 { (exit 1); exit 1; }; }; sim_endian
="";;
2647 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
2648 echo "Setting endian flags = $sim_endian" 6>&1
2654 # Check whether --enable-sim-env or --disable-sim-env was given.
2655 if test "${enable_sim_env+set}" = set; then
2656 enableval
="$enable_sim_env"
2657 case "${enableval}" in
2658 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2659 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2660 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2661 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
2662 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2663 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2664 { (exit 1); exit 1; }; }; sim_env
="";;
2666 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
2667 echo "Setting env flags = $sim_env" 6>&1
2673 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2674 if test "${enable_sim_filter+set}" = set; then
2675 enableval
="$enable_sim_filter"
2676 case "${enableval}" in
2677 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2678 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2679 { (exit 1); exit 1; }; }; sim_filter
="";;
2681 *) sim_filter
="-F $enableval";;
2683 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
2684 echo "Setting filter flags = $sim_filter" 6>&1
2687 sim_filter
="-F 32,f,o"
2688 if test x
"$silent" != x
"yes"; then
2689 echo "Setting filter flags = $sim_filter" 6>&1
2693 # Check whether --enable-sim-float or --disable-sim-float was given.
2694 if test "${enable_sim_float+set}" = set; then
2695 enableval
="$enable_sim_float"
2696 case "${enableval}" in
2697 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2698 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2699 altivec
) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2700 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2701 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2702 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2703 { (exit 1); exit 1; }; }; sim_float
="";;
2705 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
2706 echo "Setting float flags = $sim_float" 6>&1
2711 *altivec
*) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2712 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2718 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2719 if test "${enable_sim_hardware+set}" = set; then
2720 enableval
="$enable_sim_hardware"
2721 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2722 case "${enableval}" in
2724 no
) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2725 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2726 { (exit 1); exit 1; }; }; hardware
="";;
2727 ,*) hardware
="${hardware}${enableval}";;
2728 *,) hardware
="${enableval}${hardware}";;
2729 *) hardware
="${enableval}"'';;
2731 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2732 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2733 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
2734 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2737 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2738 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2739 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2740 if test x
"$silent" != x
"yes"; then
2741 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2745 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2746 if test "${enable_sim_hostbitsize+set}" = set; then
2747 enableval
="$enable_sim_hostbitsize"
2748 case "${enableval}" in
2749 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2750 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2751 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2752 { (exit 1); exit 1; }; }; sim_hostbitsize
="";;
2754 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
2755 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2762 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2763 if test "${enable_sim_hostendian+set}" = set; then
2764 enableval
="$enable_sim_hostendian"
2765 case "${enableval}" in
2766 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
2767 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2768 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2769 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2770 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2771 { (exit 1); exit 1; }; }; sim_hostendian
="";;
2773 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
2774 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2778 if test "x$cross_compiling" = "xno"; then
2779 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2780 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2781 if test "${ac_cv_c_bigendian+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 # See if sys/param.h defines the BYTE_ORDER macro.
2785 cat >conftest.
$ac_ext <<_ACEOF
2788 cat confdefs.h
>>conftest.
$ac_ext
2789 cat >>conftest.
$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #include <sys/types.h>
2792 #include <sys/param.h>
2797 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2805 rm -f conftest.
$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1
>conftest.err
2811 cat conftest.err
>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try
='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try
='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 # It does; now see whether it defined to BIG_ENDIAN or not.
2828 cat >conftest.
$ac_ext <<_ACEOF
2831 cat confdefs.h
>>conftest.
$ac_ext
2832 cat >>conftest.
$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <sys/types.h>
2835 #include <sys/param.h>
2840 #if BYTE_ORDER != BIG_ENDIAN
2848 rm -f conftest.
$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1
>conftest.err
2854 cat conftest.err
>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try
='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try
='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_c_bigendian
=yes
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.
$ac_ext >&5
2875 ac_cv_c_bigendian
=no
2877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.
$ac_ext >&5
2882 # It does not; compile a test program.
2883 if test "$cross_compiling" = yes; then
2884 # try to guess the endianness by grepping values into an object file
2885 ac_cv_c_bigendian
=unknown
2886 cat >conftest.
$ac_ext <<_ACEOF
2889 cat confdefs.h
>>conftest.
$ac_ext
2890 cat >>conftest.
$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2893 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2894 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2895 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2896 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2897 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2901 _ascii (); _ebcdic ();
2906 rm -f conftest.
$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1
>conftest.err
2912 cat conftest.err
>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try
='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try
='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
2929 ac_cv_c_bigendian
=yes
2931 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
2932 if test "$ac_cv_c_bigendian" = unknown
; then
2933 ac_cv_c_bigendian
=no
2935 # finding both strings is unlikely to happen, but who knows?
2936 ac_cv_c_bigendian
=unknown
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2955 /* Are we little or big endian? From Harbison&Steele. */
2959 char c[sizeof (long)];
2962 exit (u.c[sizeof (long) - 1] == 1);
2965 rm -f conftest
$ac_exeext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2967 (eval $ac_link) 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_cv_c_bigendian
=no
2978 echo "$as_me: program exited with status $ac_status" >&5
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.
$ac_ext >&5
2983 ac_cv_c_bigendian
=yes
2985 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2990 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2991 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2992 case $ac_cv_c_bigendian in
2995 cat >>confdefs.h
<<\_ACEOF
2996 #define WORDS_BIGENDIAN 1
3002 { { echo "$as_me:$LINENO: error: unknown endianness
3003 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3004 echo "$as_me: error: unknown endianness
3005 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3006 { (exit 1); exit 1; }; } ;;
3009 if test $ac_cv_c_bigendian = yes; then
3010 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3012 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3015 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3019 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3020 if test "${enable_sim_icache+set}" = set; then
3021 enableval
="$enable_sim_icache"
3023 case "${enableval}" in
3024 yes) icache
="1024"; sim_icache
="-I $icache";;
3025 no
) sim_icache
="-R";;
3028 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3030 define
) sim_icache
="${sim_icache}R";;
3031 semantic
) sim_icache
="${sim_icache}C";;
3032 insn
) sim_icache
="${sim_icache}S";;
3033 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
3034 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3035 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3036 { (exit 1); exit 1; }; }; sim_icache
="";;
3039 sim_icache
="${sim_icache}I $icache";;
3041 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
3042 echo "Setting instruction cache size to $icache ($sim_icache)"
3045 sim_icache
="-CSRI 1024"
3046 if test x
"$silent" != x
"yes"; then
3047 echo "Setting instruction cache size to 1024 ($sim_icache)"
3051 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3052 if test "${enable_sim_inline+set}" = set; then
3053 enableval
="$enable_sim_inline"
3055 case "$enableval" in
3056 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3057 0) sim_inline
="-DDEFAULT_INLINE=0";;
3058 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
3059 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3060 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3063 *_INLINE
=*) new_flag
="-D$x";;
3064 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3065 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
3066 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
3068 if test x
"$sim_inline" = x
""; then
3069 sim_inline
="$new_flag"
3071 sim_inline
="$sim_inline $new_flag"
3075 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3076 echo "Setting inline flags = $sim_inline" 6>&1
3079 if test x
"$GCC" != ""; then
3080 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3081 if test x
"$silent" != x
"yes"; then
3082 echo "Setting inline flags = $sim_inline" 6>&1
3089 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3090 if test "${enable_sim_jump+set}" = set; then
3091 enableval
="$enable_sim_jump"
3092 case "${enableval}" in
3093 yes) sim_jump
="-J";;
3095 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3096 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3097 { (exit 1); exit 1; }; }; sim_jump
="";;
3099 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
3100 echo "Setting jump flag = $sim_jump" 6>&1
3104 if test x
"$silent" != x
"yes"; then
3105 echo "Setting jump flag = $sim_jump" 6>&1
3109 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3110 if test "${enable_sim_line_nr+set}" = set; then
3111 enableval
="$enable_sim_line_nr"
3112 case "${enableval}" in
3113 yes) sim_line_nr
="";;
3114 no
) sim_line_nr
="-L";;
3115 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3116 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3117 { (exit 1); exit 1; }; }; sim_line_nr
="";;
3119 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
3120 echo "Setting warning flags = $sim_line_nr" 6>&1
3126 # Check whether --enable-sim-model or --disable-sim-model was given.
3127 if test "${enable_sim_model+set}" = set; then
3128 enableval
="$enable_sim_model"
3129 case "${enableval}" in
3130 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3131 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3132 { (exit 1); exit 1; }; };;
3133 *) sim_model
="-DWITH_MODEL=${enableval}";;
3135 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
3136 echo "Setting model flags = $sim_model" 6>&1
3142 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3143 if test "${enable_sim_model_issue+set}" = set; then
3144 enableval
="$enable_sim_model_issue"
3145 case "${enableval}" in
3146 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3147 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3148 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3149 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3150 { (exit 1); exit 1; }; }; sim_model_issue
="";;
3152 if test x
"$silent" != x
"yes"; then
3153 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3159 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3160 if test "${enable_sim_monitor+set}" = set; then
3161 enableval
="$enable_sim_monitor"
3162 case "${enableval}" in
3163 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3164 no
) sim_monitor
="-DWITH_MON=0";;
3165 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3166 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3167 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3168 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3169 { (exit 1); exit 1; }; }; sim_env
="";;
3171 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
3172 echo "Setting monitor flags = $sim_monitor" 6>&1
3178 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3179 if test "${enable_sim_opcode+set}" = set; then
3180 enableval
="$enable_sim_opcode"
3181 case "${enableval}" in
3182 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3183 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3184 { (exit 1); exit 1; }; };;
3185 *) if test -f "${srcdir}/${enableval}"; then
3186 sim_opcode
="${enableval}"
3187 elif test -f "${srcdir}/dc-${enableval}"; then
3188 sim_opcode
="dc-${enableval}"
3190 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3191 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3192 { (exit 1); exit 1; }; };
3193 sim_opcode
="dc-complex"
3196 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
3197 echo "Setting opcode flags = $sim_opcode" 6>&1
3200 sim_opcode
="dc-complex"
3201 if test x
"$silent" != x
"yes"; then
3202 echo "Setting opcode flags = $sim_opcode"
3206 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3207 if test "${enable_sim_packages+set}" = set; then
3208 enableval
="$enable_sim_packages"
3210 case "${enableval}" in
3212 no
) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3213 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3214 { (exit 1); exit 1; }; }; packages
="";;
3215 ,*) packages
="${packages}${enableval}";;
3216 *,) packages
="${enableval}${packages}";;
3217 *) packages
="${enableval}"'';;
3219 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3220 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3221 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
3222 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3226 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3227 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3228 if test x
"$silent" != x
"yes"; then
3229 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3233 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3234 if test "${enable_sim_regparm+set}" = set; then
3235 enableval
="$enable_sim_regparm"
3236 case "${enableval}" in
3237 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
3238 no
) sim_regparm
="" ;;
3239 yes) sim_regparm
="-DWITH_REGPARM=3";;
3240 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3241 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3242 { (exit 1); exit 1; }; }; sim_regparm
="";;
3244 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
3245 echo "Setting regparm flags = $sim_regparm" 6>&1
3251 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3252 if test "${enable_sim_reserved_bits+set}" = set; then
3253 enableval
="$enable_sim_reserved_bits"
3254 case "${enableval}" in
3255 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
3256 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
3257 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3258 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3259 { (exit 1); exit 1; }; }; sim_reserved
="";;
3261 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
3262 echo "Setting reserved flags = $sim_reserved" 6>&1
3268 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3269 if test "${enable_sim_smp+set}" = set; then
3270 enableval
="$enable_sim_smp"
3271 case "${enableval}" in
3272 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3273 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3274 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3276 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3277 echo "Setting smp flags = $sim_smp" 6>&1
3280 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
3281 if test x
"$silent" != x
"yes"; then
3282 echo "Setting smp flags = $sim_smp" 6>&1
3286 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3287 if test "${enable_sim_stdcall+set}" = set; then
3288 enableval
="$enable_sim_stdcall"
3289 case "${enableval}" in
3290 no
) sim_stdcall
="" ;;
3291 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
3292 yes) sim_stdcall
="-DWITH_STDCALL=1";;
3293 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3294 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3295 { (exit 1); exit 1; }; }; sim_stdcall
="";;
3297 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
3298 echo "Setting function call flags = $sim_stdcall" 6>&1
3304 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3305 if test "${enable_sim_stdio+set}" = set; then
3306 enableval
="$enable_sim_stdio"
3307 case "${enableval}" in
3308 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3309 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3310 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3311 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3312 { (exit 1); exit 1; }; }; sim_stdio
="";;
3314 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3315 echo "Setting stdio flags = $sim_stdio" 6>&1
3321 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3322 if test "${enable_sim_switch+set}" = set; then
3323 enableval
="$enable_sim_switch"
3324 case "${enableval}" in
3325 yes) sim_switch
="-s";;
3327 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3328 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3329 { (exit 1); exit 1; }; }; sim_switch
="";;
3331 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
3332 echo "Setting switch flags = $sim_switch" 6>&1
3336 if test x
"$silent" != x
"yes"; then
3337 echo "Setting switch flags = $sim_switch" 6>&1
3341 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3342 if test "${enable_sim_timebase+set}" = set; then
3343 enableval
="$enable_sim_timebase"
3344 case "${enableval}" in
3345 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
3346 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
3347 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3348 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3349 { (exit 1); exit 1; }; }; sim_timebase
="";;
3351 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
3352 echo "Setting timebase flags = $sim_timebase" 6>&1
3358 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3359 if test "${enable_sim_trace+set}" = set; then
3360 enableval
="$enable_sim_trace"
3361 case "${enableval}" in
3362 yes) sim_trace
="-DWITH_TRACE=1";;
3363 no
) sim_trace
="-DWITH_TRACE=0";;
3364 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3365 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3366 { (exit 1); exit 1; }; }; sim_trace
="";;
3368 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3369 echo "Setting trace flags = $sim_trace" 6>&1
3375 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3376 if test "${enable_sim_warnings+set}" = set; then
3377 enableval
="$enable_sim_warnings"
3378 case "${enableval}" in
3379 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3380 no
) sim_warnings
="-w";;
3381 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3383 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3384 echo "Setting warning flags = $sim_warnings" 6>&1
3390 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3391 if test "${enable_sim_xor_endian+set}" = set; then
3392 enableval
="$enable_sim_xor_endian"
3393 case "${enableval}" in
3394 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
3395 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
3396 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
3398 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
3399 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3407 # Check whether --with-pkgversion or --without-pkgversion was given.
3408 if test "${with_pkgversion+set}" = set; then
3409 withval
="$with_pkgversion"
3411 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3412 echo "$as_me: error: package version not specified" >&2;}
3413 { (exit 1); exit 1; }; } ;;
3415 *) PKGVERSION
="($withval) " ;;
3425 # Check whether --with-bugurl or --without-bugurl was given.
3426 if test "${with_bugurl+set}" = set; then
3427 withval
="$with_bugurl"
3429 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3430 echo "$as_me: error: bug URL not specified" >&2;}
3431 { (exit 1); exit 1; }; } ;;
3434 *) BUGURL
="$withval"
3438 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
3447 REPORT_BUGS_TO
="<$BUGURL>"
3448 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3455 cat >>confdefs.h
<<_ACEOF
3456 #define PKGVERSION "$PKGVERSION"
3460 cat >>confdefs.h
<<_ACEOF
3461 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3465 # Make sure we can run config.sub.
3466 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3467 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3468 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3469 { (exit 1); exit 1; }; }
3471 echo "$as_me:$LINENO: checking build system type" >&5
3472 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3473 if test "${ac_cv_build+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_cv_build_alias
=$build_alias
3477 test -z "$ac_cv_build_alias" &&
3478 ac_cv_build_alias
=`$ac_config_guess`
3479 test -z "$ac_cv_build_alias" &&
3480 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3481 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3482 { (exit 1); exit 1; }; }
3483 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3485 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3486 { (exit 1); exit 1; }; }
3489 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3490 echo "${ECHO_T}$ac_cv_build" >&6
3492 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3493 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3494 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3497 echo "$as_me:$LINENO: checking host system type" >&5
3498 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3499 if test "${ac_cv_host+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 ac_cv_host_alias
=$host_alias
3503 test -z "$ac_cv_host_alias" &&
3504 ac_cv_host_alias
=$ac_cv_build_alias
3505 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3506 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3507 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3508 { (exit 1); exit 1; }; }
3511 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3512 echo "${ECHO_T}$ac_cv_host" >&6
3514 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3515 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3516 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3519 echo "$as_me:$LINENO: checking target system type" >&5
3520 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3521 if test "${ac_cv_target+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_cv_target_alias
=$target_alias
3525 test "x$ac_cv_target_alias" = "x" &&
3526 ac_cv_target_alias
=$ac_cv_host_alias
3527 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3529 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3530 { (exit 1); exit 1; }; }
3533 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3534 echo "${ECHO_T}$ac_cv_target" >&6
3535 target
=$ac_cv_target
3536 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3537 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3538 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3541 # The aliases save the names the user supplied, while $host etc.
3542 # will get canonicalized.
3543 test -n "$target_alias" &&
3544 test "$program_prefix$program_suffix$program_transform_name" = \
3546 program_prefix
=${target_alias}-
3547 test "$program_prefix" != NONE
&&
3548 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3549 # Use a double $ so make ignores it.
3550 test "$program_suffix" != NONE
&&
3551 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3552 # Double any \ or $. echo might interpret backslashes.
3553 # By default was `s,x,x', remove it if useless.
3554 cat <<\_ACEOF
>conftest.
sed
3555 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3557 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3561 .
${srcdir}/..
/..
/bfd
/configure.
host
3566 cat >>confdefs.h
<<\_ACEOF
3567 #define USE_WIN32API 1
3573 ac_config_headers
="$ac_config_headers config.h:config.in"
3577 ac_cpp
='$CPP $CPPFLAGS'
3578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3581 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3582 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3583 # On Suns, sometimes $CPP names a directory.
3584 if test -n "$CPP" && test -d "$CPP"; then
3587 if test -z "$CPP"; then
3588 if test "${ac_cv_prog_CPP+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 # Double quotes because CPP needs to be expanded
3592 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3595 for ac_c_preproc_warn_flag
in '' yes
3597 # Use a header file that comes with gcc, so configuring glibc
3598 # with a fresh cross-compiler works.
3599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3600 # <limits.h> exists even on freestanding compilers.
3601 # On the NeXT, cc -E runs the code through the compiler's parser,
3602 # not just through cpp. "Syntax error" is here to catch this case.
3603 cat >conftest.
$ac_ext <<_ACEOF
3606 cat confdefs.h
>>conftest.
$ac_ext
3607 cat >>conftest.
$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3610 # include <limits.h>
3612 # include <assert.h>
3616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3619 grep -v '^ *+' conftest.er1
>conftest.err
3621 cat conftest.err
>&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev
/null
; then
3624 if test -s conftest.err
; then
3625 ac_cpp_err
=$ac_c_preproc_warn_flag
3626 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3633 if test -z "$ac_cpp_err"; then
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3639 # Broken: fails on valid input.
3642 rm -f conftest.err conftest.
$ac_ext
3644 # OK, works on sane cases. Now check whether non-existent headers
3645 # can be detected and how.
3646 cat >conftest.
$ac_ext <<_ACEOF
3649 cat confdefs.h
>>conftest.
$ac_ext
3650 cat >>conftest.
$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 #include <ac_nonexistent.h>
3654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3657 grep -v '^ *+' conftest.er1
>conftest.err
3659 cat conftest.err
>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } >/dev
/null
; then
3662 if test -s conftest.err
; then
3663 ac_cpp_err
=$ac_c_preproc_warn_flag
3664 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3671 if test -z "$ac_cpp_err"; then
3672 # Broken: success on invalid input.
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.
$ac_ext >&5
3678 # Passes both tests.
3682 rm -f conftest.err conftest.
$ac_ext
3685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3686 rm -f conftest.err conftest.
$ac_ext
3687 if $ac_preproc_ok; then
3699 echo "$as_me:$LINENO: result: $CPP" >&5
3700 echo "${ECHO_T}$CPP" >&6
3702 for ac_c_preproc_warn_flag
in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.
$ac_ext <<_ACEOF
3713 cat confdefs.h
>>conftest.
$ac_ext
3714 cat >>conftest.
$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3717 # include <limits.h>
3719 # include <assert.h>
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1
>conftest.err
3728 cat conftest.err
>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev
/null
; then
3731 if test -s conftest.err
; then
3732 ac_cpp_err
=$ac_c_preproc_warn_flag
3733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3740 if test -z "$ac_cpp_err"; then
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.
$ac_ext >&5
3746 # Broken: fails on valid input.
3749 rm -f conftest.err conftest.
$ac_ext
3751 # OK, works on sane cases. Now check whether non-existent headers
3752 # can be detected and how.
3753 cat >conftest.
$ac_ext <<_ACEOF
3756 cat confdefs.h
>>conftest.
$ac_ext
3757 cat >>conftest.
$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3764 grep -v '^ *+' conftest.er1
>conftest.err
3766 cat conftest.err
>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev
/null
; then
3769 if test -s conftest.err
; then
3770 ac_cpp_err
=$ac_c_preproc_warn_flag
3771 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3778 if test -z "$ac_cpp_err"; then
3779 # Broken: success on invalid input.
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.
$ac_ext >&5
3785 # Passes both tests.
3789 rm -f conftest.err conftest.
$ac_ext
3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793 rm -f conftest.err conftest.
$ac_ext
3794 if $ac_preproc_ok; then
3797 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3798 See \`config.log' for more details." >&5
3799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3800 See \`config.log' for more details." >&2;}
3801 { (exit 1); exit 1; }; }
3805 ac_cpp
='$CPP $CPPFLAGS'
3806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3811 echo "$as_me:$LINENO: checking for egrep" >&5
3812 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3813 if test "${ac_cv_prog_egrep+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3817 then ac_cv_prog_egrep
='grep -E'
3818 else ac_cv_prog_egrep
='egrep'
3821 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3822 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3823 EGREP
=$ac_cv_prog_egrep
3826 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3828 if test "${ac_cv_header_stdc+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3850 rm -f conftest.
$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1
>conftest.err
3856 cat conftest.err
>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try
='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try
='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc
=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.
$ac_ext >&5
3877 ac_cv_header_stdc
=no
3879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3881 if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.
$ac_ext <<_ACEOF
3886 cat confdefs.h
>>conftest.
$ac_ext
3887 cat >>conftest.
$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev
/null
2>&1; then
3896 ac_cv_header_stdc
=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.
$ac_ext <<_ACEOF
3907 cat confdefs.h
>>conftest.
$ac_ext
3908 cat >>conftest.
$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 $EGREP "free" >/dev
/null
2>&1; then
3917 ac_cv_header_stdc
=no
3923 if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3935 #if ((' ' & 0x0FF) == 0x020)
3936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939 # define ISLOWER(c) \
3940 (('a' <= (c) && (c) <= 'i') \
3941 || ('j' <= (c) && (c) <= 'r') \
3942 || ('s' <= (c) && (c) <= 'z'))
3943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3951 for (i = 0; i < 256; i++)
3952 if (XOR (islower (i), ISLOWER (i))
3953 || toupper (i) != TOUPPER (i))
3958 rm -f conftest
$ac_exeext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3971 echo "$as_me: program exited with status $ac_status" >&5
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.
$ac_ext >&5
3976 ac_cv_header_stdc
=no
3978 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3983 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3984 if test $ac_cv_header_stdc = yes; then
3986 cat >>confdefs.h
<<\_ACEOF
3987 #define STDC_HEADERS 1
3992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4003 inttypes.h stdint.h unistd.h
4005 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 echo "$as_me:$LINENO: checking for $ac_header" >&5
4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 cat >conftest.
$ac_ext <<_ACEOF
4014 cat confdefs.h
>>conftest.
$ac_ext
4015 cat >>conftest.
$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4019 #include <$ac_header>
4021 rm -f conftest.
$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1
>conftest.err
4027 cat conftest.err
>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try
='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try
='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 eval "$as_ac_Header=yes"
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.
$ac_ext >&5
4048 eval "$as_ac_Header=no"
4050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4055 cat >>confdefs.h
<<_ACEOF
4056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4065 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4066 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4067 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 cat >conftest.
$ac_ext <<_ACEOF
4073 cat confdefs.h
>>conftest.
$ac_ext
4074 cat >>conftest.
$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 $ac_includes_default
4080 static struct stat ac_aggr;
4081 if (ac_aggr.st_blksize)
4087 rm -f conftest.
$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4091 grep -v '^ *+' conftest.er1
>conftest.err
4093 cat conftest.err
>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try
='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try
='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_cv_member_struct_stat_st_blksize
=yes
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.
$ac_ext >&5
4114 cat >conftest.
$ac_ext <<_ACEOF
4117 cat confdefs.h
>>conftest.
$ac_ext
4118 cat >>conftest.
$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 $ac_includes_default
4124 static struct stat ac_aggr;
4125 if (sizeof ac_aggr.st_blksize)
4131 rm -f conftest.
$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4135 grep -v '^ *+' conftest.er1
>conftest.err
4137 cat conftest.err
>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try
='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try
='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_cv_member_struct_stat_st_blksize
=yes
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.
$ac_ext >&5
4158 ac_cv_member_struct_stat_st_blksize
=no
4160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4165 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4166 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4168 cat >>confdefs.h
<<_ACEOF
4169 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4173 cat >>confdefs.h
<<\_ACEOF
4174 #define HAVE_ST_BLKSIZE 1
4180 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4181 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4182 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 cat >conftest.
$ac_ext <<_ACEOF
4188 cat confdefs.h
>>conftest.
$ac_ext
4189 cat >>conftest.
$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 $ac_includes_default
4195 static struct stat ac_aggr;
4196 if (ac_aggr.st_blocks)
4202 rm -f conftest.
$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>conftest.er1
4206 grep -v '^ *+' conftest.er1
>conftest.err
4208 cat conftest.err
>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try
='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try
='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_member_struct_stat_st_blocks
=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4229 cat >conftest.
$ac_ext <<_ACEOF
4232 cat confdefs.h
>>conftest.
$ac_ext
4233 cat >>conftest.
$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 $ac_includes_default
4239 static struct stat ac_aggr;
4240 if (sizeof ac_aggr.st_blocks)
4246 rm -f conftest.
$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>conftest.er1
4250 grep -v '^ *+' conftest.er1
>conftest.err
4252 cat conftest.err
>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try
='test -z "$ac_c_werror_flag"
4256 || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try
='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_member_struct_stat_st_blocks
=yes
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.
$ac_ext >&5
4273 ac_cv_member_struct_stat_st_blocks
=no
4275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4279 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4280 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4281 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4283 cat >>confdefs.h
<<_ACEOF
4284 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4288 cat >>confdefs.h
<<\_ACEOF
4289 #define HAVE_ST_BLOCKS 1
4294 "fileblocks.$ac_objext" | \
4295 *" fileblocks.$ac_objext" | \
4296 "fileblocks.$ac_objext "* | \
4297 *" fileblocks.$ac_objext "* ) ;;
4298 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
4305 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4306 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4307 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 cat >conftest.
$ac_ext <<_ACEOF
4313 cat confdefs.h
>>conftest.
$ac_ext
4314 cat >>conftest.
$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4320 static struct stat ac_aggr;
4321 if (ac_aggr.st_rdev)
4327 rm -f conftest.
$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4331 grep -v '^ *+' conftest.er1
>conftest.err
4333 cat conftest.err
>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try
='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_member_struct_stat_st_rdev
=yes
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.
$ac_ext >&5
4354 cat >conftest.
$ac_ext <<_ACEOF
4357 cat confdefs.h
>>conftest.
$ac_ext
4358 cat >>conftest.
$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 $ac_includes_default
4364 static struct stat ac_aggr;
4365 if (sizeof ac_aggr.st_rdev)
4371 rm -f conftest.
$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1
>conftest.err
4377 cat conftest.err
>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try
='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try
='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_member_struct_stat_st_rdev
=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.
$ac_ext >&5
4398 ac_cv_member_struct_stat_st_rdev
=no
4400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4405 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4406 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4408 cat >>confdefs.h
<<_ACEOF
4409 #define HAVE_STRUCT_STAT_ST_RDEV 1
4413 cat >>confdefs.h
<<\_ACEOF
4414 #define HAVE_ST_RDEV 1
4420 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4421 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4422 if test "${ac_cv_struct_tm+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 cat >conftest.
$ac_ext <<_ACEOF
4428 cat confdefs.h
>>conftest.
$ac_ext
4429 cat >>conftest.
$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4437 struct tm *tp; tp->tm_sec;
4442 rm -f conftest.
$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1
>conftest.err
4448 cat conftest.err
>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try
='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try
='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_struct_tm
=time.h
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.
$ac_ext >&5
4469 ac_cv_struct_tm
=sys
/time.h
4471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4473 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4474 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4475 if test $ac_cv_struct_tm = sys
/time.h
; then
4477 cat >>confdefs.h
<<\_ACEOF
4478 #define TM_IN_SYS_TIME 1
4483 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4484 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4485 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 cat >conftest.
$ac_ext <<_ACEOF
4491 cat confdefs.h
>>conftest.
$ac_ext
4492 cat >>conftest.
$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <sys/types.h>
4495 #include <$ac_cv_struct_tm>
4501 static struct tm ac_aggr;
4502 if (ac_aggr.tm_zone)
4508 rm -f conftest.
$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4512 grep -v '^ *+' conftest.er1
>conftest.err
4514 cat conftest.err
>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try
='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try
='test -s conftest.$ac_objext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_cv_member_struct_tm_tm_zone
=yes
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.
$ac_ext >&5
4535 cat >conftest.
$ac_ext <<_ACEOF
4538 cat confdefs.h
>>conftest.
$ac_ext
4539 cat >>conftest.
$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <sys/types.h>
4542 #include <$ac_cv_struct_tm>
4548 static struct tm ac_aggr;
4549 if (sizeof ac_aggr.tm_zone)
4555 rm -f conftest.
$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1
>conftest.err
4561 cat conftest.err
>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try
='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try
='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_member_struct_tm_tm_zone
=yes
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.
$ac_ext >&5
4582 ac_cv_member_struct_tm_tm_zone
=no
4584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4588 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4589 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4590 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4592 cat >>confdefs.h
<<_ACEOF
4593 #define HAVE_STRUCT_TM_TM_ZONE 1
4599 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4601 cat >>confdefs.h
<<\_ACEOF
4602 #define HAVE_TM_ZONE 1
4606 echo "$as_me:$LINENO: checking for tzname" >&5
4607 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4608 if test "${ac_cv_var_tzname+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.
$ac_ext <<_ACEOF
4614 cat confdefs.h
>>conftest.
$ac_ext
4615 cat >>conftest.
$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4618 #ifndef tzname /* For SGI. */
4619 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4630 rm -f conftest.
$ac_objext conftest
$ac_exeext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4632 (eval $ac_link) 2>conftest.er1
4634 grep -v '^ *+' conftest.er1
>conftest.err
4636 cat conftest.err
>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
4639 { ac_try
='test -z "$ac_c_werror_flag"
4640 || test ! -s conftest.err'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; } &&
4646 { ac_try
='test -s conftest$ac_exeext'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_cv_var_tzname
=yes
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.
$ac_ext >&5
4659 rm -f conftest.err conftest.
$ac_objext \
4660 conftest
$ac_exeext conftest.
$ac_ext
4662 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4663 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4664 if test $ac_cv_var_tzname = yes; then
4666 cat >>confdefs.h
<<\_ACEOF
4667 #define HAVE_TZNAME 1
4674 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4675 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4676 if test "${ac_cv_type_uid_t+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 #include <sys/types.h>
4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689 $EGREP "uid_t" >/dev
/null
2>&1; then
4690 ac_cv_type_uid_t
=yes
4697 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4698 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4699 if test $ac_cv_type_uid_t = no
; then
4701 cat >>confdefs.h
<<\_ACEOF
4706 cat >>confdefs.h
<<\_ACEOF
4712 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4713 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4714 if test "${ac_cv_type_getgroups+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 if test "$cross_compiling" = yes; then
4718 ac_cv_type_getgroups
=cross
4720 cat >conftest.
$ac_ext <<_ACEOF
4723 cat confdefs.h
>>conftest.
$ac_ext
4724 cat >>conftest.
$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 /* Thanks to Mike Rendell for this test. */
4727 #include <sys/types.h>
4730 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4737 union { gid_t gval; long lval; } val;
4740 for (i = 0; i < NGID; i++)
4741 gidset[i] = val.gval;
4742 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4744 /* Exit non-zero if getgroups seems to require an array of ints. This
4745 happens when gid_t is short but getgroups modifies an array of ints. */
4746 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4749 rm -f conftest
$ac_exeext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4751 (eval $ac_link) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_type_getgroups
=gid_t
4762 echo "$as_me: program exited with status $ac_status" >&5
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.
$ac_ext >&5
4767 ac_cv_type_getgroups
=int
4769 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4771 if test $ac_cv_type_getgroups = cross
; then
4772 cat >conftest.
$ac_ext <<_ACEOF
4775 cat confdefs.h
>>conftest.
$ac_ext
4776 cat >>conftest.
$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
4783 ac_cv_type_getgroups
=gid_t
4785 ac_cv_type_getgroups
=int
4791 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4792 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4794 cat >>confdefs.h
<<_ACEOF
4795 #define GETGROUPS_T $ac_cv_type_getgroups
4799 echo "$as_me:$LINENO: checking for mode_t" >&5
4800 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4801 if test "${ac_cv_type_mode_t+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.
$ac_ext <<_ACEOF
4807 cat confdefs.h
>>conftest.
$ac_ext
4808 cat >>conftest.
$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4816 if (sizeof (mode_t))
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try
='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_mode_t
=yes
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.
$ac_ext >&5
4849 ac_cv_type_mode_t
=no
4851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4854 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4855 if test $ac_cv_type_mode_t = yes; then
4859 cat >>confdefs.h
<<_ACEOF
4865 echo "$as_me:$LINENO: checking for off_t" >&5
4866 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4867 if test "${ac_cv_type_off_t+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 cat >conftest.
$ac_ext <<_ACEOF
4873 cat confdefs.h
>>conftest.
$ac_ext
4874 cat >>conftest.
$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4888 rm -f conftest.
$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4892 grep -v '^ *+' conftest.er1
>conftest.err
4894 cat conftest.err
>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try
='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try
='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_type_off_t
=yes
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.
$ac_ext >&5
4917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4920 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4921 if test $ac_cv_type_off_t = yes; then
4925 cat >>confdefs.h
<<_ACEOF
4931 echo "$as_me:$LINENO: checking for pid_t" >&5
4932 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4933 if test "${ac_cv_type_pid_t+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 cat >conftest.
$ac_ext <<_ACEOF
4939 cat confdefs.h
>>conftest.
$ac_ext
4940 cat >>conftest.
$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 $ac_includes_default
4954 rm -f conftest.
$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4958 grep -v '^ *+' conftest.er1
>conftest.err
4960 cat conftest.err
>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try
='test -z "$ac_c_werror_flag"
4964 || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try
='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_type_pid_t
=yes
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.
$ac_ext >&5
4983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4986 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4987 if test $ac_cv_type_pid_t = yes; then
4991 cat >>confdefs.h
<<_ACEOF
4997 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4998 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4999 if test "${ac_cv_type_signal+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 cat >conftest.
$ac_ext <<_ACEOF
5005 cat confdefs.h
>>conftest.
$ac_ext
5006 cat >>conftest.
$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #include <sys/types.h>
5014 extern "C" void (*signal (int, void (*)(int)))(int);
5016 void (*signal ()) ();
5027 rm -f conftest.
$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1
>conftest.err
5033 cat conftest.err
>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try
='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try
='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_cv_type_signal
=void
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.
$ac_ext >&5
5054 ac_cv_type_signal
=int
5056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5059 echo "${ECHO_T}$ac_cv_type_signal" >&6
5061 cat >>confdefs.h
<<_ACEOF
5062 #define RETSIGTYPE $ac_cv_type_signal
5066 echo "$as_me:$LINENO: checking for size_t" >&5
5067 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5068 if test "${ac_cv_type_size_t+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 cat >conftest.
$ac_ext <<_ACEOF
5074 cat confdefs.h
>>conftest.
$ac_ext
5075 cat >>conftest.
$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5083 if (sizeof (size_t))
5089 rm -f conftest.
$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1
>conftest.err
5095 cat conftest.err
>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try
='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try
='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_type_size_t
=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.
$ac_ext >&5
5116 ac_cv_type_size_t
=no
5118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5120 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5121 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5122 if test $ac_cv_type_size_t = yes; then
5126 cat >>confdefs.h
<<_ACEOF
5127 #define size_t unsigned
5132 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5133 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5134 if test "${ac_cv_type_uid_t+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.
$ac_ext <<_ACEOF
5140 cat confdefs.h
>>conftest.
$ac_ext
5141 cat >>conftest.
$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <sys/types.h>
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 $EGREP "uid_t" >/dev
/null
2>&1; then
5148 ac_cv_type_uid_t
=yes
5155 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5156 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5157 if test $ac_cv_type_uid_t = no
; then
5159 cat >>confdefs.h
<<\_ACEOF
5164 cat >>confdefs.h
<<\_ACEOF
5221 for ac_func
in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
5223 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5224 echo "$as_me:$LINENO: checking for $ac_func" >&5
5225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_var+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 cat >conftest.
$ac_ext <<_ACEOF
5232 cat confdefs.h
>>conftest.
$ac_ext
5233 cat >>conftest.
$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5237 #define $ac_func innocuous_$ac_func
5239 /* System header to define __stub macros and hopefully few prototypes,
5240 which can conflict with char $ac_func (); below.
5241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 <limits.h> exists even on freestanding compilers. */
5245 # include <limits.h>
5247 # include <assert.h>
5252 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5260 /* The GNU C library defines this for functions which it implements
5261 to always fail with ENOSYS. Some functions are actually named
5262 something starting with __ and the normal name is an alias. */
5263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5266 char (*f) () = $ac_func;
5275 return f != $ac_func;
5280 rm -f conftest.
$ac_objext conftest
$ac_exeext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1
>conftest.err
5286 cat conftest.err
>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try
='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try
='test -s conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 eval "$as_ac_var=yes"
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.
$ac_ext >&5
5307 eval "$as_ac_var=no"
5309 rm -f conftest.err conftest.
$ac_objext \
5310 conftest
$ac_exeext conftest.
$ac_ext
5312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5314 if test `eval echo '${'$as_ac_var'}'` = yes; then
5315 cat >>confdefs.h
<<_ACEOF
5316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5341 for ac_header
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h sys
/vfs.h sys
/statfs.h
5343 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345 echo "$as_me:$LINENO: checking for $ac_header" >&5
5346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353 # Is the header compilable?
5354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5356 cat >conftest.
$ac_ext <<_ACEOF
5359 cat confdefs.h
>>conftest.
$ac_ext
5360 cat >>conftest.
$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 $ac_includes_default
5363 #include <$ac_header>
5365 rm -f conftest.
$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try
='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try
='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_header_compiler
=yes
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.
$ac_ext >&5
5392 ac_header_compiler
=no
5394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5396 echo "${ECHO_T}$ac_header_compiler" >&6
5398 # Is the header present?
5399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5401 cat >conftest.
$ac_ext <<_ACEOF
5404 cat confdefs.h
>>conftest.
$ac_ext
5405 cat >>conftest.
$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <$ac_header>
5409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5412 grep -v '^ *+' conftest.er1
>conftest.err
5414 cat conftest.err
>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev
/null
; then
5417 if test -s conftest.err
; then
5418 ac_cpp_err
=$ac_c_preproc_warn_flag
5419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5426 if test -z "$ac_cpp_err"; then
5427 ac_header_preproc
=yes
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.
$ac_ext >&5
5432 ac_header_preproc
=no
5434 rm -f conftest.err conftest.
$ac_ext
5435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5436 echo "${ECHO_T}$ac_header_preproc" >&6
5438 # So? What about this header?
5439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5445 ac_header_preproc
=yes
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5462 ## ------------------------------------------ ##
5463 ## Report this to the AC_PACKAGE_NAME lists. ##
5464 ## ------------------------------------------ ##
5467 sed "s/^/$as_me: WARNING: /" >&2
5470 echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 eval "$as_ac_Header=\$ac_header_preproc"
5477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5482 cat >>confdefs.h
<<_ACEOF
5483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5496 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5497 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5498 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5499 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 cat >conftest.
$ac_ext <<_ACEOF
5506 cat confdefs.h
>>conftest.
$ac_ext
5507 cat >>conftest.
$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <sys/types.h>
5521 rm -f conftest.
$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1
>conftest.err
5527 cat conftest.err
>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try
='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try
='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 eval "$as_ac_Header=yes"
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 eval "$as_ac_Header=no"
5550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5555 cat >>confdefs.h
<<_ACEOF
5556 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5559 ac_header_dirent
=$ac_hdr; break
5563 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5564 if test $ac_header_dirent = dirent.h
; then
5565 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5566 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5567 if test "${ac_cv_search_opendir+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_func_search_save_LIBS
=$LIBS
5571 ac_cv_search_opendir
=no
5572 cat >conftest.
$ac_ext <<_ACEOF
5575 cat confdefs.h
>>conftest.
$ac_ext
5576 cat >>conftest.
$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5594 rm -f conftest.
$ac_objext conftest
$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1
>conftest.err
5600 cat conftest.err
>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try
='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try
='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_search_opendir
="none required"
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5622 rm -f conftest.err conftest.
$ac_objext \
5623 conftest
$ac_exeext conftest.
$ac_ext
5624 if test "$ac_cv_search_opendir" = no
; then
5625 for ac_lib
in dir
; do
5626 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 /* Override any gcc2 internal prototype to avoid an error. */
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5649 rm -f conftest.
$ac_objext conftest
$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1
>conftest.err
5655 cat conftest.err
>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try
='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try
='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_search_opendir
="-l$ac_lib"
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5678 rm -f conftest.err conftest.
$ac_objext \
5679 conftest
$ac_exeext conftest.
$ac_ext
5682 LIBS
=$ac_func_search_save_LIBS
5684 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5685 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5686 if test "$ac_cv_search_opendir" != no
; then
5687 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5692 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5693 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5694 if test "${ac_cv_search_opendir+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_func_search_save_LIBS
=$LIBS
5698 ac_cv_search_opendir
=no
5699 cat >conftest.
$ac_ext <<_ACEOF
5702 cat confdefs.h
>>conftest.
$ac_ext
5703 cat >>conftest.
$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5721 rm -f conftest.
$ac_objext conftest
$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try
='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_search_opendir
="none required"
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.
$ac_ext >&5
5749 rm -f conftest.err conftest.
$ac_objext \
5750 conftest
$ac_exeext conftest.
$ac_ext
5751 if test "$ac_cv_search_opendir" = no
; then
5753 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5754 cat >conftest.
$ac_ext <<_ACEOF
5757 cat confdefs.h
>>conftest.
$ac_ext
5758 cat >>conftest.
$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5761 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5776 rm -f conftest.
$ac_objext conftest
$ac_exeext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778 (eval $ac_link) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_search_opendir
="-l$ac_lib"
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5805 rm -f conftest.err conftest.
$ac_objext \
5806 conftest
$ac_exeext conftest.
$ac_ext
5809 LIBS
=$ac_func_search_save_LIBS
5811 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5812 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5813 if test "$ac_cv_search_opendir" != no
; then
5814 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5822 echo "$as_me:$LINENO: checking for struct termios" >&5
5823 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5824 if test "${ac_cv_termios_struct+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 cat >conftest.
$ac_ext <<_ACEOF
5830 cat confdefs.h
>>conftest.
$ac_ext
5831 cat >>conftest.
$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <sys/types.h>
5834 #include <sys/termios.h>
5838 static struct termios x;
5848 rm -f conftest.
$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>conftest.er1
5852 grep -v '^ *+' conftest.er1
>conftest.err
5854 cat conftest.err
>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try
='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try
='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_termios_struct
=yes
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.
$ac_ext >&5
5875 ac_cv_termios_struct
=no
5877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5880 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5881 echo "${ECHO_T}$ac_cv_termios_struct" >&6
5882 if test $ac_cv_termios_struct = yes; then
5883 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5886 if test "$ac_cv_termios_struct" = "yes"; then
5887 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5888 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5889 if test "${ac_cv_termios_cline+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.
$ac_ext <<_ACEOF
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 #include <sys/termios.h>
5903 static struct termios x; x.c_line = 0;
5908 rm -f conftest.
$ac_objext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>conftest.er1
5912 grep -v '^ *+' conftest.er1
>conftest.err
5914 cat conftest.err
>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try
='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try
='test -s conftest.$ac_objext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_termios_cline
=yes
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.
$ac_ext >&5
5935 ac_cv_termios_cline
=no
5937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5942 echo "${ECHO_T}$ac_cv_termios_cline" >&6
5943 if test $ac_cv_termios_cline = yes; then
5944 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
5947 ac_cv_termios_cline
=no
5950 if test "$ac_cv_termios_struct" != "yes"; then
5951 echo "$as_me:$LINENO: checking for struct termio" >&5
5952 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5953 if test "${ac_cv_termio_struct+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >conftest.
$ac_ext <<_ACEOF
5959 cat confdefs.h
>>conftest.
$ac_ext
5960 cat >>conftest.
$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5963 #include <sys/termio.h>
5967 static struct termio x;
5977 rm -f conftest.
$ac_objext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979 (eval $ac_compile) 2>conftest.er1
5981 grep -v '^ *+' conftest.er1
>conftest.err
5983 cat conftest.err
>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try
='test -z "$ac_c_werror_flag"
5987 || test ! -s conftest.err'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try
='test -s conftest.$ac_objext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 ac_cv_termio_struct
=yes
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.
$ac_ext >&5
6004 ac_cv_termio_struct
=no
6006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6009 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
6010 echo "${ECHO_T}$ac_cv_termio_struct" >&6
6011 if test $ac_cv_termio_struct = yes; then
6012 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
6015 ac_cv_termio_struct
=no
6018 if test "$ac_cv_termio_struct" = "yes"; then
6019 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
6020 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
6021 if test "${ac_cv_termio_cline+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.
$ac_ext <<_ACEOF
6027 cat confdefs.h
>>conftest.
$ac_ext
6028 cat >>conftest.
$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <sys/types.h>
6031 #include <sys/termio.h>
6035 static struct termio x; x.c_line = 0;
6040 rm -f conftest.
$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6044 grep -v '^ *+' conftest.er1
>conftest.err
6046 cat conftest.err
>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try
='test -z "$ac_c_werror_flag"
6050 || test ! -s conftest.err'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try
='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_termio_cline
=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.
$ac_ext >&5
6067 ac_cv_termio_cline
=no
6069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6073 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6074 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6075 if test $ac_cv_termio_cline = yes; then
6076 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
6079 ac_cv_termio_cline
=no
6082 echo "$as_me:$LINENO: checking for struct statfs" >&5
6083 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6084 if test "${ac_cv_struct_statfs+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 cat >conftest.
$ac_ext <<_ACEOF
6090 cat confdefs.h
>>conftest.
$ac_ext
6091 cat >>conftest.
$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <sys/types.h>
6094 #ifdef HAVE_SYS_PARAM_H
6095 #include <sys/param.h>
6097 #ifdef HAVE_SYS_MOUNT_H
6098 #include <sys/mount.h>
6100 #ifdef HAVE_SYS_VFS_H
6101 #include <sys/vfs.h>
6103 #ifdef HAVE_SYS_STATFS_H
6104 #include <sys/statfs.h>
6109 static struct statfs s;
6114 rm -f conftest.
$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1
>conftest.err
6120 cat conftest.err
>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try
='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_struct_statfs
=yes
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.
$ac_ext >&5
6141 ac_cv_struct_statfs
=no
6143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6146 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6147 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6148 if test $ac_cv_struct_statfs = yes; then
6150 cat >>confdefs.h
<<\_ACEOF
6151 #define HAVE_STRUCT_STATFS 1
6156 echo "$as_me:$LINENO: checking for long long" >&5
6157 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6158 if test "${ac_cv_type_long_long+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 cat >conftest.
$ac_ext <<_ACEOF
6164 cat confdefs.h
>>conftest.
$ac_ext
6165 cat >>conftest.
$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6171 if ((long long *) 0)
6173 if (sizeof (long long))
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_type_long_long
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_cv_type_long_long
=no
6208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6211 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6212 if test $ac_cv_type_long_long = yes; then
6214 cat >>confdefs.h
<<_ACEOF
6215 #define HAVE_LONG_LONG 1
6223 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6224 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6225 if test "${ac_cv_devzero+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test "$cross_compiling" = yes; then
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6241 int fd = open ("/dev/zero", O_RDONLY);
6244 for (i = 0; i < sizeof (buf); i++)
6246 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6248 for (i = 0; i < sizeof (buf); i++)
6254 rm -f conftest
$ac_exeext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6256 (eval $ac_link) 2>&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6267 echo "$as_me: program exited with status $ac_status" >&5
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.
$ac_ext >&5
6274 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6278 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6279 echo "${ECHO_T}$ac_cv_devzero" >&6
6280 if test $ac_cv_devzero = yes; then
6281 sim_devzero
="-DHAVE_DEVZERO"
6286 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6287 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6288 if test -f "${srcdir}/../common/callback.c"; then
6289 echo "$as_me:$LINENO: result: yes" >&5
6290 echo "${ECHO_T}yes" >&6
6291 sim_callback
="callback.o targ-map.o"
6292 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
6294 echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6
6300 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6301 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6302 if test -f "${srcdir}/../common/sim-fpu.c"; then
6303 echo "$as_me:$LINENO: result: yes" >&5
6304 echo "${ECHO_T}yes" >&6
6305 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6308 echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6
6322 if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6324 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6325 echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6327 if test "${ac_cv_prog_RANLIB+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 if test -n "$RANLIB"; then
6331 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir
=.
6338 for ac_exec_ext
in '' $ac_executable_extensions; do
6339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 RANLIB
=$ac_cv_prog_RANLIB
6350 if test -n "$RANLIB"; then
6351 echo "$as_me:$LINENO: result: $RANLIB" >&5
6352 echo "${ECHO_T}$RANLIB" >&6
6354 echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6
6359 if test -z "$ac_cv_prog_RANLIB"; then
6360 ac_ct_RANLIB
=$RANLIB
6361 # Extract the first word of "ranlib", so it can be a program name with args.
6362 set dummy ranlib
; ac_word
=$2
6363 echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 if test -n "$ac_ct_RANLIB"; then
6369 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir
=.
6376 for ac_exec_ext
in '' $ac_executable_extensions; do
6377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6388 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6389 if test -n "$ac_ct_RANLIB"; then
6390 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6391 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6393 echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6
6397 RANLIB
=$ac_ct_RANLIB
6399 RANLIB
="$ac_cv_prog_RANLIB"
6447 ac_config_files
="$ac_config_files Makefile"
6448 ac_config_commands
="$ac_config_commands default"
6449 cat >confcache
<<\_ACEOF
6450 # This file is a shell script that caches the results of configure
6451 # tests run on this system so they can be shared between configure
6452 # scripts and configure runs, see configure's option --config-cache.
6453 # It is not useful on other systems. If it contains results you don't
6454 # want to keep, you may remove or edit it.
6456 # config.status only pays attention to the cache file if you give it
6457 # the --recheck option to rerun configure.
6459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6465 # The following way of writing the cache mishandles newlines in values,
6466 # but we know of no workaround that is simple, portable, and efficient.
6467 # So, don't put newlines in cache variables' values.
6468 # Ultrix sh set writes to stderr and can't be redirected directly,
6469 # and sets the high bit in the cache file unless we assign to the vars.
6472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6474 # `set' does not quote correctly, so add quotes (double-quote
6475 # substitution turns \\\\ into \\, and sed turns \\ into \).
6478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6481 # `set' quotes correctly as required by POSIX, so do not add quotes.
6483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6494 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6495 if test -w $cache_file; then
6496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6497 cat confcache
>$cache_file
6499 echo "not updating unwritable cache $cache_file"
6504 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6505 # Let make expand exec_prefix.
6506 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6510 # trailing colons and then remove the whole line if VPATH becomes empty
6511 # (actually we leave an empty line to preserve line numbers).
6512 if test "x$srcdir" = x.
; then
6513 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6514 s/:*\$(srcdir):*/:/;
6515 s/:*\${srcdir}:*/:/;
6517 s/^\([^=]*=[ ]*\):*/\1/;
6523 DEFS
=-DHAVE_CONFIG_H
6527 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6528 # 1. Remove the extension, and $U if already installed.
6529 ac_i
=`echo "$ac_i" |
6530 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6532 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6533 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6537 LTLIBOBJS
=$ac_ltlibobjs
6541 : ${CONFIG_STATUS=./config.status}
6542 ac_clean_files_save
=$ac_clean_files
6543 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6544 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6545 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6546 cat >$CONFIG_STATUS <<_ACEOF
6548 # Generated by $as_me.
6549 # Run this file to recreate the current configuration.
6550 # Compiler output produced by configure, useful for debugging
6551 # configure, is in config.log if it exists.
6556 SHELL=\${CONFIG_SHELL-$SHELL}
6559 cat >>$CONFIG_STATUS <<\_ACEOF
6560 ## --------------------- ##
6561 ## M4sh Initialization. ##
6562 ## --------------------- ##
6564 # Be Bourne compatible
6565 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6568 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6569 # is contrary to our usage. Disable this feature.
6570 alias -g '${1+"$@"}'='"$@"'
6571 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6574 DUALCASE
=1; export DUALCASE
# for MKS sh
6576 # Support unset when possible.
6577 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6584 # Work around bugs in pre-3.0 UWIN ksh.
6585 $as_unset ENV MAIL MAILPATH
6592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6594 LC_TELEPHONE LC_TIME
6596 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6597 eval $as_var=C
; export $as_var
6603 # Required to use basename.
6604 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6610 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6611 as_basename
=basename
6617 # Name of the executable.
6618 as_me
=`$as_basename "$0" ||
6619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6620 X"$0" : 'X\(//\)$' \| \
6621 X"$0" : 'X\(/\)$' \| \
6622 . : '\(.\)' 2>/dev/null ||
6624 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6625 /^X\/\(\/\/\)$/{ s//\1/; q; }
6626 /^X\/\(\/\).*/{ s//\1/; q; }
6630 # PATH needs CR, and LINENO needs CR and PATH.
6631 # Avoid depending upon Character Ranges.
6632 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6633 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6634 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6635 as_cr_digits
='0123456789'
6636 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6638 # The user is always right.
6639 if test "${PATH_SEPARATOR+set}" != set; then
6640 echo "#! /bin/sh" >conf$$.sh
6641 echo "exit 0" >>conf$$.sh
6643 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6654 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6655 test "x$as_lineno_1" != "x$as_lineno_2" &&
6656 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6657 # Find who we are. Look in the path if we contain no path at all
6660 *[\\/]* ) as_myself
=$0 ;;
6661 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir
=.
6666 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6671 # We did not find ourselves, most probably we were run as `sh COMMAND'
6672 # in which case we are not to be found in the path.
6673 if test "x$as_myself" = x
; then
6676 if test ! -f "$as_myself"; then
6677 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6678 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6679 { (exit 1); exit 1; }; }
6681 case $CONFIG_SHELL in
6683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6684 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6687 test -z "$as_dir" && as_dir
=.
6688 for as_base
in sh bash ksh sh5
; do
6691 if ("$as_dir/$as_base" -c '
6694 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6695 test "x$as_lineno_1" != "x$as_lineno_2" &&
6696 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6697 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6698 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6699 CONFIG_SHELL
=$as_dir/$as_base
6701 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6710 # uniformly replaced by the line number. The first 'sed' inserts a
6711 # line-number line before each line; the second 'sed' does the real
6712 # work. The second script uses 'N' to pair each line-number line
6713 # with the numbered line, and appends trailing '-' during
6714 # substitution so that $LINENO is not a special case at line end.
6715 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6716 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6717 sed '=' <$as_myself |
6722 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6725 s,^['$as_cr_digits']*\n,,
6727 chmod +x
$as_me.lineno ||
6728 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6729 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6730 { (exit 1); exit 1; }; }
6732 # Don't try to exec as it changes $[0], causing all sort of problems
6733 # (the dirname of $[0] is not the place where we might find the
6734 # original and so on. Autoconf is especially sensible to this).
6736 # Exit status is that of the last command.
6741 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6742 *c
*,-n*) ECHO_N
= ECHO_C
='
6744 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6745 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6748 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6754 rm -f conf$$ conf$$.exe conf$$.
file
6756 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6757 # We could just check for DJGPP; but this test a) works b) is more generic
6758 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6759 if test -f conf$$.exe
; then
6760 # Don't use ln at all; we don't have any links
6765 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6770 rm -f conf$$ conf$$.exe conf$$.
file
6772 if mkdir
-p .
2>/dev
/null
; then
6775 test -d .
/-p && rmdir .
/-p
6779 as_executable_p
="test -f"
6781 # Sed expression to map a string onto a valid CPP name.
6782 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6784 # Sed expression to map a string onto a valid variable name.
6785 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6789 # We need space, tab and new line, in precisely that order.
6799 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6800 # report actual input values of CONFIG_FILES etc. instead of their
6801 # values after options handling. Logging --version etc. is OK.
6805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6806 ## Running $as_me. ##
6811 This file was extended by $as_me, which was
6812 generated by GNU Autoconf 2.59. Invocation command line was
6814 CONFIG_FILES = $CONFIG_FILES
6815 CONFIG_HEADERS = $CONFIG_HEADERS
6816 CONFIG_LINKS = $CONFIG_LINKS
6817 CONFIG_COMMANDS = $CONFIG_COMMANDS
6821 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6825 # Files that config.status was made for.
6826 if test -n "$ac_config_files"; then
6827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6830 if test -n "$ac_config_headers"; then
6831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6834 if test -n "$ac_config_links"; then
6835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6838 if test -n "$ac_config_commands"; then
6839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6842 cat >>$CONFIG_STATUS <<\_ACEOF
6845 \`$as_me' instantiates files from templates according to the
6846 current configuration.
6848 Usage: $0 [OPTIONS] [FILE]...
6850 -h, --help print this help, then exit
6851 -V, --version print version number, then exit
6852 -q, --quiet do not print progress messages
6853 -d, --debug don't remove temporary files
6854 --recheck update $as_me by reconfiguring in the same conditions
6855 --file=FILE[:TEMPLATE]
6856 instantiate the configuration file FILE
6857 --header=FILE[:TEMPLATE]
6858 instantiate the configuration header FILE
6860 Configuration files:
6863 Configuration headers:
6866 Configuration commands:
6869 Report bugs to <bug-autoconf@gnu.org>."
6872 cat >>$CONFIG_STATUS <<_ACEOF
6875 configured by $0, generated by GNU Autoconf 2.59,
6876 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6878 Copyright (C) 2003 Free Software Foundation, Inc.
6879 This config.status script is free software; the Free Software Foundation
6880 gives unlimited permission to copy, distribute and modify it."
6885 cat >>$CONFIG_STATUS <<\_ACEOF
6886 # If no file are specified by the user, then we need to provide default
6887 # value. By we need to know if files were specified by the user.
6893 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6894 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6902 *) # This is not an option, so the user has probably given explicit
6905 ac_need_defaults
=false
;;
6909 # Handling of the options.
6911 cat >>$CONFIG_STATUS <<\_ACEOF
6912 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6914 --version |
--vers* |
-V )
6915 echo "$ac_cs_version"; exit 0 ;;
6917 # Conflict between --help and --header
6918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6919 Try \`$0 --help' for more information." >&5
6920 echo "$as_me: error: ambiguous option: $1
6921 Try \`$0 --help' for more information." >&2;}
6922 { (exit 1); exit 1; }; };;
6923 --help |
--hel |
-h )
6924 echo "$ac_cs_usage"; exit 0 ;;
6925 --debug |
--d* |
-d )
6927 --file |
--fil |
--fi |
--f )
6929 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6930 ac_need_defaults
=false
;;
6931 --header |
--heade |
--head |
--hea )
6933 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6934 ac_need_defaults
=false
;;
6935 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6936 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6940 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6941 Try \`$0 --help' for more information." >&5
6942 echo "$as_me: error: unrecognized option: $1
6943 Try \`$0 --help' for more information." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6946 *) ac_config_targets
="$ac_config_targets $1" ;;
6952 ac_configure_extra_args
=
6954 if $ac_cs_silent; then
6956 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6960 cat >>$CONFIG_STATUS <<_ACEOF
6961 if \$ac_cs_recheck; then
6962 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6963 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6972 cat >>$CONFIG_STATUS <<\_ACEOF
6973 for ac_config_target
in $ac_config_targets
6975 case "$ac_config_target" in
6976 # Handling of arguments.
6977 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6978 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6979 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6980 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6981 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6982 { (exit 1); exit 1; }; };;
6986 # If the user did not use the arguments to specify the items to instantiate,
6987 # then the envvar interface is used. Set only those that are not.
6988 # We use the long form for the default assignment because of an extremely
6989 # bizarre bug on SunOS 4.1.3.
6990 if $ac_need_defaults; then
6991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6996 # Have a temporary directory for convenience. Make it in the build tree
6997 # simply because there is no reason to put it here, and in addition,
6998 # creating and moving files from /tmp can sometimes cause problems.
6999 # Create a temporary directory, and hook for its removal unless debugging.
7002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7003 trap '{ (exit 1); exit 1; }' 1 2 13 15
7006 # Create a (secure) tmp directory for tmp files.
7009 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7010 test -n "$tmp" && test -d "$tmp"
7013 tmp
=.
/confstat$$
-$RANDOM
7014 (umask 077 && mkdir
$tmp)
7017 echo "$me: cannot create a temporary directory in ." >&2
7018 { (exit 1); exit 1; }
7023 cat >>$CONFIG_STATUS <<_ACEOF
7026 # CONFIG_FILES section.
7029 # No need to generate the scripts if there are no CONFIG_FILES.
7030 # This happens for instance when ./config.status config.h
7031 if test -n "\$CONFIG_FILES"; then
7032 # Protect against being on the right side of a sed subst in config.status.
7033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7035 s,@sim_environment@,$sim_environment,;t t
7036 s,@sim_alignment@,$sim_alignment,;t t
7037 s,@sim_assert@,$sim_assert,;t t
7038 s,@sim_bitsize@,$sim_bitsize,;t t
7039 s,@sim_endian@,$sim_endian,;t t
7040 s,@sim_hostendian@,$sim_hostendian,;t t
7041 s,@sim_float@,$sim_float,;t t
7042 s,@sim_scache@,$sim_scache,;t t
7043 s,@sim_default_model@,$sim_default_model,;t t
7044 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7045 s,@sim_hw_objs@,$sim_hw_objs,;t t
7046 s,@sim_hw@,$sim_hw,;t t
7047 s,@sim_inline@,$sim_inline,;t t
7048 s,@sim_packages@,$sim_packages,;t t
7049 s,@sim_regparm@,$sim_regparm,;t t
7050 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7051 s,@sim_smp@,$sim_smp,;t t
7052 s,@sim_stdcall@,$sim_stdcall,;t t
7053 s,@sim_xor_endian@,$sim_xor_endian,;t t
7054 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7055 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7056 s,@SHELL@,$SHELL,;t t
7057 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7058 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7059 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7060 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7061 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7062 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7063 s,@exec_prefix@,$exec_prefix,;t t
7064 s,@prefix@,$prefix,;t t
7065 s,@program_transform_name@,$program_transform_name,;t t
7066 s,@bindir@,$bindir,;t t
7067 s,@sbindir@,$sbindir,;t t
7068 s,@libexecdir@,$libexecdir,;t t
7069 s,@datadir@,$datadir,;t t
7070 s,@sysconfdir@,$sysconfdir,;t t
7071 s,@sharedstatedir@,$sharedstatedir,;t t
7072 s,@localstatedir@,$localstatedir,;t t
7073 s,@libdir@,$libdir,;t t
7074 s,@includedir@,$includedir,;t t
7075 s,@oldincludedir@,$oldincludedir,;t t
7076 s,@infodir@,$infodir,;t t
7077 s,@mandir@,$mandir,;t t
7078 s,@build_alias@,$build_alias,;t t
7079 s,@host_alias@,$host_alias,;t t
7080 s,@target_alias@,$target_alias,;t t
7082 s,@ECHO_C@,$ECHO_C,;t t
7083 s,@ECHO_N@,$ECHO_N,;t t
7084 s,@ECHO_T@,$ECHO_T,;t t
7086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7090 s,@CFLAGS@,$CFLAGS,;t t
7091 s,@LDFLAGS@,$LDFLAGS,;t t
7092 s,@CPPFLAGS@,$CPPFLAGS,;t t
7093 s,@ac_ct_CC@,$ac_ct_CC,;t t
7094 s,@EXEEXT@,$EXEEXT,;t t
7095 s,@OBJEXT@,$OBJEXT,;t t
7096 s,@USE_NLS@,$USE_NLS,;t t
7097 s,@LIBINTL@,$LIBINTL,;t t
7098 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7099 s,@INCINTL@,$INCINTL,;t t
7100 s,@XGETTEXT@,$XGETTEXT,;t t
7101 s,@GMSGFMT@,$GMSGFMT,;t t
7102 s,@POSUB@,$POSUB,;t t
7103 s,@CATALOGS@,$CATALOGS,;t t
7104 s,@DATADIRNAME@,$DATADIRNAME,;t t
7105 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7106 s,@GENCAT@,$GENCAT,;t t
7107 s,@CATOBJEXT@,$CATOBJEXT,;t t
7108 s,@PKGVERSION@,$PKGVERSION,;t t
7109 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7110 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7111 s,@build@,$build,;t t
7112 s,@build_cpu@,$build_cpu,;t t
7113 s,@build_vendor@,$build_vendor,;t t
7114 s,@build_os@,$build_os,;t t
7116 s,@host_cpu@,$host_cpu,;t t
7117 s,@host_vendor@,$host_vendor,;t t
7118 s,@host_os@,$host_os,;t t
7119 s,@target@,$target,;t t
7120 s,@target_cpu@,$target_cpu,;t t
7121 s,@target_vendor@,$target_vendor,;t t
7122 s,@target_os@,$target_os,;t t
7124 s,@EGREP@,$EGREP,;t t
7125 s,@LIBOBJS@,$LIBOBJS,;t t
7126 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7127 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7128 s,@HDEFINES@,$HDEFINES,;t t
7130 s,@RANLIB@,$RANLIB,;t t
7131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7132 s,@sim_cflags@,$sim_cflags,;t t
7133 s,@sim_warnings@,$sim_warnings,;t t
7134 s,@sim_line_nr@,$sim_line_nr,;t t
7135 s,@sim_config@,$sim_config,;t t
7136 s,@sim_opcode@,$sim_opcode,;t t
7137 s,@sim_switch@,$sim_switch,;t t
7138 s,@sim_dup@,$sim_dup,;t t
7139 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7140 s,@sim_jump@,$sim_jump,;t t
7141 s,@sim_filter@,$sim_filter,;t t
7142 s,@sim_icache@,$sim_icache,;t t
7143 s,@sim_hw_src@,$sim_hw_src,;t t
7144 s,@sim_hw_obj@,$sim_hw_obj,;t t
7145 s,@sim_pk_src@,$sim_pk_src,;t t
7146 s,@sim_pk_obj@,$sim_pk_obj,;t t
7147 s,@sim_bswap@,$sim_bswap,;t t
7148 s,@sim_igen_smp@,$sim_igen_smp,;t t
7149 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7150 s,@sim_env@,$sim_env,;t t
7151 s,@sim_timebase@,$sim_timebase,;t t
7152 s,@sim_trace@,$sim_trace,;t t
7153 s,@sim_reserved@,$sim_reserved,;t t
7154 s,@sim_monitor@,$sim_monitor,;t t
7155 s,@sim_model@,$sim_model,;t t
7156 s,@sim_model_issue@,$sim_model_issue,;t t
7157 s,@sim_stdio@,$sim_stdio,;t t
7158 s,@sim_termio@,$sim_termio,;t t
7159 s,@sim_devzero@,$sim_devzero,;t t
7160 s,@sim_callback@,$sim_callback,;t t
7161 s,@sim_targ_vals@,$sim_targ_vals,;t t
7162 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7163 s,@sim_fpu@,$sim_fpu,;t t
7164 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7169 cat >>$CONFIG_STATUS <<\_ACEOF
7170 # Split the substitutions into bite-sized pieces for seds with
7171 # small command number limits, like on Digital OSF/1 and HP-UX.
7173 ac_sed_frag
=1 # Number of current file.
7174 ac_beg
=1 # First line for current file.
7175 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7178 while $ac_more_lines; do
7179 if test $ac_beg -gt 1; then
7180 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7182 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7184 if test ! -s $tmp/subs.frag
; then
7187 # The purpose of the label and of the branching condition is to
7188 # speed up the sed processing (if there are no `@' at all, there
7189 # is no need to browse any of the substitutions).
7190 # These are the two extra sed commands mentioned above.
7192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7193 if test -z "$ac_sed_cmds"; then
7194 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7196 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7198 ac_sed_frag
=`expr $ac_sed_frag + 1`
7200 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7203 if test -z "$ac_sed_cmds"; then
7206 fi # test -n "$CONFIG_FILES"
7209 cat >>$CONFIG_STATUS <<\_ACEOF
7210 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7213 - |
*:- |
*:-:* ) # input from stdin
7215 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7216 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7217 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7218 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7219 * ) ac_file_in
=$ac_file.
in ;;
7222 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7223 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7225 X"$ac_file" : 'X\(//\)[^/]' \| \
7226 X"$ac_file" : 'X\(//\)$' \| \
7227 X"$ac_file" : 'X\(/\)' \| \
7228 . : '\(.\)' 2>/dev/null ||
7230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7232 /^X\(\/\/\)$/{ s//\1/; q; }
7233 /^X\(\/\).*/{ s//\1/; q; }
7235 { if $as_mkdir_p; then
7240 while test ! -d "$as_dir"; do
7241 as_dirs
="$as_dir $as_dirs"
7242 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7244 X"$as_dir" : 'X\(//\)[^/]' \| \
7245 X"$as_dir" : 'X\(//\)$' \| \
7246 X"$as_dir" : 'X\(/\)' \| \
7247 . : '\(.\)' 2>/dev/null ||
7249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7251 /^X\(\/\/\)$/{ s//\1/; q; }
7252 /^X\(\/\).*/{ s//\1/; q; }
7255 test ! -n "$as_dirs" || mkdir
$as_dirs
7256 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7257 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7258 { (exit 1); exit 1; }; }; }
7262 if test "$ac_dir" != .
; then
7263 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7264 # A "../" for each directory in $ac_dir_suffix.
7265 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7267 ac_dir_suffix
= ac_top_builddir
=
7271 .
) # No --srcdir option. We are building in place.
7273 if test -z "$ac_top_builddir"; then
7276 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7278 [\\/]* | ?
:[\\/]* ) # Absolute path.
7279 ac_srcdir
=$srcdir$ac_dir_suffix;
7280 ac_top_srcdir
=$srcdir ;;
7282 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7283 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7286 # Do not use `cd foo && pwd` to compute absolute paths, because
7287 # the directories may not exist.
7289 .
) ac_abs_builddir
="$ac_dir";;
7292 .
) ac_abs_builddir
=`pwd`;;
7293 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7294 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7297 case $ac_abs_builddir in
7298 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7300 case ${ac_top_builddir}.
in
7301 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7302 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7303 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7306 case $ac_abs_builddir in
7307 .
) ac_abs_srcdir
=$ac_srcdir;;
7310 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7311 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7312 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7315 case $ac_abs_builddir in
7316 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7318 case $ac_top_srcdir in
7319 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7320 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7321 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7327 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7328 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7331 if test x
"$ac_file" != x-
; then
7332 { echo "$as_me:$LINENO: creating $ac_file" >&5
7333 echo "$as_me: creating $ac_file" >&6;}
7336 # Let's still pretend it is `configure' which instantiates (i.e., don't
7337 # use $as_me), people would be surprised to read:
7338 # /* config.h. Generated by config.status. */
7339 if test x
"$ac_file" = x-
; then
7342 configure_input
="$ac_file. "
7344 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7345 sed 's,.*/,,'` by configure."
7347 # First look for the input files in the build tree, otherwise in the
7349 ac_file_inputs
=`IFS=:
7350 for f in $ac_file_in; do
7352 -) echo $tmp/stdin ;;
7354 # Absolute (can't be DOS-style, as IFS=:)
7355 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7356 echo "$as_me: error: cannot find input file: $f" >&2;}
7357 { (exit 1); exit 1; }; }
7360 if test -f "$f"; then
7363 elif test -f "$srcdir/$f"; then
7368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7369 echo "$as_me: error: cannot find input file: $f" >&2;}
7370 { (exit 1); exit 1; }; }
7373 done` ||
{ (exit 1); exit 1; }
7375 cat >>$CONFIG_STATUS <<_ACEOF
7379 cat >>$CONFIG_STATUS <<\_ACEOF
7381 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7382 s
,@configure_input@
,$configure_input,;t t
7383 s
,@srcdir@
,$ac_srcdir,;t t
7384 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7385 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7386 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7387 s
,@builddir@
,$ac_builddir,;t t
7388 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7389 s
,@top_builddir@
,$ac_top_builddir,;t t
7390 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7391 s
,@INSTALL@
,$ac_INSTALL,;t t
7392 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7394 if test x"$ac_file" != x-; then
7395 mv $tmp/out $ac_file
7403 cat >>$CONFIG_STATUS <<\_ACEOF
7406 # CONFIG_HEADER section.
7409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7412 # ac_d sets the value in "#define NAME VALUE" lines.
7413 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7414 ac_dB
='[ ].*$,\1#\2'
7417 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7418 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7419 ac_uB
='$,\1#\2define\3'
7423 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7426 - |
*:- |
*:-:* ) # input from stdin
7428 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7429 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7430 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7431 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7432 * ) ac_file_in
=$ac_file.
in ;;
7435 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7436 echo "$as_me: creating $ac_file" >&6;}
7438 # First look for the input files in the build tree, otherwise in the
7440 ac_file_inputs
=`IFS=:
7441 for f in $ac_file_in; do
7443 -) echo $tmp/stdin ;;
7445 # Absolute (can't be DOS-style, as IFS=:)
7446 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7447 echo "$as_me: error: cannot find input file: $f" >&2;}
7448 { (exit 1); exit 1; }; }
7449 # Do quote $f, to prevent DOS paths from being IFS'd.
7452 if test -f "$f"; then
7455 elif test -f "$srcdir/$f"; then
7460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7461 echo "$as_me: error: cannot find input file: $f" >&2;}
7462 { (exit 1); exit 1; }; }
7465 done` ||
{ (exit 1); exit 1; }
7466 # Remove the trailing spaces.
7467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7472 # `conftest.undefs', that substitutes the proper values into
7473 # config.h.in to produce config.h. The first handles `#define'
7474 # templates, and the second `#undef' templates.
7475 # And first: Protect against being on the right side of a sed subst in
7476 # config.status. Protect against being in an unquoted here document
7478 rm -f conftest.defines conftest.undefs
7479 # Using a here document instead of a string reduces the quoting nightmare.
7480 # Putting comments in sed scripts is not portable.
7482 # `end' is used to avoid that the second main sed command (meant for
7483 # 0-ary CPP macros) applies to n-ary macro definitions.
7484 # See the Autoconf documentation for `clear'.
7485 cat >confdef2sed.
sed <<\_ACEOF
7490 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7492 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7495 # If some macros were called several times there might be several times
7496 # the same #defines, which is useless. Nevertheless, we may not want to
7497 # sort them, since we want the *last* AC-DEFINE to be honored.
7498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7500 rm -f confdef2sed.sed
7502 # This sed command replaces #undef with comments. This is necessary, for
7503 # example, in the case of _POSIX_SOURCE, which is predefined and required
7504 # on some systems where configure will not decide to define it.
7505 cat >>conftest.undefs <<\_ACEOF
7506 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7509 # Break up conftest.defines because some shells have a limit on the size
7510 # of here documents, and old seds have small limits too (100 cmds).
7511 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7512 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7513 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7514 echo ' :' >>$CONFIG_STATUS
7516 while grep . conftest.defines >/dev/null
7518 # Write a limited-size here document to $tmp/defines.sed.
7519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7520 # Speed up: don't consider the non `#define' lines.
7521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7522 # Work around the forget-to-reset-the-flag bug.
7523 echo 't clr' >>$CONFIG_STATUS
7524 echo ': clr' >>$CONFIG_STATUS
7525 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7531 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7532 rm -f conftest.defines
7533 mv conftest.
tail conftest.defines
7535 rm -f conftest.defines
7536 echo ' fi # grep' >>$CONFIG_STATUS
7537 echo >>$CONFIG_STATUS
7539 # Break up conftest.undefs because some shells have a limit on the size
7540 # of here documents, and old seds have small limits too (100 cmds).
7541 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7543 while grep . conftest.undefs
>/dev
/null
7545 # Write a limited-size here document to $tmp/undefs.sed.
7546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7547 # Speed up: don't consider the non
`#undef'
7548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7549 # Work around the forget-to-reset-the-flag bug.
7550 echo 't clr' >>$CONFIG_STATUS
7551 echo ': clr' >>$CONFIG_STATUS
7552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7559 rm -f conftest.undefs
7560 mv conftest.tail conftest.undefs
7562 rm -f conftest.undefs
7564 cat >>$CONFIG_STATUS <<\_ACEOF
7565 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7566 # use $as_me), people would be surprised to read:
7567 # /* config.h. Generated by config.status. */
7568 if test x
"$ac_file" = x-
; then
7569 echo "/* Generated by configure. */" >$tmp/config.h
7571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7573 cat $tmp/in >>$tmp/config.h
7575 if test x
"$ac_file" != x-
; then
7576 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7578 echo "$as_me: $ac_file is unchanged" >&6;}
7580 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582 X"$ac_file" : 'X\(//\)[^/]' \| \
7583 X"$ac_file" : 'X\(//\)$' \| \
7584 X"$ac_file" : 'X\(/\)' \| \
7585 . : '\(.\)' 2>/dev/null ||
7587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589 /^X\(\/\/\)$/{ s//\1/; q; }
7590 /^X\(\/\).*/{ s//\1/; q; }
7592 { if $as_mkdir_p; then
7597 while test ! -d "$as_dir"; do
7598 as_dirs
="$as_dir $as_dirs"
7599 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7601 X"$as_dir" : 'X\(//\)[^/]' \| \
7602 X"$as_dir" : 'X\(//\)$' \| \
7603 X"$as_dir" : 'X\(/\)' \| \
7604 . : '\(.\)' 2>/dev/null ||
7606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7608 /^X\(\/\/\)$/{ s//\1/; q; }
7609 /^X\(\/\).*/{ s//\1/; q; }
7612 test ! -n "$as_dirs" || mkdir
$as_dirs
7613 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7615 { (exit 1); exit 1; }; }; }
7618 mv $tmp/config.h
$ac_file
7626 cat >>$CONFIG_STATUS <<\_ACEOF
7629 # CONFIG_COMMANDS section.
7631 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7632 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7633 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7634 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7635 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636 X"$ac_dest" : 'X\(//\)[^/]' \| \
7637 X"$ac_dest" : 'X\(//\)$' \| \
7638 X"$ac_dest" : 'X\(/\)' \| \
7639 . : '\(.\)' 2>/dev/null ||
7641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7643 /^X\(\/\/\)$/{ s//\1/; q; }
7644 /^X\(\/\).*/{ s//\1/; q; }
7646 { if $as_mkdir_p; then
7651 while test ! -d "$as_dir"; do
7652 as_dirs
="$as_dir $as_dirs"
7653 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655 X"$as_dir" : 'X\(//\)[^/]' \| \
7656 X"$as_dir" : 'X\(//\)$' \| \
7657 X"$as_dir" : 'X\(/\)' \| \
7658 . : '\(.\)' 2>/dev/null ||
7660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662 /^X\(\/\/\)$/{ s//\1/; q; }
7663 /^X\(\/\).*/{ s//\1/; q; }
7666 test ! -n "$as_dirs" || mkdir
$as_dirs
7667 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7669 { (exit 1); exit 1; }; }; }
7673 if test "$ac_dir" != .
; then
7674 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7675 # A "../" for each directory in $ac_dir_suffix.
7676 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7678 ac_dir_suffix
= ac_top_builddir
=
7682 .
) # No --srcdir option. We are building in place.
7684 if test -z "$ac_top_builddir"; then
7687 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7689 [\\/]* | ?
:[\\/]* ) # Absolute path.
7690 ac_srcdir
=$srcdir$ac_dir_suffix;
7691 ac_top_srcdir
=$srcdir ;;
7693 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7694 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7697 # Do not use `cd foo && pwd` to compute absolute paths, because
7698 # the directories may not exist.
7700 .
) ac_abs_builddir
="$ac_dir";;
7703 .
) ac_abs_builddir
=`pwd`;;
7704 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7705 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7708 case $ac_abs_builddir in
7709 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7711 case ${ac_top_builddir}.
in
7712 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7713 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7714 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7717 case $ac_abs_builddir in
7718 .
) ac_abs_srcdir
=$ac_srcdir;;
7721 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7722 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7723 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7726 case $ac_abs_builddir in
7727 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7729 case $ac_top_srcdir in
7730 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7731 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7732 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7737 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7738 echo "$as_me: executing $ac_dest commands" >&6;}
7740 default
) case x
$CONFIG_HEADERS in xconfig.h
:config.
in) echo > stamp-h
;; esac ;;
7745 cat >>$CONFIG_STATUS <<\_ACEOF
7747 { (exit 0); exit 0; }
7749 chmod +x
$CONFIG_STATUS
7750 ac_clean_files
=$ac_clean_files_save
7753 # configure is writing to config.log, and then calls config.status.
7754 # config.status does its own redirection, appending to config.log.
7755 # Unfortunately, on DOS this fails, as config.log is still kept open
7756 # by configure, so config.status won't be able to write to it; its
7757 # output is simply discarded. So we exec the FD to /dev/null,
7758 # effectively closing config.log, so it can be properly (re)opened and
7759 # appended to by config.status. When coming back to configure, we
7760 # need to make the FD available again.
7761 if test "$no_create" != yes; then
7763 ac_config_status_args
=
7764 test "$silent" = yes &&
7765 ac_config_status_args
="$ac_config_status_args --quiet"
7767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7770 # would make configure fail if this is the last instruction.
7771 $ac_cs_success ||
{ (exit 1); exit 1; }