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.
2390 if test -f ..
/intl
/config.intl
; then
2391 . ..
/intl
/config.intl
2393 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2394 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2395 if test x
"$USE_NLS" != xyes
; then
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2399 echo "$as_me:$LINENO: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2402 cat >>confdefs.h
<<\_ACEOF
2403 #define ENABLE_NLS 1
2407 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2408 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2409 # Look for .po and .gmo files in the source directory.
2412 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
2413 # If there aren't any .gmo files the shell will give us the
2414 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2416 case "$cat" in *\
**)
2419 # The quadruple backslash is collapsed to a double backslash
2420 # by the backticks, then collapsed again by the double quotes,
2421 # leaving us with one backslash in the sed expression (right
2422 # before the dot that mustn't act as a wildcard).
2423 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2424 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
2425 # The user is allowed to set LINGUAS to a list of languages to
2426 # install catalogs for. If it's empty that means "all of them."
2427 if test "x$LINGUAS" = x
; then
2428 CATALOGS
="$CATALOGS $cat"
2429 XLINGUAS
="$XLINGUAS $lang"
2431 case "$LINGUAS" in *$lang*)
2432 CATALOGS
="$CATALOGS $cat"
2433 XLINGUAS
="$XLINGUAS $lang"
2439 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2440 echo "${ECHO_T}$LINGUAS" >&6
2454 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2455 if test "${enable_sim_alignment+set}" = set; then
2456 enableval
="$enable_sim_alignment"
2457 case "${enableval}" in
2458 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2459 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2460 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
2461 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2462 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2463 { (exit 1); exit 1; }; }; sim_alignment
="";;
2465 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
2466 echo "Setting alignment flags = $sim_alignment" 6>&1
2472 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2473 if test "${enable_sim_assert+set}" = set; then
2474 enableval
="$enable_sim_assert"
2475 case "${enableval}" in
2476 yes) sim_assert
="-DWITH_ASSERT=1";;
2477 no
) sim_assert
="-DWITH_ASSERT=0";;
2478 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2479 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2480 { (exit 1); exit 1; }; }; sim_assert
="";;
2482 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
2483 echo "Setting assert flags = $sim_assert" 6>&1
2489 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2490 if test "${enable_sim_bitsize+set}" = set; then
2491 enableval
="$enable_sim_bitsize"
2492 case "${enableval}" in
2493 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2494 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2495 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2496 { (exit 1); exit 1; }; }; sim_bitsize
="";;
2498 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
2499 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2505 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2506 if test "${enable_sim_bswap+set}" = set; then
2507 enableval
="$enable_sim_bswap"
2508 case "${enableval}" in
2509 yes) sim_bswap
="-DWITH_BSWAP=1";;
2510 no
) sim_bswap
="-DWITH_BSWAP=0";;
2511 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2512 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2513 { (exit 1); exit 1; }; }; sim_bswap
="";;
2515 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
2516 echo "Setting bswap flags = $sim_bswap" 6>&1
2522 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2523 if test "${enable_sim_cflags+set}" = set; then
2524 enableval
="$enable_sim_cflags"
2525 case "${enableval}" in
2526 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
2528 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2530 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
2531 echo "Setting sim cflags = $sim_cflags" 6>&1
2537 # Check whether --enable-sim-config or --disable-sim-config was given.
2538 if test "${enable_sim_config+set}" = set; then
2539 enableval
="$enable_sim_config"
2540 case "${enableval}" in
2541 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2542 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2543 { (exit 1); exit 1; }; };;
2544 *) if test -f "${srcdir}/${enableval}"; then
2545 sim_config
="${enableval}";
2546 elif test -f "${srcdir}/${enableval}-config.h"; then
2547 sim_config
="${enableval}-config.h"
2549 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2550 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2551 { (exit 1); exit 1; }; };
2552 sim_config
=std-config.h
2555 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
2556 echo "Setting config flags = $sim_config" 6>&1
2559 sim_config
="std-config.h"
2560 if test x
"$silent" != x
"yes"; then
2561 echo "Setting config flags = $sim_config" 6>&1
2565 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2566 if test "${enable_sim_decode_mechanism+set}" = set; then
2567 enableval
="$enable_sim_decode_mechanism"
2568 case "${enableval}" in
2569 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2570 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2571 { (exit 1); exit 1; }; };;
2572 array|switch|padded-switch|goto-switch
) sim_decode_mechanism
="-T ${enableval}";;
2573 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2574 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2575 { (exit 1); exit 1; }; };
2576 sim_decode_mechanism
="switch";;
2578 if test x
"$silent" != x
"yes" && test x
"$sim_decode_mechanism" != x
""; then
2579 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2582 sim_decode_mechanism
=""
2583 if test x
"$silent" != x
"yes"; then
2584 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2588 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2589 if test "${enable_sim_default_model+set}" = set; then
2590 enableval
="$enable_sim_default_model"
2591 case "${enableval}" in
2592 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2593 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2594 { (exit 1); exit 1; }; };;
2595 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
2597 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
2598 echo "Setting default-model flags = $sim_default_model" 6>&1
2601 sim_default_model
=""
2604 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2605 if test "${enable_sim_duplicate+set}" = set; then
2606 enableval
="$enable_sim_duplicate"
2607 case "${enableval}" in
2610 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2611 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2612 { (exit 1); exit 1; }; }; sim_dup
="";;
2614 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
2615 echo "Setting duplicate flags = $sim_dup" 6>&1
2619 if test x
"$silent" != x
"yes"; then
2620 echo "Setting duplicate flags = $sim_dup" 6>&1
2624 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2625 if test "${enable_sim_endian+set}" = set; then
2626 enableval
="$enable_sim_endian"
2627 case "${enableval}" in
2628 yes) case "$target" in
2629 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2630 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2631 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2633 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2634 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2635 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2636 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2637 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2638 { (exit 1); exit 1; }; }; sim_endian
="";;
2640 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
2641 echo "Setting endian flags = $sim_endian" 6>&1
2647 # Check whether --enable-sim-env or --disable-sim-env was given.
2648 if test "${enable_sim_env+set}" = set; then
2649 enableval
="$enable_sim_env"
2650 case "${enableval}" in
2651 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2652 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2653 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2654 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
2655 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2656 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2657 { (exit 1); exit 1; }; }; sim_env
="";;
2659 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
2660 echo "Setting env flags = $sim_env" 6>&1
2666 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2667 if test "${enable_sim_filter+set}" = set; then
2668 enableval
="$enable_sim_filter"
2669 case "${enableval}" in
2670 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2671 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2672 { (exit 1); exit 1; }; }; sim_filter
="";;
2674 *) sim_filter
="-F $enableval";;
2676 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
2677 echo "Setting filter flags = $sim_filter" 6>&1
2680 sim_filter
="-F 32,f,o"
2681 if test x
"$silent" != x
"yes"; then
2682 echo "Setting filter flags = $sim_filter" 6>&1
2686 # Check whether --enable-sim-float or --disable-sim-float was given.
2687 if test "${enable_sim_float+set}" = set; then
2688 enableval
="$enable_sim_float"
2689 case "${enableval}" in
2690 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2691 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2692 altivec
) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2693 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2694 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2695 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2696 { (exit 1); exit 1; }; }; sim_float
="";;
2698 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
2699 echo "Setting float flags = $sim_float" 6>&1
2704 *altivec
*) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2705 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2711 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2712 if test "${enable_sim_hardware+set}" = set; then
2713 enableval
="$enable_sim_hardware"
2714 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2715 case "${enableval}" in
2717 no
) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2718 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2719 { (exit 1); exit 1; }; }; hardware
="";;
2720 ,*) hardware
="${hardware}${enableval}";;
2721 *,) hardware
="${enableval}${hardware}";;
2722 *) hardware
="${enableval}"'';;
2724 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2725 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2726 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
2727 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2730 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2731 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2732 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2733 if test x
"$silent" != x
"yes"; then
2734 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2738 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2739 if test "${enable_sim_hostbitsize+set}" = set; then
2740 enableval
="$enable_sim_hostbitsize"
2741 case "${enableval}" in
2742 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2743 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2744 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2745 { (exit 1); exit 1; }; }; sim_hostbitsize
="";;
2747 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
2748 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2755 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2756 if test "${enable_sim_hostendian+set}" = set; then
2757 enableval
="$enable_sim_hostendian"
2758 case "${enableval}" in
2759 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
2760 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2761 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2762 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2763 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2764 { (exit 1); exit 1; }; }; sim_hostendian
="";;
2766 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
2767 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2771 if test "x$cross_compiling" = "xno"; then
2772 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2773 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2774 if test "${ac_cv_c_bigendian+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 # See if sys/param.h defines the BYTE_ORDER macro.
2778 cat >conftest.
$ac_ext <<_ACEOF
2781 cat confdefs.h
>>conftest.
$ac_ext
2782 cat >>conftest.
$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #include <sys/types.h>
2785 #include <sys/param.h>
2790 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2798 rm -f conftest.
$ac_objext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800 (eval $ac_compile) 2>conftest.er1
2802 grep -v '^ *+' conftest.er1
>conftest.err
2804 cat conftest.err
>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try
='test -z "$ac_c_werror_flag"
2808 || test ! -s conftest.err'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try
='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 # It does; now see whether it defined to BIG_ENDIAN or not.
2821 cat >conftest.
$ac_ext <<_ACEOF
2824 cat confdefs.h
>>conftest.
$ac_ext
2825 cat >>conftest.
$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827 #include <sys/types.h>
2828 #include <sys/param.h>
2833 #if BYTE_ORDER != BIG_ENDIAN
2841 rm -f conftest.
$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1
>conftest.err
2847 cat conftest.err
>&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try
='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try
='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_c_bigendian
=yes
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.
$ac_ext >&5
2868 ac_cv_c_bigendian
=no
2870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.
$ac_ext >&5
2875 # It does not; compile a test program.
2876 if test "$cross_compiling" = yes; then
2877 # try to guess the endianness by grepping values into an object file
2878 ac_cv_c_bigendian
=unknown
2879 cat >conftest.
$ac_ext <<_ACEOF
2882 cat confdefs.h
>>conftest.
$ac_ext
2883 cat >>conftest.
$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2886 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2887 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2888 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2889 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2890 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2894 _ascii (); _ebcdic ();
2899 rm -f conftest.
$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>conftest.er1
2903 grep -v '^ *+' conftest.er1
>conftest.err
2905 cat conftest.err
>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try
='test -z "$ac_c_werror_flag"
2909 || test ! -s conftest.err'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try
='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
2922 ac_cv_c_bigendian
=yes
2924 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
2925 if test "$ac_cv_c_bigendian" = unknown
; then
2926 ac_cv_c_bigendian
=no
2928 # finding both strings is unlikely to happen, but who knows?
2929 ac_cv_c_bigendian
=unknown
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2939 cat >conftest.
$ac_ext <<_ACEOF
2942 cat confdefs.h
>>conftest.
$ac_ext
2943 cat >>conftest.
$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2948 /* Are we little or big endian? From Harbison&Steele. */
2952 char c[sizeof (long)];
2955 exit (u.c[sizeof (long) - 1] == 1);
2958 rm -f conftest
$ac_exeext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2960 (eval $ac_link) 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_cv_c_bigendian
=no
2971 echo "$as_me: program exited with status $ac_status" >&5
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.
$ac_ext >&5
2976 ac_cv_c_bigendian
=yes
2978 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2983 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2984 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2985 case $ac_cv_c_bigendian in
2988 cat >>confdefs.h
<<\_ACEOF
2989 #define WORDS_BIGENDIAN 1
2995 { { echo "$as_me:$LINENO: error: unknown endianness
2996 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2997 echo "$as_me: error: unknown endianness
2998 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2999 { (exit 1); exit 1; }; } ;;
3002 if test $ac_cv_c_bigendian = yes; then
3003 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3005 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3008 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3012 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3013 if test "${enable_sim_icache+set}" = set; then
3014 enableval
="$enable_sim_icache"
3016 case "${enableval}" in
3017 yes) icache
="1024"; sim_icache
="-I $icache";;
3018 no
) sim_icache
="-R";;
3021 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3023 define
) sim_icache
="${sim_icache}R";;
3024 semantic
) sim_icache
="${sim_icache}C";;
3025 insn
) sim_icache
="${sim_icache}S";;
3026 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
3027 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3028 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3029 { (exit 1); exit 1; }; }; sim_icache
="";;
3032 sim_icache
="${sim_icache}I $icache";;
3034 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
3035 echo "Setting instruction cache size to $icache ($sim_icache)"
3038 sim_icache
="-CSRI 1024"
3039 if test x
"$silent" != x
"yes"; then
3040 echo "Setting instruction cache size to 1024 ($sim_icache)"
3044 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3045 if test "${enable_sim_inline+set}" = set; then
3046 enableval
="$enable_sim_inline"
3048 case "$enableval" in
3049 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3050 0) sim_inline
="-DDEFAULT_INLINE=0";;
3051 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
3052 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3053 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3056 *_INLINE
=*) new_flag
="-D$x";;
3057 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3058 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
3059 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
3061 if test x
"$sim_inline" = x
""; then
3062 sim_inline
="$new_flag"
3064 sim_inline
="$sim_inline $new_flag"
3068 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3069 echo "Setting inline flags = $sim_inline" 6>&1
3072 if test x
"$GCC" != ""; then
3073 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3074 if test x
"$silent" != x
"yes"; then
3075 echo "Setting inline flags = $sim_inline" 6>&1
3082 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3083 if test "${enable_sim_jump+set}" = set; then
3084 enableval
="$enable_sim_jump"
3085 case "${enableval}" in
3086 yes) sim_jump
="-J";;
3088 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3089 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3090 { (exit 1); exit 1; }; }; sim_jump
="";;
3092 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
3093 echo "Setting jump flag = $sim_jump" 6>&1
3097 if test x
"$silent" != x
"yes"; then
3098 echo "Setting jump flag = $sim_jump" 6>&1
3102 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3103 if test "${enable_sim_line_nr+set}" = set; then
3104 enableval
="$enable_sim_line_nr"
3105 case "${enableval}" in
3106 yes) sim_line_nr
="";;
3107 no
) sim_line_nr
="-L";;
3108 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3109 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3110 { (exit 1); exit 1; }; }; sim_line_nr
="";;
3112 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
3113 echo "Setting warning flags = $sim_line_nr" 6>&1
3119 # Check whether --enable-sim-model or --disable-sim-model was given.
3120 if test "${enable_sim_model+set}" = set; then
3121 enableval
="$enable_sim_model"
3122 case "${enableval}" in
3123 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3124 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3125 { (exit 1); exit 1; }; };;
3126 *) sim_model
="-DWITH_MODEL=${enableval}";;
3128 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
3129 echo "Setting model flags = $sim_model" 6>&1
3135 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3136 if test "${enable_sim_model_issue+set}" = set; then
3137 enableval
="$enable_sim_model_issue"
3138 case "${enableval}" in
3139 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3140 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3141 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3142 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3143 { (exit 1); exit 1; }; }; sim_model_issue
="";;
3145 if test x
"$silent" != x
"yes"; then
3146 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3152 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3153 if test "${enable_sim_monitor+set}" = set; then
3154 enableval
="$enable_sim_monitor"
3155 case "${enableval}" in
3156 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3157 no
) sim_monitor
="-DWITH_MON=0";;
3158 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3159 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3160 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3161 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3162 { (exit 1); exit 1; }; }; sim_env
="";;
3164 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
3165 echo "Setting monitor flags = $sim_monitor" 6>&1
3171 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3172 if test "${enable_sim_opcode+set}" = set; then
3173 enableval
="$enable_sim_opcode"
3174 case "${enableval}" in
3175 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3176 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3177 { (exit 1); exit 1; }; };;
3178 *) if test -f "${srcdir}/${enableval}"; then
3179 sim_opcode
="${enableval}"
3180 elif test -f "${srcdir}/dc-${enableval}"; then
3181 sim_opcode
="dc-${enableval}"
3183 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3184 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3185 { (exit 1); exit 1; }; };
3186 sim_opcode
="dc-complex"
3189 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
3190 echo "Setting opcode flags = $sim_opcode" 6>&1
3193 sim_opcode
="dc-complex"
3194 if test x
"$silent" != x
"yes"; then
3195 echo "Setting opcode flags = $sim_opcode"
3199 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3200 if test "${enable_sim_packages+set}" = set; then
3201 enableval
="$enable_sim_packages"
3203 case "${enableval}" in
3205 no
) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3206 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3207 { (exit 1); exit 1; }; }; packages
="";;
3208 ,*) packages
="${packages}${enableval}";;
3209 *,) packages
="${enableval}${packages}";;
3210 *) packages
="${enableval}"'';;
3212 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3213 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3214 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
3215 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3219 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3220 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3221 if test x
"$silent" != x
"yes"; then
3222 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3226 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3227 if test "${enable_sim_regparm+set}" = set; then
3228 enableval
="$enable_sim_regparm"
3229 case "${enableval}" in
3230 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
3231 no
) sim_regparm
="" ;;
3232 yes) sim_regparm
="-DWITH_REGPARM=3";;
3233 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3234 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3235 { (exit 1); exit 1; }; }; sim_regparm
="";;
3237 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
3238 echo "Setting regparm flags = $sim_regparm" 6>&1
3244 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3245 if test "${enable_sim_reserved_bits+set}" = set; then
3246 enableval
="$enable_sim_reserved_bits"
3247 case "${enableval}" in
3248 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
3249 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
3250 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3251 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3252 { (exit 1); exit 1; }; }; sim_reserved
="";;
3254 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
3255 echo "Setting reserved flags = $sim_reserved" 6>&1
3261 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3262 if test "${enable_sim_smp+set}" = set; then
3263 enableval
="$enable_sim_smp"
3264 case "${enableval}" in
3265 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3266 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3267 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3269 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3270 echo "Setting smp flags = $sim_smp" 6>&1
3273 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
3274 if test x
"$silent" != x
"yes"; then
3275 echo "Setting smp flags = $sim_smp" 6>&1
3279 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3280 if test "${enable_sim_stdcall+set}" = set; then
3281 enableval
="$enable_sim_stdcall"
3282 case "${enableval}" in
3283 no
) sim_stdcall
="" ;;
3284 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
3285 yes) sim_stdcall
="-DWITH_STDCALL=1";;
3286 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3287 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3288 { (exit 1); exit 1; }; }; sim_stdcall
="";;
3290 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
3291 echo "Setting function call flags = $sim_stdcall" 6>&1
3297 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3298 if test "${enable_sim_stdio+set}" = set; then
3299 enableval
="$enable_sim_stdio"
3300 case "${enableval}" in
3301 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3302 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3303 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3304 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3305 { (exit 1); exit 1; }; }; sim_stdio
="";;
3307 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3308 echo "Setting stdio flags = $sim_stdio" 6>&1
3314 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3315 if test "${enable_sim_switch+set}" = set; then
3316 enableval
="$enable_sim_switch"
3317 case "${enableval}" in
3318 yes) sim_switch
="-s";;
3320 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3321 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3322 { (exit 1); exit 1; }; }; sim_switch
="";;
3324 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
3325 echo "Setting switch flags = $sim_switch" 6>&1
3329 if test x
"$silent" != x
"yes"; then
3330 echo "Setting switch flags = $sim_switch" 6>&1
3334 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3335 if test "${enable_sim_timebase+set}" = set; then
3336 enableval
="$enable_sim_timebase"
3337 case "${enableval}" in
3338 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
3339 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
3340 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3341 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3342 { (exit 1); exit 1; }; }; sim_timebase
="";;
3344 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
3345 echo "Setting timebase flags = $sim_timebase" 6>&1
3351 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3352 if test "${enable_sim_trace+set}" = set; then
3353 enableval
="$enable_sim_trace"
3354 case "${enableval}" in
3355 yes) sim_trace
="-DWITH_TRACE=1";;
3356 no
) sim_trace
="-DWITH_TRACE=0";;
3357 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3358 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3359 { (exit 1); exit 1; }; }; sim_trace
="";;
3361 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3362 echo "Setting trace flags = $sim_trace" 6>&1
3368 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3369 if test "${enable_sim_warnings+set}" = set; then
3370 enableval
="$enable_sim_warnings"
3371 case "${enableval}" in
3372 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3373 no
) sim_warnings
="-w";;
3374 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3376 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3377 echo "Setting warning flags = $sim_warnings" 6>&1
3383 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3384 if test "${enable_sim_xor_endian+set}" = set; then
3385 enableval
="$enable_sim_xor_endian"
3386 case "${enableval}" in
3387 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
3388 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
3389 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
3391 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
3392 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3398 # Make sure we can run config.sub.
3399 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3402 { (exit 1); exit 1; }; }
3404 echo "$as_me:$LINENO: checking build system type" >&5
3405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3406 if test "${ac_cv_build+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 ac_cv_build_alias
=$build_alias
3410 test -z "$ac_cv_build_alias" &&
3411 ac_cv_build_alias
=`$ac_config_guess`
3412 test -z "$ac_cv_build_alias" &&
3413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3415 { (exit 1); exit 1; }; }
3416 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3419 { (exit 1); exit 1; }; }
3422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3423 echo "${ECHO_T}$ac_cv_build" >&6
3425 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3426 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3427 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3430 echo "$as_me:$LINENO: checking host system type" >&5
3431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3432 if test "${ac_cv_host+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 ac_cv_host_alias
=$host_alias
3436 test -z "$ac_cv_host_alias" &&
3437 ac_cv_host_alias
=$ac_cv_build_alias
3438 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3441 { (exit 1); exit 1; }; }
3444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3445 echo "${ECHO_T}$ac_cv_host" >&6
3447 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3448 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3449 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3452 echo "$as_me:$LINENO: checking target system type" >&5
3453 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3454 if test "${ac_cv_target+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_cv_target_alias
=$target_alias
3458 test "x$ac_cv_target_alias" = "x" &&
3459 ac_cv_target_alias
=$ac_cv_host_alias
3460 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3462 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3463 { (exit 1); exit 1; }; }
3466 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3467 echo "${ECHO_T}$ac_cv_target" >&6
3468 target
=$ac_cv_target
3469 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3470 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3471 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3474 # The aliases save the names the user supplied, while $host etc.
3475 # will get canonicalized.
3476 test -n "$target_alias" &&
3477 test "$program_prefix$program_suffix$program_transform_name" = \
3479 program_prefix
=${target_alias}-
3480 test "$program_prefix" != NONE
&&
3481 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3482 # Use a double $ so make ignores it.
3483 test "$program_suffix" != NONE
&&
3484 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3485 # Double any \ or $. echo might interpret backslashes.
3486 # By default was `s,x,x', remove it if useless.
3487 cat <<\_ACEOF
>conftest.
sed
3488 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3490 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3494 .
${srcdir}/..
/..
/bfd
/configure.
host
3499 cat >>confdefs.h
<<\_ACEOF
3500 #define USE_WIN32API 1
3506 ac_config_headers
="$ac_config_headers config.h:config.in"
3510 ac_cpp
='$CPP $CPPFLAGS'
3511 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3514 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3515 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3516 # On Suns, sometimes $CPP names a directory.
3517 if test -n "$CPP" && test -d "$CPP"; then
3520 if test -z "$CPP"; then
3521 if test "${ac_cv_prog_CPP+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 # Double quotes because CPP needs to be expanded
3525 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3528 for ac_c_preproc_warn_flag
in '' yes
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
3536 cat >conftest.
$ac_ext <<_ACEOF
3539 cat confdefs.h
>>conftest.
$ac_ext
3540 cat >>conftest.
$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3543 # include <limits.h>
3545 # include <assert.h>
3549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1
>conftest.err
3554 cat conftest.err
>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev
/null
; then
3557 if test -s conftest.err
; then
3558 ac_cpp_err
=$ac_c_preproc_warn_flag
3559 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3566 if test -z "$ac_cpp_err"; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.
$ac_ext >&5
3572 # Broken: fails on valid input.
3575 rm -f conftest.err conftest.
$ac_ext
3577 # OK, works on sane cases. Now check whether non-existent headers
3578 # can be detected and how.
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1
>conftest.err
3592 cat conftest.err
>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev
/null
; then
3595 if test -s conftest.err
; then
3596 ac_cpp_err
=$ac_c_preproc_warn_flag
3597 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3604 if test -z "$ac_cpp_err"; then
3605 # Broken: success on invalid input.
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3611 # Passes both tests.
3615 rm -f conftest.err conftest.
$ac_ext
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.
$ac_ext
3620 if $ac_preproc_ok; then
3632 echo "$as_me:$LINENO: result: $CPP" >&5
3633 echo "${ECHO_T}$CPP" >&6
3635 for ac_c_preproc_warn_flag
in '' yes
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3650 # include <limits.h>
3652 # include <assert.h>
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3659 grep -v '^ *+' conftest.er1
>conftest.err
3661 cat conftest.err
>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev
/null
; then
3664 if test -s conftest.err
; then
3665 ac_cpp_err
=$ac_c_preproc_warn_flag
3666 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3673 if test -z "$ac_cpp_err"; then
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.
$ac_ext >&5
3679 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.
$ac_ext
3684 # OK, works on sane cases. Now check whether non-existent headers
3685 # can be detected and how.
3686 cat >conftest.
$ac_ext <<_ACEOF
3689 cat confdefs.h
>>conftest.
$ac_ext
3690 cat >>conftest.
$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3697 grep -v '^ *+' conftest.er1
>conftest.err
3699 cat conftest.err
>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev
/null
; then
3702 if test -s conftest.err
; then
3703 ac_cpp_err
=$ac_c_preproc_warn_flag
3704 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3711 if test -z "$ac_cpp_err"; then
3712 # Broken: success on invalid input.
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3718 # Passes both tests.
3722 rm -f conftest.err conftest.
$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.
$ac_ext
3727 if $ac_preproc_ok; then
3730 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3731 See \`config.log' for more details." >&5
3732 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&2;}
3734 { (exit 1); exit 1; }; }
3738 ac_cpp
='$CPP $CPPFLAGS'
3739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3744 echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3746 if test "${ac_cv_prog_egrep+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3750 then ac_cv_prog_egrep
='grep -E'
3751 else ac_cv_prog_egrep
='egrep'
3754 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3755 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3756 EGREP
=$ac_cv_prog_egrep
3759 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3761 if test "${ac_cv_header_stdc+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 cat >conftest.
$ac_ext <<_ACEOF
3767 cat confdefs.h
>>conftest.
$ac_ext
3768 cat >>conftest.
$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3783 rm -f conftest.
$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3787 grep -v '^ *+' conftest.er1
>conftest.err
3789 cat conftest.err
>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try
='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try
='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_cv_header_stdc
=yes
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.
$ac_ext >&5
3810 ac_cv_header_stdc
=no
3812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3814 if test $ac_cv_header_stdc = yes; then
3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3816 cat >conftest.
$ac_ext <<_ACEOF
3819 cat confdefs.h
>>conftest.
$ac_ext
3820 cat >>conftest.
$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 $EGREP "memchr" >/dev
/null
2>&1; then
3829 ac_cv_header_stdc
=no
3835 if test $ac_cv_header_stdc = yes; then
3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "free" >/dev
/null
2>&1; then
3850 ac_cv_header_stdc
=no
3856 if test $ac_cv_header_stdc = yes; then
3857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3858 if test "$cross_compiling" = yes; then
3861 cat >conftest.
$ac_ext <<_ACEOF
3864 cat confdefs.h
>>conftest.
$ac_ext
3865 cat >>conftest.
$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3868 #if ((' ' & 0x0FF) == 0x020)
3869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872 # define ISLOWER(c) \
3873 (('a' <= (c) && (c) <= 'i') \
3874 || ('j' <= (c) && (c) <= 'r') \
3875 || ('s' <= (c) && (c) <= 'z'))
3876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3884 for (i = 0; i < 256; i++)
3885 if (XOR (islower (i), ISLOWER (i))
3886 || toupper (i) != TOUPPER (i))
3891 rm -f conftest
$ac_exeext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3904 echo "$as_me: program exited with status $ac_status" >&5
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.
$ac_ext >&5
3909 ac_cv_header_stdc
=no
3911 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3915 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3916 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3917 if test $ac_cv_header_stdc = yes; then
3919 cat >>confdefs.h
<<\_ACEOF
3920 #define STDC_HEADERS 1
3925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3935 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3936 inttypes.h stdint.h unistd.h
3938 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939 echo "$as_me:$LINENO: checking for $ac_header" >&5
3940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 cat >conftest.
$ac_ext <<_ACEOF
3947 cat confdefs.h
>>conftest.
$ac_ext
3948 cat >>conftest.
$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3952 #include <$ac_header>
3954 rm -f conftest.
$ac_objext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>conftest.er1
3958 grep -v '^ *+' conftest.er1
>conftest.err
3960 cat conftest.err
>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try
='test -z "$ac_c_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try
='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 eval "$as_ac_Header=yes"
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.
$ac_ext >&5
3981 eval "$as_ac_Header=no"
3983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988 cat >>confdefs.h
<<_ACEOF
3989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3998 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
3999 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4000 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 cat >conftest.
$ac_ext <<_ACEOF
4006 cat confdefs.h
>>conftest.
$ac_ext
4007 cat >>conftest.
$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4013 static struct stat ac_aggr;
4014 if (ac_aggr.st_blksize)
4020 rm -f conftest.
$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4024 grep -v '^ *+' conftest.er1
>conftest.err
4026 cat conftest.err
>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try
='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try
='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_member_struct_stat_st_blksize
=yes
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.
$ac_ext >&5
4047 cat >conftest.
$ac_ext <<_ACEOF
4050 cat confdefs.h
>>conftest.
$ac_ext
4051 cat >>conftest.
$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 $ac_includes_default
4057 static struct stat ac_aggr;
4058 if (sizeof ac_aggr.st_blksize)
4064 rm -f conftest.
$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1
>conftest.err
4070 cat conftest.err
>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try
='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try
='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_member_struct_stat_st_blksize
=yes
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.
$ac_ext >&5
4091 ac_cv_member_struct_stat_st_blksize
=no
4093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4099 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4101 cat >>confdefs.h
<<_ACEOF
4102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4106 cat >>confdefs.h
<<\_ACEOF
4107 #define HAVE_ST_BLKSIZE 1
4113 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4114 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4115 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 cat >conftest.
$ac_ext <<_ACEOF
4121 cat confdefs.h
>>conftest.
$ac_ext
4122 cat >>conftest.
$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 $ac_includes_default
4128 static struct stat ac_aggr;
4129 if (ac_aggr.st_blocks)
4135 rm -f conftest.
$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1
>conftest.err
4141 cat conftest.err
>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try
='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try
='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_member_struct_stat_st_blocks
=yes
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.
$ac_ext >&5
4162 cat >conftest.
$ac_ext <<_ACEOF
4165 cat confdefs.h
>>conftest.
$ac_ext
4166 cat >>conftest.
$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4172 static struct stat ac_aggr;
4173 if (sizeof ac_aggr.st_blocks)
4179 rm -f conftest.
$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1
>conftest.err
4185 cat conftest.err
>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try
='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try
='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_member_struct_stat_st_blocks
=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4206 ac_cv_member_struct_stat_st_blocks
=no
4208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4212 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4213 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4214 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4216 cat >>confdefs.h
<<_ACEOF
4217 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4221 cat >>confdefs.h
<<\_ACEOF
4222 #define HAVE_ST_BLOCKS 1
4227 "fileblocks.$ac_objext" | \
4228 *" fileblocks.$ac_objext" | \
4229 "fileblocks.$ac_objext "* | \
4230 *" fileblocks.$ac_objext "* ) ;;
4231 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
4238 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4239 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4240 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 cat >conftest.
$ac_ext <<_ACEOF
4246 cat confdefs.h
>>conftest.
$ac_ext
4247 cat >>conftest.
$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 $ac_includes_default
4253 static struct stat ac_aggr;
4254 if (ac_aggr.st_rdev)
4260 rm -f conftest.
$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1
>conftest.err
4266 cat conftest.err
>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try
='test -z "$ac_c_werror_flag"
4270 || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try
='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 ac_cv_member_struct_stat_st_rdev
=yes
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.
$ac_ext >&5
4287 cat >conftest.
$ac_ext <<_ACEOF
4290 cat confdefs.h
>>conftest.
$ac_ext
4291 cat >>conftest.
$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4297 static struct stat ac_aggr;
4298 if (sizeof ac_aggr.st_rdev)
4304 rm -f conftest.
$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1
>conftest.err
4310 cat conftest.err
>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try
='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try
='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_cv_member_struct_stat_st_rdev
=yes
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.
$ac_ext >&5
4331 ac_cv_member_struct_stat_st_rdev
=no
4333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4337 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4338 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4339 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4341 cat >>confdefs.h
<<_ACEOF
4342 #define HAVE_STRUCT_STAT_ST_RDEV 1
4346 cat >>confdefs.h
<<\_ACEOF
4347 #define HAVE_ST_RDEV 1
4353 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4355 if test "${ac_cv_struct_tm+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 cat >conftest.
$ac_ext <<_ACEOF
4361 cat confdefs.h
>>conftest.
$ac_ext
4362 cat >>conftest.
$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4370 struct tm *tp; tp->tm_sec;
4375 rm -f conftest.
$ac_objext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>conftest.er1
4379 grep -v '^ *+' conftest.er1
>conftest.err
4381 cat conftest.err
>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try
='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try
='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_struct_tm
=time.h
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.
$ac_ext >&5
4402 ac_cv_struct_tm
=sys
/time.h
4404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4406 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4407 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4408 if test $ac_cv_struct_tm = sys
/time.h
; then
4410 cat >>confdefs.h
<<\_ACEOF
4411 #define TM_IN_SYS_TIME 1
4416 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4417 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4418 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 cat >conftest.
$ac_ext <<_ACEOF
4424 cat confdefs.h
>>conftest.
$ac_ext
4425 cat >>conftest.
$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <$ac_cv_struct_tm>
4434 static struct tm ac_aggr;
4435 if (ac_aggr.tm_zone)
4441 rm -f conftest.
$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1
>conftest.err
4447 cat conftest.err
>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try
='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try
='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_cv_member_struct_tm_tm_zone
=yes
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.
$ac_ext >&5
4468 cat >conftest.
$ac_ext <<_ACEOF
4471 cat confdefs.h
>>conftest.
$ac_ext
4472 cat >>conftest.
$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <sys/types.h>
4475 #include <$ac_cv_struct_tm>
4481 static struct tm ac_aggr;
4482 if (sizeof ac_aggr.tm_zone)
4488 rm -f conftest.
$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1
>conftest.err
4494 cat conftest.err
>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try
='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_member_struct_tm_tm_zone
=yes
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.
$ac_ext >&5
4515 ac_cv_member_struct_tm_tm_zone
=no
4517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4522 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4523 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4525 cat >>confdefs.h
<<_ACEOF
4526 #define HAVE_STRUCT_TM_TM_ZONE 1
4532 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4534 cat >>confdefs.h
<<\_ACEOF
4535 #define HAVE_TM_ZONE 1
4539 echo "$as_me:$LINENO: checking for tzname" >&5
4540 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4541 if test "${ac_cv_var_tzname+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.
$ac_ext <<_ACEOF
4547 cat confdefs.h
>>conftest.
$ac_ext
4548 cat >>conftest.
$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4551 #ifndef tzname /* For SGI. */
4552 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4563 rm -f conftest.
$ac_objext conftest
$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1
>conftest.err
4569 cat conftest.err
>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try
='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try
='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_var_tzname
=yes
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.
$ac_ext >&5
4592 rm -f conftest.err conftest.
$ac_objext \
4593 conftest
$ac_exeext conftest.
$ac_ext
4595 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4596 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4597 if test $ac_cv_var_tzname = yes; then
4599 cat >>confdefs.h
<<\_ACEOF
4600 #define HAVE_TZNAME 1
4607 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4608 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4609 if test "${ac_cv_type_uid_t+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 cat >conftest.
$ac_ext <<_ACEOF
4615 cat confdefs.h
>>conftest.
$ac_ext
4616 cat >>conftest.
$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 #include <sys/types.h>
4621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622 $EGREP "uid_t" >/dev
/null
2>&1; then
4623 ac_cv_type_uid_t
=yes
4630 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4631 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4632 if test $ac_cv_type_uid_t = no
; then
4634 cat >>confdefs.h
<<\_ACEOF
4639 cat >>confdefs.h
<<\_ACEOF
4645 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4646 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4647 if test "${ac_cv_type_getgroups+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test "$cross_compiling" = yes; then
4651 ac_cv_type_getgroups
=cross
4653 cat >conftest.
$ac_ext <<_ACEOF
4656 cat confdefs.h
>>conftest.
$ac_ext
4657 cat >>conftest.
$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 /* Thanks to Mike Rendell for this test. */
4660 #include <sys/types.h>
4663 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4670 union { gid_t gval; long lval; } val;
4673 for (i = 0; i < NGID; i++)
4674 gidset[i] = val.gval;
4675 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4677 /* Exit non-zero if getgroups seems to require an array of ints. This
4678 happens when gid_t is short but getgroups modifies an array of ints. */
4679 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4682 rm -f conftest
$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_cv_type_getgroups
=gid_t
4695 echo "$as_me: program exited with status $ac_status" >&5
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.
$ac_ext >&5
4700 ac_cv_type_getgroups
=int
4702 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4704 if test $ac_cv_type_getgroups = cross
; then
4705 cat >conftest.
$ac_ext <<_ACEOF
4708 cat confdefs.h
>>conftest.
$ac_ext
4709 cat >>conftest.
$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
4716 ac_cv_type_getgroups
=gid_t
4718 ac_cv_type_getgroups
=int
4724 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4725 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4727 cat >>confdefs.h
<<_ACEOF
4728 #define GETGROUPS_T $ac_cv_type_getgroups
4732 echo "$as_me:$LINENO: checking for mode_t" >&5
4733 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4734 if test "${ac_cv_type_mode_t+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.
$ac_ext <<_ACEOF
4740 cat confdefs.h
>>conftest.
$ac_ext
4741 cat >>conftest.
$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 $ac_includes_default
4749 if (sizeof (mode_t))
4755 rm -f conftest.
$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4759 grep -v '^ *+' conftest.er1
>conftest.err
4761 cat conftest.err
>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try
='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try
='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_type_mode_t
=yes
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.
$ac_ext >&5
4782 ac_cv_type_mode_t
=no
4784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4786 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4787 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4788 if test $ac_cv_type_mode_t = yes; then
4792 cat >>confdefs.h
<<_ACEOF
4798 echo "$as_me:$LINENO: checking for off_t" >&5
4799 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4800 if test "${ac_cv_type_off_t+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 cat >conftest.
$ac_ext <<_ACEOF
4806 cat confdefs.h
>>conftest.
$ac_ext
4807 cat >>conftest.
$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4821 rm -f conftest.
$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>conftest.er1
4825 grep -v '^ *+' conftest.er1
>conftest.err
4827 cat conftest.err
>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try
='test -z "$ac_c_werror_flag"
4831 || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try
='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 ac_cv_type_off_t
=yes
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.
$ac_ext >&5
4850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4852 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4853 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4854 if test $ac_cv_type_off_t = yes; then
4858 cat >>confdefs.h
<<_ACEOF
4864 echo "$as_me:$LINENO: checking for pid_t" >&5
4865 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4866 if test "${ac_cv_type_pid_t+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 $ac_includes_default
4887 rm -f conftest.
$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1
>conftest.err
4893 cat conftest.err
>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try
='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try
='test -s conftest.$ac_objext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 ac_cv_type_pid_t
=yes
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.
$ac_ext >&5
4916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4918 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4919 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4920 if test $ac_cv_type_pid_t = yes; then
4924 cat >>confdefs.h
<<_ACEOF
4930 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4931 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4932 if test "${ac_cv_type_signal+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.
$ac_ext <<_ACEOF
4938 cat confdefs.h
>>conftest.
$ac_ext
4939 cat >>conftest.
$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <sys/types.h>
4947 extern "C" void (*signal (int, void (*)(int)))(int);
4949 void (*signal ()) ();
4960 rm -f conftest.
$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1
>conftest.err
4966 cat conftest.err
>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try
='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try
='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_type_signal
=void
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4987 ac_cv_type_signal
=int
4989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4991 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4992 echo "${ECHO_T}$ac_cv_type_signal" >&6
4994 cat >>confdefs.h
<<_ACEOF
4995 #define RETSIGTYPE $ac_cv_type_signal
4999 echo "$as_me:$LINENO: checking for size_t" >&5
5000 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5001 if test "${ac_cv_type_size_t+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 cat >conftest.
$ac_ext <<_ACEOF
5007 cat confdefs.h
>>conftest.
$ac_ext
5008 cat >>conftest.
$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5016 if (sizeof (size_t))
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try
='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_type_size_t
=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5049 ac_cv_type_size_t
=no
5051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5053 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5054 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5055 if test $ac_cv_type_size_t = yes; then
5059 cat >>confdefs.h
<<_ACEOF
5060 #define size_t unsigned
5065 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5066 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5067 if test "${ac_cv_type_uid_t+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "uid_t" >/dev
/null
2>&1; then
5081 ac_cv_type_uid_t
=yes
5088 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5089 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5090 if test $ac_cv_type_uid_t = no
; then
5092 cat >>confdefs.h
<<\_ACEOF
5097 cat >>confdefs.h
<<\_ACEOF
5154 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
5156 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5157 echo "$as_me:$LINENO: checking for $ac_func" >&5
5158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5159 if eval "test \"\${$as_ac_var+set}\" = set"; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 cat >conftest.
$ac_ext <<_ACEOF
5165 cat confdefs.h
>>conftest.
$ac_ext
5166 cat >>conftest.
$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5170 #define $ac_func innocuous_$ac_func
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func (); below.
5174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 <limits.h> exists even on freestanding compilers. */
5178 # include <limits.h>
5180 # include <assert.h>
5185 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5193 /* The GNU C library defines this for functions which it implements
5194 to always fail with ENOSYS. Some functions are actually named
5195 something starting with __ and the normal name is an alias. */
5196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5199 char (*f) () = $ac_func;
5208 return f != $ac_func;
5213 rm -f conftest.
$ac_objext conftest
$ac_exeext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>conftest.er1
5217 grep -v '^ *+' conftest.er1
>conftest.err
5219 cat conftest.err
>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try
='test -z "$ac_c_werror_flag"
5223 || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try
='test -s conftest$ac_exeext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 eval "$as_ac_var=yes"
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.
$ac_ext >&5
5240 eval "$as_ac_var=no"
5242 rm -f conftest.err conftest.
$ac_objext \
5243 conftest
$ac_exeext conftest.
$ac_ext
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5247 if test `eval echo '${'$as_ac_var'}'` = yes; then
5248 cat >>confdefs.h
<<_ACEOF
5249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274 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
5276 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5278 echo "$as_me:$LINENO: checking for $ac_header" >&5
5279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5286 # Is the header compilable?
5287 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5289 cat >conftest.
$ac_ext <<_ACEOF
5292 cat confdefs.h
>>conftest.
$ac_ext
5293 cat >>conftest.
$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5296 #include <$ac_header>
5298 rm -f conftest.
$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1
>conftest.err
5304 cat conftest.err
>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try
='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try
='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_header_compiler
=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.
$ac_ext >&5
5325 ac_header_compiler
=no
5327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5329 echo "${ECHO_T}$ac_header_compiler" >&6
5331 # Is the header present?
5332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5334 cat >conftest.
$ac_ext <<_ACEOF
5337 cat confdefs.h
>>conftest.
$ac_ext
5338 cat >>conftest.
$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <$ac_header>
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5345 grep -v '^ *+' conftest.er1
>conftest.err
5347 cat conftest.err
>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev
/null
; then
5350 if test -s conftest.err
; then
5351 ac_cpp_err
=$ac_c_preproc_warn_flag
5352 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5359 if test -z "$ac_cpp_err"; then
5360 ac_header_preproc
=yes
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.
$ac_ext >&5
5365 ac_header_preproc
=no
5367 rm -f conftest.err conftest.
$ac_ext
5368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5369 echo "${ECHO_T}$ac_header_preproc" >&6
5371 # So? What about this header?
5372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5378 ac_header_preproc
=yes
5381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5395 ## ------------------------------------------ ##
5396 ## Report this to the AC_PACKAGE_NAME lists. ##
5397 ## ------------------------------------------ ##
5400 sed "s/^/$as_me: WARNING: /" >&2
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 eval "$as_ac_Header=\$ac_header_preproc"
5410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5415 cat >>confdefs.h
<<_ACEOF
5416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5429 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5430 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5431 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5432 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 cat >conftest.
$ac_ext <<_ACEOF
5439 cat confdefs.h
>>conftest.
$ac_ext
5440 cat >>conftest.
$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5454 rm -f conftest.
$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5458 grep -v '^ *+' conftest.er1
>conftest.err
5460 cat conftest.err
>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try
='test -z "$ac_c_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try
='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 eval "$as_ac_Header=yes"
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.
$ac_ext >&5
5481 eval "$as_ac_Header=no"
5483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5488 cat >>confdefs.h
<<_ACEOF
5489 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5492 ac_header_dirent
=$ac_hdr; break
5496 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5497 if test $ac_header_dirent = dirent.h
; then
5498 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5499 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5500 if test "${ac_cv_search_opendir+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_func_search_save_LIBS
=$LIBS
5504 ac_cv_search_opendir
=no
5505 cat >conftest.
$ac_ext <<_ACEOF
5508 cat confdefs.h
>>conftest.
$ac_ext
5509 cat >>conftest.
$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5512 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5527 rm -f conftest.
$ac_objext conftest
$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1
>conftest.err
5533 cat conftest.err
>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try
='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try
='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_search_opendir
="none required"
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.
$ac_ext >&5
5555 rm -f conftest.err conftest.
$ac_objext \
5556 conftest
$ac_exeext conftest.
$ac_ext
5557 if test "$ac_cv_search_opendir" = no
; then
5558 for ac_lib
in dir
; do
5559 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5560 cat >conftest.
$ac_ext <<_ACEOF
5563 cat confdefs.h
>>conftest.
$ac_ext
5564 cat >>conftest.
$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5582 rm -f conftest.
$ac_objext conftest
$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>conftest.er1
5586 grep -v '^ *+' conftest.er1
>conftest.err
5588 cat conftest.err
>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try
='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try
='test -s conftest$ac_exeext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_search_opendir
="-l$ac_lib"
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.
$ac_ext >&5
5611 rm -f conftest.err conftest.
$ac_objext \
5612 conftest
$ac_exeext conftest.
$ac_ext
5615 LIBS
=$ac_func_search_save_LIBS
5617 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5618 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5619 if test "$ac_cv_search_opendir" != no
; then
5620 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5625 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5627 if test "${ac_cv_search_opendir+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 ac_func_search_save_LIBS
=$LIBS
5631 ac_cv_search_opendir
=no
5632 cat >conftest.
$ac_ext <<_ACEOF
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5639 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5654 rm -f conftest.
$ac_objext conftest
$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1
>conftest.err
5660 cat conftest.err
>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try
='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try
='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_search_opendir
="none required"
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.
$ac_ext >&5
5682 rm -f conftest.err conftest.
$ac_objext \
5683 conftest
$ac_exeext conftest.
$ac_ext
5684 if test "$ac_cv_search_opendir" = no
; then
5686 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5709 rm -f conftest.
$ac_objext conftest
$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1
>conftest.err
5715 cat conftest.err
>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try
='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try
='test -s conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 ac_cv_search_opendir
="-l$ac_lib"
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.
$ac_ext >&5
5738 rm -f conftest.err conftest.
$ac_objext \
5739 conftest
$ac_exeext conftest.
$ac_ext
5742 LIBS
=$ac_func_search_save_LIBS
5744 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5745 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5746 if test "$ac_cv_search_opendir" != no
; then
5747 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5755 echo "$as_me:$LINENO: checking for struct termios" >&5
5756 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5757 if test "${ac_cv_termios_struct+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.
$ac_ext <<_ACEOF
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5767 #include <sys/termios.h>
5771 static struct termios x;
5781 rm -f conftest.
$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5785 grep -v '^ *+' conftest.er1
>conftest.err
5787 cat conftest.err
>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try
='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try
='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_termios_struct
=yes
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.
$ac_ext >&5
5808 ac_cv_termios_struct
=no
5810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5814 echo "${ECHO_T}$ac_cv_termios_struct" >&6
5815 if test $ac_cv_termios_struct = yes; then
5816 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5819 if test "$ac_cv_termios_struct" = "yes"; then
5820 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5821 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5822 if test "${ac_cv_termios_cline+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 cat >conftest.
$ac_ext <<_ACEOF
5828 cat confdefs.h
>>conftest.
$ac_ext
5829 cat >>conftest.
$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <sys/types.h>
5832 #include <sys/termios.h>
5836 static struct termios x; x.c_line = 0;
5841 rm -f conftest.
$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1
>conftest.err
5847 cat conftest.err
>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try
='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try
='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_termios_cline
=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.
$ac_ext >&5
5868 ac_cv_termios_cline
=no
5870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5875 echo "${ECHO_T}$ac_cv_termios_cline" >&6
5876 if test $ac_cv_termios_cline = yes; then
5877 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
5880 ac_cv_termios_cline
=no
5883 if test "$ac_cv_termios_struct" != "yes"; then
5884 echo "$as_me:$LINENO: checking for struct termio" >&5
5885 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5886 if test "${ac_cv_termio_struct+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/termio.h>
5900 static struct termio x;
5910 rm -f conftest.
$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1
>conftest.err
5916 cat conftest.err
>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try
='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try
='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_termio_struct
=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.
$ac_ext >&5
5937 ac_cv_termio_struct
=no
5939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5942 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
5943 echo "${ECHO_T}$ac_cv_termio_struct" >&6
5944 if test $ac_cv_termio_struct = yes; then
5945 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5948 ac_cv_termio_struct
=no
5951 if test "$ac_cv_termio_struct" = "yes"; then
5952 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
5953 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
5954 if test "${ac_cv_termio_cline+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.
$ac_ext <<_ACEOF
5960 cat confdefs.h
>>conftest.
$ac_ext
5961 cat >>conftest.
$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 #include <sys/termio.h>
5968 static struct termio x; x.c_line = 0;
5973 rm -f conftest.
$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1
>conftest.err
5979 cat conftest.err
>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try
='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try
='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_termio_cline
=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6000 ac_cv_termio_cline
=no
6002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6007 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6008 if test $ac_cv_termio_cline = yes; then
6009 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
6012 ac_cv_termio_cline
=no
6015 echo "$as_me:$LINENO: checking for struct statfs" >&5
6016 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6017 if test "${ac_cv_struct_statfs+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 cat >conftest.
$ac_ext <<_ACEOF
6023 cat confdefs.h
>>conftest.
$ac_ext
6024 cat >>conftest.
$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <sys/types.h>
6027 #ifdef HAVE_SYS_PARAM_H
6028 #include <sys/param.h>
6030 #ifdef HAVE_SYS_MOUNT_H
6031 #include <sys/mount.h>
6033 #ifdef HAVE_SYS_VFS_H
6034 #include <sys/vfs.h>
6036 #ifdef HAVE_SYS_STATFS_H
6037 #include <sys/statfs.h>
6042 static struct statfs s;
6047 rm -f conftest.
$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>conftest.er1
6051 grep -v '^ *+' conftest.er1
>conftest.err
6053 cat conftest.err
>&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try
='test -z "$ac_c_werror_flag"
6057 || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try
='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_struct_statfs
=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.
$ac_ext >&5
6074 ac_cv_struct_statfs
=no
6076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6079 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6080 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6081 if test $ac_cv_struct_statfs = yes; then
6083 cat >>confdefs.h
<<\_ACEOF
6084 #define HAVE_STRUCT_STATFS 1
6089 echo "$as_me:$LINENO: checking for long long" >&5
6090 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6091 if test "${ac_cv_type_long_long+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 cat >conftest.
$ac_ext <<_ACEOF
6097 cat confdefs.h
>>conftest.
$ac_ext
6098 cat >>conftest.
$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6104 if ((long long *) 0)
6106 if (sizeof (long long))
6112 rm -f conftest.
$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6116 grep -v '^ *+' conftest.er1
>conftest.err
6118 cat conftest.err
>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try
='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try
='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_type_long_long
=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.
$ac_ext >&5
6139 ac_cv_type_long_long
=no
6141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6144 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6145 if test $ac_cv_type_long_long = yes; then
6147 cat >>confdefs.h
<<_ACEOF
6148 #define HAVE_LONG_LONG 1
6156 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6157 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6158 if test "${ac_cv_devzero+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test "$cross_compiling" = yes; then
6164 cat >conftest.
$ac_ext <<_ACEOF
6167 cat confdefs.h
>>conftest.
$ac_ext
6168 cat >>conftest.
$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6174 int fd = open ("/dev/zero", O_RDONLY);
6177 for (i = 0; i < sizeof (buf); i++)
6179 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6181 for (i = 0; i < sizeof (buf); i++)
6187 rm -f conftest
$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6200 echo "$as_me: program exited with status $ac_status" >&5
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.
$ac_ext >&5
6207 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6211 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6212 echo "${ECHO_T}$ac_cv_devzero" >&6
6213 if test $ac_cv_devzero = yes; then
6214 sim_devzero
="-DHAVE_DEVZERO"
6219 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6220 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6221 if test -f "${srcdir}/../common/callback.c"; then
6222 echo "$as_me:$LINENO: result: yes" >&5
6223 echo "${ECHO_T}yes" >&6
6224 sim_callback
="callback.o targ-map.o"
6225 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
6227 echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6233 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6234 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6235 if test -f "${srcdir}/../common/sim-fpu.c"; then
6236 echo "$as_me:$LINENO: result: yes" >&5
6237 echo "${ECHO_T}yes" >&6
6238 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6241 echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6257 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6258 echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6260 if test "${ac_cv_prog_RANLIB+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 if test -n "$RANLIB"; then
6264 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir
=.
6271 for ac_exec_ext
in '' $ac_executable_extensions; do
6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 RANLIB
=$ac_cv_prog_RANLIB
6283 if test -n "$RANLIB"; then
6284 echo "$as_me:$LINENO: result: $RANLIB" >&5
6285 echo "${ECHO_T}$RANLIB" >&6
6287 echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6
6292 if test -z "$ac_cv_prog_RANLIB"; then
6293 ac_ct_RANLIB
=$RANLIB
6294 # Extract the first word of "ranlib", so it can be a program name with args.
6295 set dummy ranlib
; ac_word
=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 if test -n "$ac_ct_RANLIB"; then
6302 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir
=.
6309 for ac_exec_ext
in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6321 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6322 if test -n "$ac_ct_RANLIB"; then
6323 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6324 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6326 echo "$as_me:$LINENO: result: no" >&5
6327 echo "${ECHO_T}no" >&6
6330 RANLIB
=$ac_ct_RANLIB
6332 RANLIB
="$ac_cv_prog_RANLIB"
6380 ac_config_files
="$ac_config_files Makefile"
6381 ac_config_commands
="$ac_config_commands default"
6382 cat >confcache
<<\_ACEOF
6383 # This file is a shell script that caches the results of configure
6384 # tests run on this system so they can be shared between configure
6385 # scripts and configure runs, see configure's option --config-cache.
6386 # It is not useful on other systems. If it contains results you don't
6387 # want to keep, you may remove or edit it.
6389 # config.status only pays attention to the cache file if you give it
6390 # the --recheck option to rerun configure.
6392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6398 # The following way of writing the cache mishandles newlines in values,
6399 # but we know of no workaround that is simple, portable, and efficient.
6400 # So, don't put newlines in cache variables' values.
6401 # Ultrix sh set writes to stderr and can't be redirected directly,
6402 # and sets the high bit in the cache file unless we assign to the vars.
6405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6407 # `set' does not quote correctly, so add quotes (double-quote
6408 # substitution turns \\\\ into \\, and sed turns \\ into \).
6411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6414 # `set' quotes correctly as required by POSIX, so do not add quotes.
6416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6427 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6428 if test -w $cache_file; then
6429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6430 cat confcache
>$cache_file
6432 echo "not updating unwritable cache $cache_file"
6437 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6438 # Let make expand exec_prefix.
6439 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6441 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6442 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6443 # trailing colons and then remove the whole line if VPATH becomes empty
6444 # (actually we leave an empty line to preserve line numbers).
6445 if test "x$srcdir" = x.
; then
6446 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6447 s/:*\$(srcdir):*/:/;
6448 s/:*\${srcdir}:*/:/;
6450 s/^\([^=]*=[ ]*\):*/\1/;
6456 DEFS
=-DHAVE_CONFIG_H
6460 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6461 # 1. Remove the extension, and $U if already installed.
6462 ac_i
=`echo "$ac_i" |
6463 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6465 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6466 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6470 LTLIBOBJS
=$ac_ltlibobjs
6474 : ${CONFIG_STATUS=./config.status}
6475 ac_clean_files_save
=$ac_clean_files
6476 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6477 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6478 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6479 cat >$CONFIG_STATUS <<_ACEOF
6481 # Generated by $as_me.
6482 # Run this file to recreate the current configuration.
6483 # Compiler output produced by configure, useful for debugging
6484 # configure, is in config.log if it exists.
6489 SHELL=\${CONFIG_SHELL-$SHELL}
6492 cat >>$CONFIG_STATUS <<\_ACEOF
6493 ## --------------------- ##
6494 ## M4sh Initialization. ##
6495 ## --------------------- ##
6497 # Be Bourne compatible
6498 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6502 # is contrary to our usage. Disable this feature.
6503 alias -g '${1+"$@"}'='"$@"'
6504 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6507 DUALCASE
=1; export DUALCASE
# for MKS sh
6509 # Support unset when possible.
6510 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6517 # Work around bugs in pre-3.0 UWIN ksh.
6518 $as_unset ENV MAIL MAILPATH
6525 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6526 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6527 LC_TELEPHONE LC_TIME
6529 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6530 eval $as_var=C
; export $as_var
6536 # Required to use basename.
6537 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6543 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6544 as_basename
=basename
6550 # Name of the executable.
6551 as_me
=`$as_basename "$0" ||
6552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6553 X"$0" : 'X\(//\)$' \| \
6554 X"$0" : 'X\(/\)$' \| \
6555 . : '\(.\)' 2>/dev/null ||
6557 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6558 /^X\/\(\/\/\)$/{ s//\1/; q; }
6559 /^X\/\(\/\).*/{ s//\1/; q; }
6563 # PATH needs CR, and LINENO needs CR and PATH.
6564 # Avoid depending upon Character Ranges.
6565 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6566 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6567 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6568 as_cr_digits
='0123456789'
6569 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6571 # The user is always right.
6572 if test "${PATH_SEPARATOR+set}" != set; then
6573 echo "#! /bin/sh" >conf$$.sh
6574 echo "exit 0" >>conf$$.sh
6576 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6587 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6588 test "x$as_lineno_1" != "x$as_lineno_2" &&
6589 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6590 # Find who we are. Look in the path if we contain no path at all
6593 *[\\/]* ) as_myself
=$0 ;;
6594 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir
=.
6599 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6604 # We did not find ourselves, most probably we were run as `sh COMMAND'
6605 # in which case we are not to be found in the path.
6606 if test "x$as_myself" = x
; then
6609 if test ! -f "$as_myself"; then
6610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6611 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6612 { (exit 1); exit 1; }; }
6614 case $CONFIG_SHELL in
6616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6617 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6620 test -z "$as_dir" && as_dir
=.
6621 for as_base
in sh bash ksh sh5
; do
6624 if ("$as_dir/$as_base" -c '
6627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6628 test "x$as_lineno_1" != "x$as_lineno_2" &&
6629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6630 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6631 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6632 CONFIG_SHELL
=$as_dir/$as_base
6634 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6642 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6643 # uniformly replaced by the line number. The first 'sed' inserts a
6644 # line-number line before each line; the second 'sed' does the real
6645 # work. The second script uses 'N' to pair each line-number line
6646 # with the numbered line, and appends trailing '-' during
6647 # substitution so that $LINENO is not a special case at line end.
6648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6649 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6650 sed '=' <$as_myself |
6655 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6658 s,^['$as_cr_digits']*\n,,
6660 chmod +x
$as_me.lineno ||
6661 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6662 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6663 { (exit 1); exit 1; }; }
6665 # Don't try to exec as it changes $[0], causing all sort of problems
6666 # (the dirname of $[0] is not the place where we might find the
6667 # original and so on. Autoconf is especially sensible to this).
6669 # Exit status is that of the last command.
6674 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6675 *c
*,-n*) ECHO_N
= ECHO_C
='
6677 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6678 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6681 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6687 rm -f conf$$ conf$$.exe conf$$.
file
6689 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6690 # We could just check for DJGPP; but this test a) works b) is more generic
6691 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6692 if test -f conf$$.exe
; then
6693 # Don't use ln at all; we don't have any links
6698 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6703 rm -f conf$$ conf$$.exe conf$$.
file
6705 if mkdir
-p .
2>/dev
/null
; then
6708 test -d .
/-p && rmdir .
/-p
6712 as_executable_p
="test -f"
6714 # Sed expression to map a string onto a valid CPP name.
6715 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6717 # Sed expression to map a string onto a valid variable name.
6718 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6722 # We need space, tab and new line, in precisely that order.
6732 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6733 # report actual input values of CONFIG_FILES etc. instead of their
6734 # values after options handling. Logging --version etc. is OK.
6738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6739 ## Running $as_me. ##
6744 This file was extended by $as_me, which was
6745 generated by GNU Autoconf 2.59. Invocation command line was
6747 CONFIG_FILES = $CONFIG_FILES
6748 CONFIG_HEADERS = $CONFIG_HEADERS
6749 CONFIG_LINKS = $CONFIG_LINKS
6750 CONFIG_COMMANDS = $CONFIG_COMMANDS
6754 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6758 # Files that config.status was made for.
6759 if test -n "$ac_config_files"; then
6760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6763 if test -n "$ac_config_headers"; then
6764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6767 if test -n "$ac_config_links"; then
6768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6771 if test -n "$ac_config_commands"; then
6772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6775 cat >>$CONFIG_STATUS <<\_ACEOF
6778 \`$as_me' instantiates files from templates according to the
6779 current configuration.
6781 Usage: $0 [OPTIONS] [FILE]...
6783 -h, --help print this help, then exit
6784 -V, --version print version number, then exit
6785 -q, --quiet do not print progress messages
6786 -d, --debug don't remove temporary files
6787 --recheck update $as_me by reconfiguring in the same conditions
6788 --file=FILE[:TEMPLATE]
6789 instantiate the configuration file FILE
6790 --header=FILE[:TEMPLATE]
6791 instantiate the configuration header FILE
6793 Configuration files:
6796 Configuration headers:
6799 Configuration commands:
6802 Report bugs to <bug-autoconf@gnu.org>."
6805 cat >>$CONFIG_STATUS <<_ACEOF
6808 configured by $0, generated by GNU Autoconf 2.59,
6809 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6811 Copyright (C) 2003 Free Software Foundation, Inc.
6812 This config.status script is free software; the Free Software Foundation
6813 gives unlimited permission to copy, distribute and modify it."
6818 cat >>$CONFIG_STATUS <<\_ACEOF
6819 # If no file are specified by the user, then we need to provide default
6820 # value. By we need to know if files were specified by the user.
6826 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6827 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6835 *) # This is not an option, so the user has probably given explicit
6838 ac_need_defaults
=false
;;
6842 # Handling of the options.
6844 cat >>$CONFIG_STATUS <<\_ACEOF
6845 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6847 --version |
--vers* |
-V )
6848 echo "$ac_cs_version"; exit 0 ;;
6850 # Conflict between --help and --header
6851 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6852 Try \`$0 --help' for more information." >&5
6853 echo "$as_me: error: ambiguous option: $1
6854 Try \`$0 --help' for more information." >&2;}
6855 { (exit 1); exit 1; }; };;
6856 --help |
--hel |
-h )
6857 echo "$ac_cs_usage"; exit 0 ;;
6858 --debug |
--d* |
-d )
6860 --file |
--fil |
--fi |
--f )
6862 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6863 ac_need_defaults
=false
;;
6864 --header |
--heade |
--head |
--hea )
6866 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6867 ac_need_defaults
=false
;;
6868 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6869 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6873 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6874 Try \`$0 --help' for more information." >&5
6875 echo "$as_me: error: unrecognized option: $1
6876 Try \`$0 --help' for more information." >&2;}
6877 { (exit 1); exit 1; }; } ;;
6879 *) ac_config_targets
="$ac_config_targets $1" ;;
6885 ac_configure_extra_args
=
6887 if $ac_cs_silent; then
6889 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6893 cat >>$CONFIG_STATUS <<_ACEOF
6894 if \$ac_cs_recheck; then
6895 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6896 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6905 cat >>$CONFIG_STATUS <<\_ACEOF
6906 for ac_config_target
in $ac_config_targets
6908 case "$ac_config_target" in
6909 # Handling of arguments.
6910 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6911 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6912 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6915 { (exit 1); exit 1; }; };;
6919 # If the user did not use the arguments to specify the items to instantiate,
6920 # then the envvar interface is used. Set only those that are not.
6921 # We use the long form for the default assignment because of an extremely
6922 # bizarre bug on SunOS 4.1.3.
6923 if $ac_need_defaults; then
6924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6929 # Have a temporary directory for convenience. Make it in the build tree
6930 # simply because there is no reason to put it here, and in addition,
6931 # creating and moving files from /tmp can sometimes cause problems.
6932 # Create a temporary directory, and hook for its removal unless debugging.
6935 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6936 trap '{ (exit 1); exit 1; }' 1 2 13 15
6939 # Create a (secure) tmp directory for tmp files.
6942 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6943 test -n "$tmp" && test -d "$tmp"
6946 tmp
=.
/confstat$$
-$RANDOM
6947 (umask 077 && mkdir
$tmp)
6950 echo "$me: cannot create a temporary directory in ." >&2
6951 { (exit 1); exit 1; }
6956 cat >>$CONFIG_STATUS <<_ACEOF
6959 # CONFIG_FILES section.
6962 # No need to generate the scripts if there are no CONFIG_FILES.
6963 # This happens for instance when ./config.status config.h
6964 if test -n "\$CONFIG_FILES"; then
6965 # Protect against being on the right side of a sed subst in config.status.
6966 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6967 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6968 s,@sim_environment@,$sim_environment,;t t
6969 s,@sim_alignment@,$sim_alignment,;t t
6970 s,@sim_assert@,$sim_assert,;t t
6971 s,@sim_bitsize@,$sim_bitsize,;t t
6972 s,@sim_endian@,$sim_endian,;t t
6973 s,@sim_hostendian@,$sim_hostendian,;t t
6974 s,@sim_float@,$sim_float,;t t
6975 s,@sim_scache@,$sim_scache,;t t
6976 s,@sim_default_model@,$sim_default_model,;t t
6977 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6978 s,@sim_hw_objs@,$sim_hw_objs,;t t
6979 s,@sim_hw@,$sim_hw,;t t
6980 s,@sim_inline@,$sim_inline,;t t
6981 s,@sim_packages@,$sim_packages,;t t
6982 s,@sim_regparm@,$sim_regparm,;t t
6983 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6984 s,@sim_smp@,$sim_smp,;t t
6985 s,@sim_stdcall@,$sim_stdcall,;t t
6986 s,@sim_xor_endian@,$sim_xor_endian,;t t
6987 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6988 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6989 s,@SHELL@,$SHELL,;t t
6990 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6991 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6992 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6993 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6994 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6995 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6996 s,@exec_prefix@,$exec_prefix,;t t
6997 s,@prefix@,$prefix,;t t
6998 s,@program_transform_name@,$program_transform_name,;t t
6999 s,@bindir@,$bindir,;t t
7000 s,@sbindir@,$sbindir,;t t
7001 s,@libexecdir@,$libexecdir,;t t
7002 s,@datadir@,$datadir,;t t
7003 s,@sysconfdir@,$sysconfdir,;t t
7004 s,@sharedstatedir@,$sharedstatedir,;t t
7005 s,@localstatedir@,$localstatedir,;t t
7006 s,@libdir@,$libdir,;t t
7007 s,@includedir@,$includedir,;t t
7008 s,@oldincludedir@,$oldincludedir,;t t
7009 s,@infodir@,$infodir,;t t
7010 s,@mandir@,$mandir,;t t
7011 s,@build_alias@,$build_alias,;t t
7012 s,@host_alias@,$host_alias,;t t
7013 s,@target_alias@,$target_alias,;t t
7015 s,@ECHO_C@,$ECHO_C,;t t
7016 s,@ECHO_N@,$ECHO_N,;t t
7017 s,@ECHO_T@,$ECHO_T,;t t
7019 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7020 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7021 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7023 s,@CFLAGS@,$CFLAGS,;t t
7024 s,@LDFLAGS@,$LDFLAGS,;t t
7025 s,@CPPFLAGS@,$CPPFLAGS,;t t
7026 s,@ac_ct_CC@,$ac_ct_CC,;t t
7027 s,@EXEEXT@,$EXEEXT,;t t
7028 s,@OBJEXT@,$OBJEXT,;t t
7029 s,@USE_NLS@,$USE_NLS,;t t
7030 s,@LIBINTL@,$LIBINTL,;t t
7031 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7032 s,@INCINTL@,$INCINTL,;t t
7033 s,@XGETTEXT@,$XGETTEXT,;t t
7034 s,@GMSGFMT@,$GMSGFMT,;t t
7035 s,@POSUB@,$POSUB,;t t
7036 s,@CATALOGS@,$CATALOGS,;t t
7037 s,@DATADIRNAME@,$DATADIRNAME,;t t
7038 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7039 s,@GENCAT@,$GENCAT,;t t
7040 s,@CATOBJEXT@,$CATOBJEXT,;t t
7041 s,@build@,$build,;t t
7042 s,@build_cpu@,$build_cpu,;t t
7043 s,@build_vendor@,$build_vendor,;t t
7044 s,@build_os@,$build_os,;t t
7046 s,@host_cpu@,$host_cpu,;t t
7047 s,@host_vendor@,$host_vendor,;t t
7048 s,@host_os@,$host_os,;t t
7049 s,@target@,$target,;t t
7050 s,@target_cpu@,$target_cpu,;t t
7051 s,@target_vendor@,$target_vendor,;t t
7052 s,@target_os@,$target_os,;t t
7054 s,@EGREP@,$EGREP,;t t
7055 s,@LIBOBJS@,$LIBOBJS,;t t
7056 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7057 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7058 s,@HDEFINES@,$HDEFINES,;t t
7060 s,@RANLIB@,$RANLIB,;t t
7061 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7062 s,@sim_cflags@,$sim_cflags,;t t
7063 s,@sim_warnings@,$sim_warnings,;t t
7064 s,@sim_line_nr@,$sim_line_nr,;t t
7065 s,@sim_config@,$sim_config,;t t
7066 s,@sim_opcode@,$sim_opcode,;t t
7067 s,@sim_switch@,$sim_switch,;t t
7068 s,@sim_dup@,$sim_dup,;t t
7069 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7070 s,@sim_jump@,$sim_jump,;t t
7071 s,@sim_filter@,$sim_filter,;t t
7072 s,@sim_icache@,$sim_icache,;t t
7073 s,@sim_hw_src@,$sim_hw_src,;t t
7074 s,@sim_hw_obj@,$sim_hw_obj,;t t
7075 s,@sim_pk_src@,$sim_pk_src,;t t
7076 s,@sim_pk_obj@,$sim_pk_obj,;t t
7077 s,@sim_bswap@,$sim_bswap,;t t
7078 s,@sim_igen_smp@,$sim_igen_smp,;t t
7079 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7080 s,@sim_env@,$sim_env,;t t
7081 s,@sim_timebase@,$sim_timebase,;t t
7082 s,@sim_trace@,$sim_trace,;t t
7083 s,@sim_reserved@,$sim_reserved,;t t
7084 s,@sim_monitor@,$sim_monitor,;t t
7085 s,@sim_model@,$sim_model,;t t
7086 s,@sim_model_issue@,$sim_model_issue,;t t
7087 s,@sim_stdio@,$sim_stdio,;t t
7088 s,@sim_termio@,$sim_termio,;t t
7089 s,@sim_devzero@,$sim_devzero,;t t
7090 s,@sim_callback@,$sim_callback,;t t
7091 s,@sim_targ_vals@,$sim_targ_vals,;t t
7092 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7093 s,@sim_fpu@,$sim_fpu,;t t
7094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7099 cat >>$CONFIG_STATUS <<\_ACEOF
7100 # Split the substitutions into bite-sized pieces for seds with
7101 # small command number limits, like on Digital OSF/1 and HP-UX.
7103 ac_sed_frag
=1 # Number of current file.
7104 ac_beg
=1 # First line for current file.
7105 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7108 while $ac_more_lines; do
7109 if test $ac_beg -gt 1; then
7110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7112 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7114 if test ! -s $tmp/subs.frag
; then
7117 # The purpose of the label and of the branching condition is to
7118 # speed up the sed processing (if there are no `@' at all, there
7119 # is no need to browse any of the substitutions).
7120 # These are the two extra sed commands mentioned above.
7122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7123 if test -z "$ac_sed_cmds"; then
7124 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7126 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7128 ac_sed_frag
=`expr $ac_sed_frag + 1`
7130 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7133 if test -z "$ac_sed_cmds"; then
7136 fi # test -n "$CONFIG_FILES"
7139 cat >>$CONFIG_STATUS <<\_ACEOF
7140 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7143 - |
*:- |
*:-:* ) # input from stdin
7145 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7146 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7147 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7148 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7149 * ) ac_file_in
=$ac_file.
in ;;
7152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7153 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7155 X"$ac_file" : 'X\(//\)[^/]' \| \
7156 X"$ac_file" : 'X\(//\)$' \| \
7157 X"$ac_file" : 'X\(/\)' \| \
7158 . : '\(.\)' 2>/dev/null ||
7160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7162 /^X\(\/\/\)$/{ s//\1/; q; }
7163 /^X\(\/\).*/{ s//\1/; q; }
7165 { if $as_mkdir_p; then
7170 while test ! -d "$as_dir"; do
7171 as_dirs
="$as_dir $as_dirs"
7172 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7174 X"$as_dir" : 'X\(//\)[^/]' \| \
7175 X"$as_dir" : 'X\(//\)$' \| \
7176 X"$as_dir" : 'X\(/\)' \| \
7177 . : '\(.\)' 2>/dev/null ||
7179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7181 /^X\(\/\/\)$/{ s//\1/; q; }
7182 /^X\(\/\).*/{ s//\1/; q; }
7185 test ! -n "$as_dirs" || mkdir
$as_dirs
7186 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7188 { (exit 1); exit 1; }; }; }
7192 if test "$ac_dir" != .
; then
7193 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7194 # A "../" for each directory in $ac_dir_suffix.
7195 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7197 ac_dir_suffix
= ac_top_builddir
=
7201 .
) # No --srcdir option. We are building in place.
7203 if test -z "$ac_top_builddir"; then
7206 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7208 [\\/]* | ?
:[\\/]* ) # Absolute path.
7209 ac_srcdir
=$srcdir$ac_dir_suffix;
7210 ac_top_srcdir
=$srcdir ;;
7212 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7213 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7216 # Do not use `cd foo && pwd` to compute absolute paths, because
7217 # the directories may not exist.
7219 .
) ac_abs_builddir
="$ac_dir";;
7222 .
) ac_abs_builddir
=`pwd`;;
7223 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7224 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7227 case $ac_abs_builddir in
7228 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7230 case ${ac_top_builddir}.
in
7231 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7232 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7233 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7236 case $ac_abs_builddir in
7237 .
) ac_abs_srcdir
=$ac_srcdir;;
7240 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7241 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7242 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7245 case $ac_abs_builddir in
7246 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7248 case $ac_top_srcdir in
7249 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7250 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7251 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7257 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7258 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7261 if test x
"$ac_file" != x-
; then
7262 { echo "$as_me:$LINENO: creating $ac_file" >&5
7263 echo "$as_me: creating $ac_file" >&6;}
7266 # Let's still pretend it is `configure' which instantiates (i.e., don't
7267 # use $as_me), people would be surprised to read:
7268 # /* config.h. Generated by config.status. */
7269 if test x
"$ac_file" = x-
; then
7272 configure_input
="$ac_file. "
7274 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7275 sed 's,.*/,,'` by configure."
7277 # First look for the input files in the build tree, otherwise in the
7279 ac_file_inputs
=`IFS=:
7280 for f in $ac_file_in; do
7282 -) echo $tmp/stdin ;;
7284 # Absolute (can't be DOS-style, as IFS=:)
7285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7286 echo "$as_me: error: cannot find input file: $f" >&2;}
7287 { (exit 1); exit 1; }; }
7290 if test -f "$f"; then
7293 elif test -f "$srcdir/$f"; then
7298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7299 echo "$as_me: error: cannot find input file: $f" >&2;}
7300 { (exit 1); exit 1; }; }
7303 done` ||
{ (exit 1); exit 1; }
7305 cat >>$CONFIG_STATUS <<_ACEOF
7309 cat >>$CONFIG_STATUS <<\_ACEOF
7311 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7312 s
,@configure_input@
,$configure_input,;t t
7313 s
,@srcdir@
,$ac_srcdir,;t t
7314 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7315 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7316 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7317 s
,@builddir@
,$ac_builddir,;t t
7318 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7319 s
,@top_builddir@
,$ac_top_builddir,;t t
7320 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7321 s
,@INSTALL@
,$ac_INSTALL,;t t
7322 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7324 if test x"$ac_file" != x-; then
7325 mv $tmp/out $ac_file
7333 cat >>$CONFIG_STATUS <<\_ACEOF
7336 # CONFIG_HEADER section.
7339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7342 # ac_d sets the value in "#define NAME VALUE" lines.
7343 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7344 ac_dB
='[ ].*$,\1#\2'
7347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7348 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7349 ac_uB
='$,\1#\2define\3'
7353 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7356 - |
*:- |
*:-:* ) # input from stdin
7358 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7359 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7360 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7361 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7362 * ) ac_file_in
=$ac_file.
in ;;
7365 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7366 echo "$as_me: creating $ac_file" >&6;}
7368 # First look for the input files in the build tree, otherwise in the
7370 ac_file_inputs
=`IFS=:
7371 for f in $ac_file_in; do
7373 -) echo $tmp/stdin ;;
7375 # Absolute (can't be DOS-style, as IFS=:)
7376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7377 echo "$as_me: error: cannot find input file: $f" >&2;}
7378 { (exit 1); exit 1; }; }
7379 # Do quote $f, to prevent DOS paths from being IFS'd.
7382 if test -f "$f"; then
7385 elif test -f "$srcdir/$f"; then
7390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7391 echo "$as_me: error: cannot find input file: $f" >&2;}
7392 { (exit 1); exit 1; }; }
7395 done` ||
{ (exit 1); exit 1; }
7396 # Remove the trailing spaces.
7397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7401 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7402 # `conftest.undefs', that substitutes the proper values into
7403 # config.h.in to produce config.h. The first handles `#define'
7404 # templates, and the second `#undef' templates.
7405 # And first: Protect against being on the right side of a sed subst in
7406 # config.status. Protect against being in an unquoted here document
7408 rm -f conftest.defines conftest.undefs
7409 # Using a here document instead of a string reduces the quoting nightmare.
7410 # Putting comments in sed scripts is not portable.
7412 # `end' is used to avoid that the second main sed command (meant for
7413 # 0-ary CPP macros) applies to n-ary macro definitions.
7414 # See the Autoconf documentation for `clear'.
7415 cat >confdef2sed.
sed <<\_ACEOF
7420 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7422 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7425 # If some macros were called several times there might be several times
7426 # the same #defines, which is useless. Nevertheless, we may not want to
7427 # sort them, since we want the *last* AC-DEFINE to be honored.
7428 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7429 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7430 rm -f confdef2sed.sed
7432 # This sed command replaces #undef with comments. This is necessary, for
7433 # example, in the case of _POSIX_SOURCE, which is predefined and required
7434 # on some systems where configure will not decide to define it.
7435 cat >>conftest.undefs <<\_ACEOF
7436 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7439 # Break up conftest.defines because some shells have a limit on the size
7440 # of here documents, and old seds have small limits too (100 cmds).
7441 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7442 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7443 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7444 echo ' :' >>$CONFIG_STATUS
7446 while grep . conftest.defines >/dev/null
7448 # Write a limited-size here document to $tmp/defines.sed.
7449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7450 # Speed up: don't consider the non `#define' lines.
7451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7452 # Work around the forget-to-reset-the-flag bug.
7453 echo 't clr' >>$CONFIG_STATUS
7454 echo ': clr' >>$CONFIG_STATUS
7455 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7457 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7461 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7462 rm -f conftest.defines
7463 mv conftest.
tail conftest.defines
7465 rm -f conftest.defines
7466 echo ' fi # grep' >>$CONFIG_STATUS
7467 echo >>$CONFIG_STATUS
7469 # Break up conftest.undefs because some shells have a limit on the size
7470 # of here documents, and old seds have small limits too (100 cmds).
7471 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7473 while grep . conftest.undefs
>/dev
/null
7475 # Write a limited-size here document to $tmp/undefs.sed.
7476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7477 # Speed up: don't consider the non
`#undef'
7478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7479 # Work around the forget-to-reset-the-flag bug.
7480 echo 't clr' >>$CONFIG_STATUS
7481 echo ': clr' >>$CONFIG_STATUS
7482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7489 rm -f conftest.undefs
7490 mv conftest.tail conftest.undefs
7492 rm -f conftest.undefs
7494 cat >>$CONFIG_STATUS <<\_ACEOF
7495 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7496 # use $as_me), people would be surprised to read:
7497 # /* config.h. Generated by config.status. */
7498 if test x
"$ac_file" = x-
; then
7499 echo "/* Generated by configure. */" >$tmp/config.h
7501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7503 cat $tmp/in >>$tmp/config.h
7505 if test x
"$ac_file" != x-
; then
7506 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7508 echo "$as_me: $ac_file is unchanged" >&6;}
7510 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7512 X"$ac_file" : 'X\(//\)[^/]' \| \
7513 X"$ac_file" : 'X\(//\)$' \| \
7514 X"$ac_file" : 'X\(/\)' \| \
7515 . : '\(.\)' 2>/dev/null ||
7517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7519 /^X\(\/\/\)$/{ s//\1/; q; }
7520 /^X\(\/\).*/{ s//\1/; q; }
7522 { if $as_mkdir_p; then
7527 while test ! -d "$as_dir"; do
7528 as_dirs
="$as_dir $as_dirs"
7529 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7531 X"$as_dir" : 'X\(//\)[^/]' \| \
7532 X"$as_dir" : 'X\(//\)$' \| \
7533 X"$as_dir" : 'X\(/\)' \| \
7534 . : '\(.\)' 2>/dev/null ||
7536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7538 /^X\(\/\/\)$/{ s//\1/; q; }
7539 /^X\(\/\).*/{ s//\1/; q; }
7542 test ! -n "$as_dirs" || mkdir
$as_dirs
7543 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7544 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7545 { (exit 1); exit 1; }; }; }
7548 mv $tmp/config.h
$ac_file
7556 cat >>$CONFIG_STATUS <<\_ACEOF
7559 # CONFIG_COMMANDS section.
7561 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7562 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7563 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7564 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7565 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7566 X"$ac_dest" : 'X\(//\)[^/]' \| \
7567 X"$ac_dest" : 'X\(//\)$' \| \
7568 X"$ac_dest" : 'X\(/\)' \| \
7569 . : '\(.\)' 2>/dev/null ||
7571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7573 /^X\(\/\/\)$/{ s//\1/; q; }
7574 /^X\(\/\).*/{ s//\1/; q; }
7576 { if $as_mkdir_p; then
7581 while test ! -d "$as_dir"; do
7582 as_dirs
="$as_dir $as_dirs"
7583 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7585 X"$as_dir" : 'X\(//\)[^/]' \| \
7586 X"$as_dir" : 'X\(//\)$' \| \
7587 X"$as_dir" : 'X\(/\)' \| \
7588 . : '\(.\)' 2>/dev/null ||
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7592 /^X\(\/\/\)$/{ s//\1/; q; }
7593 /^X\(\/\).*/{ s//\1/; q; }
7596 test ! -n "$as_dirs" || mkdir
$as_dirs
7597 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7599 { (exit 1); exit 1; }; }; }
7603 if test "$ac_dir" != .
; then
7604 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7605 # A "../" for each directory in $ac_dir_suffix.
7606 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7608 ac_dir_suffix
= ac_top_builddir
=
7612 .
) # No --srcdir option. We are building in place.
7614 if test -z "$ac_top_builddir"; then
7617 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7619 [\\/]* | ?
:[\\/]* ) # Absolute path.
7620 ac_srcdir
=$srcdir$ac_dir_suffix;
7621 ac_top_srcdir
=$srcdir ;;
7623 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7624 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7627 # Do not use `cd foo && pwd` to compute absolute paths, because
7628 # the directories may not exist.
7630 .
) ac_abs_builddir
="$ac_dir";;
7633 .
) ac_abs_builddir
=`pwd`;;
7634 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7635 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7638 case $ac_abs_builddir in
7639 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7641 case ${ac_top_builddir}.
in
7642 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7643 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7644 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7647 case $ac_abs_builddir in
7648 .
) ac_abs_srcdir
=$ac_srcdir;;
7651 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7652 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7653 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7656 case $ac_abs_builddir in
7657 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7659 case $ac_top_srcdir in
7660 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7661 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7662 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7667 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7668 echo "$as_me: executing $ac_dest commands" >&6;}
7670 default
) case x
$CONFIG_HEADERS in xconfig.h
:config.
in) echo > stamp-h
;; esac ;;
7675 cat >>$CONFIG_STATUS <<\_ACEOF
7677 { (exit 0); exit 0; }
7679 chmod +x
$CONFIG_STATUS
7680 ac_clean_files
=$ac_clean_files_save
7683 # configure is writing to config.log, and then calls config.status.
7684 # config.status does its own redirection, appending to config.log.
7685 # Unfortunately, on DOS this fails, as config.log is still kept open
7686 # by configure, so config.status won't be able to write to it; its
7687 # output is simply discarded. So we exec the FD to /dev/null,
7688 # effectively closing config.log, so it can be properly (re)opened and
7689 # appended to by config.status. When coming back to configure, we
7690 # need to make the FD available again.
7691 if test "$no_create" != yes; then
7693 ac_config_status_args
=
7694 test "$silent" = yes &&
7695 ac_config_status_args
="$ac_config_status_args --quiet"
7697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7700 # would make configure fail if this is the last instruction.
7701 $ac_cs_success ||
{ (exit 1); exit 1; }