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 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).
889 Some influential environment variables
:
890 CC C compiler
command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
893 nonstandard directory
<lib dir
>
894 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
895 headers
in a nonstandard directory
<include dir
>
898 Use these variables to override the choices made by
`configure' or to help
899 it to find libraries and programs with nonstandard names/locations.
904 if test "$ac_init_help" = "recursive"; then
905 # If there are subdirs, report their specific --help.
907 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908 test -d $ac_dir || continue
911 if test "$ac_dir" != .; then
912 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
913 # A "../" for each directory in $ac_dir_suffix.
914 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
916 ac_dir_suffix= ac_top_builddir=
920 .) # No --srcdir option. We are building in place.
922 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
927 [\\/]* | ?:[\\/]* ) # Absolute path.
928 ac_srcdir=$srcdir$ac_dir_suffix;
929 ac_top_srcdir=$srcdir ;;
931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 # Do not use `cd foo
&& pwd` to compute absolute paths, because
936 # the directories may not exist.
938 .) ac_abs_builddir="$ac_dir";;
941 .) ac_abs_builddir=`pwd`;;
942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 case $ac_abs_builddir in
947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
949 case ${ac_top_builddir}. in
950 .) ac_abs_top_builddir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 case $ac_abs_builddir in
956 .) ac_abs_srcdir=$ac_srcdir;;
959 .) ac_abs_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 case $ac_abs_builddir in
965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
967 case $ac_top_srcdir in
968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
975 # Check for guested configure; otherwise get Cygnus style configure.
976 if test -f $ac_srcdir/configure.gnu; then
978 $SHELL $ac_srcdir/configure.gnu --help=recursive
979 elif test -f $ac_srcdir/configure; then
981 $SHELL $ac_srcdir/configure --help=recursive
982 elif test -f $ac_srcdir/configure.ac ||
983 test -f $ac_srcdir/configure.in; then
987 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993 test -n "$ac_init_help" && exit 0
994 if $ac_init_version; then
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1020 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1021 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1022 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1023 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1024 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1027 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1029 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1031 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1032 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1033 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1034 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1035 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close
' the trap.
1115 trap 'exit_status
=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var
in $ac_subst_vars
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var
in $ac_subst_files
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h
; then
1178 sed "/^$/d" confdefs.h |
sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core
*.core
&&
1186 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's
/^
/|
/' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1283 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1308 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1315 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1369 # AmigaOS /C/install, which installs bootblocks on floppy discs
1370 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373 # OS/2's system install, which has a completely different semantic
1374 # ./install, which can be erroneously created by make from ./install.sh.
1375 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1377 if test -z "$INSTALL"; then
1378 if test "${ac_cv_path_install+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1385 test -z "$as_dir" && as_dir
=.
1386 # Account for people who put trailing slashes in PATH elements.
1388 .
/ | .
// |
/cC
/* | \
1389 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1390 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1393 # OSF1 and SCO ODT 3.0 have their own names for install.
1394 # Don't use installbsd from OSF since it installs stuff as root
1396 for ac_prog
in ginstall scoinst
install; do
1397 for ac_exec_ext
in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1399 if test $ac_prog = install &&
1400 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1401 # AIX install. It has an incompatible calling convention.
1403 elif test $ac_prog = install &&
1404 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1405 # program-specific install script used by HP pwplus--don't use.
1408 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1420 if test "${ac_cv_path_install+set}" = set; then
1421 INSTALL
=$ac_cv_path_install
1423 # As a last resort, use the slow shell script. We don't cache a
1424 # path for INSTALL within a source directory, because that will
1425 # break other packages using the cache if that directory is
1426 # removed, or if the path is relative.
1427 INSTALL
=$ac_install_sh
1430 echo "$as_me:$LINENO: result: $INSTALL" >&5
1431 echo "${ECHO_T}$INSTALL" >&6
1433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434 # It thinks the first close brace ends the variable substitution.
1435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1439 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1442 ac_cpp
='$CPP $CPPFLAGS'
1443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1446 if test -n "$ac_tool_prefix"; then
1447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1448 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$CC"; then
1455 ac_cv_prog_CC
="$CC" # Let the user override the test.
1457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1461 test -z "$as_dir" && as_dir
=.
1462 for ac_exec_ext
in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 if test -n "$CC"; then
1475 echo "$as_me:$LINENO: result: $CC" >&5
1476 echo "${ECHO_T}$CC" >&6
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1483 if test -z "$ac_cv_prog_CC"; then
1485 # Extract the first word of "gcc", so it can be a program name with args.
1486 set dummy gcc
; ac_word
=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 if test -n "$ac_ct_CC"; then
1493 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1499 test -z "$as_dir" && as_dir
=.
1500 for ac_exec_ext
in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_ac_ct_CC
="gcc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1512 if test -n "$ac_ct_CC"; then
1513 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514 echo "${ECHO_T}$ac_ct_CC" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1525 if test -z "$CC"; then
1526 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1528 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC
="$CC" # Let the user override the test.
1537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir
=.
1542 for ac_exec_ext
in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1563 if test -z "$ac_cv_prog_CC"; then
1565 # Extract the first word of "cc", so it can be a program name with args.
1566 set dummy cc
; ac_word
=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir
=.
1580 for ac_exec_ext
in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC
="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1606 if test -z "$CC"; then
1607 # Extract the first word of "cc", so it can be a program name with args.
1608 set dummy cc
; ac_word
=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC
="$CC" # Let the user override the test.
1618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir
=.
1623 for ac_exec_ext
in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1626 ac_prog_rejected
=yes
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test $ac_prog_rejected = yes; then
1637 # We found a bogon in the path, so make sure we never use it.
1638 set dummy
$ac_cv_prog_CC
1640 if test $# != 0; then
1641 # We chose a different compiler from the bogus one.
1642 # However, it has the same basename, so the bogon will be chosen
1643 # first if we set CC to just the basename; use the full file name.
1645 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1651 if test -n "$CC"; then
1652 echo "$as_me:$LINENO: result: $CC" >&5
1653 echo "${ECHO_T}$CC" >&6
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1660 if test -z "$CC"; then
1661 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC
="$CC" # Let the user override the test.
1674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir
=.
1679 for ac_exec_ext
in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1699 test -n "$CC" && break
1702 if test -z "$CC"; then
1706 # Extract the first word of "$ac_prog", so it can be a program name with args.
1707 set dummy
$ac_prog; ac_word
=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir
=.
1721 for ac_exec_ext
in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC
="$ac_prog"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1733 if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735 echo "${ECHO_T}$ac_ct_CC" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 test -n "$ac_ct_CC" && break
1750 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1751 See \`config.log' for more details." >&5
1752 echo "$as_me: error: no acceptable C compiler found in \$PATH
1753 See \`config.log' for more details." >&2;}
1754 { (exit 1); exit 1; }; }
1756 # Provide some information about the compiler.
1757 echo "$as_me:$LINENO:" \
1758 "checking for C compiler version" >&5
1759 ac_compiler
=`set X $ac_compile; echo $2`
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1761 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1766 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1771 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }
1776 cat >conftest.
$ac_ext <<_ACEOF
1779 cat confdefs.h
>>conftest.
$ac_ext
1780 cat >>conftest.
$ac_ext <<_ACEOF
1781 /* end confdefs.h. */
1791 ac_clean_files_save
=$ac_clean_files
1792 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1793 # Try to create an executable without -o first, disregard a.out.
1794 # It will help us diagnose broken compilers, and finding out an intuition
1796 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1798 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1799 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1800 (eval $ac_link_default) 2>&5
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; then
1804 # Find the output, starting from the most likely. This scheme is
1805 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1808 # Be careful to initialize this variable, since it used to be cached.
1809 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1811 # b.out is created by i960 compilers.
1812 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1814 test -f "$ac_file" ||
continue
1816 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1819 # This is the source file.
1822 # We found the default executable, but exeext='' is most
1826 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 # FIXME: I believe we export ac_cv_exeext for Libtool,
1828 # but it would be cool to find out if it's true. Does anybody
1829 # maintain Libtool? --akim.
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.
$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: C compiler cannot create executables
1843 See \`config.log' for more details." >&2;}
1844 { (exit 77); exit 77; }; }
1847 ac_exeext
=$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_file" >&5
1849 echo "${ECHO_T}$ac_file" >&6
1851 # Check the compiler produces executables we can run. If not, either
1852 # the compiler is broken, or we cross compile.
1853 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1854 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1855 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1856 # If not cross compiling, check that we can run a simple program.
1857 if test "$cross_compiling" != yes; then
1858 if { ac_try
='./$ac_file'
1859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; }; then
1866 if test "$cross_compiling" = maybe
; then
1869 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1870 If you meant to cross compile, use \`--host'.
1871 See \`config.log' for more details." >&5
1872 echo "$as_me: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'.
1874 See \`config.log' for more details." >&2;}
1875 { (exit 1); exit 1; }; }
1879 echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1882 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1883 ac_clean_files
=$ac_clean_files_save
1884 # Check the compiler produces executables we can run. If not, either
1885 # the compiler is broken, or we cross compile.
1886 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1887 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1888 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1889 echo "${ECHO_T}$cross_compiling" >&6
1891 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1892 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1894 (eval $ac_link) 2>&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1900 # work properly (i.e., refer to `conftest.exe'), while it won't with
1902 for ac_file
in conftest.exe conftest conftest.
*; do
1903 test -f "$ac_file" ||
continue
1905 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1906 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1920 rm -f conftest
$ac_cv_exeext
1921 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1922 echo "${ECHO_T}$ac_cv_exeext" >&6
1924 rm -f conftest.
$ac_ext
1925 EXEEXT
=$ac_cv_exeext
1927 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1929 if test "${ac_cv_objext+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 cat >conftest.
$ac_ext <<_ACEOF
1935 cat confdefs.h
>>conftest.
$ac_ext
1936 cat >>conftest.
$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1947 rm -f conftest.o conftest.obj
1948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1949 (eval $ac_compile) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; then
1953 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1955 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1956 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.
$ac_ext >&5
1964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1971 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1973 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1974 echo "${ECHO_T}$ac_cv_objext" >&6
1975 OBJEXT
=$ac_cv_objext
1977 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 cat >conftest.
$ac_ext <<_ACEOF
1985 cat confdefs.h
>>conftest.
$ac_ext
1986 cat >>conftest.
$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
2000 rm -f conftest.
$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>conftest.er1
2004 grep -v '^ *+' conftest.er1
>conftest.err
2006 cat conftest.err
>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try
='test -z "$ac_c_werror_flag"
2010 || test ! -s conftest.err'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; } &&
2016 { ac_try
='test -s conftest.$ac_objext'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
2024 echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.
$ac_ext >&5
2029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2030 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2033 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2036 ac_test_CFLAGS
=${CFLAGS+set}
2037 ac_save_CFLAGS
=$CFLAGS
2039 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_g+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 cat >conftest.
$ac_ext <<_ACEOF
2047 cat confdefs.h
>>conftest.
$ac_ext
2048 cat >>conftest.
$ac_ext <<_ACEOF
2049 /* end confdefs.h. */
2059 rm -f conftest.
$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>conftest.er1
2063 grep -v '^ *+' conftest.er1
>conftest.err
2065 cat conftest.err
>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try
='test -z "$ac_c_werror_flag"
2069 || test ! -s conftest.err'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; } &&
2075 { ac_try
='test -s conftest.$ac_objext'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; }; then
2083 echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.
$ac_ext >&5
2088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092 if test "$ac_test_CFLAGS" = set; then
2093 CFLAGS
=$ac_save_CFLAGS
2094 elif test $ac_cv_prog_cc_g = yes; then
2095 if test "$GCC" = yes; then
2101 if test "$GCC" = yes; then
2107 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 ac_cv_prog_cc_stdc
=no
2114 cat >conftest.
$ac_ext <<_ACEOF
2117 cat confdefs.h
>>conftest.
$ac_ext
2118 cat >>conftest.
$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2122 #include <sys/types.h>
2123 #include <sys/stat.h>
2124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2125 struct buf { int x; };
2126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127 static char *e (p, i)
2133 static char *f (char * (*g) (char **, int), char **p, ...)
2138 s = g (p, va_arg (v,int));
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not '\xHH' hex character constants.
2145 These don't provoke an error unfortunately, instead are silently treated
2146 as 'x'. The following induces an error, until -std1 is added to get
2147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2148 array size at least. It's necessary to write '\x00'==0 to get something
2149 that's true only with -std1. */
2150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2152 int test (int i, double x);
2153 struct s1 {int (*f) (int a);};
2154 struct s2 {int (*f) (double a);};
2155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2166 # Don't try gcc -ansi; that turns off useful extensions and
2167 # breaks some systems' header files.
2168 # AIX -qlanglvl=ansi
2169 # Ultrix and OSF/1 -std1
2170 # HP-UX 10.20 and later -Ae
2171 # HP-UX older versions -Aa -D_HPUX_SOURCE
2172 # SVR4 -Xc -D__EXTENSIONS__
2173 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2175 CC
="$ac_save_CC $ac_arg"
2176 rm -f conftest.
$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2180 grep -v '^ *+' conftest.er1
>conftest.err
2182 cat conftest.err
>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try
='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try
='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 ac_cv_prog_cc_stdc
=$ac_arg
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.
$ac_ext >&5
2205 rm -f conftest.err conftest.
$ac_objext
2207 rm -f conftest.
$ac_ext conftest.
$ac_objext
2212 case "x$ac_cv_prog_cc_stdc" in
2214 echo "$as_me:$LINENO: result: none needed" >&5
2215 echo "${ECHO_T}none needed" >&6 ;;
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2219 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2222 # Some people use a C++ compiler to compile C. Since we use `exit',
2223 # in C++ we need to declare it. In case someone uses the same compiler
2224 # for both compiling C and C++ we need to have the C++ compiler decide
2225 # the declaration of exit, since it's the most demanding environment.
2226 cat >conftest.
$ac_ext <<_ACEOF
2231 rm -f conftest.
$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2235 grep -v '^ *+' conftest.er1
>conftest.err
2237 cat conftest.err
>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try
='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try
='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 for ac_declaration
in \
2255 'extern "C" void std::exit (int) throw (); using std::exit;' \
2256 'extern "C" void std::exit (int); using std::exit;' \
2257 'extern "C" void exit (int) throw ();' \
2258 'extern "C" void exit (int);' \
2261 cat >conftest.
$ac_ext <<_ACEOF
2264 cat confdefs.h
>>conftest.
$ac_ext
2265 cat >>conftest.
$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2277 rm -f conftest.
$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>conftest.er1
2281 grep -v '^ *+' conftest.er1
>conftest.err
2283 cat conftest.err
>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } &&
2286 { ac_try
='test -z "$ac_c_werror_flag"
2287 || test ! -s conftest.err'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; } &&
2293 { ac_try
='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.
$ac_ext >&5
2306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2307 cat >conftest.
$ac_ext <<_ACEOF
2310 cat confdefs.h
>>conftest.
$ac_ext
2311 cat >>conftest.
$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.
$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1
>conftest.err
2328 cat conftest.err
>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try
='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try
='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.
$ac_ext >&5
2350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2353 if test -n "$ac_declaration"; then
2354 echo '#ifdef __cplusplus' >>confdefs.h
2355 echo $ac_declaration >>confdefs.h
2356 echo '#endif' >>confdefs.h
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.
$ac_ext >&5
2364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2366 ac_cpp
='$CPP $CPPFLAGS'
2367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2372 # Put a plausible default for CC_FOR_BUILD in Makefile.
2373 if test "x$cross_compiling" = "xno"; then
2374 CC_FOR_BUILD
='$(CC)'
2378 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
2381 # If we haven't got the data from the intl directory,
2382 # assume NLS is disabled.
2391 if test -f ..
/intl
/config.intl
; then
2392 . ..
/intl
/config.intl
2394 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2395 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2396 if test x
"$USE_NLS" != xyes
; then
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2400 echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6
2403 cat >>confdefs.h
<<\_ACEOF
2404 #define ENABLE_NLS 1
2408 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2409 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2410 # Look for .po and .gmo files in the source directory.
2413 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
2414 # If there aren't any .gmo files the shell will give us the
2415 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2417 case "$cat" in *\
**)
2420 # The quadruple backslash is collapsed to a double backslash
2421 # by the backticks, then collapsed again by the double quotes,
2422 # leaving us with one backslash in the sed expression (right
2423 # before the dot that mustn't act as a wildcard).
2424 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2425 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
2426 # The user is allowed to set LINGUAS to a list of languages to
2427 # install catalogs for. If it's empty that means "all of them."
2428 if test "x$LINGUAS" = x
; then
2429 CATALOGS
="$CATALOGS $cat"
2430 XLINGUAS
="$XLINGUAS $lang"
2432 case "$LINGUAS" in *$lang*)
2433 CATALOGS
="$CATALOGS $cat"
2434 XLINGUAS
="$XLINGUAS $lang"
2440 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2441 echo "${ECHO_T}$LINGUAS" >&6
2455 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2456 if test "${enable_sim_alignment+set}" = set; then
2457 enableval
="$enable_sim_alignment"
2458 case "${enableval}" in
2459 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2460 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2461 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
2462 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2463 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2464 { (exit 1); exit 1; }; }; sim_alignment
="";;
2466 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
2467 echo "Setting alignment flags = $sim_alignment" 6>&1
2473 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2474 if test "${enable_sim_assert+set}" = set; then
2475 enableval
="$enable_sim_assert"
2476 case "${enableval}" in
2477 yes) sim_assert
="-DWITH_ASSERT=1";;
2478 no
) sim_assert
="-DWITH_ASSERT=0";;
2479 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2480 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2481 { (exit 1); exit 1; }; }; sim_assert
="";;
2483 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
2484 echo "Setting assert flags = $sim_assert" 6>&1
2490 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2491 if test "${enable_sim_bitsize+set}" = set; then
2492 enableval
="$enable_sim_bitsize"
2493 case "${enableval}" in
2494 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2495 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2496 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2497 { (exit 1); exit 1; }; }; sim_bitsize
="";;
2499 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
2500 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2506 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2507 if test "${enable_sim_bswap+set}" = set; then
2508 enableval
="$enable_sim_bswap"
2509 case "${enableval}" in
2510 yes) sim_bswap
="-DWITH_BSWAP=1";;
2511 no
) sim_bswap
="-DWITH_BSWAP=0";;
2512 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2513 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2514 { (exit 1); exit 1; }; }; sim_bswap
="";;
2516 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
2517 echo "Setting bswap flags = $sim_bswap" 6>&1
2523 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2524 if test "${enable_sim_cflags+set}" = set; then
2525 enableval
="$enable_sim_cflags"
2526 case "${enableval}" in
2527 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
2529 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2531 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
2532 echo "Setting sim cflags = $sim_cflags" 6>&1
2538 # Check whether --enable-sim-config or --disable-sim-config was given.
2539 if test "${enable_sim_config+set}" = set; then
2540 enableval
="$enable_sim_config"
2541 case "${enableval}" in
2542 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2543 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2544 { (exit 1); exit 1; }; };;
2545 *) if test -f "${srcdir}/${enableval}"; then
2546 sim_config
="${enableval}";
2547 elif test -f "${srcdir}/${enableval}-config.h"; then
2548 sim_config
="${enableval}-config.h"
2550 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2551 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2552 { (exit 1); exit 1; }; };
2553 sim_config
=std-config.h
2556 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
2557 echo "Setting config flags = $sim_config" 6>&1
2560 sim_config
="std-config.h"
2561 if test x
"$silent" != x
"yes"; then
2562 echo "Setting config flags = $sim_config" 6>&1
2566 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2567 if test "${enable_sim_decode_mechanism+set}" = set; then
2568 enableval
="$enable_sim_decode_mechanism"
2569 case "${enableval}" in
2570 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2571 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2572 { (exit 1); exit 1; }; };;
2573 array|switch|padded-switch|goto-switch
) sim_decode_mechanism
="-T ${enableval}";;
2574 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2575 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2576 { (exit 1); exit 1; }; };
2577 sim_decode_mechanism
="switch";;
2579 if test x
"$silent" != x
"yes" && test x
"$sim_decode_mechanism" != x
""; then
2580 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2583 sim_decode_mechanism
=""
2584 if test x
"$silent" != x
"yes"; then
2585 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2589 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2590 if test "${enable_sim_default_model+set}" = set; then
2591 enableval
="$enable_sim_default_model"
2592 case "${enableval}" in
2593 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2594 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2595 { (exit 1); exit 1; }; };;
2596 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
2598 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
2599 echo "Setting default-model flags = $sim_default_model" 6>&1
2602 sim_default_model
=""
2605 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2606 if test "${enable_sim_duplicate+set}" = set; then
2607 enableval
="$enable_sim_duplicate"
2608 case "${enableval}" in
2611 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2612 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2613 { (exit 1); exit 1; }; }; sim_dup
="";;
2615 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
2616 echo "Setting duplicate flags = $sim_dup" 6>&1
2620 if test x
"$silent" != x
"yes"; then
2621 echo "Setting duplicate flags = $sim_dup" 6>&1
2625 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2626 if test "${enable_sim_endian+set}" = set; then
2627 enableval
="$enable_sim_endian"
2628 case "${enableval}" in
2629 yes) case "$target" in
2630 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2631 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2632 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2634 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2635 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2636 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2637 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2638 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2639 { (exit 1); exit 1; }; }; sim_endian
="";;
2641 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
2642 echo "Setting endian flags = $sim_endian" 6>&1
2648 # Check whether --enable-sim-env or --disable-sim-env was given.
2649 if test "${enable_sim_env+set}" = set; then
2650 enableval
="$enable_sim_env"
2651 case "${enableval}" in
2652 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2653 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2654 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2655 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
2656 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2657 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2658 { (exit 1); exit 1; }; }; sim_env
="";;
2660 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
2661 echo "Setting env flags = $sim_env" 6>&1
2667 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2668 if test "${enable_sim_filter+set}" = set; then
2669 enableval
="$enable_sim_filter"
2670 case "${enableval}" in
2671 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2672 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2673 { (exit 1); exit 1; }; }; sim_filter
="";;
2675 *) sim_filter
="-F $enableval";;
2677 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
2678 echo "Setting filter flags = $sim_filter" 6>&1
2681 sim_filter
="-F 32,f,o"
2682 if test x
"$silent" != x
"yes"; then
2683 echo "Setting filter flags = $sim_filter" 6>&1
2687 # Check whether --enable-sim-float or --disable-sim-float was given.
2688 if test "${enable_sim_float+set}" = set; then
2689 enableval
="$enable_sim_float"
2690 case "${enableval}" in
2691 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2692 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2693 altivec
) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2694 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2695 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2696 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2697 { (exit 1); exit 1; }; }; sim_float
="";;
2699 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
2700 echo "Setting float flags = $sim_float" 6>&1
2705 *altivec
*) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2706 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2712 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2713 if test "${enable_sim_hardware+set}" = set; then
2714 enableval
="$enable_sim_hardware"
2715 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2716 case "${enableval}" in
2718 no
) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2719 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2720 { (exit 1); exit 1; }; }; hardware
="";;
2721 ,*) hardware
="${hardware}${enableval}";;
2722 *,) hardware
="${enableval}${hardware}";;
2723 *) hardware
="${enableval}"'';;
2725 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2726 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2727 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
2728 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2731 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2732 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2733 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2734 if test x
"$silent" != x
"yes"; then
2735 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2739 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2740 if test "${enable_sim_hostbitsize+set}" = set; then
2741 enableval
="$enable_sim_hostbitsize"
2742 case "${enableval}" in
2743 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2744 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2745 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2746 { (exit 1); exit 1; }; }; sim_hostbitsize
="";;
2748 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
2749 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2756 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2757 if test "${enable_sim_hostendian+set}" = set; then
2758 enableval
="$enable_sim_hostendian"
2759 case "${enableval}" in
2760 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
2761 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2762 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2763 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2764 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2765 { (exit 1); exit 1; }; }; sim_hostendian
="";;
2767 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
2768 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2772 if test "x$cross_compiling" = "xno"; then
2773 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2774 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2775 if test "${ac_cv_c_bigendian+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 # See if sys/param.h defines the BYTE_ORDER macro.
2779 cat >conftest.
$ac_ext <<_ACEOF
2782 cat confdefs.h
>>conftest.
$ac_ext
2783 cat >>conftest.
$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <sys/types.h>
2786 #include <sys/param.h>
2791 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2799 rm -f conftest.
$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2803 grep -v '^ *+' conftest.er1
>conftest.err
2805 cat conftest.err
>&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try
='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try
='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 # It does; now see whether it defined to BIG_ENDIAN or not.
2822 cat >conftest.
$ac_ext <<_ACEOF
2825 cat confdefs.h
>>conftest.
$ac_ext
2826 cat >>conftest.
$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <sys/types.h>
2829 #include <sys/param.h>
2834 #if BYTE_ORDER != BIG_ENDIAN
2842 rm -f conftest.
$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1
>conftest.err
2848 cat conftest.err
>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try
='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try
='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_c_bigendian
=yes
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.
$ac_ext >&5
2869 ac_cv_c_bigendian
=no
2871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.
$ac_ext >&5
2876 # It does not; compile a test program.
2877 if test "$cross_compiling" = yes; then
2878 # try to guess the endianness by grepping values into an object file
2879 ac_cv_c_bigendian
=unknown
2880 cat >conftest.
$ac_ext <<_ACEOF
2883 cat confdefs.h
>>conftest.
$ac_ext
2884 cat >>conftest.
$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2887 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2888 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2889 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2890 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2891 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2895 _ascii (); _ebcdic ();
2900 rm -f conftest.
$ac_objext
2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902 (eval $ac_compile) 2>conftest.er1
2904 grep -v '^ *+' conftest.er1
>conftest.err
2906 cat conftest.err
>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try
='test -z "$ac_c_werror_flag"
2910 || test ! -s conftest.err'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; } &&
2916 { ac_try
='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
2923 ac_cv_c_bigendian
=yes
2925 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
2926 if test "$ac_cv_c_bigendian" = unknown
; then
2927 ac_cv_c_bigendian
=no
2929 # finding both strings is unlikely to happen, but who knows?
2930 ac_cv_c_bigendian
=unknown
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2940 cat >conftest.
$ac_ext <<_ACEOF
2943 cat confdefs.h
>>conftest.
$ac_ext
2944 cat >>conftest.
$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2949 /* Are we little or big endian? From Harbison&Steele. */
2953 char c[sizeof (long)];
2956 exit (u.c[sizeof (long) - 1] == 1);
2959 rm -f conftest
$ac_exeext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_cv_c_bigendian
=no
2972 echo "$as_me: program exited with status $ac_status" >&5
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2977 ac_cv_c_bigendian
=yes
2979 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2984 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2985 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2986 case $ac_cv_c_bigendian in
2989 cat >>confdefs.h
<<\_ACEOF
2990 #define WORDS_BIGENDIAN 1
2996 { { echo "$as_me:$LINENO: error: unknown endianness
2997 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2998 echo "$as_me: error: unknown endianness
2999 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3000 { (exit 1); exit 1; }; } ;;
3003 if test $ac_cv_c_bigendian = yes; then
3004 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3006 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3009 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3013 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3014 if test "${enable_sim_icache+set}" = set; then
3015 enableval
="$enable_sim_icache"
3017 case "${enableval}" in
3018 yes) icache
="1024"; sim_icache
="-I $icache";;
3019 no
) sim_icache
="-R";;
3022 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3024 define
) sim_icache
="${sim_icache}R";;
3025 semantic
) sim_icache
="${sim_icache}C";;
3026 insn
) sim_icache
="${sim_icache}S";;
3027 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
3028 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3029 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3030 { (exit 1); exit 1; }; }; sim_icache
="";;
3033 sim_icache
="${sim_icache}I $icache";;
3035 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
3036 echo "Setting instruction cache size to $icache ($sim_icache)"
3039 sim_icache
="-CSRI 1024"
3040 if test x
"$silent" != x
"yes"; then
3041 echo "Setting instruction cache size to 1024 ($sim_icache)"
3045 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3046 if test "${enable_sim_inline+set}" = set; then
3047 enableval
="$enable_sim_inline"
3049 case "$enableval" in
3050 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3051 0) sim_inline
="-DDEFAULT_INLINE=0";;
3052 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
3053 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3054 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3057 *_INLINE
=*) new_flag
="-D$x";;
3058 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3059 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
3060 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
3062 if test x
"$sim_inline" = x
""; then
3063 sim_inline
="$new_flag"
3065 sim_inline
="$sim_inline $new_flag"
3069 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3070 echo "Setting inline flags = $sim_inline" 6>&1
3073 if test x
"$GCC" != ""; then
3074 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3075 if test x
"$silent" != x
"yes"; then
3076 echo "Setting inline flags = $sim_inline" 6>&1
3083 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3084 if test "${enable_sim_jump+set}" = set; then
3085 enableval
="$enable_sim_jump"
3086 case "${enableval}" in
3087 yes) sim_jump
="-J";;
3089 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3090 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3091 { (exit 1); exit 1; }; }; sim_jump
="";;
3093 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
3094 echo "Setting jump flag = $sim_jump" 6>&1
3098 if test x
"$silent" != x
"yes"; then
3099 echo "Setting jump flag = $sim_jump" 6>&1
3103 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3104 if test "${enable_sim_line_nr+set}" = set; then
3105 enableval
="$enable_sim_line_nr"
3106 case "${enableval}" in
3107 yes) sim_line_nr
="";;
3108 no
) sim_line_nr
="-L";;
3109 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3110 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3111 { (exit 1); exit 1; }; }; sim_line_nr
="";;
3113 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
3114 echo "Setting warning flags = $sim_line_nr" 6>&1
3120 # Check whether --enable-sim-model or --disable-sim-model was given.
3121 if test "${enable_sim_model+set}" = set; then
3122 enableval
="$enable_sim_model"
3123 case "${enableval}" in
3124 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3125 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3126 { (exit 1); exit 1; }; };;
3127 *) sim_model
="-DWITH_MODEL=${enableval}";;
3129 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
3130 echo "Setting model flags = $sim_model" 6>&1
3136 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3137 if test "${enable_sim_model_issue+set}" = set; then
3138 enableval
="$enable_sim_model_issue"
3139 case "${enableval}" in
3140 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3141 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3142 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3143 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3144 { (exit 1); exit 1; }; }; sim_model_issue
="";;
3146 if test x
"$silent" != x
"yes"; then
3147 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3153 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3154 if test "${enable_sim_monitor+set}" = set; then
3155 enableval
="$enable_sim_monitor"
3156 case "${enableval}" in
3157 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3158 no
) sim_monitor
="-DWITH_MON=0";;
3159 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3160 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3161 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3162 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3163 { (exit 1); exit 1; }; }; sim_env
="";;
3165 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
3166 echo "Setting monitor flags = $sim_monitor" 6>&1
3172 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3173 if test "${enable_sim_opcode+set}" = set; then
3174 enableval
="$enable_sim_opcode"
3175 case "${enableval}" in
3176 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3177 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3178 { (exit 1); exit 1; }; };;
3179 *) if test -f "${srcdir}/${enableval}"; then
3180 sim_opcode
="${enableval}"
3181 elif test -f "${srcdir}/dc-${enableval}"; then
3182 sim_opcode
="dc-${enableval}"
3184 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3185 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3186 { (exit 1); exit 1; }; };
3187 sim_opcode
="dc-complex"
3190 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
3191 echo "Setting opcode flags = $sim_opcode" 6>&1
3194 sim_opcode
="dc-complex"
3195 if test x
"$silent" != x
"yes"; then
3196 echo "Setting opcode flags = $sim_opcode"
3200 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3201 if test "${enable_sim_packages+set}" = set; then
3202 enableval
="$enable_sim_packages"
3204 case "${enableval}" in
3206 no
) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3207 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3208 { (exit 1); exit 1; }; }; packages
="";;
3209 ,*) packages
="${packages}${enableval}";;
3210 *,) packages
="${enableval}${packages}";;
3211 *) packages
="${enableval}"'';;
3213 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3214 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3215 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
3216 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3220 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3221 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3222 if test x
"$silent" != x
"yes"; then
3223 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3227 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3228 if test "${enable_sim_regparm+set}" = set; then
3229 enableval
="$enable_sim_regparm"
3230 case "${enableval}" in
3231 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
3232 no
) sim_regparm
="" ;;
3233 yes) sim_regparm
="-DWITH_REGPARM=3";;
3234 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3235 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3236 { (exit 1); exit 1; }; }; sim_regparm
="";;
3238 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
3239 echo "Setting regparm flags = $sim_regparm" 6>&1
3245 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3246 if test "${enable_sim_reserved_bits+set}" = set; then
3247 enableval
="$enable_sim_reserved_bits"
3248 case "${enableval}" in
3249 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
3250 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
3251 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3252 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3253 { (exit 1); exit 1; }; }; sim_reserved
="";;
3255 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
3256 echo "Setting reserved flags = $sim_reserved" 6>&1
3262 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3263 if test "${enable_sim_smp+set}" = set; then
3264 enableval
="$enable_sim_smp"
3265 case "${enableval}" in
3266 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3267 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3268 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3270 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3271 echo "Setting smp flags = $sim_smp" 6>&1
3274 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
3275 if test x
"$silent" != x
"yes"; then
3276 echo "Setting smp flags = $sim_smp" 6>&1
3280 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3281 if test "${enable_sim_stdcall+set}" = set; then
3282 enableval
="$enable_sim_stdcall"
3283 case "${enableval}" in
3284 no
) sim_stdcall
="" ;;
3285 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
3286 yes) sim_stdcall
="-DWITH_STDCALL=1";;
3287 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3288 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3289 { (exit 1); exit 1; }; }; sim_stdcall
="";;
3291 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
3292 echo "Setting function call flags = $sim_stdcall" 6>&1
3298 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3299 if test "${enable_sim_stdio+set}" = set; then
3300 enableval
="$enable_sim_stdio"
3301 case "${enableval}" in
3302 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3303 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3304 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3305 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3306 { (exit 1); exit 1; }; }; sim_stdio
="";;
3308 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3309 echo "Setting stdio flags = $sim_stdio" 6>&1
3315 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3316 if test "${enable_sim_switch+set}" = set; then
3317 enableval
="$enable_sim_switch"
3318 case "${enableval}" in
3319 yes) sim_switch
="-s";;
3321 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3322 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3323 { (exit 1); exit 1; }; }; sim_switch
="";;
3325 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
3326 echo "Setting switch flags = $sim_switch" 6>&1
3330 if test x
"$silent" != x
"yes"; then
3331 echo "Setting switch flags = $sim_switch" 6>&1
3335 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3336 if test "${enable_sim_timebase+set}" = set; then
3337 enableval
="$enable_sim_timebase"
3338 case "${enableval}" in
3339 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
3340 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
3341 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3342 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3343 { (exit 1); exit 1; }; }; sim_timebase
="";;
3345 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
3346 echo "Setting timebase flags = $sim_timebase" 6>&1
3352 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3353 if test "${enable_sim_trace+set}" = set; then
3354 enableval
="$enable_sim_trace"
3355 case "${enableval}" in
3356 yes) sim_trace
="-DWITH_TRACE=1";;
3357 no
) sim_trace
="-DWITH_TRACE=0";;
3358 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3359 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3360 { (exit 1); exit 1; }; }; sim_trace
="";;
3362 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3363 echo "Setting trace flags = $sim_trace" 6>&1
3369 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3370 if test "${enable_sim_warnings+set}" = set; then
3371 enableval
="$enable_sim_warnings"
3372 case "${enableval}" in
3373 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3374 no
) sim_warnings
="-w";;
3375 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3377 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3378 echo "Setting warning flags = $sim_warnings" 6>&1
3384 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3385 if test "${enable_sim_xor_endian+set}" = set; then
3386 enableval
="$enable_sim_xor_endian"
3387 case "${enableval}" in
3388 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
3389 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
3390 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
3392 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
3393 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3399 # Make sure we can run config.sub.
3400 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3403 { (exit 1); exit 1; }; }
3405 echo "$as_me:$LINENO: checking build system type" >&5
3406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3407 if test "${ac_cv_build+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_cv_build_alias
=$build_alias
3411 test -z "$ac_cv_build_alias" &&
3412 ac_cv_build_alias
=`$ac_config_guess`
3413 test -z "$ac_cv_build_alias" &&
3414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3416 { (exit 1); exit 1; }; }
3417 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3420 { (exit 1); exit 1; }; }
3423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3424 echo "${ECHO_T}$ac_cv_build" >&6
3426 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3427 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3428 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3431 echo "$as_me:$LINENO: checking host system type" >&5
3432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3433 if test "${ac_cv_host+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 ac_cv_host_alias
=$host_alias
3437 test -z "$ac_cv_host_alias" &&
3438 ac_cv_host_alias
=$ac_cv_build_alias
3439 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3442 { (exit 1); exit 1; }; }
3445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3446 echo "${ECHO_T}$ac_cv_host" >&6
3448 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3449 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3450 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3453 echo "$as_me:$LINENO: checking target system type" >&5
3454 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3455 if test "${ac_cv_target+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_cv_target_alias
=$target_alias
3459 test "x$ac_cv_target_alias" = "x" &&
3460 ac_cv_target_alias
=$ac_cv_host_alias
3461 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3463 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3464 { (exit 1); exit 1; }; }
3467 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3468 echo "${ECHO_T}$ac_cv_target" >&6
3469 target
=$ac_cv_target
3470 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3471 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3472 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3480 program_prefix
=${target_alias}-
3481 test "$program_prefix" != NONE
&&
3482 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3483 # Use a double $ so make ignores it.
3484 test "$program_suffix" != NONE
&&
3485 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3486 # Double any \ or $. echo might interpret backslashes.
3487 # By default was `s,x,x', remove it if useless.
3488 cat <<\_ACEOF
>conftest.
sed
3489 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3491 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3495 .
${srcdir}/..
/..
/bfd
/configure.
host
3500 cat >>confdefs.h
<<\_ACEOF
3501 #define USE_WIN32API 1
3507 ac_config_headers
="$ac_config_headers config.h:config.in"
3511 ac_cpp
='$CPP $CPPFLAGS'
3512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3515 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3517 # On Suns, sometimes $CPP names a directory.
3518 if test -n "$CPP" && test -d "$CPP"; then
3521 if test -z "$CPP"; then
3522 if test "${ac_cv_prog_CPP+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 # Double quotes because CPP needs to be expanded
3526 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529 for ac_c_preproc_warn_flag
in '' yes
3531 # Use a header file that comes with gcc, so configuring glibc
3532 # with a fresh cross-compiler works.
3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 # <limits.h> exists even on freestanding compilers.
3535 # On the NeXT, cc -E runs the code through the compiler's parser,
3536 # not just through cpp. "Syntax error" is here to catch this case.
3537 cat >conftest.
$ac_ext <<_ACEOF
3540 cat confdefs.h
>>conftest.
$ac_ext
3541 cat >>conftest.
$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3544 # include <limits.h>
3546 # include <assert.h>
3550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3553 grep -v '^ *+' conftest.er1
>conftest.err
3555 cat conftest.err
>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev
/null
; then
3558 if test -s conftest.err
; then
3559 ac_cpp_err
=$ac_c_preproc_warn_flag
3560 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3567 if test -z "$ac_cpp_err"; then
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.
$ac_ext >&5
3573 # Broken: fails on valid input.
3576 rm -f conftest.err conftest.
$ac_ext
3578 # OK, works on sane cases. Now check whether non-existent headers
3579 # can be detected and how.
3580 cat >conftest.
$ac_ext <<_ACEOF
3583 cat confdefs.h
>>conftest.
$ac_ext
3584 cat >>conftest.
$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <ac_nonexistent.h>
3588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3591 grep -v '^ *+' conftest.er1
>conftest.err
3593 cat conftest.err
>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev
/null
; then
3596 if test -s conftest.err
; then
3597 ac_cpp_err
=$ac_c_preproc_warn_flag
3598 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3605 if test -z "$ac_cpp_err"; then
3606 # Broken: success on invalid input.
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 # Passes both tests.
3616 rm -f conftest.err conftest.
$ac_ext
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.err conftest.
$ac_ext
3621 if $ac_preproc_ok; then
3633 echo "$as_me:$LINENO: result: $CPP" >&5
3634 echo "${ECHO_T}$CPP" >&6
3636 for ac_c_preproc_warn_flag
in '' yes
3638 # Use a header file that comes with gcc, so configuring glibc
3639 # with a fresh cross-compiler works.
3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641 # <limits.h> exists even on freestanding compilers.
3642 # On the NeXT, cc -E runs the code through the compiler's parser,
3643 # not just through cpp. "Syntax error" is here to catch this case.
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3651 # include <limits.h>
3653 # include <assert.h>
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3660 grep -v '^ *+' conftest.er1
>conftest.err
3662 cat conftest.err
>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev
/null
; then
3665 if test -s conftest.err
; then
3666 ac_cpp_err
=$ac_c_preproc_warn_flag
3667 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3674 if test -z "$ac_cpp_err"; then
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.
$ac_ext >&5
3680 # Broken: fails on valid input.
3683 rm -f conftest.err conftest.
$ac_ext
3685 # OK, works on sane cases. Now check whether non-existent headers
3686 # can be detected and how.
3687 cat >conftest.
$ac_ext <<_ACEOF
3690 cat confdefs.h
>>conftest.
$ac_ext
3691 cat >>conftest.
$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1
>conftest.err
3700 cat conftest.err
>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev
/null
; then
3703 if test -s conftest.err
; then
3704 ac_cpp_err
=$ac_c_preproc_warn_flag
3705 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3712 if test -z "$ac_cpp_err"; then
3713 # Broken: success on invalid input.
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.
$ac_ext >&5
3719 # Passes both tests.
3723 rm -f conftest.err conftest.
$ac_ext
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.
$ac_ext
3728 if $ac_preproc_ok; then
3731 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cpp
='$CPP $CPPFLAGS'
3740 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3745 echo "$as_me:$LINENO: checking for egrep" >&5
3746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3747 if test "${ac_cv_prog_egrep+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3751 then ac_cv_prog_egrep
='grep -E'
3752 else ac_cv_prog_egrep
='egrep'
3755 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3756 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3757 EGREP
=$ac_cv_prog_egrep
3760 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.
$ac_ext <<_ACEOF
3768 cat confdefs.h
>>conftest.
$ac_ext
3769 cat >>conftest.
$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3784 rm -f conftest.
$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try
='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_header_stdc
=yes
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.
$ac_ext >&5
3811 ac_cv_header_stdc
=no
3813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3815 if test $ac_cv_header_stdc = yes; then
3816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "memchr" >/dev
/null
2>&1; then
3830 ac_cv_header_stdc
=no
3836 if test $ac_cv_header_stdc = yes; then
3837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "free" >/dev
/null
2>&1; then
3851 ac_cv_header_stdc
=no
3857 if test $ac_cv_header_stdc = yes; then
3858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859 if test "$cross_compiling" = yes; then
3862 cat >conftest.
$ac_ext <<_ACEOF
3865 cat confdefs.h
>>conftest.
$ac_ext
3866 cat >>conftest.
$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3869 #if ((' ' & 0x0FF) == 0x020)
3870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3873 # define ISLOWER(c) \
3874 (('a' <= (c) && (c) <= 'i') \
3875 || ('j' <= (c) && (c) <= 'r') \
3876 || ('s' <= (c) && (c) <= 'z'))
3877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3885 for (i = 0; i < 256; i++)
3886 if (XOR (islower (i), ISLOWER (i))
3887 || toupper (i) != TOUPPER (i))
3892 rm -f conftest
$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3905 echo "$as_me: program exited with status $ac_status" >&5
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.
$ac_ext >&5
3910 ac_cv_header_stdc
=no
3912 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918 if test $ac_cv_header_stdc = yes; then
3920 cat >>confdefs.h
<<\_ACEOF
3921 #define STDC_HEADERS 1
3926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3936 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3937 inttypes.h stdint.h unistd.h
3939 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 cat >conftest.
$ac_ext <<_ACEOF
3948 cat confdefs.h
>>conftest.
$ac_ext
3949 cat >>conftest.
$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 $ac_includes_default
3953 #include <$ac_header>
3955 rm -f conftest.
$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3959 grep -v '^ *+' conftest.er1
>conftest.err
3961 cat conftest.err
>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try
='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try
='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 eval "$as_ac_Header=yes"
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.
$ac_ext >&5
3982 eval "$as_ac_Header=no"
3984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989 cat >>confdefs.h
<<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3999 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4000 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4001 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4014 static struct stat ac_aggr;
4015 if (ac_aggr.st_blksize)
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 ac_cv_member_struct_stat_st_blksize
=yes
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.
$ac_ext >&5
4048 cat >conftest.
$ac_ext <<_ACEOF
4051 cat confdefs.h
>>conftest.
$ac_ext
4052 cat >>conftest.
$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4058 static struct stat ac_aggr;
4059 if (sizeof ac_aggr.st_blksize)
4065 rm -f conftest.
$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1
>conftest.err
4071 cat conftest.err
>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try
='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try
='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_member_struct_stat_st_blksize
=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.
$ac_ext >&5
4092 ac_cv_member_struct_stat_st_blksize
=no
4094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4098 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4099 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4100 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4102 cat >>confdefs.h
<<_ACEOF
4103 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4107 cat >>confdefs.h
<<\_ACEOF
4108 #define HAVE_ST_BLKSIZE 1
4114 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4115 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4116 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.
$ac_ext <<_ACEOF
4122 cat confdefs.h
>>conftest.
$ac_ext
4123 cat >>conftest.
$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 $ac_includes_default
4129 static struct stat ac_aggr;
4130 if (ac_aggr.st_blocks)
4136 rm -f conftest.
$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>conftest.er1
4140 grep -v '^ *+' conftest.er1
>conftest.err
4142 cat conftest.err
>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try
='test -z "$ac_c_werror_flag"
4146 || test ! -s conftest.err'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try
='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_member_struct_stat_st_blocks
=yes
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.
$ac_ext >&5
4163 cat >conftest.
$ac_ext <<_ACEOF
4166 cat confdefs.h
>>conftest.
$ac_ext
4167 cat >>conftest.
$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 $ac_includes_default
4173 static struct stat ac_aggr;
4174 if (sizeof ac_aggr.st_blocks)
4180 rm -f conftest.
$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1
>conftest.err
4186 cat conftest.err
>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try
='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try
='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_member_struct_stat_st_blocks
=yes
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.
$ac_ext >&5
4207 ac_cv_member_struct_stat_st_blocks
=no
4209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4215 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4217 cat >>confdefs.h
<<_ACEOF
4218 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4222 cat >>confdefs.h
<<\_ACEOF
4223 #define HAVE_ST_BLOCKS 1
4228 "fileblocks.$ac_objext" | \
4229 *" fileblocks.$ac_objext" | \
4230 "fileblocks.$ac_objext "* | \
4231 *" fileblocks.$ac_objext "* ) ;;
4232 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
4239 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4240 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4241 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4254 static struct stat ac_aggr;
4255 if (ac_aggr.st_rdev)
4261 rm -f conftest.
$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>conftest.er1
4265 grep -v '^ *+' conftest.er1
>conftest.err
4267 cat conftest.err
>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try
='test -z "$ac_c_werror_flag"
4271 || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try
='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_member_struct_stat_st_rdev
=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.
$ac_ext >&5
4288 cat >conftest.
$ac_ext <<_ACEOF
4291 cat confdefs.h
>>conftest.
$ac_ext
4292 cat >>conftest.
$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 $ac_includes_default
4298 static struct stat ac_aggr;
4299 if (sizeof ac_aggr.st_rdev)
4305 rm -f conftest.
$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1
>conftest.err
4311 cat conftest.err
>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try
='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try
='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_member_struct_stat_st_rdev
=yes
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.
$ac_ext >&5
4332 ac_cv_member_struct_stat_st_rdev
=no
4334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4339 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4340 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4342 cat >>confdefs.h
<<_ACEOF
4343 #define HAVE_STRUCT_STAT_ST_RDEV 1
4347 cat >>confdefs.h
<<\_ACEOF
4348 #define HAVE_ST_RDEV 1
4354 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4355 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4356 if test "${ac_cv_struct_tm+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat >conftest.
$ac_ext <<_ACEOF
4362 cat confdefs.h
>>conftest.
$ac_ext
4363 cat >>conftest.
$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #include <sys/types.h>
4371 struct tm *tp; tp->tm_sec;
4376 rm -f conftest.
$ac_objext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>conftest.er1
4380 grep -v '^ *+' conftest.er1
>conftest.err
4382 cat conftest.err
>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try
='test -z "$ac_c_werror_flag"
4386 || test ! -s conftest.err'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; } &&
4392 { ac_try
='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_struct_tm
=time.h
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.
$ac_ext >&5
4403 ac_cv_struct_tm
=sys
/time.h
4405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4407 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4408 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4409 if test $ac_cv_struct_tm = sys
/time.h
; then
4411 cat >>confdefs.h
<<\_ACEOF
4412 #define TM_IN_SYS_TIME 1
4417 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4418 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4419 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 cat >conftest.
$ac_ext <<_ACEOF
4425 cat confdefs.h
>>conftest.
$ac_ext
4426 cat >>conftest.
$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <$ac_cv_struct_tm>
4435 static struct tm ac_aggr;
4436 if (ac_aggr.tm_zone)
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_member_struct_tm_tm_zone
=yes
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.
$ac_ext >&5
4469 cat >conftest.
$ac_ext <<_ACEOF
4472 cat confdefs.h
>>conftest.
$ac_ext
4473 cat >>conftest.
$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <sys/types.h>
4476 #include <$ac_cv_struct_tm>
4482 static struct tm ac_aggr;
4483 if (sizeof ac_aggr.tm_zone)
4489 rm -f conftest.
$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1
>conftest.err
4495 cat conftest.err
>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try
='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try
='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_member_struct_tm_tm_zone
=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.
$ac_ext >&5
4516 ac_cv_member_struct_tm_tm_zone
=no
4518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4522 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4523 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4524 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4526 cat >>confdefs.h
<<_ACEOF
4527 #define HAVE_STRUCT_TM_TM_ZONE 1
4533 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4535 cat >>confdefs.h
<<\_ACEOF
4536 #define HAVE_TM_ZONE 1
4540 echo "$as_me:$LINENO: checking for tzname" >&5
4541 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4542 if test "${ac_cv_var_tzname+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 cat >conftest.
$ac_ext <<_ACEOF
4548 cat confdefs.h
>>conftest.
$ac_ext
4549 cat >>conftest.
$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 #ifndef tzname /* For SGI. */
4553 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4564 rm -f conftest.
$ac_objext conftest
$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>conftest.er1
4568 grep -v '^ *+' conftest.er1
>conftest.err
4570 cat conftest.err
>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try
='test -z "$ac_c_werror_flag"
4574 || test ! -s conftest.err'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try
='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_cv_var_tzname
=yes
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.
$ac_ext >&5
4593 rm -f conftest.err conftest.
$ac_objext \
4594 conftest
$ac_exeext conftest.
$ac_ext
4596 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4597 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4598 if test $ac_cv_var_tzname = yes; then
4600 cat >>confdefs.h
<<\_ACEOF
4601 #define HAVE_TZNAME 1
4608 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4609 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4610 if test "${ac_cv_type_uid_t+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 cat >conftest.
$ac_ext <<_ACEOF
4616 cat confdefs.h
>>conftest.
$ac_ext
4617 cat >>conftest.
$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 $EGREP "uid_t" >/dev
/null
2>&1; then
4624 ac_cv_type_uid_t
=yes
4631 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4633 if test $ac_cv_type_uid_t = no
; then
4635 cat >>confdefs.h
<<\_ACEOF
4640 cat >>confdefs.h
<<\_ACEOF
4646 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4647 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4648 if test "${ac_cv_type_getgroups+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test "$cross_compiling" = yes; then
4652 ac_cv_type_getgroups
=cross
4654 cat >conftest.
$ac_ext <<_ACEOF
4657 cat confdefs.h
>>conftest.
$ac_ext
4658 cat >>conftest.
$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 /* Thanks to Mike Rendell for this test. */
4661 #include <sys/types.h>
4664 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4671 union { gid_t gval; long lval; } val;
4674 for (i = 0; i < NGID; i++)
4675 gidset[i] = val.gval;
4676 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4678 /* Exit non-zero if getgroups seems to require an array of ints. This
4679 happens when gid_t is short but getgroups modifies an array of ints. */
4680 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4683 rm -f conftest
$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_type_getgroups
=gid_t
4696 echo "$as_me: program exited with status $ac_status" >&5
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.
$ac_ext >&5
4701 ac_cv_type_getgroups
=int
4703 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4705 if test $ac_cv_type_getgroups = cross
; then
4706 cat >conftest.
$ac_ext <<_ACEOF
4709 cat confdefs.h
>>conftest.
$ac_ext
4710 cat >>conftest.
$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
4717 ac_cv_type_getgroups
=gid_t
4719 ac_cv_type_getgroups
=int
4725 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4726 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4728 cat >>confdefs.h
<<_ACEOF
4729 #define GETGROUPS_T $ac_cv_type_getgroups
4733 echo "$as_me:$LINENO: checking for mode_t" >&5
4734 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4735 if test "${ac_cv_type_mode_t+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 cat >conftest.
$ac_ext <<_ACEOF
4741 cat confdefs.h
>>conftest.
$ac_ext
4742 cat >>conftest.
$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4750 if (sizeof (mode_t))
4756 rm -f conftest.
$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1
>conftest.err
4762 cat conftest.err
>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try
='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try
='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_type_mode_t
=yes
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.
$ac_ext >&5
4783 ac_cv_type_mode_t
=no
4785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4788 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4789 if test $ac_cv_type_mode_t = yes; then
4793 cat >>confdefs.h
<<_ACEOF
4799 echo "$as_me:$LINENO: checking for off_t" >&5
4800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4801 if test "${ac_cv_type_off_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
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_off_t
=yes
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.
$ac_ext >&5
4851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4854 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4855 if test $ac_cv_type_off_t = yes; then
4859 cat >>confdefs.h
<<_ACEOF
4865 echo "$as_me:$LINENO: checking for pid_t" >&5
4866 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4867 if test "${ac_cv_type_pid_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_pid_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_pid_t" >&5
4920 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4921 if test $ac_cv_type_pid_t = yes; then
4925 cat >>confdefs.h
<<_ACEOF
4931 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4932 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4933 if test "${ac_cv_type_signal+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 #include <sys/types.h>
4948 extern "C" void (*signal (int, void (*)(int)))(int);
4950 void (*signal ()) ();
4961 rm -f conftest.
$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4965 grep -v '^ *+' conftest.er1
>conftest.err
4967 cat conftest.err
>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try
='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try
='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_type_signal
=void
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 ac_cv_type_signal
=int
4990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4992 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4993 echo "${ECHO_T}$ac_cv_type_signal" >&6
4995 cat >>confdefs.h
<<_ACEOF
4996 #define RETSIGTYPE $ac_cv_type_signal
5000 echo "$as_me:$LINENO: checking for size_t" >&5
5001 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5002 if test "${ac_cv_type_size_t+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 cat >conftest.
$ac_ext <<_ACEOF
5008 cat confdefs.h
>>conftest.
$ac_ext
5009 cat >>conftest.
$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5017 if (sizeof (size_t))
5023 rm -f conftest.
$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1
>conftest.err
5029 cat conftest.err
>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try
='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try
='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_type_size_t
=yes
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.
$ac_ext >&5
5050 ac_cv_type_size_t
=no
5052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5055 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5056 if test $ac_cv_type_size_t = yes; then
5060 cat >>confdefs.h
<<_ACEOF
5061 #define size_t unsigned
5066 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5067 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5068 if test "${ac_cv_type_uid_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 #include <sys/types.h>
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "uid_t" >/dev
/null
2>&1; then
5082 ac_cv_type_uid_t
=yes
5089 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5090 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5091 if test $ac_cv_type_uid_t = no
; then
5093 cat >>confdefs.h
<<\_ACEOF
5098 cat >>confdefs.h
<<\_ACEOF
5155 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
5157 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158 echo "$as_me:$LINENO: checking for $ac_func" >&5
5159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160 if eval "test \"\${$as_ac_var+set}\" = set"; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 cat >conftest.
$ac_ext <<_ACEOF
5166 cat confdefs.h
>>conftest.
$ac_ext
5167 cat >>conftest.
$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5171 #define $ac_func innocuous_$ac_func
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func (); below.
5175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 <limits.h> exists even on freestanding compilers. */
5179 # include <limits.h>
5181 # include <assert.h>
5186 /* Override any gcc2 internal prototype to avoid an error. */
5191 /* We use char because int might match the return type of a gcc2
5192 builtin and then its argument prototype would still apply. */
5194 /* The GNU C library defines this for functions which it implements
5195 to always fail with ENOSYS. Some functions are actually named
5196 something starting with __ and the normal name is an alias. */
5197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5200 char (*f) () = $ac_func;
5209 return f != $ac_func;
5214 rm -f conftest.
$ac_objext conftest
$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>conftest.er1
5218 grep -v '^ *+' conftest.er1
>conftest.err
5220 cat conftest.err
>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try
='test -z "$ac_c_werror_flag"
5224 || test ! -s conftest.err'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; } &&
5230 { ac_try
='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 eval "$as_ac_var=yes"
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.
$ac_ext >&5
5241 eval "$as_ac_var=no"
5243 rm -f conftest.err conftest.
$ac_objext \
5244 conftest
$ac_exeext conftest.
$ac_ext
5246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5248 if test `eval echo '${'$as_ac_var'}'` = yes; then
5249 cat >>confdefs.h
<<_ACEOF
5250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5275 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
5277 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279 echo "$as_me:$LINENO: checking for $ac_header" >&5
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5287 # Is the header compilable?
5288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5290 cat >conftest.
$ac_ext <<_ACEOF
5293 cat confdefs.h
>>conftest.
$ac_ext
5294 cat >>conftest.
$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 $ac_includes_default
5297 #include <$ac_header>
5299 rm -f conftest.
$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1
>conftest.err
5305 cat conftest.err
>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try
='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try
='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_header_compiler
=yes
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.
$ac_ext >&5
5326 ac_header_compiler
=no
5328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330 echo "${ECHO_T}$ac_header_compiler" >&6
5332 # Is the header present?
5333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5335 cat >conftest.
$ac_ext <<_ACEOF
5338 cat confdefs.h
>>conftest.
$ac_ext
5339 cat >>conftest.
$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 #include <$ac_header>
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5346 grep -v '^ *+' conftest.er1
>conftest.err
5348 cat conftest.err
>&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev
/null
; then
5351 if test -s conftest.err
; then
5352 ac_cpp_err
=$ac_c_preproc_warn_flag
5353 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5360 if test -z "$ac_cpp_err"; then
5361 ac_header_preproc
=yes
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.
$ac_ext >&5
5366 ac_header_preproc
=no
5368 rm -f conftest.err conftest.
$ac_ext
5369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370 echo "${ECHO_T}$ac_header_preproc" >&6
5372 # So? What about this header?
5373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379 ac_header_preproc
=yes
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5396 ## ------------------------------------------ ##
5397 ## Report this to the AC_PACKAGE_NAME lists. ##
5398 ## ------------------------------------------ ##
5401 sed "s/^/$as_me: WARNING: /" >&2
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 eval "$as_ac_Header=\$ac_header_preproc"
5411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h
<<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5430 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5431 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5432 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5433 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 cat >conftest.
$ac_ext <<_ACEOF
5440 cat confdefs.h
>>conftest.
$ac_ext
5441 cat >>conftest.
$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <sys/types.h>
5455 rm -f conftest.
$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5459 grep -v '^ *+' conftest.er1
>conftest.err
5461 cat conftest.err
>&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try
='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try
='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 eval "$as_ac_Header=yes"
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.
$ac_ext >&5
5482 eval "$as_ac_Header=no"
5484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h
<<_ACEOF
5490 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5493 ac_header_dirent
=$ac_hdr; break
5497 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5498 if test $ac_header_dirent = dirent.h
; then
5499 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5501 if test "${ac_cv_search_opendir+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 ac_func_search_save_LIBS
=$LIBS
5505 ac_cv_search_opendir
=no
5506 cat >conftest.
$ac_ext <<_ACEOF
5509 cat confdefs.h
>>conftest.
$ac_ext
5510 cat >>conftest.
$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5528 rm -f conftest.
$ac_objext conftest
$ac_exeext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5530 (eval $ac_link) 2>conftest.er1
5532 grep -v '^ *+' conftest.er1
>conftest.err
5534 cat conftest.err
>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try
='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try
='test -s conftest$ac_exeext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_search_opendir
="none required"
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5556 rm -f conftest.err conftest.
$ac_objext \
5557 conftest
$ac_exeext conftest.
$ac_ext
5558 if test "$ac_cv_search_opendir" = no
; then
5559 for ac_lib
in dir
; do
5560 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5568 /* Override any gcc2 internal prototype to avoid an error. */
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5583 rm -f conftest.
$ac_objext conftest
$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>conftest.er1
5587 grep -v '^ *+' conftest.er1
>conftest.err
5589 cat conftest.err
>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try
='test -z "$ac_c_werror_flag"
5593 || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try
='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_search_opendir
="-l$ac_lib"
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.
$ac_ext >&5
5612 rm -f conftest.err conftest.
$ac_objext \
5613 conftest
$ac_exeext conftest.
$ac_ext
5616 LIBS
=$ac_func_search_save_LIBS
5618 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5619 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5620 if test "$ac_cv_search_opendir" != no
; then
5621 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5626 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5627 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5628 if test "${ac_cv_search_opendir+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_func_search_save_LIBS
=$LIBS
5632 ac_cv_search_opendir
=no
5633 cat >conftest.
$ac_ext <<_ACEOF
5636 cat confdefs.h
>>conftest.
$ac_ext
5637 cat >>conftest.
$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5640 /* Override any gcc2 internal prototype to avoid an error. */
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5655 rm -f conftest.
$ac_objext conftest
$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>conftest.er1
5659 grep -v '^ *+' conftest.er1
>conftest.err
5661 cat conftest.err
>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try
='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try
='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_search_opendir
="none required"
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5683 rm -f conftest.err conftest.
$ac_objext \
5684 conftest
$ac_exeext conftest.
$ac_ext
5685 if test "$ac_cv_search_opendir" = no
; then
5687 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5688 cat >conftest.
$ac_ext <<_ACEOF
5691 cat confdefs.h
>>conftest.
$ac_ext
5692 cat >>conftest.
$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5710 rm -f conftest.
$ac_objext conftest
$ac_exeext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712 (eval $ac_link) 2>conftest.er1
5714 grep -v '^ *+' conftest.er1
>conftest.err
5716 cat conftest.err
>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try
='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try
='test -s conftest$ac_exeext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_search_opendir
="-l$ac_lib"
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.
$ac_ext >&5
5739 rm -f conftest.err conftest.
$ac_objext \
5740 conftest
$ac_exeext conftest.
$ac_ext
5743 LIBS
=$ac_func_search_save_LIBS
5745 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5746 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5747 if test "$ac_cv_search_opendir" != no
; then
5748 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5756 echo "$as_me:$LINENO: checking for struct termios" >&5
5757 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5758 if test "${ac_cv_termios_struct+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5764 cat confdefs.h
>>conftest.
$ac_ext
5765 cat >>conftest.
$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <sys/types.h>
5768 #include <sys/termios.h>
5772 static struct termios x;
5782 rm -f conftest.
$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5786 grep -v '^ *+' conftest.er1
>conftest.err
5788 cat conftest.err
>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try
='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try
='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_termios_struct
=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.
$ac_ext >&5
5809 ac_cv_termios_struct
=no
5811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5815 echo "${ECHO_T}$ac_cv_termios_struct" >&6
5816 if test $ac_cv_termios_struct = yes; then
5817 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5820 if test "$ac_cv_termios_struct" = "yes"; then
5821 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5822 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5823 if test "${ac_cv_termios_cline+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 cat >conftest.
$ac_ext <<_ACEOF
5829 cat confdefs.h
>>conftest.
$ac_ext
5830 cat >>conftest.
$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 #include <sys/termios.h>
5837 static struct termios x; x.c_line = 0;
5842 rm -f conftest.
$ac_objext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>conftest.er1
5846 grep -v '^ *+' conftest.er1
>conftest.err
5848 cat conftest.err
>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try
='test -z "$ac_c_werror_flag"
5852 || test ! -s conftest.err'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; } &&
5858 { ac_try
='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_termios_cline
=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.
$ac_ext >&5
5869 ac_cv_termios_cline
=no
5871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5876 echo "${ECHO_T}$ac_cv_termios_cline" >&6
5877 if test $ac_cv_termios_cline = yes; then
5878 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
5881 ac_cv_termios_cline
=no
5884 if test "$ac_cv_termios_struct" != "yes"; then
5885 echo "$as_me:$LINENO: checking for struct termio" >&5
5886 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5887 if test "${ac_cv_termio_struct+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 cat >conftest.
$ac_ext <<_ACEOF
5893 cat confdefs.h
>>conftest.
$ac_ext
5894 cat >>conftest.
$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <sys/types.h>
5897 #include <sys/termio.h>
5901 static struct termio x;
5911 rm -f conftest.
$ac_objext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>conftest.er1
5915 grep -v '^ *+' conftest.er1
>conftest.err
5917 cat conftest.err
>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try
='test -z "$ac_c_werror_flag"
5921 || test ! -s conftest.err'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try
='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_termio_struct
=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.
$ac_ext >&5
5938 ac_cv_termio_struct
=no
5940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
5944 echo "${ECHO_T}$ac_cv_termio_struct" >&6
5945 if test $ac_cv_termio_struct = yes; then
5946 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5949 ac_cv_termio_struct
=no
5952 if test "$ac_cv_termio_struct" = "yes"; then
5953 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
5954 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
5955 if test "${ac_cv_termio_cline+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >conftest.
$ac_ext <<_ACEOF
5961 cat confdefs.h
>>conftest.
$ac_ext
5962 cat >>conftest.
$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5965 #include <sys/termio.h>
5969 static struct termio x; x.c_line = 0;
5974 rm -f conftest.
$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5978 grep -v '^ *+' conftest.er1
>conftest.err
5980 cat conftest.err
>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try
='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try
='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_termio_cline
=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.
$ac_ext >&5
6001 ac_cv_termio_cline
=no
6003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6007 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6008 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6009 if test $ac_cv_termio_cline = yes; then
6010 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
6013 ac_cv_termio_cline
=no
6016 echo "$as_me:$LINENO: checking for struct statfs" >&5
6017 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6018 if test "${ac_cv_struct_statfs+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <sys/types.h>
6028 #ifdef HAVE_SYS_PARAM_H
6029 #include <sys/param.h>
6031 #ifdef HAVE_SYS_MOUNT_H
6032 #include <sys/mount.h>
6034 #ifdef HAVE_SYS_VFS_H
6035 #include <sys/vfs.h>
6037 #ifdef HAVE_SYS_STATFS_H
6038 #include <sys/statfs.h>
6043 static struct statfs s;
6048 rm -f conftest.
$ac_objext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050 (eval $ac_compile) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1
>conftest.err
6054 cat conftest.err
>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try
='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try
='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_struct_statfs
=yes
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6075 ac_cv_struct_statfs
=no
6077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6081 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6082 if test $ac_cv_struct_statfs = yes; then
6084 cat >>confdefs.h
<<\_ACEOF
6085 #define HAVE_STRUCT_STATFS 1
6090 echo "$as_me:$LINENO: checking for long long" >&5
6091 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6092 if test "${ac_cv_type_long_long+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 cat >conftest.
$ac_ext <<_ACEOF
6098 cat confdefs.h
>>conftest.
$ac_ext
6099 cat >>conftest.
$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 $ac_includes_default
6105 if ((long long *) 0)
6107 if (sizeof (long long))
6113 rm -f conftest.
$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>conftest.er1
6117 grep -v '^ *+' conftest.er1
>conftest.err
6119 cat conftest.err
>&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try
='test -z "$ac_c_werror_flag"
6123 || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try
='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_type_long_long
=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.
$ac_ext >&5
6140 ac_cv_type_long_long
=no
6142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6145 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6146 if test $ac_cv_type_long_long = yes; then
6148 cat >>confdefs.h
<<_ACEOF
6149 #define HAVE_LONG_LONG 1
6157 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6158 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6159 if test "${ac_cv_devzero+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test "$cross_compiling" = yes; then
6165 cat >conftest.
$ac_ext <<_ACEOF
6168 cat confdefs.h
>>conftest.
$ac_ext
6169 cat >>conftest.
$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6175 int fd = open ("/dev/zero", O_RDONLY);
6178 for (i = 0; i < sizeof (buf); i++)
6180 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6182 for (i = 0; i < sizeof (buf); i++)
6188 rm -f conftest
$ac_exeext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6201 echo "$as_me: program exited with status $ac_status" >&5
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.
$ac_ext >&5
6208 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6212 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6213 echo "${ECHO_T}$ac_cv_devzero" >&6
6214 if test $ac_cv_devzero = yes; then
6215 sim_devzero
="-DHAVE_DEVZERO"
6220 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6221 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6222 if test -f "${srcdir}/../common/callback.c"; then
6223 echo "$as_me:$LINENO: result: yes" >&5
6224 echo "${ECHO_T}yes" >&6
6225 sim_callback
="callback.o targ-map.o"
6226 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
6228 echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6234 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6235 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6236 if test -f "${srcdir}/../common/sim-fpu.c"; then
6237 echo "$as_me:$LINENO: result: yes" >&5
6238 echo "${ECHO_T}yes" >&6
6239 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6242 echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6259 echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 if test -n "$RANLIB"; then
6265 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir
=.
6272 for ac_exec_ext
in '' $ac_executable_extensions; do
6273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 RANLIB
=$ac_cv_prog_RANLIB
6284 if test -n "$RANLIB"; then
6285 echo "$as_me:$LINENO: result: $RANLIB" >&5
6286 echo "${ECHO_T}$RANLIB" >&6
6288 echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6
6293 if test -z "$ac_cv_prog_RANLIB"; then
6294 ac_ct_RANLIB
=$RANLIB
6295 # Extract the first word of "ranlib", so it can be a program name with args.
6296 set dummy ranlib
; ac_word
=$2
6297 echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 if test -n "$ac_ct_RANLIB"; then
6303 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir
=.
6310 for ac_exec_ext
in '' $ac_executable_extensions; do
6311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6322 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6323 if test -n "$ac_ct_RANLIB"; then
6324 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6325 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6327 echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6331 RANLIB
=$ac_ct_RANLIB
6333 RANLIB
="$ac_cv_prog_RANLIB"
6381 ac_config_files
="$ac_config_files Makefile"
6382 ac_config_commands
="$ac_config_commands default"
6383 cat >confcache
<<\_ACEOF
6384 # This file is a shell script that caches the results of configure
6385 # tests run on this system so they can be shared between configure
6386 # scripts and configure runs, see configure's option --config-cache.
6387 # It is not useful on other systems. If it contains results you don't
6388 # want to keep, you may remove or edit it.
6390 # config.status only pays attention to the cache file if you give it
6391 # the --recheck option to rerun configure.
6393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6399 # The following way of writing the cache mishandles newlines in values,
6400 # but we know of no workaround that is simple, portable, and efficient.
6401 # So, don't put newlines in cache variables' values.
6402 # Ultrix sh set writes to stderr and can't be redirected directly,
6403 # and sets the high bit in the cache file unless we assign to the vars.
6406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6408 # `set' does not quote correctly, so add quotes (double-quote
6409 # substitution turns \\\\ into \\, and sed turns \\ into \).
6412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6415 # `set' quotes correctly as required by POSIX, so do not add quotes.
6417 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6426 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6428 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6429 if test -w $cache_file; then
6430 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6431 cat confcache
>$cache_file
6433 echo "not updating unwritable cache $cache_file"
6438 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6439 # Let make expand exec_prefix.
6440 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6444 # trailing colons and then remove the whole line if VPATH becomes empty
6445 # (actually we leave an empty line to preserve line numbers).
6446 if test "x$srcdir" = x.
; then
6447 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6448 s/:*\$(srcdir):*/:/;
6449 s/:*\${srcdir}:*/:/;
6451 s/^\([^=]*=[ ]*\):*/\1/;
6457 DEFS
=-DHAVE_CONFIG_H
6461 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6462 # 1. Remove the extension, and $U if already installed.
6463 ac_i
=`echo "$ac_i" |
6464 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6466 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6467 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6471 LTLIBOBJS
=$ac_ltlibobjs
6475 : ${CONFIG_STATUS=./config.status}
6476 ac_clean_files_save
=$ac_clean_files
6477 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6480 cat >$CONFIG_STATUS <<_ACEOF
6482 # Generated by $as_me.
6483 # Run this file to recreate the current configuration.
6484 # Compiler output produced by configure, useful for debugging
6485 # configure, is in config.log if it exists.
6490 SHELL=\${CONFIG_SHELL-$SHELL}
6493 cat >>$CONFIG_STATUS <<\_ACEOF
6494 ## --------------------- ##
6495 ## M4sh Initialization. ##
6496 ## --------------------- ##
6498 # Be Bourne compatible
6499 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6503 # is contrary to our usage. Disable this feature.
6504 alias -g '${1+"$@"}'='"$@"'
6505 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6508 DUALCASE
=1; export DUALCASE
# for MKS sh
6510 # Support unset when possible.
6511 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6518 # Work around bugs in pre-3.0 UWIN ksh.
6519 $as_unset ENV MAIL MAILPATH
6526 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6527 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6528 LC_TELEPHONE LC_TIME
6530 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6531 eval $as_var=C
; export $as_var
6537 # Required to use basename.
6538 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6544 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6545 as_basename
=basename
6551 # Name of the executable.
6552 as_me
=`$as_basename "$0" ||
6553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6554 X"$0" : 'X\(//\)$' \| \
6555 X"$0" : 'X\(/\)$' \| \
6556 . : '\(.\)' 2>/dev/null ||
6558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6559 /^X\/\(\/\/\)$/{ s//\1/; q; }
6560 /^X\/\(\/\).*/{ s//\1/; q; }
6564 # PATH needs CR, and LINENO needs CR and PATH.
6565 # Avoid depending upon Character Ranges.
6566 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6567 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6568 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6569 as_cr_digits
='0123456789'
6570 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6572 # The user is always right.
6573 if test "${PATH_SEPARATOR+set}" != set; then
6574 echo "#! /bin/sh" >conf$$.sh
6575 echo "exit 0" >>conf$$.sh
6577 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6588 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6589 test "x$as_lineno_1" != "x$as_lineno_2" &&
6590 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6591 # Find who we are. Look in the path if we contain no path at all
6594 *[\\/]* ) as_myself
=$0 ;;
6595 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir
=.
6600 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6605 # We did not find ourselves, most probably we were run as `sh COMMAND'
6606 # in which case we are not to be found in the path.
6607 if test "x$as_myself" = x
; then
6610 if test ! -f "$as_myself"; then
6611 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6612 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6613 { (exit 1); exit 1; }; }
6615 case $CONFIG_SHELL in
6617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6618 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6621 test -z "$as_dir" && as_dir
=.
6622 for as_base
in sh bash ksh sh5
; do
6625 if ("$as_dir/$as_base" -c '
6628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6629 test "x$as_lineno_1" != "x$as_lineno_2" &&
6630 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6631 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6632 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6633 CONFIG_SHELL
=$as_dir/$as_base
6635 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6644 # uniformly replaced by the line number. The first 'sed' inserts a
6645 # line-number line before each line; the second 'sed' does the real
6646 # work. The second script uses 'N' to pair each line-number line
6647 # with the numbered line, and appends trailing '-' during
6648 # substitution so that $LINENO is not a special case at line end.
6649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6650 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6651 sed '=' <$as_myself |
6656 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6659 s,^['$as_cr_digits']*\n,,
6661 chmod +x
$as_me.lineno ||
6662 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6663 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6664 { (exit 1); exit 1; }; }
6666 # Don't try to exec as it changes $[0], causing all sort of problems
6667 # (the dirname of $[0] is not the place where we might find the
6668 # original and so on. Autoconf is especially sensible to this).
6670 # Exit status is that of the last command.
6675 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6676 *c
*,-n*) ECHO_N
= ECHO_C
='
6678 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6679 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6682 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6688 rm -f conf$$ conf$$.exe conf$$.
file
6690 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6691 # We could just check for DJGPP; but this test a) works b) is more generic
6692 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6693 if test -f conf$$.exe
; then
6694 # Don't use ln at all; we don't have any links
6699 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6704 rm -f conf$$ conf$$.exe conf$$.
file
6706 if mkdir
-p .
2>/dev
/null
; then
6709 test -d .
/-p && rmdir .
/-p
6713 as_executable_p
="test -f"
6715 # Sed expression to map a string onto a valid CPP name.
6716 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6718 # Sed expression to map a string onto a valid variable name.
6719 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6723 # We need space, tab and new line, in precisely that order.
6733 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6734 # report actual input values of CONFIG_FILES etc. instead of their
6735 # values after options handling. Logging --version etc. is OK.
6739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6740 ## Running $as_me. ##
6745 This file was extended by $as_me, which was
6746 generated by GNU Autoconf 2.59. Invocation command line was
6748 CONFIG_FILES = $CONFIG_FILES
6749 CONFIG_HEADERS = $CONFIG_HEADERS
6750 CONFIG_LINKS = $CONFIG_LINKS
6751 CONFIG_COMMANDS = $CONFIG_COMMANDS
6755 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6759 # Files that config.status was made for.
6760 if test -n "$ac_config_files"; then
6761 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6764 if test -n "$ac_config_headers"; then
6765 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6768 if test -n "$ac_config_links"; then
6769 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6772 if test -n "$ac_config_commands"; then
6773 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6776 cat >>$CONFIG_STATUS <<\_ACEOF
6779 \`$as_me' instantiates files from templates according to the
6780 current configuration.
6782 Usage: $0 [OPTIONS] [FILE]...
6784 -h, --help print this help, then exit
6785 -V, --version print version number, then exit
6786 -q, --quiet do not print progress messages
6787 -d, --debug don't remove temporary files
6788 --recheck update $as_me by reconfiguring in the same conditions
6789 --file=FILE[:TEMPLATE]
6790 instantiate the configuration file FILE
6791 --header=FILE[:TEMPLATE]
6792 instantiate the configuration header FILE
6794 Configuration files:
6797 Configuration headers:
6800 Configuration commands:
6803 Report bugs to <bug-autoconf@gnu.org>."
6806 cat >>$CONFIG_STATUS <<_ACEOF
6809 configured by $0, generated by GNU Autoconf 2.59,
6810 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6812 Copyright (C) 2003 Free Software Foundation, Inc.
6813 This config.status script is free software; the Free Software Foundation
6814 gives unlimited permission to copy, distribute and modify it."
6819 cat >>$CONFIG_STATUS <<\_ACEOF
6820 # If no file are specified by the user, then we need to provide default
6821 # value. By we need to know if files were specified by the user.
6827 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6828 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6836 *) # This is not an option, so the user has probably given explicit
6839 ac_need_defaults
=false
;;
6843 # Handling of the options.
6845 cat >>$CONFIG_STATUS <<\_ACEOF
6846 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6848 --version |
--vers* |
-V )
6849 echo "$ac_cs_version"; exit 0 ;;
6851 # Conflict between --help and --header
6852 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6853 Try \`$0 --help' for more information." >&5
6854 echo "$as_me: error: ambiguous option: $1
6855 Try \`$0 --help' for more information." >&2;}
6856 { (exit 1); exit 1; }; };;
6857 --help |
--hel |
-h )
6858 echo "$ac_cs_usage"; exit 0 ;;
6859 --debug |
--d* |
-d )
6861 --file |
--fil |
--fi |
--f )
6863 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6864 ac_need_defaults
=false
;;
6865 --header |
--heade |
--head |
--hea )
6867 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6868 ac_need_defaults
=false
;;
6869 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6870 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6874 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6875 Try \`$0 --help' for more information." >&5
6876 echo "$as_me: error: unrecognized option: $1
6877 Try \`$0 --help' for more information." >&2;}
6878 { (exit 1); exit 1; }; } ;;
6880 *) ac_config_targets
="$ac_config_targets $1" ;;
6886 ac_configure_extra_args
=
6888 if $ac_cs_silent; then
6890 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6894 cat >>$CONFIG_STATUS <<_ACEOF
6895 if \$ac_cs_recheck; then
6896 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6897 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6906 cat >>$CONFIG_STATUS <<\_ACEOF
6907 for ac_config_target
in $ac_config_targets
6909 case "$ac_config_target" in
6910 # Handling of arguments.
6911 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6912 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6913 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6916 { (exit 1); exit 1; }; };;
6920 # If the user did not use the arguments to specify the items to instantiate,
6921 # then the envvar interface is used. Set only those that are not.
6922 # We use the long form for the default assignment because of an extremely
6923 # bizarre bug on SunOS 4.1.3.
6924 if $ac_need_defaults; then
6925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6930 # Have a temporary directory for convenience. Make it in the build tree
6931 # simply because there is no reason to put it here, and in addition,
6932 # creating and moving files from /tmp can sometimes cause problems.
6933 # Create a temporary directory, and hook for its removal unless debugging.
6936 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6937 trap '{ (exit 1); exit 1; }' 1 2 13 15
6940 # Create a (secure) tmp directory for tmp files.
6943 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6944 test -n "$tmp" && test -d "$tmp"
6947 tmp
=.
/confstat$$
-$RANDOM
6948 (umask 077 && mkdir
$tmp)
6951 echo "$me: cannot create a temporary directory in ." >&2
6952 { (exit 1); exit 1; }
6957 cat >>$CONFIG_STATUS <<_ACEOF
6960 # CONFIG_FILES section.
6963 # No need to generate the scripts if there are no CONFIG_FILES.
6964 # This happens for instance when ./config.status config.h
6965 if test -n "\$CONFIG_FILES"; then
6966 # Protect against being on the right side of a sed subst in config.status.
6967 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6968 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6969 s,@sim_environment@,$sim_environment,;t t
6970 s,@sim_alignment@,$sim_alignment,;t t
6971 s,@sim_assert@,$sim_assert,;t t
6972 s,@sim_bitsize@,$sim_bitsize,;t t
6973 s,@sim_endian@,$sim_endian,;t t
6974 s,@sim_hostendian@,$sim_hostendian,;t t
6975 s,@sim_float@,$sim_float,;t t
6976 s,@sim_scache@,$sim_scache,;t t
6977 s,@sim_default_model@,$sim_default_model,;t t
6978 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6979 s,@sim_hw_objs@,$sim_hw_objs,;t t
6980 s,@sim_hw@,$sim_hw,;t t
6981 s,@sim_inline@,$sim_inline,;t t
6982 s,@sim_packages@,$sim_packages,;t t
6983 s,@sim_regparm@,$sim_regparm,;t t
6984 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6985 s,@sim_smp@,$sim_smp,;t t
6986 s,@sim_stdcall@,$sim_stdcall,;t t
6987 s,@sim_xor_endian@,$sim_xor_endian,;t t
6988 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6989 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6990 s,@SHELL@,$SHELL,;t t
6991 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6992 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6993 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6994 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6995 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6996 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6997 s,@exec_prefix@,$exec_prefix,;t t
6998 s,@prefix@,$prefix,;t t
6999 s,@program_transform_name@,$program_transform_name,;t t
7000 s,@bindir@,$bindir,;t t
7001 s,@sbindir@,$sbindir,;t t
7002 s,@libexecdir@,$libexecdir,;t t
7003 s,@datadir@,$datadir,;t t
7004 s,@sysconfdir@,$sysconfdir,;t t
7005 s,@sharedstatedir@,$sharedstatedir,;t t
7006 s,@localstatedir@,$localstatedir,;t t
7007 s,@libdir@,$libdir,;t t
7008 s,@includedir@,$includedir,;t t
7009 s,@oldincludedir@,$oldincludedir,;t t
7010 s,@infodir@,$infodir,;t t
7011 s,@mandir@,$mandir,;t t
7012 s,@build_alias@,$build_alias,;t t
7013 s,@host_alias@,$host_alias,;t t
7014 s,@target_alias@,$target_alias,;t t
7016 s,@ECHO_C@,$ECHO_C,;t t
7017 s,@ECHO_N@,$ECHO_N,;t t
7018 s,@ECHO_T@,$ECHO_T,;t t
7020 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7021 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7022 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7024 s,@CFLAGS@,$CFLAGS,;t t
7025 s,@LDFLAGS@,$LDFLAGS,;t t
7026 s,@CPPFLAGS@,$CPPFLAGS,;t t
7027 s,@ac_ct_CC@,$ac_ct_CC,;t t
7028 s,@EXEEXT@,$EXEEXT,;t t
7029 s,@OBJEXT@,$OBJEXT,;t t
7030 s,@USE_NLS@,$USE_NLS,;t t
7031 s,@LIBINTL@,$LIBINTL,;t t
7032 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7033 s,@INCINTL@,$INCINTL,;t t
7034 s,@XGETTEXT@,$XGETTEXT,;t t
7035 s,@GMSGFMT@,$GMSGFMT,;t t
7036 s,@POSUB@,$POSUB,;t t
7037 s,@CATALOGS@,$CATALOGS,;t t
7038 s,@DATADIRNAME@,$DATADIRNAME,;t t
7039 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7040 s,@GENCAT@,$GENCAT,;t t
7041 s,@CATOBJEXT@,$CATOBJEXT,;t t
7042 s,@build@,$build,;t t
7043 s,@build_cpu@,$build_cpu,;t t
7044 s,@build_vendor@,$build_vendor,;t t
7045 s,@build_os@,$build_os,;t t
7047 s,@host_cpu@,$host_cpu,;t t
7048 s,@host_vendor@,$host_vendor,;t t
7049 s,@host_os@,$host_os,;t t
7050 s,@target@,$target,;t t
7051 s,@target_cpu@,$target_cpu,;t t
7052 s,@target_vendor@,$target_vendor,;t t
7053 s,@target_os@,$target_os,;t t
7055 s,@EGREP@,$EGREP,;t t
7056 s,@LIBOBJS@,$LIBOBJS,;t t
7057 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7058 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7059 s,@HDEFINES@,$HDEFINES,;t t
7061 s,@RANLIB@,$RANLIB,;t t
7062 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7063 s,@sim_cflags@,$sim_cflags,;t t
7064 s,@sim_warnings@,$sim_warnings,;t t
7065 s,@sim_line_nr@,$sim_line_nr,;t t
7066 s,@sim_config@,$sim_config,;t t
7067 s,@sim_opcode@,$sim_opcode,;t t
7068 s,@sim_switch@,$sim_switch,;t t
7069 s,@sim_dup@,$sim_dup,;t t
7070 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7071 s,@sim_jump@,$sim_jump,;t t
7072 s,@sim_filter@,$sim_filter,;t t
7073 s,@sim_icache@,$sim_icache,;t t
7074 s,@sim_hw_src@,$sim_hw_src,;t t
7075 s,@sim_hw_obj@,$sim_hw_obj,;t t
7076 s,@sim_pk_src@,$sim_pk_src,;t t
7077 s,@sim_pk_obj@,$sim_pk_obj,;t t
7078 s,@sim_bswap@,$sim_bswap,;t t
7079 s,@sim_igen_smp@,$sim_igen_smp,;t t
7080 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7081 s,@sim_env@,$sim_env,;t t
7082 s,@sim_timebase@,$sim_timebase,;t t
7083 s,@sim_trace@,$sim_trace,;t t
7084 s,@sim_reserved@,$sim_reserved,;t t
7085 s,@sim_monitor@,$sim_monitor,;t t
7086 s,@sim_model@,$sim_model,;t t
7087 s,@sim_model_issue@,$sim_model_issue,;t t
7088 s,@sim_stdio@,$sim_stdio,;t t
7089 s,@sim_termio@,$sim_termio,;t t
7090 s,@sim_devzero@,$sim_devzero,;t t
7091 s,@sim_callback@,$sim_callback,;t t
7092 s,@sim_targ_vals@,$sim_targ_vals,;t t
7093 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7094 s,@sim_fpu@,$sim_fpu,;t t
7095 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7100 cat >>$CONFIG_STATUS <<\_ACEOF
7101 # Split the substitutions into bite-sized pieces for seds with
7102 # small command number limits, like on Digital OSF/1 and HP-UX.
7104 ac_sed_frag
=1 # Number of current file.
7105 ac_beg
=1 # First line for current file.
7106 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7109 while $ac_more_lines; do
7110 if test $ac_beg -gt 1; then
7111 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7113 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7115 if test ! -s $tmp/subs.frag
; then
7118 # The purpose of the label and of the branching condition is to
7119 # speed up the sed processing (if there are no `@' at all, there
7120 # is no need to browse any of the substitutions).
7121 # These are the two extra sed commands mentioned above.
7123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7124 if test -z "$ac_sed_cmds"; then
7125 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7127 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7129 ac_sed_frag
=`expr $ac_sed_frag + 1`
7131 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7134 if test -z "$ac_sed_cmds"; then
7137 fi # test -n "$CONFIG_FILES"
7140 cat >>$CONFIG_STATUS <<\_ACEOF
7141 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7142 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7144 - |
*:- |
*:-:* ) # input from stdin
7146 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7147 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7148 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7149 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7150 * ) ac_file_in
=$ac_file.
in ;;
7153 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7154 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7156 X"$ac_file" : 'X\(//\)[^/]' \| \
7157 X"$ac_file" : 'X\(//\)$' \| \
7158 X"$ac_file" : 'X\(/\)' \| \
7159 . : '\(.\)' 2>/dev/null ||
7161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7163 /^X\(\/\/\)$/{ s//\1/; q; }
7164 /^X\(\/\).*/{ s//\1/; q; }
7166 { if $as_mkdir_p; then
7171 while test ! -d "$as_dir"; do
7172 as_dirs
="$as_dir $as_dirs"
7173 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7175 X"$as_dir" : 'X\(//\)[^/]' \| \
7176 X"$as_dir" : 'X\(//\)$' \| \
7177 X"$as_dir" : 'X\(/\)' \| \
7178 . : '\(.\)' 2>/dev/null ||
7180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7182 /^X\(\/\/\)$/{ s//\1/; q; }
7183 /^X\(\/\).*/{ s//\1/; q; }
7186 test ! -n "$as_dirs" || mkdir
$as_dirs
7187 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7189 { (exit 1); exit 1; }; }; }
7193 if test "$ac_dir" != .
; then
7194 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7195 # A "../" for each directory in $ac_dir_suffix.
7196 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7198 ac_dir_suffix
= ac_top_builddir
=
7202 .
) # No --srcdir option. We are building in place.
7204 if test -z "$ac_top_builddir"; then
7207 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7209 [\\/]* | ?
:[\\/]* ) # Absolute path.
7210 ac_srcdir
=$srcdir$ac_dir_suffix;
7211 ac_top_srcdir
=$srcdir ;;
7213 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7214 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7217 # Do not use `cd foo && pwd` to compute absolute paths, because
7218 # the directories may not exist.
7220 .
) ac_abs_builddir
="$ac_dir";;
7223 .
) ac_abs_builddir
=`pwd`;;
7224 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7225 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7228 case $ac_abs_builddir in
7229 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7231 case ${ac_top_builddir}.
in
7232 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7233 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7234 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7237 case $ac_abs_builddir in
7238 .
) ac_abs_srcdir
=$ac_srcdir;;
7241 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7242 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7243 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7246 case $ac_abs_builddir in
7247 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7249 case $ac_top_srcdir in
7250 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7251 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7252 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7258 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7259 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7262 if test x
"$ac_file" != x-
; then
7263 { echo "$as_me:$LINENO: creating $ac_file" >&5
7264 echo "$as_me: creating $ac_file" >&6;}
7267 # Let's still pretend it is `configure' which instantiates (i.e., don't
7268 # use $as_me), people would be surprised to read:
7269 # /* config.h. Generated by config.status. */
7270 if test x
"$ac_file" = x-
; then
7273 configure_input
="$ac_file. "
7275 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7276 sed 's,.*/,,'` by configure."
7278 # First look for the input files in the build tree, otherwise in the
7280 ac_file_inputs
=`IFS=:
7281 for f in $ac_file_in; do
7283 -) echo $tmp/stdin ;;
7285 # Absolute (can't be DOS-style, as IFS=:)
7286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7287 echo "$as_me: error: cannot find input file: $f" >&2;}
7288 { (exit 1); exit 1; }; }
7291 if test -f "$f"; then
7294 elif test -f "$srcdir/$f"; then
7299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7300 echo "$as_me: error: cannot find input file: $f" >&2;}
7301 { (exit 1); exit 1; }; }
7304 done` ||
{ (exit 1); exit 1; }
7306 cat >>$CONFIG_STATUS <<_ACEOF
7310 cat >>$CONFIG_STATUS <<\_ACEOF
7312 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7313 s
,@configure_input@
,$configure_input,;t t
7314 s
,@srcdir@
,$ac_srcdir,;t t
7315 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7316 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7317 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7318 s
,@builddir@
,$ac_builddir,;t t
7319 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7320 s
,@top_builddir@
,$ac_top_builddir,;t t
7321 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7322 s
,@INSTALL@
,$ac_INSTALL,;t t
7323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7325 if test x"$ac_file" != x-; then
7326 mv $tmp/out $ac_file
7334 cat >>$CONFIG_STATUS <<\_ACEOF
7337 # CONFIG_HEADER section.
7340 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7341 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7343 # ac_d sets the value in "#define NAME VALUE" lines.
7344 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7345 ac_dB
='[ ].*$,\1#\2'
7348 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7349 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7350 ac_uB
='$,\1#\2define\3'
7354 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7357 - |
*:- |
*:-:* ) # input from stdin
7359 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7360 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7361 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7362 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7363 * ) ac_file_in
=$ac_file.
in ;;
7366 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7367 echo "$as_me: creating $ac_file" >&6;}
7369 # First look for the input files in the build tree, otherwise in the
7371 ac_file_inputs
=`IFS=:
7372 for f in $ac_file_in; do
7374 -) echo $tmp/stdin ;;
7376 # Absolute (can't be DOS-style, as IFS=:)
7377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7378 echo "$as_me: error: cannot find input file: $f" >&2;}
7379 { (exit 1); exit 1; }; }
7380 # Do quote $f, to prevent DOS paths from being IFS'd.
7383 if test -f "$f"; then
7386 elif test -f "$srcdir/$f"; then
7391 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7392 echo "$as_me: error: cannot find input file: $f" >&2;}
7393 { (exit 1); exit 1; }; }
7396 done` ||
{ (exit 1); exit 1; }
7397 # Remove the trailing spaces.
7398 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7402 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7403 # `conftest.undefs', that substitutes the proper values into
7404 # config.h.in to produce config.h. The first handles `#define'
7405 # templates, and the second `#undef' templates.
7406 # And first: Protect against being on the right side of a sed subst in
7407 # config.status. Protect against being in an unquoted here document
7409 rm -f conftest.defines conftest.undefs
7410 # Using a here document instead of a string reduces the quoting nightmare.
7411 # Putting comments in sed scripts is not portable.
7413 # `end' is used to avoid that the second main sed command (meant for
7414 # 0-ary CPP macros) applies to n-ary macro definitions.
7415 # See the Autoconf documentation for `clear'.
7416 cat >confdef2sed.
sed <<\_ACEOF
7421 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7423 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7426 # If some macros were called several times there might be several times
7427 # the same #defines, which is useless. Nevertheless, we may not want to
7428 # sort them, since we want the *last* AC-DEFINE to be honored.
7429 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7430 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7431 rm -f confdef2sed.sed
7433 # This sed command replaces #undef with comments. This is necessary, for
7434 # example, in the case of _POSIX_SOURCE, which is predefined and required
7435 # on some systems where configure will not decide to define it.
7436 cat >>conftest.undefs <<\_ACEOF
7437 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7440 # Break up conftest.defines because some shells have a limit on the size
7441 # of here documents, and old seds have small limits too (100 cmds).
7442 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7443 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7444 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7445 echo ' :' >>$CONFIG_STATUS
7447 while grep . conftest.defines >/dev/null
7449 # Write a limited-size here document to $tmp/defines.sed.
7450 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7451 # Speed up: don't consider the non `#define' lines.
7452 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7453 # Work around the forget-to-reset-the-flag bug.
7454 echo 't clr' >>$CONFIG_STATUS
7455 echo ': clr' >>$CONFIG_STATUS
7456 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7458 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7462 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7463 rm -f conftest.defines
7464 mv conftest.
tail conftest.defines
7466 rm -f conftest.defines
7467 echo ' fi # grep' >>$CONFIG_STATUS
7468 echo >>$CONFIG_STATUS
7470 # Break up conftest.undefs because some shells have a limit on the size
7471 # of here documents, and old seds have small limits too (100 cmds).
7472 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7474 while grep . conftest.undefs
>/dev
/null
7476 # Write a limited-size here document to $tmp/undefs.sed.
7477 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7478 # Speed up: don't consider the non
`#undef'
7479 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7480 # Work around the forget-to-reset-the-flag bug.
7481 echo 't clr' >>$CONFIG_STATUS
7482 echo ': clr' >>$CONFIG_STATUS
7483 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7485 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7489 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7490 rm -f conftest.undefs
7491 mv conftest.tail conftest.undefs
7493 rm -f conftest.undefs
7495 cat >>$CONFIG_STATUS <<\_ACEOF
7496 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7497 # use $as_me), people would be surprised to read:
7498 # /* config.h. Generated by config.status. */
7499 if test x
"$ac_file" = x-
; then
7500 echo "/* Generated by configure. */" >$tmp/config.h
7502 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7504 cat $tmp/in >>$tmp/config.h
7506 if test x
"$ac_file" != x-
; then
7507 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7508 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7509 echo "$as_me: $ac_file is unchanged" >&6;}
7511 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7513 X"$ac_file" : 'X\(//\)[^/]' \| \
7514 X"$ac_file" : 'X\(//\)$' \| \
7515 X"$ac_file" : 'X\(/\)' \| \
7516 . : '\(.\)' 2>/dev/null ||
7518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7520 /^X\(\/\/\)$/{ s//\1/; q; }
7521 /^X\(\/\).*/{ s//\1/; q; }
7523 { if $as_mkdir_p; then
7528 while test ! -d "$as_dir"; do
7529 as_dirs
="$as_dir $as_dirs"
7530 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532 X"$as_dir" : 'X\(//\)[^/]' \| \
7533 X"$as_dir" : 'X\(//\)$' \| \
7534 X"$as_dir" : 'X\(/\)' \| \
7535 . : '\(.\)' 2>/dev/null ||
7537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7539 /^X\(\/\/\)$/{ s//\1/; q; }
7540 /^X\(\/\).*/{ s//\1/; q; }
7543 test ! -n "$as_dirs" || mkdir
$as_dirs
7544 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7546 { (exit 1); exit 1; }; }; }
7549 mv $tmp/config.h
$ac_file
7557 cat >>$CONFIG_STATUS <<\_ACEOF
7560 # CONFIG_COMMANDS section.
7562 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7563 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7564 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7565 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7566 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7567 X"$ac_dest" : 'X\(//\)[^/]' \| \
7568 X"$ac_dest" : 'X\(//\)$' \| \
7569 X"$ac_dest" : 'X\(/\)' \| \
7570 . : '\(.\)' 2>/dev/null ||
7572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7574 /^X\(\/\/\)$/{ s//\1/; q; }
7575 /^X\(\/\).*/{ s//\1/; q; }
7577 { if $as_mkdir_p; then
7582 while test ! -d "$as_dir"; do
7583 as_dirs
="$as_dir $as_dirs"
7584 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586 X"$as_dir" : 'X\(//\)[^/]' \| \
7587 X"$as_dir" : 'X\(//\)$' \| \
7588 X"$as_dir" : 'X\(/\)' \| \
7589 . : '\(.\)' 2>/dev/null ||
7591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7593 /^X\(\/\/\)$/{ s//\1/; q; }
7594 /^X\(\/\).*/{ s//\1/; q; }
7597 test ! -n "$as_dirs" || mkdir
$as_dirs
7598 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7600 { (exit 1); exit 1; }; }; }
7604 if test "$ac_dir" != .
; then
7605 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7606 # A "../" for each directory in $ac_dir_suffix.
7607 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7609 ac_dir_suffix
= ac_top_builddir
=
7613 .
) # No --srcdir option. We are building in place.
7615 if test -z "$ac_top_builddir"; then
7618 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7620 [\\/]* | ?
:[\\/]* ) # Absolute path.
7621 ac_srcdir
=$srcdir$ac_dir_suffix;
7622 ac_top_srcdir
=$srcdir ;;
7624 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7625 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7628 # Do not use `cd foo && pwd` to compute absolute paths, because
7629 # the directories may not exist.
7631 .
) ac_abs_builddir
="$ac_dir";;
7634 .
) ac_abs_builddir
=`pwd`;;
7635 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7636 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7639 case $ac_abs_builddir in
7640 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7642 case ${ac_top_builddir}.
in
7643 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7644 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7645 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7648 case $ac_abs_builddir in
7649 .
) ac_abs_srcdir
=$ac_srcdir;;
7652 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7653 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7654 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7657 case $ac_abs_builddir in
7658 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7660 case $ac_top_srcdir in
7661 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7662 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7663 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7668 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7669 echo "$as_me: executing $ac_dest commands" >&6;}
7671 default
) case x
$CONFIG_HEADERS in xconfig.h
:config.
in) echo > stamp-h
;; esac ;;
7676 cat >>$CONFIG_STATUS <<\_ACEOF
7678 { (exit 0); exit 0; }
7680 chmod +x
$CONFIG_STATUS
7681 ac_clean_files
=$ac_clean_files_save
7684 # configure is writing to config.log, and then calls config.status.
7685 # config.status does its own redirection, appending to config.log.
7686 # Unfortunately, on DOS this fails, as config.log is still kept open
7687 # by configure, so config.status won't be able to write to it; its
7688 # output is simply discarded. So we exec the FD to /dev/null,
7689 # effectively closing config.log, so it can be properly (re)opened and
7690 # appended to by config.status. When coming back to configure, we
7691 # need to make the FD available again.
7692 if test "$no_create" != yes; then
7694 ac_config_status_args
=
7695 test "$silent" = yes &&
7696 ac_config_status_args
="$ac_config_status_args --quiet"
7698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7701 # would make configure fail if this is the last instruction.
7702 $ac_cs_success ||
{ (exit 1); exit 1; }