2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
846 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --disable-nls do not use Native Language Support
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify
which functions should be inlined.
866 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify
host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
878 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
879 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
880 --with-included-gettext use the GNU
gettext library included here
881 --with-x use the X Window System
883 Some influential environment variables
:
884 CC C compiler
command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
887 nonstandard directory
<lib dir
>
888 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
889 headers
in a nonstandard directory
<include dir
>
892 Use these variables to override the choices made by
`configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo
&& pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1015 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1016 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1017 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1018 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1020 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1021 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1023 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1025 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1026 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1027 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1029 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close
' the trap.
1109 trap 'exit_status
=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var
in $ac_subst_vars
1145 eval ac_val
=$
`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var
in $ac_subst_files
1159 eval ac_val
=$
`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h
; then
1172 sed "/^$/d" confdefs.h |
sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core
*.core
&&
1180 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's
/^
/|
/' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1277 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1302 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1309 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers config.h:config.in"
1333 # This file contains common code used by all simulators.
1335 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1336 # directory. It is intended to be invoked before any target specific stuff.
1337 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1338 # It is intended to be invoked last.
1340 # The simulator's configure.
in should
look like
:
1342 # dnl Process this file with autoconf to produce a configure script.
1343 # sinclude(../common/aclocal.m4)
1345 # AC_INIT(Makefile.in)
1349 # ... target specific stuff ...
1400 sim_inline
="-DDEFAULT_INLINE=0"
1437 # This file is derived from `gettext.m4'. The difference is that the
1438 # included macros assume Cygnus-style source and build trees.
1440 # Macro to add for using GNU gettext.
1441 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1443 # This file file be copied and used freely without restrictions. It can
1444 # be used in projects which are not available under the GNU Public License
1445 # but which still want to provide support for the GNU gettext functionality.
1446 # Please note that the actual code is *not* freely available.
1454 # Search path for a program which passes the given test.
1455 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1457 # This file file be copied and used freely without restrictions. It can
1458 # be used in projects which are not available under the GNU Public License
1459 # but which still want to provide support for the GNU gettext functionality.
1460 # Please note that the actual code is *not* freely available.
1466 # Check whether LC_MESSAGES is available in <locale.h>.
1467 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1469 # This file file be copied and used freely without restrictions. It can
1470 # be used in projects which are not available under the GNU Public License
1471 # but which still want to provide support for the GNU gettext functionality.
1472 # Please note that the actual code is *not* freely available.
1482 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1483 # it by inlining the macro's contents.
1484 # This file contains common code used by all simulators.
1486 # common.m4 invokes AC macros used by all simulators and by the common
1487 # directory. It is intended to be included before any target specific
1488 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1489 # the Makefile. It is intended to be invoked last.
1491 # The simulator's configure.in should look like:
1493 # dnl Process this file with autoconf to produce a configure script.
1495 # AC_INIT(Makefile.in)
1496 # AC_CONFIG_HEADER(config.h:config.in)
1498 # sinclude(../common/aclocal.m4)
1499 # sinclude(../common/common.m4)
1501 # ... target specific stuff ...
1504 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1505 if test -f $ac_dir/install-sh
; then
1507 ac_install_sh
="$ac_aux_dir/install-sh -c"
1509 elif test -f $ac_dir/install.sh
; then
1511 ac_install_sh
="$ac_aux_dir/install.sh -c"
1513 elif test -f $ac_dir/shtool
; then
1515 ac_install_sh
="$ac_aux_dir/shtool install -c"
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522 { (exit 1); exit 1; }; }
1524 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 # Make sure we can run config.sub.
1529 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1530 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532 { (exit 1); exit 1; }; }
1534 echo "$as_me:$LINENO: checking build system type" >&5
1535 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536 if test "${ac_cv_build+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_build_alias
=$build_alias
1540 test -z "$ac_cv_build_alias" &&
1541 ac_cv_build_alias
=`$ac_config_guess`
1542 test -z "$ac_cv_build_alias" &&
1543 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545 { (exit 1); exit 1; }; }
1546 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549 { (exit 1); exit 1; }; }
1552 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553 echo "${ECHO_T}$ac_cv_build" >&6
1555 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560 echo "$as_me:$LINENO: checking host system type" >&5
1561 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1562 if test "${ac_cv_host+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 ac_cv_host_alias
=$host_alias
1566 test -z "$ac_cv_host_alias" &&
1567 ac_cv_host_alias
=$ac_cv_build_alias
1568 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1570 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1571 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1575 echo "${ECHO_T}$ac_cv_host" >&6
1577 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582 echo "$as_me:$LINENO: checking target system type" >&5
1583 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1584 if test "${ac_cv_target+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 ac_cv_target_alias
=$target_alias
1588 test "x$ac_cv_target_alias" = "x" &&
1589 ac_cv_target_alias
=$ac_cv_host_alias
1590 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1597 echo "${ECHO_T}$ac_cv_target" >&6
1598 target
=$ac_cv_target
1599 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 # The aliases save the names the user supplied, while $host etc.
1605 # will get canonicalized.
1606 test -n "$target_alias" &&
1607 test "$program_prefix$program_suffix$program_transform_name" = \
1609 program_prefix
=${target_alias}-
1610 test "$program_prefix" != NONE
&&
1611 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1612 # Use a double $ so make ignores it.
1613 test "$program_suffix" != NONE
&&
1614 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1615 # Double any \ or $. echo might interpret backslashes.
1616 # By default was `s,x,x', remove it if useless.
1617 cat <<\_ACEOF
>conftest.
sed
1618 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1620 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1624 ac_cpp
='$CPP $CPPFLAGS'
1625 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1630 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$CC"; then
1637 ac_cv_prog_CC
="$CC" # Let the user override the test.
1639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir
=.
1644 for ac_exec_ext
in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 if test -n "$CC"; then
1657 echo "$as_me:$LINENO: result: $CC" >&5
1658 echo "${ECHO_T}$CC" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$ac_cv_prog_CC"; then
1667 # Extract the first word of "gcc", so it can be a program name with args.
1668 set dummy gcc
; ac_word
=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$ac_ct_CC"; then
1675 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir
=.
1682 for ac_exec_ext
in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_CC
="gcc"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1694 if test -n "$ac_ct_CC"; then
1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1696 echo "${ECHO_T}$ac_ct_CC" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1707 if test -z "$CC"; then
1708 if test -n "$ac_tool_prefix"; then
1709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1710 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$CC"; then
1717 ac_cv_prog_CC
="$CC" # Let the user override the test.
1719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir
=.
1724 for ac_exec_ext
in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test -n "$CC"; then
1737 echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1745 if test -z "$ac_cv_prog_CC"; then
1747 # Extract the first word of "cc", so it can be a program name with args.
1748 set dummy cc
; ac_word
=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir
=.
1762 for ac_exec_ext
in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC
="cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1788 if test -z "$CC"; then
1789 # Extract the first word of "cc", so it can be a program name with args.
1790 set dummy cc
; ac_word
=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC
="$CC" # Let the user override the test.
1800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir
=.
1805 for ac_exec_ext
in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1808 ac_prog_rejected
=yes
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 if test $ac_prog_rejected = yes; then
1819 # We found a bogon in the path, so make sure we never use it.
1820 set dummy
$ac_cv_prog_CC
1822 if test $# != 0; then
1823 # We chose a different compiler from the bogus one.
1824 # However, it has the same basename, so the bogon will be chosen
1825 # first if we set CC to just the basename; use the full file name.
1827 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1842 if test -z "$CC"; then
1843 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1847 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC
="$CC" # Let the user override the test.
1856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir
=.
1861 for ac_exec_ext
in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1881 test -n "$CC" && break
1884 if test -z "$CC"; then
1888 # Extract the first word of "$ac_prog", so it can be a program name with args.
1889 set dummy
$ac_prog; ac_word
=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC
="$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1923 test -n "$ac_ct_CC" && break
1932 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: no acceptable C compiler found in \$PATH
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1938 # Provide some information about the compiler.
1939 echo "$as_me:$LINENO:" \
1940 "checking for C compiler version" >&5
1941 ac_compiler
=`set X $ac_compile; echo $2`
1942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1943 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1948 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1953 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1958 cat >conftest.
$ac_ext <<_ACEOF
1961 cat confdefs.h
>>conftest.
$ac_ext
1962 cat >>conftest.
$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 ac_clean_files_save
=$ac_clean_files
1974 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1975 # Try to create an executable without -o first, disregard a.out.
1976 # It will help us diagnose broken compilers, and finding out an intuition
1978 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1979 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1980 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1982 (eval $ac_link_default) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 # Find the output, starting from the most likely. This scheme is
1987 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1990 # Be careful to initialize this variable, since it used to be cached.
1991 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1993 # b.out is created by i960 compilers.
1994 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1996 test -f "$ac_file" ||
continue
1998 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2001 # This is the source file.
2004 # We found the default executable, but exeext='' is most
2008 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009 # FIXME: I believe we export ac_cv_exeext for Libtool,
2010 # but it would be cool to find out if it's true. Does anybody
2011 # maintain Libtool? --akim.
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.
$ac_ext >&5
2022 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: C compiler cannot create executables
2025 See \`config.log' for more details." >&2;}
2026 { (exit 77); exit 77; }; }
2029 ac_exeext
=$ac_cv_exeext
2030 echo "$as_me:$LINENO: result: $ac_file" >&5
2031 echo "${ECHO_T}$ac_file" >&6
2033 # Check the compiler produces executables we can run. If not, either
2034 # the compiler is broken, or we cross compile.
2035 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2036 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2037 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2038 # If not cross compiling, check that we can run a simple program.
2039 if test "$cross_compiling" != yes; then
2040 if { ac_try
='./$ac_file'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 if test "$cross_compiling" = maybe
; then
2051 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2052 If you meant to cross compile, use \`--host'.
2053 See \`config.log' for more details." >&5
2054 echo "$as_me: error: cannot run C compiled programs.
2055 If you meant to cross compile, use \`--host'.
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2064 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2065 ac_clean_files
=$ac_clean_files_save
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076 (eval $ac_link) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 for ac_file
in conftest.exe conftest conftest.
*; do
2085 test -f "$ac_file" ||
continue
2087 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2088 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2102 rm -f conftest
$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2104 echo "${ECHO_T}$ac_cv_exeext" >&6
2106 rm -f conftest.
$ac_ext
2107 EXEEXT
=$ac_cv_exeext
2109 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2111 if test "${ac_cv_objext+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 cat >conftest.
$ac_ext <<_ACEOF
2117 cat confdefs.h
>>conftest.
$ac_ext
2118 cat >>conftest.
$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2129 rm -f conftest.o conftest.obj
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2138 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2143 echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.
$ac_ext >&5
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2153 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2155 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2156 echo "${ECHO_T}$ac_cv_objext" >&6
2157 OBJEXT
=$ac_cv_objext
2159 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 cat >conftest.
$ac_ext <<_ACEOF
2167 cat confdefs.h
>>conftest.
$ac_ext
2168 cat >>conftest.
$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2182 rm -f conftest.
$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1
>conftest.err
2188 cat conftest.err
>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try
='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try
='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.
$ac_ext >&5
2211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2215 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2216 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2217 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2218 ac_test_CFLAGS
=${CFLAGS+set}
2219 ac_save_CFLAGS
=$CFLAGS
2221 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2222 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2223 if test "${ac_cv_prog_cc_g+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 cat >conftest.
$ac_ext <<_ACEOF
2229 cat confdefs.h
>>conftest.
$ac_ext
2230 cat >>conftest.
$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2241 rm -f conftest.
$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2245 grep -v '^ *+' conftest.er1
>conftest.err
2247 cat conftest.err
>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try
='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try
='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.
$ac_ext >&5
2270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2273 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2274 if test "$ac_test_CFLAGS" = set; then
2275 CFLAGS
=$ac_save_CFLAGS
2276 elif test $ac_cv_prog_cc_g = yes; then
2277 if test "$GCC" = yes; then
2283 if test "$GCC" = yes; then
2289 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2290 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2291 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 ac_cv_prog_cc_stdc
=no
2296 cat >conftest.
$ac_ext <<_ACEOF
2299 cat confdefs.h
>>conftest.
$ac_ext
2300 cat >>conftest.
$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2304 #include <sys/types.h>
2305 #include <sys/stat.h>
2306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2307 struct buf { int x; };
2308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2309 static char *e (p, i)
2315 static char *f (char * (*g) (char **, int), char **p, ...)
2320 s = g (p, va_arg (v,int));
2325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2326 function prototypes and stuff, but not '\xHH' hex character constants.
2327 These don't provoke an error unfortunately, instead are silently treated
2328 as 'x'. The following induces an error, until -std1 is added to get
2329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2330 array size at least. It's necessary to write '\x00'==0 to get something
2331 that's true only with -std1. */
2332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2334 int test (int i, double x);
2335 struct s1 {int (*f) (int a);};
2336 struct s2 {int (*f) (double a);};
2337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2348 # Don't try gcc -ansi; that turns off useful extensions and
2349 # breaks some systems' header files.
2350 # AIX -qlanglvl=ansi
2351 # Ultrix and OSF/1 -std1
2352 # HP-UX 10.20 and later -Ae
2353 # HP-UX older versions -Aa -D_HPUX_SOURCE
2354 # SVR4 -Xc -D__EXTENSIONS__
2355 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2357 CC
="$ac_save_CC $ac_arg"
2358 rm -f conftest.
$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>conftest.er1
2362 grep -v '^ *+' conftest.er1
>conftest.err
2364 cat conftest.err
>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try
='test -z "$ac_c_werror_flag"
2368 || test ! -s conftest.err'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; } &&
2374 { ac_try
='test -s conftest.$ac_objext'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2380 ac_cv_prog_cc_stdc
=$ac_arg
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.
$ac_ext >&5
2387 rm -f conftest.err conftest.
$ac_objext
2389 rm -f conftest.
$ac_ext conftest.
$ac_objext
2394 case "x$ac_cv_prog_cc_stdc" in
2396 echo "$as_me:$LINENO: result: none needed" >&5
2397 echo "${ECHO_T}none needed" >&6 ;;
2399 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2400 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2401 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2404 # Some people use a C++ compiler to compile C. Since we use `exit',
2405 # in C++ we need to declare it. In case someone uses the same compiler
2406 # for both compiling C and C++ we need to have the C++ compiler decide
2407 # the declaration of exit, since it's the most demanding environment.
2408 cat >conftest.
$ac_ext <<_ACEOF
2413 rm -f conftest.
$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1
>conftest.err
2419 cat conftest.err
>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try
='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try
='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 for ac_declaration
in \
2437 'extern "C" void std::exit (int) throw (); using std::exit;' \
2438 'extern "C" void std::exit (int); using std::exit;' \
2439 'extern "C" void exit (int) throw ();' \
2440 'extern "C" void exit (int);' \
2443 cat >conftest.
$ac_ext <<_ACEOF
2446 cat confdefs.h
>>conftest.
$ac_ext
2447 cat >>conftest.
$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2459 rm -f conftest.
$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1
>conftest.err
2465 cat conftest.err
>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try
='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try
='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.
$ac_ext >&5
2488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2489 cat >conftest.
$ac_ext <<_ACEOF
2492 cat confdefs.h
>>conftest.
$ac_ext
2493 cat >>conftest.
$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2504 rm -f conftest.
$ac_objext
2505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506 (eval $ac_compile) 2>conftest.er1
2508 grep -v '^ *+' conftest.er1
>conftest.err
2510 cat conftest.err
>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try
='test -z "$ac_c_werror_flag"
2514 || test ! -s conftest.err'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try
='test -s conftest.$ac_objext'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.
$ac_ext >&5
2532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2535 if test -n "$ac_declaration"; then
2536 echo '#ifdef __cplusplus' >>confdefs.h
2537 echo $ac_declaration >>confdefs.h
2538 echo '#endif' >>confdefs.h
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.
$ac_ext >&5
2546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2548 ac_cpp
='$CPP $CPPFLAGS'
2549 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2567 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2568 if test -z "$INSTALL"; then
2569 if test "${ac_cv_path_install+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir
=.
2577 # Account for people who put trailing slashes in PATH elements.
2579 .
/ | .
// |
/cC
/* | \
2580 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2581 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2587 for ac_prog
in ginstall scoinst
install; do
2588 for ac_exec_ext
in '' $ac_executable_extensions; do
2589 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2590 if test $ac_prog = install &&
2591 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2594 elif test $ac_prog = install &&
2595 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2599 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2611 if test "${ac_cv_path_install+set}" = set; then
2612 INSTALL
=$ac_cv_path_install
2614 # As a last resort, use the slow shell script. We don't cache a
2615 # path for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the path is relative.
2618 INSTALL
=$ac_install_sh
2621 echo "$as_me:$LINENO: result: $INSTALL" >&5
2622 echo "${ECHO_T}$INSTALL" >&6
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2630 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2633 # Put a plausible default for CC_FOR_BUILD in Makefile.
2634 if test "x$cross_compiling" = "xno"; then
2635 CC_FOR_BUILD
='$(CC)'
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2647 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_RANLIB+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 if test -n "$RANLIB"; then
2654 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir
=.
2661 for ac_exec_ext
in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 RANLIB
=$ac_cv_prog_RANLIB
2673 if test -n "$RANLIB"; then
2674 echo "$as_me:$LINENO: result: $RANLIB" >&5
2675 echo "${ECHO_T}$RANLIB" >&6
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2682 if test -z "$ac_cv_prog_RANLIB"; then
2683 ac_ct_RANLIB
=$RANLIB
2684 # Extract the first word of "ranlib", so it can be a program name with args.
2685 set dummy ranlib
; ac_word
=$2
2686 echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2688 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$ac_ct_RANLIB"; then
2692 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir
=.
2699 for ac_exec_ext
in '' $ac_executable_extensions; do
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2711 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2712 if test -n "$ac_ct_RANLIB"; then
2713 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2714 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2716 echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2720 RANLIB
=$ac_ct_RANLIB
2722 RANLIB
="$ac_cv_prog_RANLIB"
2727 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2728 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2729 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2730 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 cat >conftest.
make <<\_ACEOF
2735 @
echo 'ac_maketemp="$(MAKE)"'
2737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2738 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2739 if test -n "$ac_maketemp"; then
2740 eval ac_cv_prog_make_
${ac_make}_set
=yes
2742 eval ac_cv_prog_make_
${ac_make}_set
=no
2746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2747 echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2753 SET_MAKE
="MAKE=${MAKE-make}"
2757 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2758 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2759 if test "${ac_cv_search_strerror+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 ac_func_search_save_LIBS
=$LIBS
2763 ac_cv_search_strerror
=no
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2771 /* Override any gcc2 internal prototype to avoid an error. */
2775 /* We use char because int might match the return type of a gcc2
2776 builtin and then its argument prototype would still apply. */
2786 rm -f conftest.
$ac_objext conftest
$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788 (eval $ac_link) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1
>conftest.err
2792 cat conftest.err
>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try
='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try
='test -s conftest$ac_exeext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_search_strerror
="none required"
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.
$ac_ext >&5
2814 rm -f conftest.err conftest.
$ac_objext \
2815 conftest
$ac_exeext conftest.
$ac_ext
2816 if test "$ac_cv_search_strerror" = no
; then
2817 for ac_lib
in cposix
; do
2818 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2819 cat >conftest.
$ac_ext <<_ACEOF
2822 cat confdefs.h
>>conftest.
$ac_ext
2823 cat >>conftest.
$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2841 rm -f conftest.
$ac_objext conftest
$ac_exeext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2843 (eval $ac_link) 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_exeext'
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_search_strerror
="-l$ac_lib"
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.
$ac_ext >&5
2870 rm -f conftest.err conftest.
$ac_objext \
2871 conftest
$ac_exeext conftest.
$ac_ext
2874 LIBS
=$ac_func_search_save_LIBS
2876 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2877 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2878 if test "$ac_cv_search_strerror" != no
; then
2879 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2884 ac_cpp
='$CPP $CPPFLAGS'
2885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 # Double quotes because CPP needs to be expanded
2899 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2902 for ac_c_preproc_warn_flag
in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.
$ac_ext <<_ACEOF
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 # include <limits.h>
2919 # include <assert.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev
/null
; then
2931 if test -s conftest.err
; then
2932 ac_cpp_err
=$ac_c_preproc_warn_flag
2933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 # Broken: fails on valid input.
2949 rm -f conftest.err conftest.
$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.
$ac_ext <<_ACEOF
2956 cat confdefs.h
>>conftest.
$ac_ext
2957 cat >>conftest.
$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1
>conftest.err
2966 cat conftest.err
>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev
/null
; then
2969 if test -s conftest.err
; then
2970 ac_cpp_err
=$ac_c_preproc_warn_flag
2971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 # Passes both tests.
2989 rm -f conftest.err conftest.
$ac_ext
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.
$ac_ext
2994 if $ac_preproc_ok; then
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3009 for ac_c_preproc_warn_flag
in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.
$ac_ext <<_ACEOF
3020 cat confdefs.h
>>conftest.
$ac_ext
3021 cat >>conftest.
$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 # Broken: fails on valid input.
3056 rm -f conftest.err conftest.
$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1
>conftest.err
3073 cat conftest.err
>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev
/null
; then
3076 if test -s conftest.err
; then
3077 ac_cpp_err
=$ac_c_preproc_warn_flag
3078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.
$ac_ext >&5
3092 # Passes both tests.
3096 rm -f conftest.err conftest.
$ac_ext
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.
$ac_ext
3101 if $ac_preproc_ok; then
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3112 ac_cpp
='$CPP $CPPFLAGS'
3113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3124 then ac_cv_prog_egrep
='grep -E'
3125 else ac_cv_prog_egrep
='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP
=$ac_cv_prog_egrep
3133 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3134 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3135 if test "${ac_cv_header_stdc+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 cat >conftest.
$ac_ext <<_ACEOF
3141 cat confdefs.h
>>conftest.
$ac_ext
3142 cat >>conftest.
$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3157 rm -f conftest.
$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3161 grep -v '^ *+' conftest.er1
>conftest.err
3163 cat conftest.err
>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try
='test -z "$ac_c_werror_flag"
3167 || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try
='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_cv_header_stdc
=yes
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.
$ac_ext >&5
3184 ac_cv_header_stdc
=no
3186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3188 if test $ac_cv_header_stdc = yes; then
3189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3190 cat >conftest.
$ac_ext <<_ACEOF
3193 cat confdefs.h
>>conftest.
$ac_ext
3194 cat >>conftest.
$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3200 $EGREP "memchr" >/dev
/null
2>&1; then
3203 ac_cv_header_stdc
=no
3209 if test $ac_cv_header_stdc = yes; then
3210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3211 cat >conftest.
$ac_ext <<_ACEOF
3214 cat confdefs.h
>>conftest.
$ac_ext
3215 cat >>conftest.
$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 $EGREP "free" >/dev
/null
2>&1; then
3224 ac_cv_header_stdc
=no
3230 if test $ac_cv_header_stdc = yes; then
3231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3232 if test "$cross_compiling" = yes; then
3235 cat >conftest.
$ac_ext <<_ACEOF
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3242 #if ((' ' & 0x0FF) == 0x020)
3243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3246 # define ISLOWER(c) \
3247 (('a' <= (c) && (c) <= 'i') \
3248 || ('j' <= (c) && (c) <= 'r') \
3249 || ('s' <= (c) && (c) <= 'z'))
3250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3258 for (i = 0; i < 256; i++)
3259 if (XOR (islower (i), ISLOWER (i))
3260 || toupper (i) != TOUPPER (i))
3265 rm -f conftest
$ac_exeext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3278 echo "$as_me: program exited with status $ac_status" >&5
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.
$ac_ext >&5
3283 ac_cv_header_stdc
=no
3285 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3289 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3290 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3291 if test $ac_cv_header_stdc = yes; then
3293 cat >>confdefs.h
<<\_ACEOF
3294 #define STDC_HEADERS 1
3299 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3300 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3301 if test "${ac_cv_c_const+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 cat >conftest.
$ac_ext <<_ACEOF
3307 cat confdefs.h
>>conftest.
$ac_ext
3308 cat >>conftest.
$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3314 /* FIXME: Include the comments suggested by Paul. */
3316 /* Ultrix mips cc rejects this. */
3317 typedef int charset[2];
3319 /* SunOS 4.1.1 cc rejects this. */
3320 char const *const *ccp;
3322 /* NEC SVR4.0.2 mips cc rejects this. */
3323 struct point {int x, y;};
3324 static struct point const zero = {0,0};
3325 /* AIX XL C 1.02.0.0 rejects this.
3326 It does not let you subtract one const X* pointer from another in
3327 an arm of an if-expression whose if-part is not a constant
3329 const char *g = "string";
3330 ccp = &g + (g ? g-g : 0);
3331 /* HPUX 7.0 cc rejects these. */
3334 ccp = (char const *const *) p;
3335 { /* SCO 3.2v4 cc rejects this. */
3337 char const *s = 0 ? (char *) 0 : (char const *) 0;
3341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3343 const int *foo = &x[0];
3346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3347 typedef const int *iptr;
3351 { /* AIX XL C 1.02.0.0 rejects this saying
3352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3353 struct s { int j; const int *ap[3]; };
3354 struct s *b; b->j = 5;
3356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3365 rm -f conftest.
$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
3369 grep -v '^ *+' conftest.er1
>conftest.err
3371 cat conftest.err
>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try
='test -z "$ac_c_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try
='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.
$ac_ext >&5
3394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3396 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3397 echo "${ECHO_T}$ac_cv_c_const" >&6
3398 if test $ac_cv_c_const = no
; then
3400 cat >>confdefs.h
<<\_ACEOF
3406 echo "$as_me:$LINENO: checking for inline" >&5
3407 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3408 if test "${ac_cv_c_inline+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 for ac_kw
in inline __inline__ __inline
; do
3413 cat >conftest.
$ac_ext <<_ACEOF
3416 cat confdefs.h
>>conftest.
$ac_ext
3417 cat >>conftest.
$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3421 static $ac_kw foo_t static_foo () {return 0; }
3422 $ac_kw foo_t foo () {return 0; }
3426 rm -f conftest.
$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1
>conftest.err
3432 cat conftest.err
>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try
='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try
='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_c_inline
=$ac_kw; break
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3458 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3459 echo "${ECHO_T}$ac_cv_c_inline" >&6
3462 case $ac_cv_c_inline in
3465 case $ac_cv_c_inline in
3467 *) ac_val
=$ac_cv_c_inline;;
3469 cat >>confdefs.h
<<_ACEOF
3471 #define inline $ac_val
3477 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3487 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3488 inttypes.h stdint.h unistd.h
3490 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 cat >conftest.
$ac_ext <<_ACEOF
3499 cat confdefs.h
>>conftest.
$ac_ext
3500 cat >>conftest.
$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 $ac_includes_default
3504 #include <$ac_header>
3506 rm -f conftest.
$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1
>conftest.err
3512 cat conftest.err
>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try
='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try
='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 eval "$as_ac_Header=yes"
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.
$ac_ext >&5
3533 eval "$as_ac_Header=no"
3535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3540 cat >>confdefs.h
<<_ACEOF
3541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3549 echo "$as_me:$LINENO: checking for off_t" >&5
3550 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3551 if test "${ac_cv_type_off_t+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.
$ac_ext <<_ACEOF
3557 cat confdefs.h
>>conftest.
$ac_ext
3558 cat >>conftest.
$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3572 rm -f conftest.
$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3576 grep -v '^ *+' conftest.er1
>conftest.err
3578 cat conftest.err
>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try
='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try
='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_type_off_t
=yes
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.
$ac_ext >&5
3601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3603 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3604 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3605 if test $ac_cv_type_off_t = yes; then
3609 cat >>confdefs.h
<<_ACEOF
3615 echo "$as_me:$LINENO: checking for size_t" >&5
3616 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3617 if test "${ac_cv_type_size_t+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 cat >conftest.
$ac_ext <<_ACEOF
3623 cat confdefs.h
>>conftest.
$ac_ext
3624 cat >>conftest.
$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3632 if (sizeof (size_t))
3638 rm -f conftest.
$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>conftest.er1
3642 grep -v '^ *+' conftest.er1
>conftest.err
3644 cat conftest.err
>&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try
='test -z "$ac_c_werror_flag"
3648 || test ! -s conftest.err'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try
='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_type_size_t
=yes
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.
$ac_ext >&5
3665 ac_cv_type_size_t
=no
3667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3670 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3671 if test $ac_cv_type_size_t = yes; then
3675 cat >>confdefs.h
<<_ACEOF
3676 #define size_t unsigned
3681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3682 # for constant arguments. Useless!
3683 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3684 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3685 if test "${ac_cv_working_alloca_h+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 cat >conftest.
$ac_ext <<_ACEOF
3691 cat confdefs.h
>>conftest.
$ac_ext
3692 cat >>conftest.
$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3698 char *p = (char *) alloca (2 * sizeof (int));
3703 rm -f conftest.
$ac_objext conftest
$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try
='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try
='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_working_alloca_h
=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.
$ac_ext >&5
3730 ac_cv_working_alloca_h
=no
3732 rm -f conftest.err conftest.
$ac_objext \
3733 conftest
$ac_exeext conftest.
$ac_ext
3735 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3736 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3737 if test $ac_cv_working_alloca_h = yes; then
3739 cat >>confdefs.h
<<\_ACEOF
3740 #define HAVE_ALLOCA_H 1
3745 echo "$as_me:$LINENO: checking for alloca" >&5
3746 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3747 if test "${ac_cv_func_alloca_works+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 cat >conftest.
$ac_ext <<_ACEOF
3753 cat confdefs.h
>>conftest.
$ac_ext
3754 cat >>conftest.
$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3757 # define alloca __builtin_alloca
3760 # include <malloc.h>
3761 # define alloca _alloca
3764 # include <alloca.h>
3769 # ifndef alloca /* predefined by HP cc +Olibcalls */
3780 char *p = (char *) alloca (1);
3785 rm -f conftest.
$ac_objext conftest
$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787 (eval $ac_link) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1
>conftest.err
3791 cat conftest.err
>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try
='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try
='test -s conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_func_alloca_works
=yes
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.
$ac_ext >&5
3812 ac_cv_func_alloca_works
=no
3814 rm -f conftest.err conftest.
$ac_objext \
3815 conftest
$ac_exeext conftest.
$ac_ext
3817 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3818 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3820 if test $ac_cv_func_alloca_works = yes; then
3822 cat >>confdefs.h
<<\_ACEOF
3823 #define HAVE_ALLOCA 1
3827 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3828 # that cause trouble. Some versions do not even contain alloca or
3829 # contain a buggy version. If you still want to use their alloca,
3830 # use ar to extract alloca.o from them instead of compiling alloca.c.
3832 ALLOCA
=alloca.
$ac_objext
3834 cat >>confdefs.h
<<\_ACEOF
3839 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3840 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3841 if test "${ac_cv_os_cray+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 cat >conftest.
$ac_ext <<_ACEOF
3847 cat confdefs.h
>>conftest.
$ac_ext
3848 cat >>conftest.
$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #if defined(CRAY) && ! defined(CRAY2)
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "webecray" >/dev
/null
2>&1; then
3866 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3867 echo "${ECHO_T}$ac_cv_os_cray" >&6
3868 if test $ac_cv_os_cray = yes; then
3869 for ac_func
in _getb67 GETB67 getb67
; do
3870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3871 echo "$as_me:$LINENO: checking for $ac_func" >&5
3872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3873 if eval "test \"\${$as_ac_var+set}\" = set"; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 cat >conftest.
$ac_ext <<_ACEOF
3879 cat confdefs.h
>>conftest.
$ac_ext
3880 cat >>conftest.
$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3884 #define $ac_func innocuous_$ac_func
3886 /* System header to define __stub macros and hopefully few prototypes,
3887 which can conflict with char $ac_func (); below.
3888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 <limits.h> exists even on freestanding compilers. */
3892 # include <limits.h>
3894 # include <assert.h>
3899 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3907 /* The GNU C library defines this for functions which it implements
3908 to always fail with ENOSYS. Some functions are actually named
3909 something starting with __ and the normal name is an alias. */
3910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 char (*f) () = $ac_func;
3922 return f != $ac_func;
3927 rm -f conftest.
$ac_objext conftest
$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1
>conftest.err
3933 cat conftest.err
>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try
='test -z "$ac_c_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try
='test -s conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 eval "$as_ac_var=yes"
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.
$ac_ext >&5
3954 eval "$as_ac_var=no"
3956 rm -f conftest.err conftest.
$ac_objext \
3957 conftest
$ac_exeext conftest.
$ac_ext
3959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3961 if test `eval echo '${'$as_ac_var'}'` = yes; then
3963 cat >>confdefs.h
<<_ACEOF
3964 #define CRAY_STACKSEG_END $ac_func
3973 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3974 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3975 if test "${ac_cv_c_stack_direction+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 if test "$cross_compiling" = yes; then
3979 ac_cv_c_stack_direction
=0
3981 cat >conftest.
$ac_ext <<_ACEOF
3984 cat confdefs.h
>>conftest.
$ac_ext
3985 cat >>conftest.
$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3988 find_stack_direction ()
3990 static char *addr = 0;
3995 return find_stack_direction ();
3998 return (&dummy > addr) ? 1 : -1;
4004 exit (find_stack_direction () < 0);
4007 rm -f conftest
$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_c_stack_direction
=1
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.
$ac_ext >&5
4025 ac_cv_c_stack_direction
=-1
4027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4030 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4031 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4033 cat >>confdefs.h
<<_ACEOF
4034 #define STACK_DIRECTION $ac_cv_c_stack_direction
4042 for ac_header
in stdlib.h unistd.h
4044 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4046 echo "$as_me:$LINENO: checking for $ac_header" >&5
4047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4054 # Is the header compilable?
4055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4064 #include <$ac_header>
4066 rm -f conftest.
$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1
>conftest.err
4072 cat conftest.err
>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try
='test -z "$ac_c_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try
='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_header_compiler
=yes
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.
$ac_ext >&5
4093 ac_header_compiler
=no
4095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4097 echo "${ECHO_T}$ac_header_compiler" >&6
4099 # Is the header present?
4100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4102 cat >conftest.
$ac_ext <<_ACEOF
4105 cat confdefs.h
>>conftest.
$ac_ext
4106 cat >>conftest.
$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <$ac_header>
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4113 grep -v '^ *+' conftest.er1
>conftest.err
4115 cat conftest.err
>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev
/null
; then
4118 if test -s conftest.err
; then
4119 ac_cpp_err
=$ac_c_preproc_warn_flag
4120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4127 if test -z "$ac_cpp_err"; then
4128 ac_header_preproc
=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4133 ac_header_preproc
=no
4135 rm -f conftest.err conftest.
$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4137 echo "${ECHO_T}$ac_header_preproc" >&6
4139 # So? What about this header?
4140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4146 ac_header_preproc
=yes
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4163 ## ------------------------------------------ ##
4164 ## Report this to the AC_PACKAGE_NAME lists. ##
4165 ## ------------------------------------------ ##
4168 sed "s/^/$as_me: WARNING: /" >&2
4171 echo "$as_me:$LINENO: checking for $ac_header" >&5
4172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 eval "$as_ac_Header=\$ac_header_preproc"
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h
<<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4192 for ac_func
in getpagesize
4194 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195 echo "$as_me:$LINENO: checking for $ac_func" >&5
4196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4208 #define $ac_func innocuous_$ac_func
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char $ac_func (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4216 # include <limits.h>
4218 # include <assert.h>
4223 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4237 char (*f) () = $ac_func;
4246 return f != $ac_func;
4251 rm -f conftest.
$ac_objext conftest
$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>conftest.er1
4255 grep -v '^ *+' conftest.er1
>conftest.err
4257 cat conftest.err
>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try
='test -z "$ac_c_werror_flag"
4261 || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try
='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 eval "$as_ac_var=yes"
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.
$ac_ext >&5
4278 eval "$as_ac_var=no"
4280 rm -f conftest.err conftest.
$ac_objext \
4281 conftest
$ac_exeext conftest.
$ac_ext
4283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4285 if test `eval echo '${'$as_ac_var'}'` = yes; then
4286 cat >>confdefs.h
<<_ACEOF
4287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293 echo "$as_me:$LINENO: checking for working mmap" >&5
4294 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4295 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test "$cross_compiling" = yes; then
4299 ac_cv_func_mmap_fixed_mapped
=no
4301 cat >conftest.
$ac_ext <<_ACEOF
4304 cat confdefs.h
>>conftest.
$ac_ext
4305 cat >>conftest.
$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4308 /* malloc might have been renamed as rpl_malloc. */
4311 /* Thanks to Mike Haertel and Jim Avera for this test.
4312 Here is a matrix of mmap possibilities:
4313 mmap private not fixed
4314 mmap private fixed at somewhere currently unmapped
4315 mmap private fixed at somewhere already mapped
4316 mmap shared not fixed
4317 mmap shared fixed at somewhere currently unmapped
4318 mmap shared fixed at somewhere already mapped
4319 For private mappings, we should verify that changes cannot be read()
4320 back from the file, nor mmap's back from the file at a different
4321 address. (There have been systems where private was not correctly
4322 implemented like the infamous i386 svr4.0, and systems where the
4323 VM page cache was not coherent with the file system buffer cache
4324 like early versions of FreeBSD and possibly contemporary NetBSD.)
4325 For shared mappings, we should conversely verify that changes get
4326 propagated back to all the places they're supposed to be.
4328 Grep wants private fixed already mapped.
4329 The main things grep needs to know about mmap are:
4330 * does it exist and is it safe to write into the mmap'd area
4331 * how to use it (BSD variants) */
4334 #include <sys/mman.h>
4336 #if !STDC_HEADERS && !HAVE_STDLIB_H
4340 /* This mess was copied from the GNU getpagesize.h. */
4341 #if !HAVE_GETPAGESIZE
4342 /* Assume that all systems that can run configure have sys/param.h. */
4343 # if !HAVE_SYS_PARAM_H
4344 # define HAVE_SYS_PARAM_H 1
4347 # ifdef _SC_PAGESIZE
4348 # define getpagesize() sysconf(_SC_PAGESIZE)
4349 # else /* no _SC_PAGESIZE */
4350 # if HAVE_SYS_PARAM_H
4351 # include <sys/param.h>
4352 # ifdef EXEC_PAGESIZE
4353 # define getpagesize() EXEC_PAGESIZE
4354 # else /* no EXEC_PAGESIZE */
4356 # define getpagesize() NBPG * CLSIZE
4359 # endif /* no CLSIZE */
4360 # else /* no NBPG */
4362 # define getpagesize() NBPC
4363 # else /* no NBPC */
4365 # define getpagesize() PAGESIZE
4366 # endif /* PAGESIZE */
4367 # endif /* no NBPC */
4368 # endif /* no NBPG */
4369 # endif /* no EXEC_PAGESIZE */
4370 # else /* no HAVE_SYS_PARAM_H */
4371 # define getpagesize() 8192 /* punt totally */
4372 # endif /* no HAVE_SYS_PARAM_H */
4373 # endif /* no _SC_PAGESIZE */
4375 #endif /* no HAVE_GETPAGESIZE */
4380 char *data, *data2, *data3;
4384 pagesize = getpagesize ();
4386 /* First, make a file with some known garbage in it. */
4387 data = (char *) malloc (pagesize);
4390 for (i = 0; i < pagesize; ++i)
4391 *(data + i) = rand ();
4393 fd = creat ("conftest.mmap", 0600);
4396 if (write (fd, data, pagesize) != pagesize)
4400 /* Next, try to mmap the file at a fixed address which already has
4401 something else allocated at it. If we can, also make sure that
4402 we see the same garbage. */
4403 fd = open ("conftest.mmap", O_RDWR);
4406 data2 = (char *) malloc (2 * pagesize);
4409 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4410 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4411 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4413 for (i = 0; i < pagesize; ++i)
4414 if (*(data + i) != *(data2 + i))
4417 /* Finally, make sure that changes to the mapped area do not
4418 percolate back to the file as seen by read(). (This is a bug on
4419 some variants of i386 svr4.0.) */
4420 for (i = 0; i < pagesize; ++i)
4421 *(data2 + i) = *(data2 + i) + 1;
4422 data3 = (char *) malloc (pagesize);
4425 if (read (fd, data3, pagesize) != pagesize)
4427 for (i = 0; i < pagesize; ++i)
4428 if (*(data + i) != *(data3 + i))
4434 rm -f conftest
$ac_exeext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436 (eval $ac_link) 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_func_mmap_fixed_mapped
=yes
4447 echo "$as_me: program exited with status $ac_status" >&5
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.
$ac_ext >&5
4452 ac_cv_func_mmap_fixed_mapped
=no
4454 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4458 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4461 cat >>confdefs.h
<<\_ACEOF
4478 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4479 unistd.h values.h sys
/param.h
4481 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4483 echo "$as_me:$LINENO: checking for $ac_header" >&5
4484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4491 # Is the header compilable?
4492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4494 cat >conftest.
$ac_ext <<_ACEOF
4497 cat confdefs.h
>>conftest.
$ac_ext
4498 cat >>conftest.
$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4501 #include <$ac_header>
4503 rm -f conftest.
$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4507 grep -v '^ *+' conftest.er1
>conftest.err
4509 cat conftest.err
>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try
='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try
='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_header_compiler
=yes
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.
$ac_ext >&5
4530 ac_header_compiler
=no
4532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4534 echo "${ECHO_T}$ac_header_compiler" >&6
4536 # Is the header present?
4537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4539 cat >conftest.
$ac_ext <<_ACEOF
4542 cat confdefs.h
>>conftest.
$ac_ext
4543 cat >>conftest.
$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #include <$ac_header>
4547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4550 grep -v '^ *+' conftest.er1
>conftest.err
4552 cat conftest.err
>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev
/null
; then
4555 if test -s conftest.err
; then
4556 ac_cpp_err
=$ac_c_preproc_warn_flag
4557 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4564 if test -z "$ac_cpp_err"; then
4565 ac_header_preproc
=yes
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.
$ac_ext >&5
4570 ac_header_preproc
=no
4572 rm -f conftest.err conftest.
$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4574 echo "${ECHO_T}$ac_header_preproc" >&6
4576 # So? What about this header?
4577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4583 ac_header_preproc
=yes
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4600 ## ------------------------------------------ ##
4601 ## Report this to the AC_PACKAGE_NAME lists. ##
4602 ## ------------------------------------------ ##
4605 sed "s/^/$as_me: WARNING: /" >&2
4608 echo "$as_me:$LINENO: checking for $ac_header" >&5
4609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 eval "$as_ac_Header=\$ac_header_preproc"
4615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4620 cat >>confdefs.h
<<_ACEOF
4621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4639 __argz_count __argz_stringify __argz_next
4641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642 echo "$as_me:$LINENO: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat >conftest.
$ac_ext <<_ACEOF
4650 cat confdefs.h
>>conftest.
$ac_ext
4651 cat >>conftest.
$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4655 #define $ac_func innocuous_$ac_func
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func (); below.
4659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 <limits.h> exists even on freestanding compilers. */
4663 # include <limits.h>
4665 # include <assert.h>
4670 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4678 /* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 char (*f) () = $ac_func;
4693 return f != $ac_func;
4698 rm -f conftest.
$ac_objext conftest
$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1
>conftest.err
4704 cat conftest.err
>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 eval "$as_ac_var=yes"
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4725 eval "$as_ac_var=no"
4727 rm -f conftest.err conftest.
$ac_objext \
4728 conftest
$ac_exeext conftest.
$ac_ext
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4732 if test `eval echo '${'$as_ac_var'}'` = yes; then
4733 cat >>confdefs.h
<<_ACEOF
4734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4741 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4743 for ac_func
in stpcpy
4745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 echo "$as_me:$LINENO: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_var+set}\" = set"; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 cat >conftest.
$ac_ext <<_ACEOF
4754 cat confdefs.h
>>conftest.
$ac_ext
4755 cat >>conftest.
$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4759 #define $ac_func innocuous_$ac_func
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func (); below.
4763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 <limits.h> exists even on freestanding compilers. */
4767 # include <limits.h>
4769 # include <assert.h>
4774 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4782 /* The GNU C library defines this for functions which it implements
4783 to always fail with ENOSYS. Some functions are actually named
4784 something starting with __ and the normal name is an alias. */
4785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4788 char (*f) () = $ac_func;
4797 return f != $ac_func;
4802 rm -f conftest.
$ac_objext conftest
$ac_exeext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4804 (eval $ac_link) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest$ac_exeext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_var=yes"
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 eval "$as_ac_var=no"
4831 rm -f conftest.err conftest.
$ac_objext \
4832 conftest
$ac_exeext conftest.
$ac_ext
4834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4836 if test `eval echo '${'$as_ac_var'}'` = yes; then
4837 cat >>confdefs.h
<<_ACEOF
4838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4845 if test "${ac_cv_func_stpcpy}" = "yes"; then
4846 cat >>confdefs.h
<<\_ACEOF
4847 #define HAVE_STPCPY 1
4852 if test $ac_cv_header_locale_h = yes; then
4853 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4854 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4855 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 cat >conftest.
$ac_ext <<_ACEOF
4861 cat confdefs.h
>>conftest.
$ac_ext
4862 cat >>conftest.
$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4873 rm -f conftest.
$ac_objext conftest
$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1
>conftest.err
4879 cat conftest.err
>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try
='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try
='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 am_cv_val_LC_MESSAGES
=yes
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.
$ac_ext >&5
4900 am_cv_val_LC_MESSAGES
=no
4902 rm -f conftest.err conftest.
$ac_objext \
4903 conftest
$ac_exeext conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4906 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4907 if test $am_cv_val_LC_MESSAGES = yes; then
4908 cat >>confdefs.h
<<\_ACEOF
4909 #define HAVE_LC_MESSAGES 1
4914 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4915 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4916 # Check whether --enable-nls or --disable-nls was given.
4917 if test "${enable_nls+set}" = set; then
4918 enableval
="$enable_nls"
4923 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4924 echo "${ECHO_T}$USE_NLS" >&6
4927 USE_INCLUDED_LIBINTL
=no
4929 if test "$USE_NLS" = "yes"; then
4930 cat >>confdefs.h
<<\_ACEOF
4931 #define ENABLE_NLS 1
4934 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4935 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4937 # Check whether --with-included-gettext or --without-included-gettext was given.
4938 if test "${with_included_gettext+set}" = set; then
4939 withval
="$with_included_gettext"
4940 nls_cv_force_use_gnu_gettext
=$withval
4942 nls_cv_force_use_gnu_gettext
=no
4944 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4945 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4947 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4948 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4950 nls_cv_header_libgt
=
4953 if test "${ac_cv_header_libintl_h+set}" = set; then
4954 echo "$as_me:$LINENO: checking for libintl.h" >&5
4955 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4956 if test "${ac_cv_header_libintl_h+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4960 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4962 # Is the header compilable?
4963 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4964 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4965 cat >conftest.
$ac_ext <<_ACEOF
4968 cat confdefs.h
>>conftest.
$ac_ext
4969 cat >>conftest.
$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4972 #include <libintl.h>
4974 rm -f conftest.
$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4978 grep -v '^ *+' conftest.er1
>conftest.err
4980 cat conftest.err
>&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try
='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try
='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_header_compiler
=yes
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.
$ac_ext >&5
5001 ac_header_compiler
=no
5003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005 echo "${ECHO_T}$ac_header_compiler" >&6
5007 # Is the header present?
5008 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5009 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5010 cat >conftest.
$ac_ext <<_ACEOF
5013 cat confdefs.h
>>conftest.
$ac_ext
5014 cat >>conftest.
$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <libintl.h>
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1
>conftest.err
5023 cat conftest.err
>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev
/null
; then
5026 if test -s conftest.err
; then
5027 ac_cpp_err
=$ac_c_preproc_warn_flag
5028 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5035 if test -z "$ac_cpp_err"; then
5036 ac_header_preproc
=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.
$ac_ext >&5
5041 ac_header_preproc
=no
5043 rm -f conftest.err conftest.
$ac_ext
5044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5045 echo "${ECHO_T}$ac_header_preproc" >&6
5047 # So? What about this header?
5048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5050 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5051 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5053 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5054 ac_header_preproc
=yes
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5058 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5060 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5062 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5064 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5066 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5068 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5071 ## ------------------------------------------ ##
5072 ## Report this to the AC_PACKAGE_NAME lists. ##
5073 ## ------------------------------------------ ##
5076 sed "s/^/$as_me: WARNING: /" >&2
5079 echo "$as_me:$LINENO: checking for libintl.h" >&5
5080 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5081 if test "${ac_cv_header_libintl_h+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 ac_cv_header_libintl_h
=$ac_header_preproc
5086 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5087 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5090 if test $ac_cv_header_libintl_h = yes; then
5091 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5092 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5093 if test "${gt_cv_func_gettext_libc+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 cat >conftest.
$ac_ext <<_ACEOF
5099 cat confdefs.h
>>conftest.
$ac_ext
5100 cat >>conftest.
$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <libintl.h>
5106 return (int) gettext ("")
5111 rm -f conftest.
$ac_objext conftest
$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try
='test -z "$ac_c_werror_flag"
5121 || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try
='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gt_cv_func_gettext_libc
=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.
$ac_ext >&5
5138 gt_cv_func_gettext_libc
=no
5140 rm -f conftest.err conftest.
$ac_objext \
5141 conftest
$ac_exeext conftest.
$ac_ext
5143 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5144 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5146 if test "$gt_cv_func_gettext_libc" != "yes"; then
5147 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5148 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5149 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 ac_check_lib_save_LIBS
=$LIBS
5154 cat >conftest.
$ac_ext <<_ACEOF
5157 cat confdefs.h
>>conftest.
$ac_ext
5158 cat >>conftest.
$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5161 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5167 char bindtextdomain ();
5176 rm -f conftest.
$ac_objext conftest
$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178 (eval $ac_link) 2>conftest.er1
5180 grep -v '^ *+' conftest.er1
>conftest.err
5182 cat conftest.err
>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try
='test -z "$ac_c_werror_flag"
5186 || test ! -s conftest.err'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; } &&
5192 { ac_try
='test -s conftest$ac_exeext'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 ac_cv_lib_intl_bindtextdomain
=yes
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.
$ac_ext >&5
5203 ac_cv_lib_intl_bindtextdomain
=no
5205 rm -f conftest.err conftest.
$ac_objext \
5206 conftest
$ac_exeext conftest.
$ac_ext
5207 LIBS
=$ac_check_lib_save_LIBS
5209 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5210 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5211 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5212 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5213 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5214 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5227 return (int) gettext ("")
5232 rm -f conftest.
$ac_objext conftest
$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try
='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 gt_cv_func_gettext_libintl
=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.
$ac_ext >&5
5259 gt_cv_func_gettext_libintl
=no
5261 rm -f conftest.err conftest.
$ac_objext \
5262 conftest
$ac_exeext conftest.
$ac_ext
5264 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5265 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5270 if test "$gt_cv_func_gettext_libc" = "yes" \
5271 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5272 cat >>confdefs.h
<<\_ACEOF
5273 #define HAVE_GETTEXT 1
5276 # Extract the first word of "msgfmt", so it can be a program name with args.
5277 set dummy msgfmt
; ac_word
=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_path_MSGFMT+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5288 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5289 for ac_dir
in $PATH; do
5290 test -z "$ac_dir" && ac_dir
=.
5291 if test -f $ac_dir/$ac_word; then
5292 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5293 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5299 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5303 MSGFMT
="$ac_cv_path_MSGFMT"
5304 if test -n "$MSGFMT"; then
5305 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5306 echo "${ECHO_T}$MSGFMT" >&6
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5311 if test "$MSGFMT" != "no"; then
5313 for ac_func
in dcgettext
5315 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5316 echo "$as_me:$LINENO: checking for $ac_func" >&5
5317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_var+set}\" = set"; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5329 #define $ac_func innocuous_$ac_func
5331 /* System header to define __stub macros and hopefully few prototypes,
5332 which can conflict with char $ac_func (); below.
5333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 <limits.h> exists even on freestanding compilers. */
5337 # include <limits.h>
5339 # include <assert.h>
5344 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5352 /* The GNU C library defines this for functions which it implements
5353 to always fail with ENOSYS. Some functions are actually named
5354 something starting with __ and the normal name is an alias. */
5355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5358 char (*f) () = $ac_func;
5367 return f != $ac_func;
5372 rm -f conftest.
$ac_objext conftest
$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>conftest.er1
5376 grep -v '^ *+' conftest.er1
>conftest.err
5378 cat conftest.err
>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try
='test -z "$ac_c_werror_flag"
5382 || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try
='test -s conftest$ac_exeext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 eval "$as_ac_var=yes"
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.
$ac_ext >&5
5399 eval "$as_ac_var=no"
5401 rm -f conftest.err conftest.
$ac_objext \
5402 conftest
$ac_exeext conftest.
$ac_ext
5404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5406 if test `eval echo '${'$as_ac_var'}'` = yes; then
5407 cat >>confdefs.h
<<_ACEOF
5408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5414 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5415 set dummy gmsgfmt
; ac_word
=$2
5416 echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir
=.
5431 for ac_exec_ext
in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5444 GMSGFMT
=$ac_cv_path_GMSGFMT
5446 if test -n "$GMSGFMT"; then
5447 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5448 echo "${ECHO_T}$GMSGFMT" >&6
5450 echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6
5454 # Extract the first word of "xgettext", so it can be a program name with args.
5455 set dummy xgettext
; ac_word
=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5466 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5467 for ac_dir
in $PATH; do
5468 test -z "$ac_dir" && ac_dir
=.
5469 if test -f $ac_dir/$ac_word; then
5470 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5471 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5477 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5481 XGETTEXT
="$ac_cv_path_XGETTEXT"
5482 if test -n "$XGETTEXT"; then
5483 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5484 echo "${ECHO_T}$XGETTEXT" >&6
5486 echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5490 cat >conftest.
$ac_ext <<_ACEOF
5493 cat confdefs.h
>>conftest.
$ac_ext
5494 cat >>conftest.
$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5500 extern int _nl_msg_cat_cntr;
5501 return _nl_msg_cat_cntr
5506 rm -f conftest.
$ac_objext conftest
$ac_exeext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>conftest.er1
5510 grep -v '^ *+' conftest.er1
>conftest.err
5512 cat conftest.err
>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try
='test -z "$ac_c_werror_flag"
5516 || test ! -s conftest.err'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try
='test -s conftest$ac_exeext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.
$ac_ext >&5
5537 rm -f conftest.err conftest.
$ac_objext \
5538 conftest
$ac_exeext conftest.
$ac_ext
5548 if test "$CATOBJEXT" = "NONE"; then
5549 nls_cv_use_gnu_gettext
=yes
5553 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5554 INTLOBJS
="\$(GETTOBJS)"
5555 # Extract the first word of "msgfmt", so it can be a program name with args.
5556 set dummy msgfmt
; ac_word
=$2
5557 echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559 if test "${ac_cv_path_MSGFMT+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5568 for ac_dir
in $PATH; do
5569 test -z "$ac_dir" && ac_dir
=.
5570 if test -f $ac_dir/$ac_word; then
5571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5572 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5578 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5582 MSGFMT
="$ac_cv_path_MSGFMT"
5583 if test -n "$MSGFMT"; then
5584 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5585 echo "${ECHO_T}$MSGFMT" >&6
5587 echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5591 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5592 set dummy gmsgfmt
; ac_word
=$2
5593 echo "$as_me:$LINENO: checking for $ac_word" >&5
5594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5595 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5607 test -z "$as_dir" && as_dir
=.
5608 for ac_exec_ext
in '' $ac_executable_extensions; do
5609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5610 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5621 GMSGFMT
=$ac_cv_path_GMSGFMT
5623 if test -n "$GMSGFMT"; then
5624 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5625 echo "${ECHO_T}$GMSGFMT" >&6
5627 echo "$as_me:$LINENO: result: no" >&5
5628 echo "${ECHO_T}no" >&6
5631 # Extract the first word of "xgettext", so it can be a program name with args.
5632 set dummy xgettext
; ac_word
=$2
5633 echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5644 for ac_dir
in $PATH; do
5645 test -z "$ac_dir" && ac_dir
=.
5646 if test -f $ac_dir/$ac_word; then
5647 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5648 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5654 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5658 XGETTEXT
="$ac_cv_path_XGETTEXT"
5659 if test -n "$XGETTEXT"; then
5660 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5661 echo "${ECHO_T}$XGETTEXT" >&6
5663 echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5668 USE_INCLUDED_LIBINTL
=yes
5672 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5674 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5675 nls_cv_header_intl
=libintl.h
5676 nls_cv_header_libgt
=libgettext.h
5679 if test "$XGETTEXT" != ":"; then
5680 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5683 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5684 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5689 # We need to process the po/ directory.
5693 nls_cv_header_intl
=libintl.h
5694 nls_cv_header_libgt
=libgettext.h
5697 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5698 # because some of the sources are only built for this goal.
5699 if test "$PACKAGE" = gettext; then
5701 USE_INCLUDED_LIBINTL
=yes
5704 for lang
in $ALL_LINGUAS; do
5705 GMOFILES
="$GMOFILES $lang.gmo"
5706 POFILES
="$POFILES $lang.po"
5722 if test "x$CATOBJEXT" != "x"; then
5723 if test "x$ALL_LINGUAS" = "x"; then
5726 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5727 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5729 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5730 case "$ALL_LINGUAS" in
5731 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5734 LINGUAS
=$NEW_LINGUAS
5735 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5736 echo "${ECHO_T}$LINGUAS" >&6
5739 if test -n "$LINGUAS"; then
5740 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5744 if test $ac_cv_header_locale_h = yes; then
5745 INCLUDE_LOCALE_H
="#include <locale.h>"
5748 /* The system does not provide the header <locale.h>. Take care yourself. */"
5752 if test -f $srcdir/po2tbl.
sed.
in; then
5753 if test "$CATOBJEXT" = ".cat"; then
5754 if test "${ac_cv_header_linux_version_h+set}" = set; then
5755 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5756 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5757 if test "${ac_cv_header_linux_version_h+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5761 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5763 # Is the header compilable?
5764 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5765 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5766 cat >conftest.
$ac_ext <<_ACEOF
5769 cat confdefs.h
>>conftest.
$ac_ext
5770 cat >>conftest.
$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 #include <linux/version.h>
5775 rm -f conftest.
$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5779 grep -v '^ *+' conftest.er1
>conftest.err
5781 cat conftest.err
>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try
='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try
='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_header_compiler
=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.
$ac_ext >&5
5802 ac_header_compiler
=no
5804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5806 echo "${ECHO_T}$ac_header_compiler" >&6
5808 # Is the header present?
5809 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5810 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5811 cat >conftest.
$ac_ext <<_ACEOF
5814 cat confdefs.h
>>conftest.
$ac_ext
5815 cat >>conftest.
$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <linux/version.h>
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1
>conftest.err
5824 cat conftest.err
>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev
/null
; then
5827 if test -s conftest.err
; then
5828 ac_cpp_err
=$ac_c_preproc_warn_flag
5829 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5836 if test -z "$ac_cpp_err"; then
5837 ac_header_preproc
=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5842 ac_header_preproc
=no
5844 rm -f conftest.err conftest.
$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5846 echo "${ECHO_T}$ac_header_preproc" >&6
5848 # So? What about this header?
5849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5852 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5853 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5854 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5855 ac_header_preproc
=yes
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5859 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5861 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5863 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5865 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5867 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5869 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5872 ## ------------------------------------------ ##
5873 ## Report this to the AC_PACKAGE_NAME lists. ##
5874 ## ------------------------------------------ ##
5877 sed "s/^/$as_me: WARNING: /" >&2
5880 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5881 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5882 if test "${ac_cv_header_linux_version_h+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_cv_header_linux_version_h
=$ac_header_preproc
5887 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5888 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5891 if test $ac_cv_header_linux_version_h = yes; then
5899 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5901 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5902 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5905 if test "$PACKAGE" = "gettext"; then
5915 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5921 if test -d $srcdir/po
; then
5922 test -d po || mkdir po
5923 if test "x$srcdir" != "x."; then
5924 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5925 posrcprefix
="$srcdir/"
5927 posrcprefix
="../$srcdir/"
5933 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5934 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5938 # Check for common headers.
5939 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5940 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5946 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo "$as_me:$LINENO: checking for $ac_header" >&5
5951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5958 # Is the header compilable?
5959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968 #include <$ac_header>
5970 rm -f conftest.
$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>conftest.er1
5974 grep -v '^ *+' conftest.er1
>conftest.err
5976 cat conftest.err
>&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try
='test -z "$ac_c_werror_flag"
5980 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try
='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_header_compiler
=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_header_compiler
=no
5999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6001 echo "${ECHO_T}$ac_header_compiler" >&6
6003 # Is the header present?
6004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6006 cat >conftest.
$ac_ext <<_ACEOF
6009 cat confdefs.h
>>conftest.
$ac_ext
6010 cat >>conftest.
$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <$ac_header>
6014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } >/dev
/null
; then
6022 if test -s conftest.err
; then
6023 ac_cpp_err
=$ac_c_preproc_warn_flag
6024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6031 if test -z "$ac_cpp_err"; then
6032 ac_header_preproc
=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 ac_header_preproc
=no
6039 rm -f conftest.err conftest.
$ac_ext
6040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6041 echo "${ECHO_T}$ac_header_preproc" >&6
6043 # So? What about this header?
6044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6050 ac_header_preproc
=yes
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6067 ## ------------------------------------------ ##
6068 ## Report this to the AC_PACKAGE_NAME lists. ##
6069 ## ------------------------------------------ ##
6072 sed "s/^/$as_me: WARNING: /" >&2
6075 echo "$as_me:$LINENO: checking for $ac_header" >&5
6076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 eval "$as_ac_Header=\$ac_header_preproc"
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6087 cat >>confdefs.h
<<_ACEOF
6088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6097 for ac_header
in sys
/time.h sys
/resource.h
6099 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109 # Is the header compilable?
6110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 $ac_includes_default
6119 #include <$ac_header>
6121 rm -f conftest.
$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6125 grep -v '^ *+' conftest.er1
>conftest.err
6127 cat conftest.err
>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try
='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try
='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_header_compiler
=yes
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.
$ac_ext >&5
6148 ac_header_compiler
=no
6150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152 echo "${ECHO_T}$ac_header_compiler" >&6
6154 # Is the header present?
6155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <$ac_header>
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6168 grep -v '^ *+' conftest.er1
>conftest.err
6170 cat conftest.err
>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev
/null
; then
6173 if test -s conftest.err
; then
6174 ac_cpp_err
=$ac_c_preproc_warn_flag
6175 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6182 if test -z "$ac_cpp_err"; then
6183 ac_header_preproc
=yes
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.
$ac_ext >&5
6188 ac_header_preproc
=no
6190 rm -f conftest.err conftest.
$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6192 echo "${ECHO_T}$ac_header_preproc" >&6
6194 # So? What about this header?
6195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6201 ac_header_preproc
=yes
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6218 ## ------------------------------------------ ##
6219 ## Report this to the AC_PACKAGE_NAME lists. ##
6220 ## ------------------------------------------ ##
6223 sed "s/^/$as_me: WARNING: /" >&2
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h
<<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 for ac_header
in fcntl.h fpu_control.h
6250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo "$as_me:$LINENO: checking for $ac_header" >&5
6253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260 # Is the header compilable?
6261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6263 cat >conftest.
$ac_ext <<_ACEOF
6266 cat confdefs.h
>>conftest.
$ac_ext
6267 cat >>conftest.
$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 $ac_includes_default
6270 #include <$ac_header>
6272 rm -f conftest.
$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1
>conftest.err
6278 cat conftest.err
>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try
='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try
='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_header_compiler
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_header_compiler
=no
6301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6303 echo "${ECHO_T}$ac_header_compiler" >&6
6305 # Is the header present?
6306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6308 cat >conftest.
$ac_ext <<_ACEOF
6311 cat confdefs.h
>>conftest.
$ac_ext
6312 cat >>conftest.
$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <$ac_header>
6316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6317 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6319 grep -v '^ *+' conftest.er1
>conftest.err
6321 cat conftest.err
>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev
/null
; then
6324 if test -s conftest.err
; then
6325 ac_cpp_err
=$ac_c_preproc_warn_flag
6326 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6333 if test -z "$ac_cpp_err"; then
6334 ac_header_preproc
=yes
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.
$ac_ext >&5
6339 ac_header_preproc
=no
6341 rm -f conftest.err conftest.
$ac_ext
6342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343 echo "${ECHO_T}$ac_header_preproc" >&6
6345 # So? What about this header?
6346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352 ac_header_preproc
=yes
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6369 ## ------------------------------------------ ##
6370 ## Report this to the AC_PACKAGE_NAME lists. ##
6371 ## ------------------------------------------ ##
6374 sed "s/^/$as_me: WARNING: /" >&2
6377 echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 eval "$as_ac_Header=\$ac_header_preproc"
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h
<<_ACEOF
6390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400 for ac_header
in dlfcn.h errno.h sys
/stat.h
6402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.
$ac_ext <<_ACEOF
6418 cat confdefs.h
>>conftest.
$ac_ext
6419 cat >>conftest.
$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6422 #include <$ac_header>
6424 rm -f conftest.
$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>conftest.er1
6428 grep -v '^ *+' conftest.er1
>conftest.err
6430 cat conftest.err
>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try
='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try
='test -s conftest.$ac_objext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_header_compiler
=yes
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.
$ac_ext >&5
6451 ac_header_compiler
=no
6453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6455 echo "${ECHO_T}$ac_header_compiler" >&6
6457 # Is the header present?
6458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <$ac_header>
6468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6469 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6471 grep -v '^ *+' conftest.er1
>conftest.err
6473 cat conftest.err
>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev
/null
; then
6476 if test -s conftest.err
; then
6477 ac_cpp_err
=$ac_c_preproc_warn_flag
6478 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6485 if test -z "$ac_cpp_err"; then
6486 ac_header_preproc
=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6491 ac_header_preproc
=no
6493 rm -f conftest.err conftest.
$ac_ext
6494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495 echo "${ECHO_T}$ac_header_preproc" >&6
6497 # So? What about this header?
6498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6504 ac_header_preproc
=yes
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6521 ## ------------------------------------------ ##
6522 ## Report this to the AC_PACKAGE_NAME lists. ##
6523 ## ------------------------------------------ ##
6526 sed "s/^/$as_me: WARNING: /" >&2
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 eval "$as_ac_Header=\$ac_header_preproc"
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6541 cat >>confdefs.h
<<_ACEOF
6542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 for ac_func
in getrusage
time sigaction __setfpucw
6555 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6556 echo "$as_me:$LINENO: checking for $ac_func" >&5
6557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_var+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 cat >conftest.
$ac_ext <<_ACEOF
6564 cat confdefs.h
>>conftest.
$ac_ext
6565 cat >>conftest.
$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6569 #define $ac_func innocuous_$ac_func
6571 /* System header to define __stub macros and hopefully few prototypes,
6572 which can conflict with char $ac_func (); below.
6573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574 <limits.h> exists even on freestanding compilers. */
6577 # include <limits.h>
6579 # include <assert.h>
6584 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6592 /* The GNU C library defines this for functions which it implements
6593 to always fail with ENOSYS. Some functions are actually named
6594 something starting with __ and the normal name is an alias. */
6595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6598 char (*f) () = $ac_func;
6607 return f != $ac_func;
6612 rm -f conftest.
$ac_objext conftest
$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1
>conftest.err
6618 cat conftest.err
>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try
='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try
='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 eval "$as_ac_var=yes"
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.
$ac_ext >&5
6639 eval "$as_ac_var=no"
6641 rm -f conftest.err conftest.
$ac_objext \
6642 conftest
$ac_exeext conftest.
$ac_ext
6644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6646 if test `eval echo '${'$as_ac_var'}'` = yes; then
6647 cat >>confdefs.h
<<_ACEOF
6648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6655 # Check for socket libraries
6657 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6658 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6659 if test "${ac_cv_lib_socket_bind+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_check_lib_save_LIBS
=$LIBS
6663 LIBS
="-lsocket $LIBS"
6664 cat >conftest.
$ac_ext <<_ACEOF
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6686 rm -f conftest.
$ac_objext conftest
$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6690 grep -v '^ *+' conftest.er1
>conftest.err
6692 cat conftest.err
>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try
='test -z "$ac_c_werror_flag"
6696 || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try
='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_lib_socket_bind
=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.
$ac_ext >&5
6713 ac_cv_lib_socket_bind
=no
6715 rm -f conftest.err conftest.
$ac_objext \
6716 conftest
$ac_exeext conftest.
$ac_ext
6717 LIBS
=$ac_check_lib_save_LIBS
6719 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6720 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6721 if test $ac_cv_lib_socket_bind = yes; then
6722 cat >>confdefs.h
<<_ACEOF
6723 #define HAVE_LIBSOCKET 1
6726 LIBS
="-lsocket $LIBS"
6731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_check_lib_save_LIBS
=$LIBS
6738 cat >conftest.
$ac_ext <<_ACEOF
6741 cat confdefs.h
>>conftest.
$ac_ext
6742 cat >>conftest.
$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6745 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6751 char gethostbyname ();
6760 rm -f conftest.
$ac_objext conftest
$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1
>conftest.err
6766 cat conftest.err
>&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try
='test -z "$ac_c_werror_flag"
6770 || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try
='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_lib_nsl_gethostbyname
=yes
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.
$ac_ext >&5
6787 ac_cv_lib_nsl_gethostbyname
=no
6789 rm -f conftest.err conftest.
$ac_objext \
6790 conftest
$ac_exeext conftest.
$ac_ext
6791 LIBS
=$ac_check_lib_save_LIBS
6793 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6794 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6795 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define HAVE_LIBNSL 1
6805 .
${srcdir}/..
/..
/bfd
/configure.
host
6809 USE_MAINTAINER_MODE
=no
6810 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6811 if test "${enable_maintainer_mode+set}" = set; then
6812 enableval
="$enable_maintainer_mode"
6813 case "${enableval}" in
6814 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6816 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6817 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6818 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6820 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6821 echo "Setting maintainer mode" 6>&1
6828 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6829 if test "${enable_sim_bswap+set}" = set; then
6830 enableval
="$enable_sim_bswap"
6831 case "${enableval}" in
6832 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6833 no
) sim_bswap
="-DWITH_BSWAP=0";;
6834 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6835 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6836 { (exit 1); exit 1; }; }; sim_bswap
="";;
6838 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6839 echo "Setting bswap flags = $sim_bswap" 6>&1
6846 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6847 if test "${enable_sim_cflags+set}" = set; then
6848 enableval
="$enable_sim_cflags"
6849 case "${enableval}" in
6850 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6851 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6852 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6853 { (exit 1); exit 1; }; }; sim_cflags
="";;
6855 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6857 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6858 echo "Setting sim cflags = $sim_cflags" 6>&1
6865 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6866 if test "${enable_sim_debug+set}" = set; then
6867 enableval
="$enable_sim_debug"
6868 case "${enableval}" in
6869 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6870 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6871 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6873 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6874 echo "Setting sim debug = $sim_debug" 6>&1
6881 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6882 if test "${enable_sim_stdio+set}" = set; then
6883 enableval
="$enable_sim_stdio"
6884 case "${enableval}" in
6885 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6886 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6887 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6888 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6889 { (exit 1); exit 1; }; }; sim_stdio
="";;
6891 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6892 echo "Setting stdio flags = $sim_stdio" 6>&1
6899 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6900 if test "${enable_sim_trace+set}" = set; then
6901 enableval
="$enable_sim_trace"
6902 case "${enableval}" in
6903 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6904 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6906 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6909 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6910 if test x
"$sim_trace" = x
; then
6911 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6913 sim_trace
="${sim_trace}|TRACE_$x"
6916 sim_trace
="$sim_trace)'" ;;
6918 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6919 echo "Setting sim trace = $sim_trace" 6>&1
6926 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6927 if test "${enable_sim_profile+set}" = set; then
6928 enableval
="$enable_sim_profile"
6929 case "${enableval}" in
6930 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6931 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6933 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6936 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6937 if test x
"$sim_profile" = x
; then
6938 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6940 sim_profile
="${sim_profile}|PROFILE_$x"
6943 sim_profile
="$sim_profile)'" ;;
6945 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6946 echo "Setting sim profile = $sim_profile" 6>&1
6949 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6953 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6954 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6955 if test "${ac_cv_type_signal+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 cat >conftest.
$ac_ext <<_ACEOF
6961 cat confdefs.h
>>conftest.
$ac_ext
6962 cat >>conftest.
$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #include <sys/types.h>
6970 extern "C" void (*signal (int, void (*)(int)))(int);
6972 void (*signal ()) ();
6983 rm -f conftest.
$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -z "$ac_c_werror_flag"
6993 || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try
='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_cv_type_signal
=void
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.
$ac_ext >&5
7010 ac_cv_type_signal
=int
7012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7015 echo "${ECHO_T}$ac_cv_type_signal" >&6
7017 cat >>confdefs.h
<<_ACEOF
7018 #define RETSIGTYPE $ac_cv_type_signal
7028 sim_link_links
=tconfig.h
7029 if test -f ${srcdir}/tconfig.
in
7031 sim_link_files
=tconfig.
in
7033 sim_link_files
=..
/common
/tconfig.
in
7036 # targ-vals.def points to the libc macro description file.
7038 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7040 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7041 sim_link_links
="${sim_link_links} targ-vals.def"
7045 default_sim_inline
=""
7046 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7047 if test "${enable_sim_inline+set}" = set; then
7048 enableval
="$enable_sim_inline"
7050 case "$enableval" in
7051 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7052 0) sim_inline
="-DDEFAULT_INLINE=0";;
7053 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7054 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7055 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7058 *_INLINE
=*) new_flag
="-D$x";;
7059 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7060 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7061 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7063 if test x
"$sim_inline" = x
""; then
7064 sim_inline
="$new_flag"
7066 sim_inline
="$sim_inline $new_flag"
7070 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7071 echo "Setting inline flags = $sim_inline" 6>&1
7075 if test "x$cross_compiling" = "xno"; then
7076 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7077 sim_inline
="${default_sim_inline}"
7078 if test x
"$silent" != x
"yes"; then
7079 echo "Setting inline flags = $sim_inline" 6>&1
7085 sim_inline
="-DDEFAULT_INLINE=0"
7088 wire_alignment
="NONSTRICT_ALIGNMENT"
7089 default_alignment
=""
7091 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7092 if test "${enable_sim_alignment+set}" = set; then
7093 enableval
="$enable_sim_alignment"
7094 case "${enableval}" in
7095 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7096 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7097 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7098 yes) if test x
"$wire_alignment" != x
; then
7099 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7101 if test x
"$default_alignment" != x
; then
7102 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7104 echo "No hard-wired alignment for target $target" 1>&6
7105 sim_alignment
="-DWITH_ALIGNMENT=0"
7108 no
) if test x
"$default_alignment" != x
; then
7109 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7111 if test x
"$wire_alignment" != x
; then
7112 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7114 echo "No default alignment for target $target" 1>&6
7115 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7118 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7119 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7120 { (exit 1); exit 1; }; }; sim_alignment
="";;
7122 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7123 echo "Setting alignment flags = $sim_alignment" 6>&1
7126 if test x
"$default_alignment" != x
; then
7127 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7129 if test x
"$wire_alignment" != x
; then
7130 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7137 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7138 if test "${enable_sim_hostendian+set}" = set; then
7139 enableval
="$enable_sim_hostendian"
7140 case "${enableval}" in
7141 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7142 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7143 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7144 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7145 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7146 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7148 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7149 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7153 if test "x$cross_compiling" = "xno"; then
7154 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7155 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7156 if test "${ac_cv_c_bigendian+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 # See if sys/param.h defines the BYTE_ORDER macro.
7160 cat >conftest.
$ac_ext <<_ACEOF
7163 cat confdefs.h
>>conftest.
$ac_ext
7164 cat >>conftest.
$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 #include <sys/types.h>
7167 #include <sys/param.h>
7172 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7180 rm -f conftest.
$ac_objext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182 (eval $ac_compile) 2>conftest.er1
7184 grep -v '^ *+' conftest.er1
>conftest.err
7186 cat conftest.err
>&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try
='test -z "$ac_c_werror_flag"
7190 || test ! -s conftest.err'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try
='test -s conftest.$ac_objext'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 # It does; now see whether it defined to BIG_ENDIAN or not.
7203 cat >conftest.
$ac_ext <<_ACEOF
7206 cat confdefs.h
>>conftest.
$ac_ext
7207 cat >>conftest.
$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 #include <sys/types.h>
7210 #include <sys/param.h>
7215 #if BYTE_ORDER != BIG_ENDIAN
7223 rm -f conftest.
$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>conftest.er1
7227 grep -v '^ *+' conftest.er1
>conftest.err
7229 cat conftest.err
>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try
='test -z "$ac_c_werror_flag"
7233 || test ! -s conftest.err'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try
='test -s conftest.$ac_objext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_c_bigendian
=yes
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.
$ac_ext >&5
7250 ac_cv_c_bigendian
=no
7252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.
$ac_ext >&5
7257 # It does not; compile a test program.
7258 if test "$cross_compiling" = yes; then
7259 # try to guess the endianness by grepping values into an object file
7260 ac_cv_c_bigendian
=unknown
7261 cat >conftest.
$ac_ext <<_ACEOF
7264 cat confdefs.h
>>conftest.
$ac_ext
7265 cat >>conftest.
$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7268 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7270 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7271 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7276 _ascii (); _ebcdic ();
7281 rm -f conftest.
$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1
>conftest.err
7287 cat conftest.err
>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try
='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try
='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7304 ac_cv_c_bigendian
=yes
7306 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7307 if test "$ac_cv_c_bigendian" = unknown
; then
7308 ac_cv_c_bigendian
=no
7310 # finding both strings is unlikely to happen, but who knows?
7311 ac_cv_c_bigendian
=unknown
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.
$ac_ext >&5
7319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7321 cat >conftest.
$ac_ext <<_ACEOF
7324 cat confdefs.h
>>conftest.
$ac_ext
7325 cat >>conftest.
$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7330 /* Are we little or big endian? From Harbison&Steele. */
7334 char c[sizeof (long)];
7337 exit (u.c[sizeof (long) - 1] == 1);
7340 rm -f conftest
$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_c_bigendian
=no
7353 echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.
$ac_ext >&5
7358 ac_cv_c_bigendian
=yes
7360 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7366 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7367 case $ac_cv_c_bigendian in
7370 cat >>confdefs.h
<<\_ACEOF
7371 #define WORDS_BIGENDIAN 1
7377 { { echo "$as_me:$LINENO: error: unknown endianness
7378 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7379 echo "$as_me: error: unknown endianness
7380 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7381 { (exit 1); exit 1; }; } ;;
7384 if test $ac_cv_c_bigendian = yes; then
7385 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7387 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7390 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7394 # NOTE: Don't add -Wall or -Wunused, they both include
7395 # -Wunused-parameter which reports bogus warnings.
7396 # NOTE: If you add to this list, remember to update
7397 # gdb/doc/gdbint.texinfo.
7398 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7399 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7400 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7401 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7402 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7403 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7404 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7405 # -Woverloaded-virtual -Winline -Werror"
7406 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7407 if test "${enable_build_warnings+set}" = set; then
7408 enableval
="$enable_build_warnings"
7409 case "${enableval}" in
7411 no
) build_warnings
="-w";;
7412 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7413 build_warnings
="${build_warnings} ${t}";;
7414 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7415 build_warnings
="${t} ${build_warnings}";;
7416 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7418 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7419 echo "Setting compiler warning flags = $build_warnings" 6>&1
7421 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7422 if test "${enable_sim_build_warnings+set}" = set; then
7423 enableval
="$enable_sim_build_warnings"
7424 case "${enableval}" in
7426 no
) build_warnings
="-w";;
7427 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7428 build_warnings
="${build_warnings} ${t}";;
7429 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7430 build_warnings
="${t} ${build_warnings}";;
7431 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7433 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7434 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7438 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7440 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7441 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7442 # Separate out the -Werror flag as some files just cannot be
7443 # compiled with it enabled.
7444 for w
in ${build_warnings}; do
7446 -Werr*) WERROR_CFLAGS
=-Werror ;;
7447 *) # Check that GCC accepts it
7448 saved_CFLAGS
="$CFLAGS"
7450 cat >conftest.
$ac_ext <<_ACEOF
7453 cat confdefs.h
>>conftest.
$ac_ext
7454 cat >>conftest.
$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7465 rm -f conftest.
$ac_objext
7466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467 (eval $ac_compile) 2>conftest.er1
7469 grep -v '^ *+' conftest.er1
>conftest.err
7471 cat conftest.err
>&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } &&
7474 { ac_try
='test -z "$ac_c_werror_flag"
7475 || test ! -s conftest.err'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; } &&
7481 { ac_try
='test -s conftest.$ac_objext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.
$ac_ext >&5
7493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7494 CFLAGS
="$saved_CFLAGS"
7497 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7498 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7502 default_sim_reserved_bits
="1"
7503 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7504 if test "${enable_sim_reserved_bits+set}" = set; then
7505 enableval
="$enable_sim_reserved_bits"
7506 case "${enableval}" in
7507 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
7508 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
7509 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7510 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7511 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
7513 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
7514 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7517 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7522 # Instead of defining a `subtarget' macro, code should be checking
7523 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7527 mips64vr
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
7528 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
7529 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
7530 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
7531 *) SIM_SUBTARGET
="";;
7538 # Select the byte order of the target
7543 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
7544 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
7545 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
7546 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
7547 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
7548 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
7549 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
7550 *) default_endian
=BIG_ENDIAN
;;
7553 wire_endian
="$mips_endian"
7554 default_endian
="$default_endian"
7555 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7556 if test "${enable_sim_endian+set}" = set; then
7557 enableval
="$enable_sim_endian"
7558 case "${enableval}" in
7559 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7560 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7561 yes) if test x
"$wire_endian" != x
; then
7562 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7564 if test x
"$default_endian" != x
; then
7565 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7567 echo "No hard-wired endian for target $target" 1>&6
7568 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
7571 no
) if test x
"$default_endian" != x
; then
7572 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7574 if test x
"$wire_endian" != x
; then
7575 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7577 echo "No default endian for target $target" 1>&6
7578 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7581 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7582 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7583 { (exit 1); exit 1; }; }; sim_endian
="";;
7585 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
7586 echo "Setting endian flags = $sim_endian" 6>&1
7589 if test x
"$default_endian" != x
; then
7590 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7592 if test x
"$wire_endian" != x
; then
7593 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7603 # Select the bitsize of the target
7607 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
7608 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
7609 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
7610 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
7611 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
7612 *) mips_bitsize
=64 ; mips_msb
=63 ;;
7614 wire_word_bitsize
="$mips_bitsize"
7615 wire_word_msb
="$mips_msb"
7616 wire_address_bitsize
="$mips_addr_bitsize"
7617 wire_cell_bitsize
=""
7618 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7619 if test "${enable_sim_bitsize+set}" = set; then
7620 enableval
="$enable_sim_bitsize"
7622 case "${enableval}" in
7623 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7624 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7625 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7626 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7627 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7628 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7630 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7632 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7633 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7635 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7637 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7638 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7639 { (exit 1); exit 1; }; } ;;
7642 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7645 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7646 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7647 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7648 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7649 { (exit 1); exit 1; }; } ;;
7652 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7655 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7656 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7657 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7658 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7659 { (exit 1); exit 1; }; } ;;
7661 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
7662 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7666 if test x
"$wire_word_bitsize" != x
; then
7667 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7669 if test x
"$wire_word_msb" != x
; then
7670 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7672 if test x
"$wire_address_bitsize" != x
; then
7673 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7675 if test x
"$wire_cell_bitsize" != x
; then
7676 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7683 # Select the floating hardware support of the target
7685 mips_fpu
=HARDWARE_FLOATING_POINT
7688 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
7691 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
7692 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
7693 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
7694 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
7695 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
7696 *) mips_fpu
=HARD_FLOATING_POINT
;;
7699 default_sim_float
="$mips_fpu"
7700 default_sim_float_bitsize
="$mips_fpu_bitsize"
7701 # Check whether --enable-sim-float or --disable-sim-float was given.
7702 if test "${enable_sim_float+set}" = set; then
7703 enableval
="$enable_sim_float"
7704 case "${enableval}" in
7705 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7706 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7707 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7708 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
7709 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7710 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7711 { (exit 1); exit 1; }; }; sim_float
="";;
7713 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
7714 echo "Setting float flags = $sim_float" 6>&1
7719 if test x
"${default_sim_float}" != x
""; then
7720 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
7722 if test x
"${default_sim_float_bitsize}" != x
""; then
7723 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7731 # Select the level of SMP support
7737 default_sim_smp
="$mips_smp"
7738 # Check whether --enable-sim-smp or --disable-sim-smp was given.
7739 if test "${enable_sim_smp+set}" = set; then
7740 enableval
="$enable_sim_smp"
7741 case "${enableval}" in
7742 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
7743 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
7744 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
7746 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
7747 echo "Setting smp flags = $sim_smp" 6>&1
7750 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
7751 if test x
"$silent" != x
"yes"; then
7752 echo "Setting smp flags = $sim_smp" 6>&1
7759 # Select the IGEN architecture
7762 sim_igen_machine
="-M mipsIV"
7763 sim_m16_machine
="-M mips16,mipsIII"
7764 sim_igen_filter
="32,64,f"
7766 sim_mach_default
="mips8000"
7769 mips
*tx39
*) sim_gen
=IGEN
7770 sim_igen_filter
="32,f"
7771 sim_igen_machine
="-M r3900"
7773 mips64vr43
*-*-*) sim_gen
=IGEN
7774 sim_igen_machine
="-M mipsIV"
7775 sim_mach_default
="mips8000"
7777 mips64vr5
*-*-*) sim_gen
=IGEN
7778 sim_igen_machine
="-M vr5000"
7779 sim_mach_default
="mips5000"
7781 mips64vr41
*) sim_gen
=M16
7782 sim_igen_machine
="-M vr4100"
7783 sim_m16_machine
="-M vr4100"
7784 sim_igen_filter
="32,64,f"
7786 sim_mach_default
="mips4100"
7788 mips64vr-
*-* | mips64vrel-
*-*)
7790 sim_multi_configs
="\
7791 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7792 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7793 vr5000:mipsIV:32,64,f:mips4300,mips5000\
7794 vr5400:mipsIV,vr5400:32,64,f:mips5400\
7795 vr5500:mipsIV,vr5500:32,64,f:mips5500"
7796 sim_multi_default
=mips5000
7798 mips64
*-*-*) sim_igen_filter
="32,64,f"
7801 mips16
*-*-*) sim_gen
=M16
7802 sim_igen_filter
="32,64,f"
7805 mipsisa32
*-*-*) sim_gen
=IGEN
7806 sim_igen_machine
="-M mips32"
7807 sim_igen_filter
="32,f"
7808 sim_mach_default
="mipsisa32"
7810 mipsisa64sb1
*-*-*) sim_gen
=IGEN
7811 sim_igen_machine
="-M mips64,mips3d,sb1"
7812 sim_igen_filter
="32,64,f"
7813 sim_mach_default
="mips_sb1"
7815 mipsisa64
*-*-*) sim_gen
=IGEN
7816 sim_igen_machine
="-M mips64,mips3d"
7817 sim_igen_filter
="32,64,f"
7818 sim_mach_default
="mipsisa64"
7820 mips
*lsi
*) sim_gen
=M16
7821 sim_igen_machine
="-M mipsIII,mips16"
7822 sim_m16_machine
="-M mips16,mipsIII"
7823 sim_igen_filter
="32,f"
7825 sim_mach_default
="mips4000"
7827 mips
*-*-*) sim_gen
=IGEN
7828 sim_igen_filter
="32,f"
7832 # The MULTI generator can combine several simulation engines into one.
7833 # executable. A configuration which uses the MULTI should set two
7834 # variables: ${sim_multi_configs} and ${sim_multi_default}.
7836 # ${sim_multi_configs} is the list of engines to build. Each
7837 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7840 # - NAME is a C-compatible prefix for the engine,
7841 # - MACHINE is a -M argument,
7842 # - FILTER is a -F argument, and
7843 # - BFDMACHS is a comma-separated list of bfd machines that the
7844 # simulator can run.
7846 # Each entry will have a separate simulation engine whose prefix is
7847 # m32<NAME>. If the machine list includes "mips16", there will also
7848 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
7849 # generated using the same machine list as the 32-bit version,
7850 # but the filter will be "16" instead of FILTER.
7852 # The simulator compares the bfd mach against BFDMACHS to decide
7853 # which engine to use. Entries in BFDMACHS should be bfd_mach
7854 # values with "bfd_mach_" removed. ${sim_multi_default} says
7855 # which entry should be the default.
7856 if test ${sim_gen} = MULTI
; then
7858 # Simple sanity check.
7859 if test -z "${sim_multi_configs}" ||
test -z "${sim_multi_default}"; then
7860 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7861 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7862 { (exit 1); exit 1; }; }
7865 # Start in a known state.
7866 rm -f multi-include.h multi-run.c
7869 sim_multi_obj
=multi-run.o
7870 sim_multi_igen_configs
=
7873 cat << __EOF__ > multi-run.c
7874 /* Main entry point for MULTI simulators.
7875 Copyright (C) 2003 Free Software Foundation, Inc.
7877 This program is free software; you can redistribute it and/or modify
7878 it under the terms of the GNU General Public License as published by
7879 the Free Software Foundation; either version 2 of the License, or
7880 (at your option) any later version.
7882 This program is distributed in the hope that it will be useful,
7883 but WITHOUT ANY WARRANTY; without even the implied warranty of
7884 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7885 GNU General Public License for more details.
7887 You should have received a copy of the GNU General Public License
7888 along with this program; if not, write to the Free Software
7889 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7893 This file was generated by sim/mips/configure. */
7895 #include "sim-main.h"
7896 #include "multi-include.h"
7902 sim_engine_run (SIM_DESC sd,
7905 int signal) /* ignore */
7909 if (STATE_ARCHITECTURE (sd) == NULL)
7910 mach = bfd_mach_${sim_multi_default};
7912 mach = STATE_ARCHITECTURE (SD)->mach;
7918 for fc in ${sim_multi_configs}; do
7920 # Split up the entry. ${c} contains the first three elements.
7921 # Note: outer sqaure brackets are m4 quotes.
7922 c
=`echo ${fc} | sed 's/:[^:]*$//'`
7923 bfdmachs
=`echo ${fc} | sed 's/.*://'`
7924 name
=`echo ${c} | sed 's/:.*//'`
7925 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7926 filter
=`echo ${c} | sed 's/.*://'`
7928 # Build the following lists:
7930 # sim_multi_flags: all -M and -F flags used by the simulator
7931 # sim_multi_src: all makefile-generated source files
7932 # sim_multi_obj: the objects for ${sim_multi_src}
7933 # sim_multi_igen_configs: igen configuration strings.
7935 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7936 # or m16) followed by the NAME, MACHINE and FILTER part of
7937 # the ${sim_multi_configs} entry.
7938 sim_multi_flags
="${sim_multi_flags} -F ${filter} -M ${machine}"
7940 # Check whether mips16 handling is needed.
7943 # Run igen twice, once for normal mode and once for mips16.
7946 # The top-level function for the mips16 simulator is
7947 # in a file m16${name}_run.c, generated by the
7948 # tmp-run-multi Makefile rule.
7949 sim_multi_src
="${sim_multi_src} m16${name}_run.c"
7950 sim_multi_obj
="${sim_multi_obj} m16${name}_run.o"
7951 sim_multi_flags
="${sim_multi_flags} -F 16"
7958 # Now add the list of igen-generated files to ${sim_multi_src}
7959 # and ${sim_multi_obj}.
7961 for base
in engine icache idecode model semantics support
; do
7962 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.c"
7963 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.h"
7964 sim_multi_obj
="${sim_multi_obj} ${w}${name}_${base}.o"
7966 sim_multi_igen_configs
="${sim_multi_igen_configs} ${w}${c}"
7969 # Add an include for the engine.h file. This file declares the
7970 # top-level foo_engine_run() function.
7971 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
7973 # Add case statements for this engine to sim_engine_run().
7974 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7975 echo " case bfd_mach_${mach}:" >> multi-run.c
7976 if test ${mach} = ${sim_multi_default}; then
7977 echo " default:" >> multi-run.c
7978 sim_seen_default
=yes
7981 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
7983 echo " break;" >> multi-run.c
7986 # Check whether we added a 'default:' label.
7987 if test ${sim_seen_default} = no
; then
7988 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
7989 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
7990 { (exit 1); exit 1; }; }
7993 cat << __EOF__ >> multi-run.c
7998 mips_mach_multi (SIM_DESC sd)
8000 if (STATE_ARCHITECTURE (sd) == NULL)
8001 return bfd_mach_${sim_multi_default};
8003 switch (STATE_ARCHITECTURE (SD)->mach)
8007 # Add case statements for this engine to mips_mach_multi().
8008 for fc in ${sim_multi_configs}; do
8010 # Split up the entry. ${c} contains the first three elements.
8011 # Note: outer sqaure brackets are m4 quotes.
8012 c=`echo ${fc} | sed 's/:[^:]*$//'`
8013 bfdmachs=`echo ${fc} | sed 's/.*://'`
8015 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
8016 echo " case bfd_mach_
${mach}:" >> multi-run.c
8020 cat << __EOF__ >> multi-run.c
8021 return (STATE_ARCHITECTURE (SD)->mach);
8023 return bfd_mach_${sim_multi_default};
8028 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
8031 sim_multi_src=doesnt-exist.c
8033 if test x"${sim_mach_default}" = x""; then
8034 { { echo "$as_me:$LINENO: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&5
8035 echo "$as_me: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&2;}
8036 { (exit 1); exit 1; }; }
8038 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_
${sim_mach_default}"
8040 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
8041 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8052 # Add simulated hardware devices
8058 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio
"
8059 mips_extra_objs="dv-sockser.o
"
8060 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
8067 if test x"$hw_enabled" = x"yes"; then
8072 if test "$hw_devices"; then
8073 hardware="core pal glue
"
8075 hardware="core pal glue
$hw_extra_devices"
8077 sim_hw_cflags="-DWITH_HW=1"
8079 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
8080 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
8081 if test "${enable_sim_hardware+set}" = set; then
8082 enableval="$enable_sim_hardware"
8084 case "${enableval}" in
8087 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
8088 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
8089 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
8091 if test "$sim_hw_p" != yes; then
8093 sim_hw_cflags="-DWITH_HW=0"
8096 sim_hw_cflags="-DWITH_HW=1"
8099 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
8100 for i in x $hardware ; do
8104 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
8108 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
8109 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
8113 if test "$sim_hw_p" != yes; then
8115 sim_hw_cflags="-DWITH_HW=0"
8118 if test x"$silent" != x"yes"; then
8119 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
8125 # Choose simulator engine
8127 *) mips_igen_engine="engine.o
"
8133 echo "$as_me:$LINENO: checking
for X
" >&5
8134 echo $ECHO_N "checking
for X...
$ECHO_C" >&6
8137 # Check whether --with-x or --without-x was given.
8138 if test "${with_x+set}" = set; then
8142 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8143 if test "x
$with_x" = xno; then
8144 # The user explicitly disabled X.
8147 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
8148 # Both variables are already set.
8151 if test "${ac_cv_have_x+set}" = set; then
8152 echo $ECHO_N "(cached
) $ECHO_C" >&6
8154 # One or both of the vars are not set, and there is no cached value.
8155 ac_x_includes=no ac_x_libraries=no
8157 if mkdir conftest.dir; then
8159 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8160 cat >Imakefile <<'_ACEOF'
8162 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8164 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8165 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
8166 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8168 for ac_extension in a so sl; do
8169 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8170 test -f $ac_im_libdir/libX11.$ac_extension; then
8171 ac_im_usrlibdir=$ac_im_libdir; break
8174 # Screen out bogus values from the imake configuration. They are
8175 # bogus both because they are the default anyway, and because
8176 # using them would break gcc on systems where it needs fixed includes.
8177 case $ac_im_incroot in
8179 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
8181 case $ac_im_usrlibdir in
8183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8190 # Standard set of common directories for X headers.
8191 # Check X11 before X11Rn because it is often a symlink to the current release.
8203 /usr/local/X11/include
8204 /usr/local/X11R6/include
8205 /usr/local/X11R5/include
8206 /usr/local/X11R4/include
8208 /usr/local/include/X11
8209 /usr/local/include/X11R6
8210 /usr/local/include/X11R5
8211 /usr/local/include/X11R4
8215 /usr/XFree86/include/X11
8219 /usr/unsupported/include
8221 /usr/local/x11r5/include
8222 /usr/lpp/Xamples/include
8224 /usr/openwin/include
8225 /usr/openwin/share/include'
8227 if test "$ac_x_includes" = no; then
8228 # Guess where to find include files, by looking for Intrinsic.h.
8229 # First, try using that file with no special directory specified.
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #include <X11/Intrinsic.h>
8238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
8239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8245 (exit $ac_status); } >/dev/null; then
8246 if test -s conftest.err; then
8247 ac_cpp_err=$ac_c_preproc_warn_flag
8248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8255 if test -z "$ac_cpp_err"; then
8256 # We can compile using X headers with no special include directory.
8259 echo "$as_me: failed program was
:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 for ac_dir in $ac_x_header_dirs; do
8263 if test -r "$ac_dir/X11
/Intrinsic.h
"; then
8264 ac_x_includes=$ac_dir
8269 rm -f conftest.err conftest.$ac_ext
8270 fi # $ac_x_includes = no
8272 if test "$ac_x_libraries" = no; then
8273 # Check for the libraries.
8274 # See if we find them without any special options.
8275 # Don't add to $LIBS permanently.
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 #include <X11/Intrinsic.h>
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag"
8303 || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8314 (exit $ac_status); }; }; then
8316 # We can link X programs with no special library path.
8319 echo "$as_me: failed program was
:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8325 # Don't even attempt the hair of trying to link an X program!
8326 for ac_extension in a so sl; do
8327 if test -r $ac_dir/libXt.$ac_extension; then
8328 ac_x_libraries=$ac_dir
8334 rm -f conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 fi # $ac_x_libraries = no
8338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8339 # Didn't find X anywhere. Cache the known absence of X.
8340 ac_cv_have_x="have_x
=no
"
8342 # Record where we found X for the cache.
8343 ac_cv_have_x="have_x
=yes \
8344 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
8349 eval "$ac_cv_have_x"
8352 if test "$have_x" != yes; then
8353 echo "$as_me:$LINENO: result
: $have_x" >&5
8354 echo "${ECHO_T}$have_x" >&6
8357 # If each of the values was on the command line, it overrides each guess.
8358 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
8359 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8360 # Update the cache value to reflect the command line values.
8361 ac_cv_have_x="have_x
=yes \
8362 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
8363 echo "$as_me:$LINENO: result
: libraries
$x_libraries, headers
$x_includes" >&5
8364 echo "${ECHO_T}libraries
$x_libraries, headers
$x_includes" >&6
8374 for ac_header in string.h strings.h stdlib.h stdlib.h
8376 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8377 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
8378 echo "$as_me:$LINENO: checking
for $ac_header" >&5
8379 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
8380 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
8381 echo $ECHO_N "(cached
) $ECHO_C" >&6
8383 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
8384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8386 # Is the header compilable?
8387 echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8388 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 #include <$ac_header>
8398 rm -f conftest.$ac_objext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400 (eval $ac_compile) 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_header_compiler=yes
8422 echo "$as_me: failed program was
:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_header_compiler=no
8427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428 echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8429 echo "${ECHO_T}$ac_header_compiler" >&6
8431 # Is the header present?
8432 echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8433 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 #include <$ac_header>
8442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
8443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8449 (exit $ac_status); } >/dev/null; then
8450 if test -s conftest.err; then
8451 ac_cpp_err=$ac_c_preproc_warn_flag
8452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8459 if test -z "$ac_cpp_err"; then
8460 ac_header_preproc=yes
8462 echo "$as_me: failed program was
:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_header_preproc=no
8467 rm -f conftest.err conftest.$ac_ext
8468 echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8469 echo "${ECHO_T}$ac_header_preproc" >&6
8471 # So? What about this header?
8472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8474 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8475 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8476 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8478 ac_header_preproc=yes
8481 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8482 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8483 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8484 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8485 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8486 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8487 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8488 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8489 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8491 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8492 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8495 ## ------------------------------------------ ##
8496 ## Report this to the AC_PACKAGE_NAME lists. ##
8497 ## ------------------------------------------ ##
8500 sed "s
/^
/$as_me: WARNING
: /" >&2
8503 echo "$as_me:$LINENO: checking
for $ac_header" >&5
8504 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
8505 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
8506 echo $ECHO_N "(cached
) $ECHO_C" >&6
8508 eval "$as_ac_Header=\
$ac_header_preproc"
8510 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
8511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8524 echo "$as_me:$LINENO: checking
for fabs
in -lm" >&5
8525 echo $ECHO_N "checking
for fabs
in -lm...
$ECHO_C" >&6
8526 if test "${ac_cv_lib_m_fabs+set}" = set; then
8527 echo $ECHO_N "(cached
) $ECHO_C" >&6
8529 ac_check_lib_save_LIBS=$LIBS
8531 cat >conftest.$ac_ext <<_ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8538 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555 (eval $ac_link) 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_lib_m_fabs=yes
8577 echo "$as_me: failed program was
:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8582 rm -f conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8586 echo "$as_me:$LINENO: result
: $ac_cv_lib_m_fabs" >&5
8587 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8588 if test $ac_cv_lib_m_fabs = yes; then
8589 cat >>confdefs.h <<_ACEOF
8600 for ac_func in aint anint sqrt
8602 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8603 echo "$as_me:$LINENO: checking
for $ac_func" >&5
8604 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6
8605 if eval "test \"\
${$as_ac_var+set}\" = set"; then
8606 echo $ECHO_N "(cached
) $ECHO_C" >&6
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8616 #define $ac_func innocuous_$ac_func
8618 /* System header to define __stub macros and hopefully few prototypes,
8619 which can conflict with char $ac_func (); below.
8620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8621 <limits.h> exists even on freestanding compilers. */
8624 # include <limits.h>
8626 # include <assert.h>
8631 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8639 /* The GNU C library defines this for functions which it implements
8640 to always fail with ENOSYS. Some functions are actually named
8641 something starting with __ and the normal name is an alias. */
8642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8645 char (*f) () = $ac_func;
8654 return f != $ac_func;
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag"
8669 || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest$ac_exeext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 eval "$as_ac_var=yes"
8683 echo "$as_me: failed program was
:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 eval "$as_ac_var=no
"
8688 rm -f conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8691 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_var'}'`" >&5
8692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8693 if test `eval echo '${'$as_ac_var'}'` = yes; then
8694 cat >>confdefs.h <<_ACEOF
8695 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
8703 ac_sources="$sim_link_files"
8704 ac_dests="$sim_link_links"
8705 while test -n "$ac_sources"; do
8706 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8707 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8708 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8710 ac_config_links="$ac_config_links $ac_config_links_1"
8713 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8714 cgen_breaks="break cgen_rtx_error
";
8717 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
8719 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
8721 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
8723 ac_config_commands="$ac_config_commands Makefile
"
8725 ac_config_commands="$ac_config_commands stamp-h
"
8727 cat >confcache <<\_ACEOF
8728 # This file is a shell script that caches the results of configure
8729 # tests run on this system so they can be shared between configure
8730 # scripts and configure runs, see configure's option --config-cache.
8731 # It is not useful on other systems. If it contains results you don't
8732 # want to keep, you may remove or edit it.
8734 # config.status only pays attention to the cache file if you give it
8735 # the --recheck option to rerun configure.
8737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8743 # The following way of writing the cache mishandles newlines in values,
8744 # but we know of no workaround that is simple, portable, and efficient.
8745 # So, don't put newlines in cache variables' values.
8746 # Ultrix sh set writes to stderr and can't be redirected directly,
8747 # and sets the high bit in the cache file unless we assign to the vars.
8750 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8752 # `set' does not quote correctly, so add quotes (double-quote
8753 # substitution turns \\\\ into \\, and sed turns \\ into \).
8756 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
8759 # `set' quotes correctly as required by POSIX, so do not add quotes.
8761 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
8768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8770 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8772 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8773 if test -w $cache_file; then
8774 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
8775 cat confcache >$cache_file
8777 echo "not updating unwritable cache
$cache_file"
8782 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8783 # Let make expand exec_prefix.
8784 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8788 # trailing colons and then remove the whole line if VPATH becomes empty
8789 # (actually we leave an empty line to preserve line numbers).
8790 if test "x
$srcdir" = x.; then
8791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8792 s/:*\$(srcdir):*/:/;
8793 s/:*\${srcdir}:*/:/;
8795 s/^\([^=]*=[ ]*\):*/\1/;
8801 DEFS=-DHAVE_CONFIG_H
8805 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
8806 # 1. Remove the extension, and $U if already installed.
8807 ac_i=`echo "$ac_i" |
8808 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8810 ac_libobjs="$ac_libobjs $ac_i\
$U.
$ac_objext"
8811 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8815 LTLIBOBJS=$ac_ltlibobjs
8819 : ${CONFIG_STATUS=./config.status}
8820 ac_clean_files_save=$ac_clean_files
8821 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8822 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
8823 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
8824 cat >$CONFIG_STATUS <<_ACEOF
8826 # Generated by $as_me.
8827 # Run this file to recreate the current configuration.
8828 # Compiler output produced by configure, useful for debugging
8829 # configure, is in config.log if it exists.
8834 SHELL=\${CONFIG_SHELL-$SHELL}
8837 cat >>$CONFIG_STATUS <<\_ACEOF
8838 ## --------------------- ##
8839 ## M4sh Initialization. ##
8840 ## --------------------- ##
8842 # Be Bourne compatible
8843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8846 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8847 # is contrary to our usage. Disable this feature.
8848 alias -g '${1+"$@"}'='"$@
"'
8849 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8852 DUALCASE=1; export DUALCASE # for MKS sh
8854 # Support unset when possible.
8855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8862 # Work around bugs in pre-3.0 UWIN ksh.
8863 $as_unset ENV MAIL MAILPATH
8870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8872 LC_TELEPHONE LC_TIME
8874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8875 eval $as_var=C; export $as_var
8881 # Required to use basename.
8882 if expr a : '\(a\)' >/dev/null 2>&1; then
8888 if (basename /) >/dev/null 2>&1 && test "X
`basename / 2>&1`" = "X
/"; then
8889 as_basename=basename
8895 # Name of the executable.
8896 as_me=`$as_basename "$0" ||
8897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8898 X"$0" : 'X\(//\)$' \| \
8899 X"$0" : 'X\(/\)$' \| \
8900 . : '\(.\)' 2>/dev/null ||
8902 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8903 /^X\/\(\/\/\)$/{ s//\1/; q; }
8904 /^X\/\(\/\).*/{ s//\1/; q; }
8908 # PATH needs CR, and LINENO needs CR and PATH.
8909 # Avoid depending upon Character Ranges.
8910 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8911 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8912 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8913 as_cr_digits='0123456789'
8914 as_cr_alnum=$as_cr_Letters$as_cr_digits
8916 # The user is always right.
8917 if test "${PATH_SEPARATOR+set}" != set; then
8918 echo "#! /bin/sh" >conf$$.sh
8919 echo "exit 0" >>conf$$.sh
8921 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8932 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8933 test "x$as_lineno_1" != "x$as_lineno_2" &&
8934 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8935 # Find who we are. Look in the path if we contain no path at all
8938 *[\\/]* ) as_myself
=$0 ;;
8939 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8943 test -z "$as_dir" && as_dir
=.
8944 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8949 # We did not find ourselves, most probably we were run as `sh COMMAND'
8950 # in which case we are not to be found in the path.
8951 if test "x$as_myself" = x
; then
8954 if test ! -f "$as_myself"; then
8955 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8956 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8957 { (exit 1); exit 1; }; }
8959 case $CONFIG_SHELL in
8961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8962 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8965 test -z "$as_dir" && as_dir
=.
8966 for as_base
in sh bash ksh sh5
; do
8969 if ("$as_dir/$as_base" -c '
8972 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8973 test "x$as_lineno_1" != "x$as_lineno_2" &&
8974 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8975 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8976 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8977 CONFIG_SHELL
=$as_dir/$as_base
8979 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8987 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8988 # uniformly replaced by the line number. The first 'sed' inserts a
8989 # line-number line before each line; the second 'sed' does the real
8990 # work. The second script uses 'N' to pair each line-number line
8991 # with the numbered line, and appends trailing '-' during
8992 # substitution so that $LINENO is not a special case at line end.
8993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8994 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8995 sed '=' <$as_myself |
9000 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9003 s,^['$as_cr_digits']*\n,,
9005 chmod +x
$as_me.lineno ||
9006 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9007 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9008 { (exit 1); exit 1; }; }
9010 # Don't try to exec as it changes $[0], causing all sort of problems
9011 # (the dirname of $[0] is not the place where we might find the
9012 # original and so on. Autoconf is especially sensible to this).
9014 # Exit status is that of the last command.
9019 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9020 *c
*,-n*) ECHO_N
= ECHO_C
='
9022 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9023 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9026 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9032 rm -f conf$$ conf$$.exe conf$$.
file
9034 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9035 # We could just check for DJGPP; but this test a) works b) is more generic
9036 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9037 if test -f conf$$.exe
; then
9038 # Don't use ln at all; we don't have any links
9043 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9048 rm -f conf$$ conf$$.exe conf$$.
file
9050 if mkdir
-p .
2>/dev
/null
; then
9053 test -d .
/-p && rmdir .
/-p
9057 as_executable_p
="test -f"
9059 # Sed expression to map a string onto a valid CPP name.
9060 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9062 # Sed expression to map a string onto a valid variable name.
9063 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9067 # We need space, tab and new line, in precisely that order.
9077 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9078 # report actual input values of CONFIG_FILES etc. instead of their
9079 # values after options handling. Logging --version etc. is OK.
9083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9084 ## Running $as_me. ##
9089 This file was extended by $as_me, which was
9090 generated by GNU Autoconf 2.59. Invocation command line was
9092 CONFIG_FILES = $CONFIG_FILES
9093 CONFIG_HEADERS = $CONFIG_HEADERS
9094 CONFIG_LINKS = $CONFIG_LINKS
9095 CONFIG_COMMANDS = $CONFIG_COMMANDS
9099 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9103 # Files that config.status was made for.
9104 if test -n "$ac_config_files"; then
9105 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9108 if test -n "$ac_config_headers"; then
9109 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9112 if test -n "$ac_config_links"; then
9113 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9116 if test -n "$ac_config_commands"; then
9117 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9120 cat >>$CONFIG_STATUS <<\_ACEOF
9123 \`$as_me' instantiates files from templates according to the
9124 current configuration.
9126 Usage: $0 [OPTIONS] [FILE]...
9128 -h, --help print this help, then exit
9129 -V, --version print version number, then exit
9130 -q, --quiet do not print progress messages
9131 -d, --debug don't remove temporary files
9132 --recheck update $as_me by reconfiguring in the same conditions
9133 --file=FILE[:TEMPLATE]
9134 instantiate the configuration file FILE
9135 --header=FILE[:TEMPLATE]
9136 instantiate the configuration header FILE
9138 Configuration files:
9141 Configuration headers:
9144 Configuration links:
9147 Configuration commands:
9150 Report bugs to <bug-autoconf@gnu.org>."
9153 cat >>$CONFIG_STATUS <<_ACEOF
9156 configured by $0, generated by GNU Autoconf 2.59,
9157 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9159 Copyright (C) 2003 Free Software Foundation, Inc.
9160 This config.status script is free software; the Free Software Foundation
9161 gives unlimited permission to copy, distribute and modify it."
9166 cat >>$CONFIG_STATUS <<\_ACEOF
9167 # If no file are specified by the user, then we need to provide default
9168 # value. By we need to know if files were specified by the user.
9174 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9175 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9183 *) # This is not an option, so the user has probably given explicit
9186 ac_need_defaults
=false
;;
9190 # Handling of the options.
9192 cat >>$CONFIG_STATUS <<\_ACEOF
9193 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9195 --version |
--vers* |
-V )
9196 echo "$ac_cs_version"; exit 0 ;;
9198 # Conflict between --help and --header
9199 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9200 Try \`$0 --help' for more information." >&5
9201 echo "$as_me: error: ambiguous option: $1
9202 Try \`$0 --help' for more information." >&2;}
9203 { (exit 1); exit 1; }; };;
9204 --help |
--hel |
-h )
9205 echo "$ac_cs_usage"; exit 0 ;;
9206 --debug |
--d* |
-d )
9208 --file |
--fil |
--fi |
--f )
9210 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9211 ac_need_defaults
=false
;;
9212 --header |
--heade |
--head |
--hea )
9214 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9215 ac_need_defaults
=false
;;
9216 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9217 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9221 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9222 Try \`$0 --help' for more information." >&5
9223 echo "$as_me: error: unrecognized option: $1
9224 Try \`$0 --help' for more information." >&2;}
9225 { (exit 1); exit 1; }; } ;;
9227 *) ac_config_targets
="$ac_config_targets $1" ;;
9233 ac_configure_extra_args
=
9235 if $ac_cs_silent; then
9237 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9241 cat >>$CONFIG_STATUS <<_ACEOF
9242 if \$ac_cs_recheck; then
9243 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9244 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9253 cat >>$CONFIG_STATUS <<\_ACEOF
9254 for ac_config_target
in $ac_config_targets
9256 case "$ac_config_target" in
9257 # Handling of arguments.
9258 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9259 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9260 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9261 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
9262 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
9263 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
9264 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9267 { (exit 1); exit 1; }; };;
9271 # If the user did not use the arguments to specify the items to instantiate,
9272 # then the envvar interface is used. Set only those that are not.
9273 # We use the long form for the default assignment because of an extremely
9274 # bizarre bug on SunOS 4.1.3.
9275 if $ac_need_defaults; then
9276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9278 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
9279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9282 # Have a temporary directory for convenience. Make it in the build tree
9283 # simply because there is no reason to put it here, and in addition,
9284 # creating and moving files from /tmp can sometimes cause problems.
9285 # Create a temporary directory, and hook for its removal unless debugging.
9288 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9289 trap '{ (exit 1); exit 1; }' 1 2 13 15
9292 # Create a (secure) tmp directory for tmp files.
9295 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9296 test -n "$tmp" && test -d "$tmp"
9299 tmp
=.
/confstat$$
-$RANDOM
9300 (umask 077 && mkdir
$tmp)
9303 echo "$me: cannot create a temporary directory in ." >&2
9304 { (exit 1); exit 1; }
9309 cat >>$CONFIG_STATUS <<_ACEOF
9312 # CONFIG_FILES section.
9315 # No need to generate the scripts if there are no CONFIG_FILES.
9316 # This happens for instance when ./config.status config.h
9317 if test -n "\$CONFIG_FILES"; then
9318 # Protect against being on the right side of a sed subst in config.status.
9319 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9320 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9321 s,@SHELL@,$SHELL,;t t
9322 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9323 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9324 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9325 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9326 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9327 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9328 s,@exec_prefix@,$exec_prefix,;t t
9329 s,@prefix@,$prefix,;t t
9330 s,@program_transform_name@,$program_transform_name,;t t
9331 s,@bindir@,$bindir,;t t
9332 s,@sbindir@,$sbindir,;t t
9333 s,@libexecdir@,$libexecdir,;t t
9334 s,@datadir@,$datadir,;t t
9335 s,@sysconfdir@,$sysconfdir,;t t
9336 s,@sharedstatedir@,$sharedstatedir,;t t
9337 s,@localstatedir@,$localstatedir,;t t
9338 s,@libdir@,$libdir,;t t
9339 s,@includedir@,$includedir,;t t
9340 s,@oldincludedir@,$oldincludedir,;t t
9341 s,@infodir@,$infodir,;t t
9342 s,@mandir@,$mandir,;t t
9343 s,@build_alias@,$build_alias,;t t
9344 s,@host_alias@,$host_alias,;t t
9345 s,@target_alias@,$target_alias,;t t
9347 s,@ECHO_C@,$ECHO_C,;t t
9348 s,@ECHO_N@,$ECHO_N,;t t
9349 s,@ECHO_T@,$ECHO_T,;t t
9351 s,@sim_environment@,$sim_environment,;t t
9352 s,@sim_alignment@,$sim_alignment,;t t
9353 s,@sim_assert@,$sim_assert,;t t
9354 s,@sim_bitsize@,$sim_bitsize,;t t
9355 s,@sim_endian@,$sim_endian,;t t
9356 s,@sim_hostendian@,$sim_hostendian,;t t
9357 s,@sim_float@,$sim_float,;t t
9358 s,@sim_scache@,$sim_scache,;t t
9359 s,@sim_default_model@,$sim_default_model,;t t
9360 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9361 s,@sim_hw_objs@,$sim_hw_objs,;t t
9362 s,@sim_hw@,$sim_hw,;t t
9363 s,@sim_inline@,$sim_inline,;t t
9364 s,@sim_packages@,$sim_packages,;t t
9365 s,@sim_regparm@,$sim_regparm,;t t
9366 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9367 s,@sim_smp@,$sim_smp,;t t
9368 s,@sim_stdcall@,$sim_stdcall,;t t
9369 s,@sim_xor_endian@,$sim_xor_endian,;t t
9370 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9371 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9372 s,@build@,$build,;t t
9373 s,@build_cpu@,$build_cpu,;t t
9374 s,@build_vendor@,$build_vendor,;t t
9375 s,@build_os@,$build_os,;t t
9377 s,@host_cpu@,$host_cpu,;t t
9378 s,@host_vendor@,$host_vendor,;t t
9379 s,@host_os@,$host_os,;t t
9380 s,@target@,$target,;t t
9381 s,@target_cpu@,$target_cpu,;t t
9382 s,@target_vendor@,$target_vendor,;t t
9383 s,@target_os@,$target_os,;t t
9385 s,@CFLAGS@,$CFLAGS,;t t
9386 s,@LDFLAGS@,$LDFLAGS,;t t
9387 s,@CPPFLAGS@,$CPPFLAGS,;t t
9388 s,@ac_ct_CC@,$ac_ct_CC,;t t
9389 s,@EXEEXT@,$EXEEXT,;t t
9390 s,@OBJEXT@,$OBJEXT,;t t
9391 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9392 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9393 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9394 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9395 s,@HDEFINES@,$HDEFINES,;t t
9397 s,@RANLIB@,$RANLIB,;t t
9398 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9399 s,@SET_MAKE@,$SET_MAKE,;t t
9401 s,@EGREP@,$EGREP,;t t
9402 s,@ALLOCA@,$ALLOCA,;t t
9403 s,@USE_NLS@,$USE_NLS,;t t
9404 s,@MSGFMT@,$MSGFMT,;t t
9405 s,@GMSGFMT@,$GMSGFMT,;t t
9406 s,@XGETTEXT@,$XGETTEXT,;t t
9407 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9408 s,@CATALOGS@,$CATALOGS,;t t
9409 s,@CATOBJEXT@,$CATOBJEXT,;t t
9410 s,@DATADIRNAME@,$DATADIRNAME,;t t
9411 s,@GMOFILES@,$GMOFILES,;t t
9412 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9413 s,@INTLDEPS@,$INTLDEPS,;t t
9414 s,@INTLLIBS@,$INTLLIBS,;t t
9415 s,@INTLOBJS@,$INTLOBJS,;t t
9416 s,@POFILES@,$POFILES,;t t
9417 s,@POSUB@,$POSUB,;t t
9418 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9419 s,@GT_NO@,$GT_NO,;t t
9420 s,@GT_YES@,$GT_YES,;t t
9421 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9423 s,@MAINT@,$MAINT,;t t
9424 s,@sim_bswap@,$sim_bswap,;t t
9425 s,@sim_cflags@,$sim_cflags,;t t
9426 s,@sim_debug@,$sim_debug,;t t
9427 s,@sim_stdio@,$sim_stdio,;t t
9428 s,@sim_trace@,$sim_trace,;t t
9429 s,@sim_profile@,$sim_profile,;t t
9430 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9431 s,@sim_igen_flags@,$sim_igen_flags,;t t
9432 s,@sim_m16_flags@,$sim_m16_flags,;t t
9433 s,@sim_gen@,$sim_gen,;t t
9434 s,@sim_multi_flags@,$sim_multi_flags,;t t
9435 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9436 s,@sim_multi_src@,$sim_multi_src,;t t
9437 s,@sim_multi_obj@,$sim_multi_obj,;t t
9438 s,@mips_extra_objs@,$mips_extra_objs,;t t
9439 s,@mips_igen_engine@,$mips_igen_engine,;t t
9440 s,@mips_extra_libs@,$mips_extra_libs,;t t
9441 s,@cgen_breaks@,$cgen_breaks,;t t
9442 s,@LIBOBJS@,$LIBOBJS,;t t
9443 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9448 cat >>$CONFIG_STATUS <<\_ACEOF
9449 # Split the substitutions into bite-sized pieces for seds with
9450 # small command number limits, like on Digital OSF/1 and HP-UX.
9452 ac_sed_frag
=1 # Number of current file.
9453 ac_beg
=1 # First line for current file.
9454 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9457 while $ac_more_lines; do
9458 if test $ac_beg -gt 1; then
9459 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9461 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9463 if test ! -s $tmp/subs.frag
; then
9466 # The purpose of the label and of the branching condition is to
9467 # speed up the sed processing (if there are no `@' at all, there
9468 # is no need to browse any of the substitutions).
9469 # These are the two extra sed commands mentioned above.
9471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9472 if test -z "$ac_sed_cmds"; then
9473 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9475 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9477 ac_sed_frag
=`expr $ac_sed_frag + 1`
9479 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9482 if test -z "$ac_sed_cmds"; then
9485 fi # test -n "$CONFIG_FILES"
9488 cat >>$CONFIG_STATUS <<\_ACEOF
9489 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9492 - |
*:- |
*:-:* ) # input from stdin
9494 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9495 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9496 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9497 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9498 * ) ac_file_in
=$ac_file.
in ;;
9501 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9502 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9504 X"$ac_file" : 'X\(//\)[^/]' \| \
9505 X"$ac_file" : 'X\(//\)$' \| \
9506 X"$ac_file" : 'X\(/\)' \| \
9507 . : '\(.\)' 2>/dev/null ||
9509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9511 /^X\(\/\/\)$/{ s//\1/; q; }
9512 /^X\(\/\).*/{ s//\1/; q; }
9514 { if $as_mkdir_p; then
9519 while test ! -d "$as_dir"; do
9520 as_dirs
="$as_dir $as_dirs"
9521 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9523 X"$as_dir" : 'X\(//\)[^/]' \| \
9524 X"$as_dir" : 'X\(//\)$' \| \
9525 X"$as_dir" : 'X\(/\)' \| \
9526 . : '\(.\)' 2>/dev/null ||
9528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9530 /^X\(\/\/\)$/{ s//\1/; q; }
9531 /^X\(\/\).*/{ s//\1/; q; }
9534 test ! -n "$as_dirs" || mkdir
$as_dirs
9535 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9536 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9537 { (exit 1); exit 1; }; }; }
9541 if test "$ac_dir" != .
; then
9542 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9543 # A "../" for each directory in $ac_dir_suffix.
9544 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9546 ac_dir_suffix
= ac_top_builddir
=
9550 .
) # No --srcdir option. We are building in place.
9552 if test -z "$ac_top_builddir"; then
9555 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9557 [\\/]* | ?
:[\\/]* ) # Absolute path.
9558 ac_srcdir
=$srcdir$ac_dir_suffix;
9559 ac_top_srcdir
=$srcdir ;;
9561 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9562 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9565 # Do not use `cd foo && pwd` to compute absolute paths, because
9566 # the directories may not exist.
9568 .
) ac_abs_builddir
="$ac_dir";;
9571 .
) ac_abs_builddir
=`pwd`;;
9572 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9573 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9576 case $ac_abs_builddir in
9577 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9579 case ${ac_top_builddir}.
in
9580 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9581 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9582 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9585 case $ac_abs_builddir in
9586 .
) ac_abs_srcdir
=$ac_srcdir;;
9589 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9590 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9591 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9594 case $ac_abs_builddir in
9595 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9597 case $ac_top_srcdir in
9598 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9599 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9600 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9606 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9607 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9610 if test x
"$ac_file" != x-
; then
9611 { echo "$as_me:$LINENO: creating $ac_file" >&5
9612 echo "$as_me: creating $ac_file" >&6;}
9615 # Let's still pretend it is `configure' which instantiates (i.e., don't
9616 # use $as_me), people would be surprised to read:
9617 # /* config.h. Generated by config.status. */
9618 if test x
"$ac_file" = x-
; then
9621 configure_input
="$ac_file. "
9623 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9624 sed 's,.*/,,'` by configure."
9626 # First look for the input files in the build tree, otherwise in the
9628 ac_file_inputs
=`IFS=:
9629 for f in $ac_file_in; do
9631 -) echo $tmp/stdin ;;
9633 # Absolute (can't be DOS-style, as IFS=:)
9634 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9635 echo "$as_me: error: cannot find input file: $f" >&2;}
9636 { (exit 1); exit 1; }; }
9639 if test -f "$f"; then
9642 elif test -f "$srcdir/$f"; then
9647 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9648 echo "$as_me: error: cannot find input file: $f" >&2;}
9649 { (exit 1); exit 1; }; }
9652 done` ||
{ (exit 1); exit 1; }
9654 cat >>$CONFIG_STATUS <<_ACEOF
9658 cat >>$CONFIG_STATUS <<\_ACEOF
9660 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9661 s
,@configure_input@
,$configure_input,;t t
9662 s
,@srcdir@
,$ac_srcdir,;t t
9663 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9664 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9665 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9666 s
,@builddir@
,$ac_builddir,;t t
9667 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9668 s
,@top_builddir@
,$ac_top_builddir,;t t
9669 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9670 s
,@INSTALL@
,$ac_INSTALL,;t t
9671 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9673 if test x"$ac_file" != x-; then
9674 mv $tmp/out $ac_file
9682 cat >>$CONFIG_STATUS <<\_ACEOF
9685 # CONFIG_HEADER section.
9688 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9689 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9691 # ac_d sets the value in "#define NAME VALUE" lines.
9692 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9693 ac_dB
='[ ].*$,\1#\2'
9696 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9697 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9698 ac_uB
='$,\1#\2define\3'
9702 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9705 - |
*:- |
*:-:* ) # input from stdin
9707 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9708 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9709 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9710 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9711 * ) ac_file_in
=$ac_file.
in ;;
9714 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9715 echo "$as_me: creating $ac_file" >&6;}
9717 # First look for the input files in the build tree, otherwise in the
9719 ac_file_inputs
=`IFS=:
9720 for f in $ac_file_in; do
9722 -) echo $tmp/stdin ;;
9724 # Absolute (can't be DOS-style, as IFS=:)
9725 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9726 echo "$as_me: error: cannot find input file: $f" >&2;}
9727 { (exit 1); exit 1; }; }
9728 # Do quote $f, to prevent DOS paths from being IFS'd.
9731 if test -f "$f"; then
9734 elif test -f "$srcdir/$f"; then
9739 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9740 echo "$as_me: error: cannot find input file: $f" >&2;}
9741 { (exit 1); exit 1; }; }
9744 done` ||
{ (exit 1); exit 1; }
9745 # Remove the trailing spaces.
9746 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9750 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9751 # `conftest.undefs', that substitutes the proper values into
9752 # config.h.in to produce config.h. The first handles `#define'
9753 # templates, and the second `#undef' templates.
9754 # And first: Protect against being on the right side of a sed subst in
9755 # config.status. Protect against being in an unquoted here document
9757 rm -f conftest.defines conftest.undefs
9758 # Using a here document instead of a string reduces the quoting nightmare.
9759 # Putting comments in sed scripts is not portable.
9761 # `end' is used to avoid that the second main sed command (meant for
9762 # 0-ary CPP macros) applies to n-ary macro definitions.
9763 # See the Autoconf documentation for `clear'.
9764 cat >confdef2sed.
sed <<\_ACEOF
9769 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9771 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9774 # If some macros were called several times there might be several times
9775 # the same #defines, which is useless. Nevertheless, we may not want to
9776 # sort them, since we want the *last* AC-DEFINE to be honored.
9777 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9778 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9779 rm -f confdef2sed.sed
9781 # This sed command replaces #undef with comments. This is necessary, for
9782 # example, in the case of _POSIX_SOURCE, which is predefined and required
9783 # on some systems where configure will not decide to define it.
9784 cat >>conftest.undefs <<\_ACEOF
9785 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9788 # Break up conftest.defines because some shells have a limit on the size
9789 # of here documents, and old seds have small limits too (100 cmds).
9790 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9791 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9792 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9793 echo ' :' >>$CONFIG_STATUS
9795 while grep . conftest.defines >/dev/null
9797 # Write a limited-size here document to $tmp/defines.sed.
9798 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9799 # Speed up: don't consider the non `#define' lines.
9800 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9801 # Work around the forget-to-reset-the-flag bug.
9802 echo 't clr' >>$CONFIG_STATUS
9803 echo ': clr' >>$CONFIG_STATUS
9804 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9806 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9810 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9811 rm -f conftest.defines
9812 mv conftest.
tail conftest.defines
9814 rm -f conftest.defines
9815 echo ' fi # grep' >>$CONFIG_STATUS
9816 echo >>$CONFIG_STATUS
9818 # Break up conftest.undefs because some shells have a limit on the size
9819 # of here documents, and old seds have small limits too (100 cmds).
9820 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9822 while grep . conftest.undefs
>/dev
/null
9824 # Write a limited-size here document to $tmp/undefs.sed.
9825 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9826 # Speed up: don't consider the non
`#undef'
9827 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9828 # Work around the forget-to-reset-the-flag bug.
9829 echo 't clr' >>$CONFIG_STATUS
9830 echo ': clr' >>$CONFIG_STATUS
9831 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9833 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9837 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9838 rm -f conftest.undefs
9839 mv conftest.tail conftest.undefs
9841 rm -f conftest.undefs
9843 cat >>$CONFIG_STATUS <<\_ACEOF
9844 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9845 # use $as_me), people would be surprised to read:
9846 # /* config.h. Generated by config.status. */
9847 if test x
"$ac_file" = x-
; then
9848 echo "/* Generated by configure. */" >$tmp/config.h
9850 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9852 cat $tmp/in >>$tmp/config.h
9854 if test x
"$ac_file" != x-
; then
9855 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9856 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9857 echo "$as_me: $ac_file is unchanged" >&6;}
9859 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9860 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9861 X"$ac_file" : 'X\(//\)[^/]' \| \
9862 X"$ac_file" : 'X\(//\)$' \| \
9863 X"$ac_file" : 'X\(/\)' \| \
9864 . : '\(.\)' 2>/dev/null ||
9866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9868 /^X\(\/\/\)$/{ s//\1/; q; }
9869 /^X\(\/\).*/{ s//\1/; q; }
9871 { if $as_mkdir_p; then
9876 while test ! -d "$as_dir"; do
9877 as_dirs
="$as_dir $as_dirs"
9878 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9880 X"$as_dir" : 'X\(//\)[^/]' \| \
9881 X"$as_dir" : 'X\(//\)$' \| \
9882 X"$as_dir" : 'X\(/\)' \| \
9883 . : '\(.\)' 2>/dev/null ||
9885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9887 /^X\(\/\/\)$/{ s//\1/; q; }
9888 /^X\(\/\).*/{ s//\1/; q; }
9891 test ! -n "$as_dirs" || mkdir
$as_dirs
9892 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9893 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9894 { (exit 1); exit 1; }; }; }
9897 mv $tmp/config.h
$ac_file
9905 cat >>$CONFIG_STATUS <<\_ACEOF
9908 # CONFIG_LINKS section.
9911 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
9912 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9913 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9915 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9916 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9918 if test ! -r $srcdir/$ac_source; then
9919 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9920 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9921 { (exit 1); exit 1; }; }
9925 # Make relative symlinks.
9926 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9927 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9928 X"$ac_dest" : 'X\(//\)[^/]' \| \
9929 X"$ac_dest" : 'X\(//\)$' \| \
9930 X"$ac_dest" : 'X\(/\)' \| \
9931 . : '\(.\)' 2>/dev/null ||
9933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9935 /^X\(\/\/\)$/{ s//\1/; q; }
9936 /^X\(\/\).*/{ s//\1/; q; }
9938 { if $as_mkdir_p; then
9939 mkdir
-p "$ac_dest_dir"
9941 as_dir
="$ac_dest_dir"
9943 while test ! -d "$as_dir"; do
9944 as_dirs
="$as_dir $as_dirs"
9945 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9947 X"$as_dir" : 'X\(//\)[^/]' \| \
9948 X"$as_dir" : 'X\(//\)$' \| \
9949 X"$as_dir" : 'X\(/\)' \| \
9950 . : '\(.\)' 2>/dev/null ||
9952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9954 /^X\(\/\/\)$/{ s//\1/; q; }
9955 /^X\(\/\).*/{ s//\1/; q; }
9958 test ! -n "$as_dirs" || mkdir
$as_dirs
9959 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9960 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9961 { (exit 1); exit 1; }; }; }
9965 if test "$ac_dest_dir" != .
; then
9966 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9967 # A "../" for each directory in $ac_dir_suffix.
9968 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9970 ac_dir_suffix
= ac_top_builddir
=
9974 .
) # No --srcdir option. We are building in place.
9976 if test -z "$ac_top_builddir"; then
9979 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9981 [\\/]* | ?
:[\\/]* ) # Absolute path.
9982 ac_srcdir
=$srcdir$ac_dir_suffix;
9983 ac_top_srcdir
=$srcdir ;;
9985 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9986 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9989 # Do not use `cd foo && pwd` to compute absolute paths, because
9990 # the directories may not exist.
9992 .
) ac_abs_builddir
="$ac_dest_dir";;
9994 case "$ac_dest_dir" in
9995 .
) ac_abs_builddir
=`pwd`;;
9996 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9997 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
10000 case $ac_abs_builddir in
10001 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10003 case ${ac_top_builddir}.
in
10004 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10005 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10006 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10009 case $ac_abs_builddir in
10010 .
) ac_abs_srcdir
=$ac_srcdir;;
10013 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10014 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10015 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10018 case $ac_abs_builddir in
10019 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10021 case $ac_top_srcdir in
10022 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10023 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10024 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10030 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
10031 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
10034 # Try a symlink, then a hard link, then a copy.
10035 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
10036 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
10037 cp -p $srcdir/$ac_source $ac_dest ||
10038 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10039 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10040 { (exit 1); exit 1; }; }
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10046 # CONFIG_COMMANDS section.
10048 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10049 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10050 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10051 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10052 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10053 X"$ac_dest" : 'X\(//\)[^/]' \| \
10054 X"$ac_dest" : 'X\(//\)$' \| \
10055 X"$ac_dest" : 'X\(/\)' \| \
10056 . : '\(.\)' 2>/dev/null ||
10058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10060 /^X\(\/\/\)$/{ s//\1/; q; }
10061 /^X\(\/\).*/{ s//\1/; q; }
10063 { if $as_mkdir_p; then
10068 while test ! -d "$as_dir"; do
10069 as_dirs
="$as_dir $as_dirs"
10070 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10072 X"$as_dir" : 'X\(//\)[^/]' \| \
10073 X"$as_dir" : 'X\(//\)$' \| \
10074 X"$as_dir" : 'X\(/\)' \| \
10075 . : '\(.\)' 2>/dev/null ||
10077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10079 /^X\(\/\/\)$/{ s//\1/; q; }
10080 /^X\(\/\).*/{ s//\1/; q; }
10083 test ! -n "$as_dirs" || mkdir
$as_dirs
10084 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10086 { (exit 1); exit 1; }; }; }
10090 if test "$ac_dir" != .
; then
10091 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10092 # A "../" for each directory in $ac_dir_suffix.
10093 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10095 ac_dir_suffix
= ac_top_builddir
=
10099 .
) # No --srcdir option. We are building in place.
10101 if test -z "$ac_top_builddir"; then
10104 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10106 [\\/]* | ?
:[\\/]* ) # Absolute path.
10107 ac_srcdir
=$srcdir$ac_dir_suffix;
10108 ac_top_srcdir
=$srcdir ;;
10109 *) # Relative path.
10110 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10111 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10114 # Do not use `cd foo && pwd` to compute absolute paths, because
10115 # the directories may not exist.
10117 .
) ac_abs_builddir
="$ac_dir";;
10120 .
) ac_abs_builddir
=`pwd`;;
10121 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10122 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10125 case $ac_abs_builddir in
10126 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10128 case ${ac_top_builddir}.
in
10129 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10130 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10131 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10134 case $ac_abs_builddir in
10135 .
) ac_abs_srcdir
=$ac_srcdir;;
10138 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10139 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10140 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10143 case $ac_abs_builddir in
10144 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10146 case $ac_top_srcdir in
10147 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10148 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10149 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10154 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10155 echo "$as_me: executing $ac_dest commands" >&6;}
10157 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
10158 rm -f Makesim1.tmp Makesim2.tmp Makefile
10159 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
10160 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
10161 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
10162 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
10163 <Makefile.sim
>Makefile
10164 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
10166 stamp-h
) echo > stamp-h
;;
10171 cat >>$CONFIG_STATUS <<\_ACEOF
10173 { (exit 0); exit 0; }
10175 chmod +x
$CONFIG_STATUS
10176 ac_clean_files
=$ac_clean_files_save
10179 # configure is writing to config.log, and then calls config.status.
10180 # config.status does its own redirection, appending to config.log.
10181 # Unfortunately, on DOS this fails, as config.log is still kept open
10182 # by configure, so config.status won't be able to write to it; its
10183 # output is simply discarded. So we exec the FD to /dev/null,
10184 # effectively closing config.log, so it can be properly (re)opened and
10185 # appended to by config.status. When coming back to configure, we
10186 # need to make the FD available again.
10187 if test "$no_create" != yes; then
10189 ac_config_status_args
=
10190 test "$silent" = yes &&
10191 ac_config_status_args
="$ac_config_status_args --quiet"
10193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10196 # would make configure fail if this is the last instruction.
10197 $ac_cs_success ||
{ (exit 1); exit 1; }