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 CGEN_MAINT cgendir cgen 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 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
862 --enable-sim-hostendian=end Specify
host byte endian orientation.
863 --enable-sim-scache=size Specify simulator execution cache size.
864 --enable-sim-default-model=model Specify default model to simulate.
865 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
866 --enable-sim-inline=inlines Specify
which functions should be inlined.
867 --enable-cgen-maint=DIR build cgen generated files
870 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
871 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
872 --with-included-gettext use the GNU
gettext library included here
874 Some influential environment variables
:
875 CC C compiler
command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
878 nonstandard directory
<lib dir
>
879 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
880 headers
in a nonstandard directory
<include dir
>
883 Use these variables to override the choices made by
`configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
901 ac_dir_suffix= ac_top_builddir=
905 .) # No --srcdir option. We are building in place.
907 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 # Do not use `cd foo
&& pwd` to compute absolute paths, because
921 # the directories may not exist.
923 .) ac_abs_builddir="$ac_dir";;
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
1005 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1006 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1007 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1008 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1009 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1011 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1012 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1014 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1015 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1016 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1017 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1018 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1019 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1020 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_must_keep_next=false
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 -* ) ac_must_keep_next=true ;;
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close
' the trap.
1100 trap 'exit_status
=$?
1101 # Save into config.log some information that might help in debugging.
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1111 # The following way of writing the cache mishandles newlines in values,
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1134 for ac_var
in $ac_subst_vars
1136 eval ac_val
=$
`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -n "$ac_subst_files"; then
1148 for ac_var
in $ac_subst_files
1150 eval ac_val
=$
`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -s confdefs.h
; then
1163 sed "/^$/d" confdefs.h |
sort
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1170 rm -f core
*.core
&&
1171 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's
/^
/|
/' "$ac_site_file" >&5
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1246 # Check that the precious variables saved in the cache have kept the same
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1259 ac_cache_corrupted=: ;;
1261 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1268 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1293 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1300 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 ac_config_headers="$ac_config_headers config.h:config.in"
1324 # This file contains common code used by all simulators.
1326 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1327 # directory. It is intended to be invoked before any target specific stuff.
1328 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1329 # It is intended to be invoked last.
1331 # The simulator's configure.
in should
look like
:
1333 # dnl Process this file with autoconf to produce a configure script.
1334 # sinclude(../common/aclocal.m4)
1336 # AC_INIT(Makefile.in)
1340 # ... target specific stuff ...
1391 sim_inline
="-DDEFAULT_INLINE=0"
1428 # This file is derived from `gettext.m4'. The difference is that the
1429 # included macros assume Cygnus-style source and build trees.
1431 # Macro to add for using GNU gettext.
1432 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1434 # This file file be copied and used freely without restrictions. It can
1435 # be used in projects which are not available under the GNU Public License
1436 # but which still want to provide support for the GNU gettext functionality.
1437 # Please note that the actual code is *not* freely available.
1445 # Search path for a program which passes the given test.
1446 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1448 # This file file be copied and used freely without restrictions. It can
1449 # be used in projects which are not available under the GNU Public License
1450 # but which still want to provide support for the GNU gettext functionality.
1451 # Please note that the actual code is *not* freely available.
1457 # Check whether LC_MESSAGES is available in <locale.h>.
1458 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1460 # This file file be copied and used freely without restrictions. It can
1461 # be used in projects which are not available under the GNU Public License
1462 # but which still want to provide support for the GNU gettext functionality.
1463 # Please note that the actual code is *not* freely available.
1473 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1474 # it by inlining the macro's contents.
1475 # This file contains common code used by all simulators.
1477 # common.m4 invokes AC macros used by all simulators and by the common
1478 # directory. It is intended to be included before any target specific
1479 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1480 # the Makefile. It is intended to be invoked last.
1482 # The simulator's configure.in should look like:
1484 # dnl Process this file with autoconf to produce a configure script.
1486 # AC_INIT(Makefile.in)
1487 # AC_CONFIG_HEADER(config.h:config.in)
1489 # sinclude(../common/aclocal.m4)
1490 # sinclude(../common/common.m4)
1492 # ... target specific stuff ...
1495 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1496 if test -f $ac_dir/install-sh
; then
1498 ac_install_sh
="$ac_aux_dir/install-sh -c"
1500 elif test -f $ac_dir/install.sh
; then
1502 ac_install_sh
="$ac_aux_dir/install.sh -c"
1504 elif test -f $ac_dir/shtool
; then
1506 ac_install_sh
="$ac_aux_dir/shtool install -c"
1510 if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1515 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1516 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1517 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519 # Make sure we can run config.sub.
1520 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: checking build system type" >&5
1526 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527 if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_build_alias
=$build_alias
1531 test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias
=`$ac_config_guess`
1533 test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544 echo "${ECHO_T}$ac_cv_build" >&6
1546 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 echo "$as_me:$LINENO: checking host system type" >&5
1552 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553 if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 ac_cv_host_alias
=$host_alias
1557 test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias
=$ac_cv_build_alias
1559 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566 echo "${ECHO_T}$ac_cv_host" >&6
1568 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 echo "$as_me:$LINENO: checking target system type" >&5
1574 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575 if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 ac_cv_target_alias
=$target_alias
1579 test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias
=$ac_cv_host_alias
1581 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588 echo "${ECHO_T}$ac_cv_target" >&6
1589 target
=$ac_cv_target
1590 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 # The aliases save the names the user supplied, while $host etc.
1596 # will get canonicalized.
1597 test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1600 program_prefix
=${target_alias}-
1601 test "$program_prefix" != NONE
&&
1602 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1603 # Use a double $ so make ignores it.
1604 test "$program_suffix" != NONE
&&
1605 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1606 # Double any \ or $. echo might interpret backslashes.
1607 # By default was `s,x,x', remove it if useless.
1608 cat <<\_ACEOF
>conftest.
sed
1609 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1611 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1615 ac_cpp
='$CPP $CPPFLAGS'
1616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1621 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC
="$CC" # Let the user override the test.
1630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir
=.
1635 for ac_exec_ext
in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if test -z "$ac_cv_prog_CC"; then
1658 # Extract the first word of "gcc", so it can be a program name with args.
1659 set dummy gcc
; ac_word
=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir
=.
1673 for ac_exec_ext
in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_CC
="gcc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1698 if test -z "$CC"; then
1699 if test -n "$ac_tool_prefix"; then
1700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1701 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC
="$CC" # Let the user override the test.
1710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir
=.
1715 for ac_exec_ext
in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 if test -n "$CC"; then
1728 echo "$as_me:$LINENO: result: $CC" >&5
1729 echo "${ECHO_T}$CC" >&6
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1736 if test -z "$ac_cv_prog_CC"; then
1738 # Extract the first word of "cc", so it can be a program name with args.
1739 set dummy cc
; ac_word
=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir
=.
1753 for ac_exec_ext
in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC
="cc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1779 if test -z "$CC"; then
1780 # Extract the first word of "cc", so it can be a program name with args.
1781 set dummy cc
; ac_word
=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 if test -n "$CC"; then
1788 ac_cv_prog_CC
="$CC" # Let the user override the test.
1791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir
=.
1796 for ac_exec_ext
in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1799 ac_prog_rejected
=yes
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 if test $ac_prog_rejected = yes; then
1810 # We found a bogon in the path, so make sure we never use it.
1811 set dummy
$ac_cv_prog_CC
1813 if test $# != 0; then
1814 # We chose a different compiler from the bogus one.
1815 # However, it has the same basename, so the bogon will be chosen
1816 # first if we set CC to just the basename; use the full file name.
1818 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1824 if test -n "$CC"; then
1825 echo "$as_me:$LINENO: result: $CC" >&5
1826 echo "${ECHO_T}$CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1833 if test -z "$CC"; then
1834 if test -n "$ac_tool_prefix"; then
1837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1838 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC
="$CC" # Let the user override the test.
1847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir
=.
1852 for ac_exec_ext
in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 if test -n "$CC"; then
1865 echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1872 test -n "$CC" && break
1875 if test -z "$CC"; then
1879 # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy
$ac_prog; ac_word
=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$ac_ct_CC"; then
1887 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir
=.
1894 for ac_exec_ext
in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_CC
="$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1906 if test -n "$ac_ct_CC"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908 echo "${ECHO_T}$ac_ct_CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$ac_ct_CC" && break
1923 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: no acceptable C compiler found in \$PATH
1926 See \`config.log' for more details." >&2;}
1927 { (exit 1); exit 1; }; }
1929 # Provide some information about the compiler.
1930 echo "$as_me:$LINENO:" \
1931 "checking for C compiler version" >&5
1932 ac_compiler
=`set X $ac_compile; echo $2`
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1934 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1939 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1944 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }
1949 cat >conftest.
$ac_ext <<_ACEOF
1952 cat confdefs.h
>>conftest.
$ac_ext
1953 cat >>conftest.
$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1964 ac_clean_files_save
=$ac_clean_files
1965 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1966 # Try to create an executable without -o first, disregard a.out.
1967 # It will help us diagnose broken compilers, and finding out an intuition
1969 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1970 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1971 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1973 (eval $ac_link_default) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 # Find the output, starting from the most likely. This scheme is
1978 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1981 # Be careful to initialize this variable, since it used to be cached.
1982 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1984 # b.out is created by i960 compilers.
1985 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1987 test -f "$ac_file" ||
continue
1989 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1992 # This is the source file.
1995 # We found the default executable, but exeext='' is most
1999 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000 # FIXME: I believe we export ac_cv_exeext for Libtool,
2001 # but it would be cool to find out if it's true. Does anybody
2002 # maintain Libtool? --akim.
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.
$ac_ext >&5
2013 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: C compiler cannot create executables
2016 See \`config.log' for more details." >&2;}
2017 { (exit 77); exit 77; }; }
2020 ac_exeext
=$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_file" >&5
2022 echo "${ECHO_T}$ac_file" >&6
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2027 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2028 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2029 # If not cross compiling, check that we can run a simple program.
2030 if test "$cross_compiling" != yes; then
2031 if { ac_try
='./$ac_file'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 if test "$cross_compiling" = maybe
; then
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2052 echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6
2055 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2056 ac_clean_files
=$ac_clean_files_save
2057 # Check the compiler produces executables we can run. If not, either
2058 # the compiler is broken, or we cross compile.
2059 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062 echo "${ECHO_T}$cross_compiling" >&6
2064 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073 # work properly (i.e., refer to `conftest.exe'), while it won't with
2075 for ac_file
in conftest.exe conftest conftest.
*; do
2076 test -f "$ac_file" ||
continue
2078 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2079 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2093 rm -f conftest
$ac_cv_exeext
2094 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2095 echo "${ECHO_T}$ac_cv_exeext" >&6
2097 rm -f conftest.
$ac_ext
2098 EXEEXT
=$ac_cv_exeext
2100 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2101 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2102 if test "${ac_cv_objext+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 cat >conftest.
$ac_ext <<_ACEOF
2108 cat confdefs.h
>>conftest.
$ac_ext
2109 cat >>conftest.
$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2120 rm -f conftest.o conftest.obj
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2129 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.
$ac_ext >&5
2137 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2144 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2146 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2147 echo "${ECHO_T}$ac_cv_objext" >&6
2148 OBJEXT
=$ac_cv_objext
2150 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2151 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 cat >conftest.
$ac_ext <<_ACEOF
2158 cat confdefs.h
>>conftest.
$ac_ext
2159 cat >>conftest.
$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2173 rm -f conftest.
$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2177 grep -v '^ *+' conftest.er1
>conftest.err
2179 cat conftest.err
>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try
='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try
='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.
$ac_ext >&5
2202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2203 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS
=${CFLAGS+set}
2210 ac_save_CFLAGS
=$CFLAGS
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.
$ac_ext <<_ACEOF
2220 cat confdefs.h
>>conftest.
$ac_ext
2221 cat >>conftest.
$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2232 rm -f conftest.
$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234 (eval $ac_compile) 2>conftest.er1
2236 grep -v '^ *+' conftest.er1
>conftest.err
2238 cat conftest.err
>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try
='test -z "$ac_c_werror_flag"
2242 || test ! -s conftest.err'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; } &&
2248 { ac_try
='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.
$ac_ext >&5
2261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2265 if test "$ac_test_CFLAGS" = set; then
2266 CFLAGS
=$ac_save_CFLAGS
2267 elif test $ac_cv_prog_cc_g = yes; then
2268 if test "$GCC" = yes; then
2274 if test "$GCC" = yes; then
2280 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2281 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2282 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 ac_cv_prog_cc_stdc
=no
2287 cat >conftest.
$ac_ext <<_ACEOF
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2295 #include <sys/types.h>
2296 #include <sys/stat.h>
2297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2298 struct buf { int x; };
2299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2300 static char *e (p, i)
2306 static char *f (char * (*g) (char **, int), char **p, ...)
2311 s = g (p, va_arg (v,int));
2316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2317 function prototypes and stuff, but not '\xHH' hex character constants.
2318 These don't provoke an error unfortunately, instead are silently treated
2319 as 'x'. The following induces an error, until -std1 is added to get
2320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2321 array size at least. It's necessary to write '\x00'==0 to get something
2322 that's true only with -std1. */
2323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2325 int test (int i, double x);
2326 struct s1 {int (*f) (int a);};
2327 struct s2 {int (*f) (double a);};
2328 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339 # Don't try gcc -ansi; that turns off useful extensions and
2340 # breaks some systems' header files.
2341 # AIX -qlanglvl=ansi
2342 # Ultrix and OSF/1 -std1
2343 # HP-UX 10.20 and later -Ae
2344 # HP-UX older versions -Aa -D_HPUX_SOURCE
2345 # SVR4 -Xc -D__EXTENSIONS__
2346 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2348 CC
="$ac_save_CC $ac_arg"
2349 rm -f conftest.
$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2353 grep -v '^ *+' conftest.er1
>conftest.err
2355 cat conftest.err
>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try
='test -z "$ac_c_werror_flag"
2359 || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try
='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 ac_cv_prog_cc_stdc
=$ac_arg
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.
$ac_ext >&5
2378 rm -f conftest.err conftest.
$ac_objext
2380 rm -f conftest.
$ac_ext conftest.
$ac_objext
2385 case "x$ac_cv_prog_cc_stdc" in
2387 echo "$as_me:$LINENO: result: none needed" >&5
2388 echo "${ECHO_T}none needed" >&6 ;;
2390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2391 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2392 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2395 # Some people use a C++ compiler to compile C. Since we use `exit',
2396 # in C++ we need to declare it. In case someone uses the same compiler
2397 # for both compiling C and C++ we need to have the C++ compiler decide
2398 # the declaration of exit, since it's the most demanding environment.
2399 cat >conftest.
$ac_ext <<_ACEOF
2404 rm -f conftest.
$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1
>conftest.err
2410 cat conftest.err
>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try
='test -z "$ac_c_werror_flag"
2414 || test ! -s conftest.err'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try
='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 for ac_declaration
in \
2428 'extern "C" void std::exit (int) throw (); using std::exit;' \
2429 'extern "C" void std::exit (int); using std::exit;' \
2430 'extern "C" void exit (int) throw ();' \
2431 'extern "C" void exit (int);' \
2434 cat >conftest.
$ac_ext <<_ACEOF
2437 cat confdefs.h
>>conftest.
$ac_ext
2438 cat >>conftest.
$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2450 rm -f conftest.
$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>conftest.er1
2454 grep -v '^ *+' conftest.er1
>conftest.err
2456 cat conftest.err
>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try
='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try
='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.
$ac_ext >&5
2479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2480 cat >conftest.
$ac_ext <<_ACEOF
2483 cat confdefs.h
>>conftest.
$ac_ext
2484 cat >>conftest.
$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 rm -f conftest.
$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1
>conftest.err
2501 cat conftest.err
>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try
='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try
='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.
$ac_ext >&5
2523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2526 if test -n "$ac_declaration"; then
2527 echo '#ifdef __cplusplus' >>confdefs.h
2528 echo $ac_declaration >>confdefs.h
2529 echo '#endif' >>confdefs.h
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.
$ac_ext >&5
2537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2539 ac_cpp
='$CPP $CPPFLAGS'
2540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2544 # Find a good install program. We prefer a C program (faster),
2545 # so one script is as good as another. But avoid the broken or
2546 # incompatible versions:
2547 # SysV /etc/install, /usr/sbin/install
2548 # SunOS /usr/etc/install
2549 # IRIX /sbin/install
2551 # AmigaOS /C/install, which installs bootblocks on floppy discs
2552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2555 # OS/2's system install, which has a completely different semantic
2556 # ./install, which can be erroneously created by make from ./install.sh.
2557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2559 if test -z "$INSTALL"; then
2560 if test "${ac_cv_path_install+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir
=.
2568 # Account for people who put trailing slashes in PATH elements.
2570 .
/ | .
// |
/cC
/* | \
2571 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2572 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2575 # OSF1 and SCO ODT 3.0 have their own names for install.
2576 # Don't use installbsd from OSF since it installs stuff as root
2578 for ac_prog
in ginstall scoinst
install; do
2579 for ac_exec_ext
in '' $ac_executable_extensions; do
2580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2581 if test $ac_prog = install &&
2582 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2583 # AIX install. It has an incompatible calling convention.
2585 elif test $ac_prog = install &&
2586 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2587 # program-specific install script used by HP pwplus--don't use.
2590 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2602 if test "${ac_cv_path_install+set}" = set; then
2603 INSTALL
=$ac_cv_path_install
2605 # As a last resort, use the slow shell script. We don't cache a
2606 # path for INSTALL within a source directory, because that will
2607 # break other packages using the cache if that directory is
2608 # removed, or if the path is relative.
2609 INSTALL
=$ac_install_sh
2612 echo "$as_me:$LINENO: result: $INSTALL" >&5
2613 echo "${ECHO_T}$INSTALL" >&6
2615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2616 # It thinks the first close brace ends the variable substitution.
2617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2621 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2624 # Put a plausible default for CC_FOR_BUILD in Makefile.
2625 if test "x$cross_compiling" = "xno"; then
2626 CC_FOR_BUILD
='$(CC)'
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2638 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_RANLIB+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$RANLIB"; then
2645 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir
=.
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 RANLIB
=$ac_cv_prog_RANLIB
2664 if test -n "$RANLIB"; then
2665 echo "$as_me:$LINENO: result: $RANLIB" >&5
2666 echo "${ECHO_T}$RANLIB" >&6
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2673 if test -z "$ac_cv_prog_RANLIB"; then
2674 ac_ct_RANLIB
=$RANLIB
2675 # Extract the first word of "ranlib", so it can be a program name with args.
2676 set dummy ranlib
; ac_word
=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_RANLIB"; then
2683 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_exec_ext
in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2702 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2703 if test -n "$ac_ct_RANLIB"; then
2704 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2705 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2711 RANLIB
=$ac_ct_RANLIB
2713 RANLIB
="$ac_cv_prog_RANLIB"
2718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 cat >conftest.
make <<\_ACEOF
2726 @
echo 'ac_maketemp="$(MAKE)"'
2728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2730 if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_
${ac_make}_set
=yes
2733 eval ac_cv_prog_make_
${ac_make}_set
=no
2737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744 SET_MAKE
="MAKE=${MAKE-make}"
2748 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2749 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2750 if test "${ac_cv_search_strerror+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_func_search_save_LIBS
=$LIBS
2754 ac_cv_search_strerror
=no
2755 cat >conftest.
$ac_ext <<_ACEOF
2758 cat confdefs.h
>>conftest.
$ac_ext
2759 cat >>conftest.
$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2762 /* Override any gcc2 internal prototype to avoid an error. */
2766 /* We use char because int might match the return type of a gcc2
2767 builtin and then its argument prototype would still apply. */
2777 rm -f conftest.
$ac_objext conftest
$ac_exeext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2779 (eval $ac_link) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try
='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try
='test -s conftest$ac_exeext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 ac_cv_search_strerror
="none required"
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.
$ac_ext >&5
2805 rm -f conftest.err conftest.
$ac_objext \
2806 conftest
$ac_exeext conftest.
$ac_ext
2807 if test "$ac_cv_search_strerror" = no
; then
2808 for ac_lib
in cposix
; do
2809 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2810 cat >conftest.
$ac_ext <<_ACEOF
2813 cat confdefs.h
>>conftest.
$ac_ext
2814 cat >>conftest.
$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2817 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2832 rm -f conftest.
$ac_objext conftest
$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>conftest.er1
2836 grep -v '^ *+' conftest.er1
>conftest.err
2838 cat conftest.err
>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try
='test -z "$ac_c_werror_flag"
2842 || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try
='test -s conftest$ac_exeext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_search_strerror
="-l$ac_lib"
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.
$ac_ext >&5
2861 rm -f conftest.err conftest.
$ac_objext \
2862 conftest
$ac_exeext conftest.
$ac_ext
2865 LIBS
=$ac_func_search_save_LIBS
2867 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2868 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2869 if test "$ac_cv_search_strerror" != no
; then
2870 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2875 ac_cpp
='$CPP $CPPFLAGS'
2876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag
in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.
$ac_ext <<_ACEOF
2904 cat confdefs.h
>>conftest.
$ac_ext
2905 cat >>conftest.
$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1
>conftest.err
2919 cat conftest.err
>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev
/null
; then
2922 if test -s conftest.err
; then
2923 ac_cpp_err
=$ac_c_preproc_warn_flag
2924 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.
$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.
$ac_ext <<_ACEOF
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1
>conftest.err
2957 cat conftest.err
>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev
/null
; then
2960 if test -s conftest.err
; then
2961 ac_cpp_err
=$ac_c_preproc_warn_flag
2962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.
$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.
$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag
in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3015 # include <limits.h>
3017 # include <assert.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1
>conftest.err
3026 cat conftest.err
>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev
/null
; then
3029 if test -s conftest.err
; then
3030 ac_cpp_err
=$ac_c_preproc_warn_flag
3031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.
$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.
$ac_ext <<_ACEOF
3054 cat confdefs.h
>>conftest.
$ac_ext
3055 cat >>conftest.
$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1
>conftest.err
3064 cat conftest.err
>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev
/null
; then
3067 if test -s conftest.err
; then
3068 ac_cpp_err
=$ac_c_preproc_warn_flag
3069 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.
$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.
$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp
='$CPP $CPPFLAGS'
3104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3115 then ac_cv_prog_egrep
='grep -E'
3116 else ac_cv_prog_egrep
='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP
=$ac_cv_prog_egrep
3124 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3126 if test "${ac_cv_header_stdc+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3148 rm -f conftest.
$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>conftest.er1
3152 grep -v '^ *+' conftest.er1
>conftest.err
3154 cat conftest.err
>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try
='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try
='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_header_stdc
=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.
$ac_ext >&5
3175 ac_cv_header_stdc
=no
3177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3179 if test $ac_cv_header_stdc = yes; then
3180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3181 cat >conftest.
$ac_ext <<_ACEOF
3184 cat confdefs.h
>>conftest.
$ac_ext
3185 cat >>conftest.
$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 $EGREP "memchr" >/dev
/null
2>&1; then
3194 ac_cv_header_stdc
=no
3200 if test $ac_cv_header_stdc = yes; then
3201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3202 cat >conftest.
$ac_ext <<_ACEOF
3205 cat confdefs.h
>>conftest.
$ac_ext
3206 cat >>conftest.
$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 $EGREP "free" >/dev
/null
2>&1; then
3215 ac_cv_header_stdc
=no
3221 if test $ac_cv_header_stdc = yes; then
3222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3223 if test "$cross_compiling" = yes; then
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3233 #if ((' ' & 0x0FF) == 0x020)
3234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3237 # define ISLOWER(c) \
3238 (('a' <= (c) && (c) <= 'i') \
3239 || ('j' <= (c) && (c) <= 'r') \
3240 || ('s' <= (c) && (c) <= 'z'))
3241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3249 for (i = 0; i < 256; i++)
3250 if (XOR (islower (i), ISLOWER (i))
3251 || toupper (i) != TOUPPER (i))
3256 rm -f conftest
$ac_exeext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: program exited with status $ac_status" >&5
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.
$ac_ext >&5
3274 ac_cv_header_stdc
=no
3276 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3282 if test $ac_cv_header_stdc = yes; then
3284 cat >>confdefs.h
<<\_ACEOF
3285 #define STDC_HEADERS 1
3290 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3291 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3292 if test "${ac_cv_c_const+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 cat >conftest.
$ac_ext <<_ACEOF
3298 cat confdefs.h
>>conftest.
$ac_ext
3299 cat >>conftest.
$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3305 /* FIXME: Include the comments suggested by Paul. */
3307 /* Ultrix mips cc rejects this. */
3308 typedef int charset[2];
3310 /* SunOS 4.1.1 cc rejects this. */
3311 char const *const *ccp;
3313 /* NEC SVR4.0.2 mips cc rejects this. */
3314 struct point {int x, y;};
3315 static struct point const zero = {0,0};
3316 /* AIX XL C 1.02.0.0 rejects this.
3317 It does not let you subtract one const X* pointer from another in
3318 an arm of an if-expression whose if-part is not a constant
3320 const char *g = "string";
3321 ccp = &g + (g ? g-g : 0);
3322 /* HPUX 7.0 cc rejects these. */
3325 ccp = (char const *const *) p;
3326 { /* SCO 3.2v4 cc rejects this. */
3328 char const *s = 0 ? (char *) 0 : (char const *) 0;
3332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3334 const int *foo = &x[0];
3337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3338 typedef const int *iptr;
3342 { /* AIX XL C 1.02.0.0 rejects this saying
3343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3344 struct s { int j; const int *ap[3]; };
3345 struct s *b; b->j = 5;
3347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3356 rm -f conftest.
$ac_objext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358 (eval $ac_compile) 2>conftest.er1
3360 grep -v '^ *+' conftest.er1
>conftest.err
3362 cat conftest.err
>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try
='test -z "$ac_c_werror_flag"
3366 || test ! -s conftest.err'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; } &&
3372 { ac_try
='test -s conftest.$ac_objext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3387 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3388 echo "${ECHO_T}$ac_cv_c_const" >&6
3389 if test $ac_cv_c_const = no
; then
3391 cat >>confdefs.h
<<\_ACEOF
3397 echo "$as_me:$LINENO: checking for inline" >&5
3398 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3399 if test "${ac_cv_c_inline+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 for ac_kw
in inline __inline__ __inline
; do
3404 cat >conftest.
$ac_ext <<_ACEOF
3407 cat confdefs.h
>>conftest.
$ac_ext
3408 cat >>conftest.
$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3412 static $ac_kw foo_t static_foo () {return 0; }
3413 $ac_kw foo_t foo () {return 0; }
3417 rm -f conftest.
$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>conftest.er1
3421 grep -v '^ *+' conftest.er1
>conftest.err
3423 cat conftest.err
>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try
='test -z "$ac_c_werror_flag"
3427 || test ! -s conftest.err'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; } &&
3433 { ac_try
='test -s conftest.$ac_objext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_c_inline
=$ac_kw; break
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.
$ac_ext >&5
3445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3449 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3450 echo "${ECHO_T}$ac_cv_c_inline" >&6
3453 case $ac_cv_c_inline in
3456 case $ac_cv_c_inline in
3458 *) ac_val
=$ac_cv_c_inline;;
3460 cat >>confdefs.h
<<_ACEOF
3462 #define inline $ac_val
3468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3478 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3479 inttypes.h stdint.h unistd.h
3481 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3482 echo "$as_me:$LINENO: checking for $ac_header" >&5
3483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 cat >conftest.
$ac_ext <<_ACEOF
3490 cat confdefs.h
>>conftest.
$ac_ext
3491 cat >>conftest.
$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493 $ac_includes_default
3495 #include <$ac_header>
3497 rm -f conftest.
$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3501 grep -v '^ *+' conftest.er1
>conftest.err
3503 cat conftest.err
>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try
='test -z "$ac_c_werror_flag"
3507 || test ! -s conftest.err'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; } &&
3513 { ac_try
='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 eval "$as_ac_Header=yes"
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.
$ac_ext >&5
3524 eval "$as_ac_Header=no"
3526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3531 cat >>confdefs.h
<<_ACEOF
3532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3540 echo "$as_me:$LINENO: checking for off_t" >&5
3541 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3542 if test "${ac_cv_type_off_t+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 cat >conftest.
$ac_ext <<_ACEOF
3548 cat confdefs.h
>>conftest.
$ac_ext
3549 cat >>conftest.
$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_includes_default
3563 rm -f conftest.
$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>conftest.er1
3567 grep -v '^ *+' conftest.er1
>conftest.err
3569 cat conftest.err
>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try
='test -z "$ac_c_werror_flag"
3573 || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try
='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_type_off_t
=yes
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3594 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3595 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3596 if test $ac_cv_type_off_t = yes; then
3600 cat >>confdefs.h
<<_ACEOF
3606 echo "$as_me:$LINENO: checking for size_t" >&5
3607 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3608 if test "${ac_cv_type_size_t+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 cat >conftest.
$ac_ext <<_ACEOF
3614 cat confdefs.h
>>conftest.
$ac_ext
3615 cat >>conftest.
$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 $ac_includes_default
3623 if (sizeof (size_t))
3629 rm -f conftest.
$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3633 grep -v '^ *+' conftest.er1
>conftest.err
3635 cat conftest.err
>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try
='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try
='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_cv_type_size_t
=yes
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.
$ac_ext >&5
3656 ac_cv_type_size_t
=no
3658 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3660 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3661 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3662 if test $ac_cv_type_size_t = yes; then
3666 cat >>confdefs.h
<<_ACEOF
3667 #define size_t unsigned
3672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3673 # for constant arguments. Useless!
3674 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3675 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3676 if test "${ac_cv_working_alloca_h+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat >conftest.
$ac_ext <<_ACEOF
3682 cat confdefs.h
>>conftest.
$ac_ext
3683 cat >>conftest.
$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3689 char *p = (char *) alloca (2 * sizeof (int));
3694 rm -f conftest.
$ac_objext conftest
$ac_exeext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3696 (eval $ac_link) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1
>conftest.err
3700 cat conftest.err
>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try
='test -z "$ac_c_werror_flag"
3704 || test ! -s conftest.err'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; } &&
3710 { ac_try
='test -s conftest$ac_exeext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_cv_working_alloca_h
=yes
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.
$ac_ext >&5
3721 ac_cv_working_alloca_h
=no
3723 rm -f conftest.err conftest.
$ac_objext \
3724 conftest
$ac_exeext conftest.
$ac_ext
3726 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3727 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3728 if test $ac_cv_working_alloca_h = yes; then
3730 cat >>confdefs.h
<<\_ACEOF
3731 #define HAVE_ALLOCA_H 1
3736 echo "$as_me:$LINENO: checking for alloca" >&5
3737 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3738 if test "${ac_cv_func_alloca_works+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.
$ac_ext <<_ACEOF
3744 cat confdefs.h
>>conftest.
$ac_ext
3745 cat >>conftest.
$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3748 # define alloca __builtin_alloca
3751 # include <malloc.h>
3752 # define alloca _alloca
3755 # include <alloca.h>
3760 # ifndef alloca /* predefined by HP cc +Olibcalls */
3771 char *p = (char *) alloca (1);
3776 rm -f conftest.
$ac_objext conftest
$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1
>conftest.err
3782 cat conftest.err
>&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try
='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try
='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_func_alloca_works
=yes
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.
$ac_ext >&5
3803 ac_cv_func_alloca_works
=no
3805 rm -f conftest.err conftest.
$ac_objext \
3806 conftest
$ac_exeext conftest.
$ac_ext
3808 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3809 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3811 if test $ac_cv_func_alloca_works = yes; then
3813 cat >>confdefs.h
<<\_ACEOF
3814 #define HAVE_ALLOCA 1
3818 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3819 # that cause trouble. Some versions do not even contain alloca or
3820 # contain a buggy version. If you still want to use their alloca,
3821 # use ar to extract alloca.o from them instead of compiling alloca.c.
3823 ALLOCA
=alloca.
$ac_objext
3825 cat >>confdefs.h
<<\_ACEOF
3830 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3831 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3832 if test "${ac_cv_os_cray+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 cat >conftest.
$ac_ext <<_ACEOF
3838 cat confdefs.h
>>conftest.
$ac_ext
3839 cat >>conftest.
$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #if defined(CRAY) && ! defined(CRAY2)
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "webecray" >/dev
/null
2>&1; then
3857 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3858 echo "${ECHO_T}$ac_cv_os_cray" >&6
3859 if test $ac_cv_os_cray = yes; then
3860 for ac_func
in _getb67 GETB67 getb67
; do
3861 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3862 echo "$as_me:$LINENO: checking for $ac_func" >&5
3863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3864 if eval "test \"\${$as_ac_var+set}\" = set"; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 cat >conftest.
$ac_ext <<_ACEOF
3870 cat confdefs.h
>>conftest.
$ac_ext
3871 cat >>conftest.
$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3875 #define $ac_func innocuous_$ac_func
3877 /* System header to define __stub macros and hopefully few prototypes,
3878 which can conflict with char $ac_func (); below.
3879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 <limits.h> exists even on freestanding compilers. */
3883 # include <limits.h>
3885 # include <assert.h>
3890 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3898 /* The GNU C library defines this for functions which it implements
3899 to always fail with ENOSYS. Some functions are actually named
3900 something starting with __ and the normal name is an alias. */
3901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3904 char (*f) () = $ac_func;
3913 return f != $ac_func;
3918 rm -f conftest.
$ac_objext conftest
$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1
>conftest.err
3924 cat conftest.err
>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try
='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try
='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 eval "$as_ac_var=yes"
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.
$ac_ext >&5
3945 eval "$as_ac_var=no"
3947 rm -f conftest.err conftest.
$ac_objext \
3948 conftest
$ac_exeext conftest.
$ac_ext
3950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3952 if test `eval echo '${'$as_ac_var'}'` = yes; then
3954 cat >>confdefs.h
<<_ACEOF
3955 #define CRAY_STACKSEG_END $ac_func
3964 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3965 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3966 if test "${ac_cv_c_stack_direction+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 if test "$cross_compiling" = yes; then
3970 ac_cv_c_stack_direction
=0
3972 cat >conftest.
$ac_ext <<_ACEOF
3975 cat confdefs.h
>>conftest.
$ac_ext
3976 cat >>conftest.
$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3979 find_stack_direction ()
3981 static char *addr = 0;
3986 return find_stack_direction ();
3989 return (&dummy > addr) ? 1 : -1;
3995 exit (find_stack_direction () < 0);
3998 rm -f conftest
$ac_exeext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4000 (eval $ac_link) 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_c_stack_direction
=1
4011 echo "$as_me: program exited with status $ac_status" >&5
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.
$ac_ext >&5
4016 ac_cv_c_stack_direction
=-1
4018 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4021 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4022 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4024 cat >>confdefs.h
<<_ACEOF
4025 #define STACK_DIRECTION $ac_cv_c_stack_direction
4033 for ac_header
in stdlib.h unistd.h
4035 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037 echo "$as_me:$LINENO: checking for $ac_header" >&5
4038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4045 # Is the header compilable?
4046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4048 cat >conftest.
$ac_ext <<_ACEOF
4051 cat confdefs.h
>>conftest.
$ac_ext
4052 cat >>conftest.
$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4055 #include <$ac_header>
4057 rm -f conftest.
$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1
>conftest.err
4063 cat conftest.err
>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try
='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try
='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 ac_header_compiler
=yes
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.
$ac_ext >&5
4084 ac_header_compiler
=no
4086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4088 echo "${ECHO_T}$ac_header_compiler" >&6
4090 # Is the header present?
4091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4093 cat >conftest.
$ac_ext <<_ACEOF
4096 cat confdefs.h
>>conftest.
$ac_ext
4097 cat >>conftest.
$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <$ac_header>
4101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4104 grep -v '^ *+' conftest.er1
>conftest.err
4106 cat conftest.err
>&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } >/dev
/null
; then
4109 if test -s conftest.err
; then
4110 ac_cpp_err
=$ac_c_preproc_warn_flag
4111 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4118 if test -z "$ac_cpp_err"; then
4119 ac_header_preproc
=yes
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.
$ac_ext >&5
4124 ac_header_preproc
=no
4126 rm -f conftest.err conftest.
$ac_ext
4127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128 echo "${ECHO_T}$ac_header_preproc" >&6
4130 # So? What about this header?
4131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4137 ac_header_preproc
=yes
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4154 ## ------------------------------------------ ##
4155 ## Report this to the AC_PACKAGE_NAME lists. ##
4156 ## ------------------------------------------ ##
4159 sed "s/^/$as_me: WARNING: /" >&2
4162 echo "$as_me:$LINENO: checking for $ac_header" >&5
4163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 eval "$as_ac_Header=\$ac_header_preproc"
4169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4174 cat >>confdefs.h
<<_ACEOF
4175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4183 for ac_func
in getpagesize
4185 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4186 echo "$as_me:$LINENO: checking for $ac_func" >&5
4187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4188 if eval "test \"\${$as_ac_var+set}\" = set"; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 cat >conftest.
$ac_ext <<_ACEOF
4194 cat confdefs.h
>>conftest.
$ac_ext
4195 cat >>conftest.
$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4199 #define $ac_func innocuous_$ac_func
4201 /* System header to define __stub macros and hopefully few prototypes,
4202 which can conflict with char $ac_func (); below.
4203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 <limits.h> exists even on freestanding compilers. */
4207 # include <limits.h>
4209 # include <assert.h>
4214 /* Override any gcc2 internal prototype to avoid an error. */
4219 /* We use char because int might match the return type of a gcc2
4220 builtin and then its argument prototype would still apply. */
4222 /* The GNU C library defines this for functions which it implements
4223 to always fail with ENOSYS. Some functions are actually named
4224 something starting with __ and the normal name is an alias. */
4225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4228 char (*f) () = $ac_func;
4237 return f != $ac_func;
4242 rm -f conftest.
$ac_objext conftest
$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1
>conftest.err
4248 cat conftest.err
>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try
='test -z "$ac_c_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try
='test -s conftest$ac_exeext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 eval "$as_ac_var=yes"
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.
$ac_ext >&5
4269 eval "$as_ac_var=no"
4271 rm -f conftest.err conftest.
$ac_objext \
4272 conftest
$ac_exeext conftest.
$ac_ext
4274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4276 if test `eval echo '${'$as_ac_var'}'` = yes; then
4277 cat >>confdefs.h
<<_ACEOF
4278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4284 echo "$as_me:$LINENO: checking for working mmap" >&5
4285 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4286 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 if test "$cross_compiling" = yes; then
4290 ac_cv_func_mmap_fixed_mapped
=no
4292 cat >conftest.
$ac_ext <<_ACEOF
4295 cat confdefs.h
>>conftest.
$ac_ext
4296 cat >>conftest.
$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4299 /* malloc might have been renamed as rpl_malloc. */
4302 /* Thanks to Mike Haertel and Jim Avera for this test.
4303 Here is a matrix of mmap possibilities:
4304 mmap private not fixed
4305 mmap private fixed at somewhere currently unmapped
4306 mmap private fixed at somewhere already mapped
4307 mmap shared not fixed
4308 mmap shared fixed at somewhere currently unmapped
4309 mmap shared fixed at somewhere already mapped
4310 For private mappings, we should verify that changes cannot be read()
4311 back from the file, nor mmap's back from the file at a different
4312 address. (There have been systems where private was not correctly
4313 implemented like the infamous i386 svr4.0, and systems where the
4314 VM page cache was not coherent with the file system buffer cache
4315 like early versions of FreeBSD and possibly contemporary NetBSD.)
4316 For shared mappings, we should conversely verify that changes get
4317 propagated back to all the places they're supposed to be.
4319 Grep wants private fixed already mapped.
4320 The main things grep needs to know about mmap are:
4321 * does it exist and is it safe to write into the mmap'd area
4322 * how to use it (BSD variants) */
4325 #include <sys/mman.h>
4327 #if !STDC_HEADERS && !HAVE_STDLIB_H
4331 /* This mess was copied from the GNU getpagesize.h. */
4332 #if !HAVE_GETPAGESIZE
4333 /* Assume that all systems that can run configure have sys/param.h. */
4334 # if !HAVE_SYS_PARAM_H
4335 # define HAVE_SYS_PARAM_H 1
4338 # ifdef _SC_PAGESIZE
4339 # define getpagesize() sysconf(_SC_PAGESIZE)
4340 # else /* no _SC_PAGESIZE */
4341 # if HAVE_SYS_PARAM_H
4342 # include <sys/param.h>
4343 # ifdef EXEC_PAGESIZE
4344 # define getpagesize() EXEC_PAGESIZE
4345 # else /* no EXEC_PAGESIZE */
4347 # define getpagesize() NBPG * CLSIZE
4350 # endif /* no CLSIZE */
4351 # else /* no NBPG */
4353 # define getpagesize() NBPC
4354 # else /* no NBPC */
4356 # define getpagesize() PAGESIZE
4357 # endif /* PAGESIZE */
4358 # endif /* no NBPC */
4359 # endif /* no NBPG */
4360 # endif /* no EXEC_PAGESIZE */
4361 # else /* no HAVE_SYS_PARAM_H */
4362 # define getpagesize() 8192 /* punt totally */
4363 # endif /* no HAVE_SYS_PARAM_H */
4364 # endif /* no _SC_PAGESIZE */
4366 #endif /* no HAVE_GETPAGESIZE */
4371 char *data, *data2, *data3;
4375 pagesize = getpagesize ();
4377 /* First, make a file with some known garbage in it. */
4378 data = (char *) malloc (pagesize);
4381 for (i = 0; i < pagesize; ++i)
4382 *(data + i) = rand ();
4384 fd = creat ("conftest.mmap", 0600);
4387 if (write (fd, data, pagesize) != pagesize)
4391 /* Next, try to mmap the file at a fixed address which already has
4392 something else allocated at it. If we can, also make sure that
4393 we see the same garbage. */
4394 fd = open ("conftest.mmap", O_RDWR);
4397 data2 = (char *) malloc (2 * pagesize);
4400 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4401 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4402 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4404 for (i = 0; i < pagesize; ++i)
4405 if (*(data + i) != *(data2 + i))
4408 /* Finally, make sure that changes to the mapped area do not
4409 percolate back to the file as seen by read(). (This is a bug on
4410 some variants of i386 svr4.0.) */
4411 for (i = 0; i < pagesize; ++i)
4412 *(data2 + i) = *(data2 + i) + 1;
4413 data3 = (char *) malloc (pagesize);
4416 if (read (fd, data3, pagesize) != pagesize)
4418 for (i = 0; i < pagesize; ++i)
4419 if (*(data + i) != *(data3 + i))
4425 rm -f conftest
$ac_exeext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_cv_func_mmap_fixed_mapped
=yes
4438 echo "$as_me: program exited with status $ac_status" >&5
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.
$ac_ext >&5
4443 ac_cv_func_mmap_fixed_mapped
=no
4445 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4449 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4450 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4452 cat >>confdefs.h
<<\_ACEOF
4469 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4470 unistd.h values.h sys
/param.h
4472 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474 echo "$as_me:$LINENO: checking for $ac_header" >&5
4475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482 # Is the header compilable?
4483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4485 cat >conftest.
$ac_ext <<_ACEOF
4488 cat confdefs.h
>>conftest.
$ac_ext
4489 cat >>conftest.
$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4492 #include <$ac_header>
4494 rm -f conftest.
$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4498 grep -v '^ *+' conftest.er1
>conftest.err
4500 cat conftest.err
>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try
='test -z "$ac_c_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try
='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_header_compiler
=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.
$ac_ext >&5
4521 ac_header_compiler
=no
4523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525 echo "${ECHO_T}$ac_header_compiler" >&6
4527 # Is the header present?
4528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4530 cat >conftest.
$ac_ext <<_ACEOF
4533 cat confdefs.h
>>conftest.
$ac_ext
4534 cat >>conftest.
$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <$ac_header>
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev
/null
; then
4546 if test -s conftest.err
; then
4547 ac_cpp_err
=$ac_c_preproc_warn_flag
4548 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4555 if test -z "$ac_cpp_err"; then
4556 ac_header_preproc
=yes
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.
$ac_ext >&5
4561 ac_header_preproc
=no
4563 rm -f conftest.err conftest.
$ac_ext
4564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4565 echo "${ECHO_T}$ac_header_preproc" >&6
4567 # So? What about this header?
4568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4574 ac_header_preproc
=yes
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4591 ## ------------------------------------------ ##
4592 ## Report this to the AC_PACKAGE_NAME lists. ##
4593 ## ------------------------------------------ ##
4596 sed "s/^/$as_me: WARNING: /" >&2
4599 echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 eval "$as_ac_Header=\$ac_header_preproc"
4606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4611 cat >>confdefs.h
<<_ACEOF
4612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4630 __argz_count __argz_stringify __argz_next
4632 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4633 echo "$as_me:$LINENO: checking for $ac_func" >&5
4634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4635 if eval "test \"\${$as_ac_var+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 cat >conftest.
$ac_ext <<_ACEOF
4641 cat confdefs.h
>>conftest.
$ac_ext
4642 cat >>conftest.
$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4646 #define $ac_func innocuous_$ac_func
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func (); below.
4650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651 <limits.h> exists even on freestanding compilers. */
4654 # include <limits.h>
4656 # include <assert.h>
4661 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4669 /* The GNU C library defines this for functions which it implements
4670 to always fail with ENOSYS. Some functions are actually named
4671 something starting with __ and the normal name is an alias. */
4672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4675 char (*f) () = $ac_func;
4684 return f != $ac_func;
4689 rm -f conftest.
$ac_objext conftest
$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>conftest.er1
4693 grep -v '^ *+' conftest.er1
>conftest.err
4695 cat conftest.err
>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try
='test -z "$ac_c_werror_flag"
4699 || test ! -s conftest.err'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; } &&
4705 { ac_try
='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 eval "$as_ac_var=yes"
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.
$ac_ext >&5
4716 eval "$as_ac_var=no"
4718 rm -f conftest.err conftest.
$ac_objext \
4719 conftest
$ac_exeext conftest.
$ac_ext
4721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4723 if test `eval echo '${'$as_ac_var'}'` = yes; then
4724 cat >>confdefs.h
<<_ACEOF
4725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4732 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4734 for ac_func
in stpcpy
4736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4737 echo "$as_me:$LINENO: checking for $ac_func" >&5
4738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4739 if eval "test \"\${$as_ac_var+set}\" = set"; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.
$ac_ext <<_ACEOF
4745 cat confdefs.h
>>conftest.
$ac_ext
4746 cat >>conftest.
$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4750 #define $ac_func innocuous_$ac_func
4752 /* System header to define __stub macros and hopefully few prototypes,
4753 which can conflict with char $ac_func (); below.
4754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 <limits.h> exists even on freestanding compilers. */
4758 # include <limits.h>
4760 # include <assert.h>
4765 /* Override any gcc2 internal prototype to avoid an error. */
4770 /* We use char because int might match the return type of a gcc2
4771 builtin and then its argument prototype would still apply. */
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 char (*f) () = $ac_func;
4788 return f != $ac_func;
4793 rm -f conftest.
$ac_objext conftest
$ac_exeext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795 (eval $ac_link) 2>conftest.er1
4797 grep -v '^ *+' conftest.er1
>conftest.err
4799 cat conftest.err
>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try
='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try
='test -s conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 eval "$as_ac_var=yes"
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.
$ac_ext >&5
4820 eval "$as_ac_var=no"
4822 rm -f conftest.err conftest.
$ac_objext \
4823 conftest
$ac_exeext conftest.
$ac_ext
4825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4827 if test `eval echo '${'$as_ac_var'}'` = yes; then
4828 cat >>confdefs.h
<<_ACEOF
4829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4836 if test "${ac_cv_func_stpcpy}" = "yes"; then
4837 cat >>confdefs.h
<<\_ACEOF
4838 #define HAVE_STPCPY 1
4843 if test $ac_cv_header_locale_h = yes; then
4844 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4845 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4846 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4864 rm -f conftest.
$ac_objext conftest
$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 am_cv_val_LC_MESSAGES
=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4891 am_cv_val_LC_MESSAGES
=no
4893 rm -f conftest.err conftest.
$ac_objext \
4894 conftest
$ac_exeext conftest.
$ac_ext
4896 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4897 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4898 if test $am_cv_val_LC_MESSAGES = yes; then
4899 cat >>confdefs.h
<<\_ACEOF
4900 #define HAVE_LC_MESSAGES 1
4905 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4906 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4907 # Check whether --enable-nls or --disable-nls was given.
4908 if test "${enable_nls+set}" = set; then
4909 enableval
="$enable_nls"
4914 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4915 echo "${ECHO_T}$USE_NLS" >&6
4918 USE_INCLUDED_LIBINTL
=no
4920 if test "$USE_NLS" = "yes"; then
4921 cat >>confdefs.h
<<\_ACEOF
4922 #define ENABLE_NLS 1
4925 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4926 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4928 # Check whether --with-included-gettext or --without-included-gettext was given.
4929 if test "${with_included_gettext+set}" = set; then
4930 withval
="$with_included_gettext"
4931 nls_cv_force_use_gnu_gettext
=$withval
4933 nls_cv_force_use_gnu_gettext
=no
4935 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4936 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4938 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4939 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4941 nls_cv_header_libgt
=
4944 if test "${ac_cv_header_libintl_h+set}" = set; then
4945 echo "$as_me:$LINENO: checking for libintl.h" >&5
4946 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4947 if test "${ac_cv_header_libintl_h+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4951 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4953 # Is the header compilable?
4954 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4955 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4956 cat >conftest.
$ac_ext <<_ACEOF
4959 cat confdefs.h
>>conftest.
$ac_ext
4960 cat >>conftest.
$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4963 #include <libintl.h>
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -z "$ac_c_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try
='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_header_compiler
=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4992 ac_header_compiler
=no
4994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4996 echo "${ECHO_T}$ac_header_compiler" >&6
4998 # Is the header present?
4999 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5000 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5001 cat >conftest.
$ac_ext <<_ACEOF
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <libintl.h>
5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev
/null
; then
5017 if test -s conftest.err
; then
5018 ac_cpp_err
=$ac_c_preproc_warn_flag
5019 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5026 if test -z "$ac_cpp_err"; then
5027 ac_header_preproc
=yes
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.
$ac_ext >&5
5032 ac_header_preproc
=no
5034 rm -f conftest.err conftest.
$ac_ext
5035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5036 echo "${ECHO_T}$ac_header_preproc" >&6
5038 # So? What about this header?
5039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5041 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5042 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5044 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5045 ac_header_preproc
=yes
5048 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5049 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5050 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5051 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5053 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5054 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5055 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5056 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5057 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5059 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5062 ## ------------------------------------------ ##
5063 ## Report this to the AC_PACKAGE_NAME lists. ##
5064 ## ------------------------------------------ ##
5067 sed "s/^/$as_me: WARNING: /" >&2
5070 echo "$as_me:$LINENO: checking for libintl.h" >&5
5071 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5072 if test "${ac_cv_header_libintl_h+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_cv_header_libintl_h
=$ac_header_preproc
5077 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5078 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5081 if test $ac_cv_header_libintl_h = yes; then
5082 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5083 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5084 if test "${gt_cv_func_gettext_libc+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <libintl.h>
5097 return (int) gettext ("")
5102 rm -f conftest.
$ac_objext conftest
$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try
='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try
='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 gt_cv_func_gettext_libc
=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 gt_cv_func_gettext_libc
=no
5131 rm -f conftest.err conftest.
$ac_objext \
5132 conftest
$ac_exeext conftest.
$ac_ext
5134 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5135 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5137 if test "$gt_cv_func_gettext_libc" != "yes"; then
5138 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5139 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5140 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 ac_check_lib_save_LIBS
=$LIBS
5145 cat >conftest.
$ac_ext <<_ACEOF
5148 cat confdefs.h
>>conftest.
$ac_ext
5149 cat >>conftest.
$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5152 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char bindtextdomain ();
5167 rm -f conftest.
$ac_objext conftest
$ac_exeext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5169 (eval $ac_link) 2>conftest.er1
5171 grep -v '^ *+' conftest.er1
>conftest.err
5173 cat conftest.err
>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try
='test -z "$ac_c_werror_flag"
5177 || test ! -s conftest.err'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; } &&
5183 { ac_try
='test -s conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_lib_intl_bindtextdomain
=yes
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.
$ac_ext >&5
5194 ac_cv_lib_intl_bindtextdomain
=no
5196 rm -f conftest.err conftest.
$ac_objext \
5197 conftest
$ac_exeext conftest.
$ac_ext
5198 LIBS
=$ac_check_lib_save_LIBS
5200 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5201 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5202 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5203 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5204 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5205 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.
$ac_ext <<_ACEOF
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5218 return (int) gettext ("")
5223 rm -f conftest.
$ac_objext conftest
$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1
>conftest.err
5229 cat conftest.err
>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try
='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 gt_cv_func_gettext_libintl
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 gt_cv_func_gettext_libintl
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5256 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5261 if test "$gt_cv_func_gettext_libc" = "yes" \
5262 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5263 cat >>confdefs.h
<<\_ACEOF
5264 #define HAVE_GETTEXT 1
5267 # Extract the first word of "msgfmt", so it can be a program name with args.
5268 set dummy msgfmt
; ac_word
=$2
5269 echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5271 if test "${ac_cv_path_MSGFMT+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5279 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5280 for ac_dir
in $PATH; do
5281 test -z "$ac_dir" && ac_dir
=.
5282 if test -f $ac_dir/$ac_word; then
5283 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5284 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5290 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5294 MSGFMT
="$ac_cv_path_MSGFMT"
5295 if test -n "$MSGFMT"; then
5296 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5297 echo "${ECHO_T}$MSGFMT" >&6
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5302 if test "$MSGFMT" != "no"; then
5304 for ac_func
in dcgettext
5306 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5307 echo "$as_me:$LINENO: checking for $ac_func" >&5
5308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5309 if eval "test \"\${$as_ac_var+set}\" = set"; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.
$ac_ext <<_ACEOF
5315 cat confdefs.h
>>conftest.
$ac_ext
5316 cat >>conftest.
$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5320 #define $ac_func innocuous_$ac_func
5322 /* System header to define __stub macros and hopefully few prototypes,
5323 which can conflict with char $ac_func (); below.
5324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325 <limits.h> exists even on freestanding compilers. */
5328 # include <limits.h>
5330 # include <assert.h>
5335 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5349 char (*f) () = $ac_func;
5358 return f != $ac_func;
5363 rm -f conftest.
$ac_objext conftest
$ac_exeext
5364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365 (eval $ac_link) 2>conftest.er1
5367 grep -v '^ *+' conftest.er1
>conftest.err
5369 cat conftest.err
>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try
='test -z "$ac_c_werror_flag"
5373 || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try
='test -s conftest$ac_exeext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 eval "$as_ac_var=yes"
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.
$ac_ext >&5
5390 eval "$as_ac_var=no"
5392 rm -f conftest.err conftest.
$ac_objext \
5393 conftest
$ac_exeext conftest.
$ac_ext
5395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5397 if test `eval echo '${'$as_ac_var'}'` = yes; then
5398 cat >>confdefs.h
<<_ACEOF
5399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5405 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5406 set dummy gmsgfmt
; ac_word
=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5435 GMSGFMT
=$ac_cv_path_GMSGFMT
5437 if test -n "$GMSGFMT"; then
5438 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5439 echo "${ECHO_T}$GMSGFMT" >&6
5441 echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5445 # Extract the first word of "xgettext", so it can be a program name with args.
5446 set dummy xgettext
; ac_word
=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5457 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5458 for ac_dir
in $PATH; do
5459 test -z "$ac_dir" && ac_dir
=.
5460 if test -f $ac_dir/$ac_word; then
5461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5462 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5468 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5472 XGETTEXT
="$ac_cv_path_XGETTEXT"
5473 if test -n "$XGETTEXT"; then
5474 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5475 echo "${ECHO_T}$XGETTEXT" >&6
5477 echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5491 extern int _nl_msg_cat_cntr;
5492 return _nl_msg_cat_cntr
5497 rm -f conftest.
$ac_objext conftest
$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>conftest.er1
5501 grep -v '^ *+' conftest.er1
>conftest.err
5503 cat conftest.err
>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try
='test -z "$ac_c_werror_flag"
5507 || test ! -s conftest.err'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; } &&
5513 { ac_try
='test -s conftest$ac_exeext'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.
$ac_ext >&5
5528 rm -f conftest.err conftest.
$ac_objext \
5529 conftest
$ac_exeext conftest.
$ac_ext
5539 if test "$CATOBJEXT" = "NONE"; then
5540 nls_cv_use_gnu_gettext
=yes
5544 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5545 INTLOBJS
="\$(GETTOBJS)"
5546 # Extract the first word of "msgfmt", so it can be a program name with args.
5547 set dummy msgfmt
; ac_word
=$2
5548 echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550 if test "${ac_cv_path_MSGFMT+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5558 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5559 for ac_dir
in $PATH; do
5560 test -z "$ac_dir" && ac_dir
=.
5561 if test -f $ac_dir/$ac_word; then
5562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5563 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5569 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5573 MSGFMT
="$ac_cv_path_MSGFMT"
5574 if test -n "$MSGFMT"; then
5575 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5576 echo "${ECHO_T}$MSGFMT" >&6
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5583 set dummy gmsgfmt
; ac_word
=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir
=.
5599 for ac_exec_ext
in '' $ac_executable_extensions; do
5600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5612 GMSGFMT
=$ac_cv_path_GMSGFMT
5614 if test -n "$GMSGFMT"; then
5615 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5616 echo "${ECHO_T}$GMSGFMT" >&6
5618 echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6
5622 # Extract the first word of "xgettext", so it can be a program name with args.
5623 set dummy xgettext
; ac_word
=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5635 for ac_dir
in $PATH; do
5636 test -z "$ac_dir" && ac_dir
=.
5637 if test -f $ac_dir/$ac_word; then
5638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5639 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5649 XGETTEXT
="$ac_cv_path_XGETTEXT"
5650 if test -n "$XGETTEXT"; then
5651 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5652 echo "${ECHO_T}$XGETTEXT" >&6
5654 echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5659 USE_INCLUDED_LIBINTL
=yes
5663 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5665 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5666 nls_cv_header_intl
=libintl.h
5667 nls_cv_header_libgt
=libgettext.h
5670 if test "$XGETTEXT" != ":"; then
5671 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5674 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5675 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5680 # We need to process the po/ directory.
5684 nls_cv_header_intl
=libintl.h
5685 nls_cv_header_libgt
=libgettext.h
5688 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5689 # because some of the sources are only built for this goal.
5690 if test "$PACKAGE" = gettext; then
5692 USE_INCLUDED_LIBINTL
=yes
5695 for lang
in $ALL_LINGUAS; do
5696 GMOFILES
="$GMOFILES $lang.gmo"
5697 POFILES
="$POFILES $lang.po"
5713 if test "x$CATOBJEXT" != "x"; then
5714 if test "x$ALL_LINGUAS" = "x"; then
5717 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5718 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5720 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5721 case "$ALL_LINGUAS" in
5722 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5725 LINGUAS
=$NEW_LINGUAS
5726 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5727 echo "${ECHO_T}$LINGUAS" >&6
5730 if test -n "$LINGUAS"; then
5731 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5735 if test $ac_cv_header_locale_h = yes; then
5736 INCLUDE_LOCALE_H
="#include <locale.h>"
5739 /* The system does not provide the header <locale.h>. Take care yourself. */"
5743 if test -f $srcdir/po2tbl.
sed.
in; then
5744 if test "$CATOBJEXT" = ".cat"; then
5745 if test "${ac_cv_header_linux_version_h+set}" = set; then
5746 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5747 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5748 if test "${ac_cv_header_linux_version_h+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5752 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5754 # Is the header compilable?
5755 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5756 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5764 #include <linux/version.h>
5766 rm -f conftest.
$ac_objext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>conftest.er1
5770 grep -v '^ *+' conftest.er1
>conftest.err
5772 cat conftest.err
>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try
='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try
='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_header_compiler
=yes
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.
$ac_ext >&5
5793 ac_header_compiler
=no
5795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5797 echo "${ECHO_T}$ac_header_compiler" >&6
5799 # Is the header present?
5800 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5801 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <linux/version.h>
5810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5813 grep -v '^ *+' conftest.er1
>conftest.err
5815 cat conftest.err
>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } >/dev
/null
; then
5818 if test -s conftest.err
; then
5819 ac_cpp_err
=$ac_c_preproc_warn_flag
5820 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5827 if test -z "$ac_cpp_err"; then
5828 ac_header_preproc
=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5833 ac_header_preproc
=no
5835 rm -f conftest.err conftest.
$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5837 echo "${ECHO_T}$ac_header_preproc" >&6
5839 # So? What about this header?
5840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5842 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5843 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5845 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5846 ac_header_preproc
=yes
5849 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5850 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5851 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5852 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5853 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5854 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5856 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5860 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5863 ## ------------------------------------------ ##
5864 ## Report this to the AC_PACKAGE_NAME lists. ##
5865 ## ------------------------------------------ ##
5868 sed "s/^/$as_me: WARNING: /" >&2
5871 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5872 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5873 if test "${ac_cv_header_linux_version_h+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_cv_header_linux_version_h
=$ac_header_preproc
5878 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5879 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5882 if test $ac_cv_header_linux_version_h = yes; then
5890 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5892 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5893 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5896 if test "$PACKAGE" = "gettext"; then
5906 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5912 if test -d $srcdir/po
; then
5913 test -d po || mkdir po
5914 if test "x$srcdir" != "x."; then
5915 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5916 posrcprefix
="$srcdir/"
5918 posrcprefix
="../$srcdir/"
5924 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5925 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5929 # Check for common headers.
5930 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5931 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5937 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5939 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5941 echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949 # Is the header compilable?
5950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5952 cat >conftest.
$ac_ext <<_ACEOF
5955 cat confdefs.h
>>conftest.
$ac_ext
5956 cat >>conftest.
$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 $ac_includes_default
5959 #include <$ac_header>
5961 rm -f conftest.
$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>conftest.er1
5965 grep -v '^ *+' conftest.er1
>conftest.err
5967 cat conftest.err
>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try
='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try
='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_header_compiler
=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5988 ac_header_compiler
=no
5990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5992 echo "${ECHO_T}$ac_header_compiler" >&6
5994 # Is the header present?
5995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5997 cat >conftest.
$ac_ext <<_ACEOF
6000 cat confdefs.h
>>conftest.
$ac_ext
6001 cat >>conftest.
$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <$ac_header>
6005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6008 grep -v '^ *+' conftest.er1
>conftest.err
6010 cat conftest.err
>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev
/null
; then
6013 if test -s conftest.err
; then
6014 ac_cpp_err
=$ac_c_preproc_warn_flag
6015 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6022 if test -z "$ac_cpp_err"; then
6023 ac_header_preproc
=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.
$ac_ext >&5
6028 ac_header_preproc
=no
6030 rm -f conftest.err conftest.
$ac_ext
6031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6032 echo "${ECHO_T}$ac_header_preproc" >&6
6034 # So? What about this header?
6035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6041 ac_header_preproc
=yes
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6058 ## ------------------------------------------ ##
6059 ## Report this to the AC_PACKAGE_NAME lists. ##
6060 ## ------------------------------------------ ##
6063 sed "s/^/$as_me: WARNING: /" >&2
6066 echo "$as_me:$LINENO: checking for $ac_header" >&5
6067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 eval "$as_ac_Header=\$ac_header_preproc"
6073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6078 cat >>confdefs.h
<<_ACEOF
6079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6088 for ac_header
in sys
/time.h sys
/resource.h
6090 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6092 echo "$as_me:$LINENO: checking for $ac_header" >&5
6093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6100 # Is the header compilable?
6101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6103 cat >conftest.
$ac_ext <<_ACEOF
6106 cat confdefs.h
>>conftest.
$ac_ext
6107 cat >>conftest.
$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 #include <$ac_header>
6112 rm -f conftest.
$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6116 grep -v '^ *+' conftest.er1
>conftest.err
6118 cat conftest.err
>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try
='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try
='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_header_compiler
=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.
$ac_ext >&5
6139 ac_header_compiler
=no
6141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6143 echo "${ECHO_T}$ac_header_compiler" >&6
6145 # Is the header present?
6146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6148 cat >conftest.
$ac_ext <<_ACEOF
6151 cat confdefs.h
>>conftest.
$ac_ext
6152 cat >>conftest.
$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <$ac_header>
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1
>conftest.err
6161 cat conftest.err
>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev
/null
; then
6164 if test -s conftest.err
; then
6165 ac_cpp_err
=$ac_c_preproc_warn_flag
6166 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6173 if test -z "$ac_cpp_err"; then
6174 ac_header_preproc
=yes
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.
$ac_ext >&5
6179 ac_header_preproc
=no
6181 rm -f conftest.err conftest.
$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6183 echo "${ECHO_T}$ac_header_preproc" >&6
6185 # So? What about this header?
6186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6192 ac_header_preproc
=yes
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6209 ## ------------------------------------------ ##
6210 ## Report this to the AC_PACKAGE_NAME lists. ##
6211 ## ------------------------------------------ ##
6214 sed "s/^/$as_me: WARNING: /" >&2
6217 echo "$as_me:$LINENO: checking for $ac_header" >&5
6218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 eval "$as_ac_Header=\$ac_header_preproc"
6224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6229 cat >>confdefs.h
<<_ACEOF
6230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6239 for ac_header
in fcntl.h fpu_control.h
6241 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6243 echo "$as_me:$LINENO: checking for $ac_header" >&5
6244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6251 # Is the header compilable?
6252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6254 cat >conftest.
$ac_ext <<_ACEOF
6257 cat confdefs.h
>>conftest.
$ac_ext
6258 cat >>conftest.
$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 $ac_includes_default
6261 #include <$ac_header>
6263 rm -f conftest.
$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>conftest.er1
6267 grep -v '^ *+' conftest.er1
>conftest.err
6269 cat conftest.err
>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try
='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try
='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 ac_header_compiler
=yes
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.
$ac_ext >&5
6290 ac_header_compiler
=no
6292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6294 echo "${ECHO_T}$ac_header_compiler" >&6
6296 # Is the header present?
6297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6299 cat >conftest.
$ac_ext <<_ACEOF
6302 cat confdefs.h
>>conftest.
$ac_ext
6303 cat >>conftest.
$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <$ac_header>
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6310 grep -v '^ *+' conftest.er1
>conftest.err
6312 cat conftest.err
>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev
/null
; then
6315 if test -s conftest.err
; then
6316 ac_cpp_err
=$ac_c_preproc_warn_flag
6317 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6324 if test -z "$ac_cpp_err"; then
6325 ac_header_preproc
=yes
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.
$ac_ext >&5
6330 ac_header_preproc
=no
6332 rm -f conftest.err conftest.
$ac_ext
6333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6334 echo "${ECHO_T}$ac_header_preproc" >&6
6336 # So? What about this header?
6337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6343 ac_header_preproc
=yes
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6360 ## ------------------------------------------ ##
6361 ## Report this to the AC_PACKAGE_NAME lists. ##
6362 ## ------------------------------------------ ##
6365 sed "s/^/$as_me: WARNING: /" >&2
6368 echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 eval "$as_ac_Header=\$ac_header_preproc"
6375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6380 cat >>confdefs.h
<<_ACEOF
6381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391 for ac_header
in dlfcn.h errno.h sys
/stat.h
6393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395 echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 # Is the header compilable?
6404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6406 cat >conftest.
$ac_ext <<_ACEOF
6409 cat confdefs.h
>>conftest.
$ac_ext
6410 cat >>conftest.
$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6413 #include <$ac_header>
6415 rm -f conftest.
$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1
>conftest.err
6421 cat conftest.err
>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try
='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try
='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 ac_header_compiler
=no
6444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.
$ac_ext <<_ACEOF
6454 cat confdefs.h
>>conftest.
$ac_ext
6455 cat >>conftest.
$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <$ac_header>
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1
>conftest.err
6464 cat conftest.err
>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev
/null
; then
6467 if test -s conftest.err
; then
6468 ac_cpp_err
=$ac_c_preproc_warn_flag
6469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc
=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6482 ac_header_preproc
=no
6484 rm -f conftest.err conftest.
$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6495 ac_header_preproc
=yes
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists. ##
6514 ## ------------------------------------------ ##
6517 sed "s/^/$as_me: WARNING: /" >&2
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 eval "$as_ac_Header=\$ac_header_preproc"
6527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h
<<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6544 for ac_func
in getrusage
time sigaction __setfpucw
6546 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6547 echo "$as_me:$LINENO: checking for $ac_func" >&5
6548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6549 if eval "test \"\${$as_ac_var+set}\" = set"; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 cat >conftest.
$ac_ext <<_ACEOF
6555 cat confdefs.h
>>conftest.
$ac_ext
6556 cat >>conftest.
$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6560 #define $ac_func innocuous_$ac_func
6562 /* System header to define __stub macros and hopefully few prototypes,
6563 which can conflict with char $ac_func (); below.
6564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 <limits.h> exists even on freestanding compilers. */
6568 # include <limits.h>
6570 # include <assert.h>
6575 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6589 char (*f) () = $ac_func;
6598 return f != $ac_func;
6603 rm -f conftest.
$ac_objext conftest
$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>conftest.er1
6607 grep -v '^ *+' conftest.er1
>conftest.err
6609 cat conftest.err
>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try
='test -z "$ac_c_werror_flag"
6613 || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try
='test -s conftest$ac_exeext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 eval "$as_ac_var=yes"
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6630 eval "$as_ac_var=no"
6632 rm -f conftest.err conftest.
$ac_objext \
6633 conftest
$ac_exeext conftest.
$ac_ext
6635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6637 if test `eval echo '${'$as_ac_var'}'` = yes; then
6638 cat >>confdefs.h
<<_ACEOF
6639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6646 # Check for socket libraries
6648 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6649 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6650 if test "${ac_cv_lib_socket_bind+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 ac_check_lib_save_LIBS
=$LIBS
6654 LIBS
="-lsocket $LIBS"
6655 cat >conftest.
$ac_ext <<_ACEOF
6658 cat confdefs.h
>>conftest.
$ac_ext
6659 cat >>conftest.
$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6677 rm -f conftest.
$ac_objext conftest
$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try
='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try
='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_lib_socket_bind
=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.
$ac_ext >&5
6704 ac_cv_lib_socket_bind
=no
6706 rm -f conftest.err conftest.
$ac_objext \
6707 conftest
$ac_exeext conftest.
$ac_ext
6708 LIBS
=$ac_check_lib_save_LIBS
6710 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6711 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6712 if test $ac_cv_lib_socket_bind = yes; then
6713 cat >>confdefs.h
<<_ACEOF
6714 #define HAVE_LIBSOCKET 1
6717 LIBS
="-lsocket $LIBS"
6722 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6723 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6724 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 ac_check_lib_save_LIBS
=$LIBS
6729 cat >conftest.
$ac_ext <<_ACEOF
6732 cat confdefs.h
>>conftest.
$ac_ext
6733 cat >>conftest.
$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6736 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6742 char gethostbyname ();
6751 rm -f conftest.
$ac_objext conftest
$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>conftest.er1
6755 grep -v '^ *+' conftest.er1
>conftest.err
6757 cat conftest.err
>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try
='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try
='test -s conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_cv_lib_nsl_gethostbyname
=yes
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.
$ac_ext >&5
6778 ac_cv_lib_nsl_gethostbyname
=no
6780 rm -f conftest.err conftest.
$ac_objext \
6781 conftest
$ac_exeext conftest.
$ac_ext
6782 LIBS
=$ac_check_lib_save_LIBS
6784 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6785 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6786 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6787 cat >>confdefs.h
<<_ACEOF
6788 #define HAVE_LIBNSL 1
6796 .
${srcdir}/..
/..
/bfd
/configure.
host
6800 USE_MAINTAINER_MODE
=no
6801 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6802 if test "${enable_maintainer_mode+set}" = set; then
6803 enableval
="$enable_maintainer_mode"
6804 case "${enableval}" in
6805 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6807 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6808 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6809 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6811 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6812 echo "Setting maintainer mode" 6>&1
6819 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6820 if test "${enable_sim_bswap+set}" = set; then
6821 enableval
="$enable_sim_bswap"
6822 case "${enableval}" in
6823 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6824 no
) sim_bswap
="-DWITH_BSWAP=0";;
6825 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6826 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6827 { (exit 1); exit 1; }; }; sim_bswap
="";;
6829 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6830 echo "Setting bswap flags = $sim_bswap" 6>&1
6837 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6838 if test "${enable_sim_cflags+set}" = set; then
6839 enableval
="$enable_sim_cflags"
6840 case "${enableval}" in
6841 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6842 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6843 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6844 { (exit 1); exit 1; }; }; sim_cflags
="";;
6846 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6848 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6849 echo "Setting sim cflags = $sim_cflags" 6>&1
6856 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6857 if test "${enable_sim_debug+set}" = set; then
6858 enableval
="$enable_sim_debug"
6859 case "${enableval}" in
6860 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6861 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6862 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6864 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6865 echo "Setting sim debug = $sim_debug" 6>&1
6872 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6873 if test "${enable_sim_stdio+set}" = set; then
6874 enableval
="$enable_sim_stdio"
6875 case "${enableval}" in
6876 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6877 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6878 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6879 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6880 { (exit 1); exit 1; }; }; sim_stdio
="";;
6882 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6883 echo "Setting stdio flags = $sim_stdio" 6>&1
6890 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6891 if test "${enable_sim_trace+set}" = set; then
6892 enableval
="$enable_sim_trace"
6893 case "${enableval}" in
6894 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6895 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6897 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6900 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6901 if test x
"$sim_trace" = x
; then
6902 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6904 sim_trace
="${sim_trace}|TRACE_$x"
6907 sim_trace
="$sim_trace)'" ;;
6909 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6910 echo "Setting sim trace = $sim_trace" 6>&1
6917 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6918 if test "${enable_sim_profile+set}" = set; then
6919 enableval
="$enable_sim_profile"
6920 case "${enableval}" in
6921 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6922 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6924 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6927 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6928 if test x
"$sim_profile" = x
; then
6929 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6931 sim_profile
="${sim_profile}|PROFILE_$x"
6934 sim_profile
="$sim_profile)'" ;;
6936 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6937 echo "Setting sim profile = $sim_profile" 6>&1
6940 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6944 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6945 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6946 if test "${ac_cv_type_signal+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.
$ac_ext <<_ACEOF
6952 cat confdefs.h
>>conftest.
$ac_ext
6953 cat >>conftest.
$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6961 extern "C" void (*signal (int, void (*)(int)))(int);
6963 void (*signal ()) ();
6974 rm -f conftest.
$ac_objext
6975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976 (eval $ac_compile) 2>conftest.er1
6978 grep -v '^ *+' conftest.er1
>conftest.err
6980 cat conftest.err
>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try
='test -z "$ac_c_werror_flag"
6984 || test ! -s conftest.err'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; } &&
6990 { ac_try
='test -s conftest.$ac_objext'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
6996 ac_cv_type_signal
=void
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.
$ac_ext >&5
7001 ac_cv_type_signal
=int
7003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7005 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7006 echo "${ECHO_T}$ac_cv_type_signal" >&6
7008 cat >>confdefs.h
<<_ACEOF
7009 #define RETSIGTYPE $ac_cv_type_signal
7019 sim_link_links
=tconfig.h
7020 if test -f ${srcdir}/tconfig.
in
7022 sim_link_files
=tconfig.
in
7024 sim_link_files
=..
/common
/tconfig.
in
7027 # targ-vals.def points to the libc macro description file.
7029 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7031 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7032 sim_link_links
="${sim_link_links} targ-vals.def"
7035 wire_alignment
="NONSTRICT_ALIGNMENT"
7036 default_alignment
=""
7038 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7039 if test "${enable_sim_alignment+set}" = set; then
7040 enableval
="$enable_sim_alignment"
7041 case "${enableval}" in
7042 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7043 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7044 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7045 yes) if test x
"$wire_alignment" != x
; then
7046 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7048 if test x
"$default_alignment" != x
; then
7049 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7051 echo "No hard-wired alignment for target $target" 1>&6
7052 sim_alignment
="-DWITH_ALIGNMENT=0"
7055 no
) if test x
"$default_alignment" != x
; then
7056 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7058 if test x
"$wire_alignment" != x
; then
7059 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7061 echo "No default alignment for target $target" 1>&6
7062 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7065 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7066 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7067 { (exit 1); exit 1; }; }; sim_alignment
="";;
7069 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7070 echo "Setting alignment flags = $sim_alignment" 6>&1
7073 if test x
"$default_alignment" != x
; then
7074 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7076 if test x
"$wire_alignment" != x
; then
7077 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7084 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7085 if test "${enable_sim_hostendian+set}" = set; then
7086 enableval
="$enable_sim_hostendian"
7087 case "${enableval}" in
7088 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7089 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7090 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7091 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7092 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7093 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7095 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7096 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7100 if test "x$cross_compiling" = "xno"; then
7101 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7102 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7103 if test "${ac_cv_c_bigendian+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 # See if sys/param.h defines the BYTE_ORDER macro.
7107 cat >conftest.
$ac_ext <<_ACEOF
7110 cat confdefs.h
>>conftest.
$ac_ext
7111 cat >>conftest.
$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <sys/types.h>
7114 #include <sys/param.h>
7119 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7127 rm -f conftest.
$ac_objext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7129 (eval $ac_compile) 2>conftest.er1
7131 grep -v '^ *+' conftest.er1
>conftest.err
7133 cat conftest.err
>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try
='test -z "$ac_c_werror_flag"
7137 || test ! -s conftest.err'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; } &&
7143 { ac_try
='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 # It does; now see whether it defined to BIG_ENDIAN or not.
7150 cat >conftest.
$ac_ext <<_ACEOF
7153 cat confdefs.h
>>conftest.
$ac_ext
7154 cat >>conftest.
$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <sys/types.h>
7157 #include <sys/param.h>
7162 #if BYTE_ORDER != BIG_ENDIAN
7170 rm -f conftest.
$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try
='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try
='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_c_bigendian
=yes
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.
$ac_ext >&5
7197 ac_cv_c_bigendian
=no
7199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.
$ac_ext >&5
7204 # It does not; compile a test program.
7205 if test "$cross_compiling" = yes; then
7206 # try to guess the endianness by grepping values into an object file
7207 ac_cv_c_bigendian
=unknown
7208 cat >conftest.
$ac_ext <<_ACEOF
7211 cat confdefs.h
>>conftest.
$ac_ext
7212 cat >>conftest.
$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7215 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7216 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7217 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7218 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7219 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7223 _ascii (); _ebcdic ();
7228 rm -f conftest.
$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1
>conftest.err
7234 cat conftest.err
>&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try
='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try
='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7251 ac_cv_c_bigendian
=yes
7253 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7254 if test "$ac_cv_c_bigendian" = unknown
; then
7255 ac_cv_c_bigendian
=no
7257 # finding both strings is unlikely to happen, but who knows?
7258 ac_cv_c_bigendian
=unknown
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.
$ac_ext >&5
7266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 cat >conftest.
$ac_ext <<_ACEOF
7271 cat confdefs.h
>>conftest.
$ac_ext
7272 cat >>conftest.
$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7277 /* Are we little or big endian? From Harbison&Steele. */
7281 char c[sizeof (long)];
7284 exit (u.c[sizeof (long) - 1] == 1);
7287 rm -f conftest
$ac_exeext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7289 (eval $ac_link) 2>&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_c_bigendian
=no
7300 echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.
$ac_ext >&5
7305 ac_cv_c_bigendian
=yes
7307 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7313 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7314 case $ac_cv_c_bigendian in
7317 cat >>confdefs.h
<<\_ACEOF
7318 #define WORDS_BIGENDIAN 1
7324 { { echo "$as_me:$LINENO: error: unknown endianness
7325 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7326 echo "$as_me: error: unknown endianness
7327 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7328 { (exit 1); exit 1; }; } ;;
7331 if test $ac_cv_c_bigendian = yes; then
7332 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7334 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7337 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7341 default_sim_scache
="16384"
7342 # Check whether --enable-sim-scache or --disable-sim-scache was given.
7343 if test "${enable_sim_scache+set}" = set; then
7344 enableval
="$enable_sim_scache"
7345 case "${enableval}" in
7346 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
7347 no
) sim_scache
="-DWITH_SCACHE=0" ;;
7348 [0-9]*) sim_scache
="-DWITH_SCACHE=${enableval}";;
7349 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
7350 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
7351 { (exit 1); exit 1; }; };
7354 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
7355 echo "Setting scache size = $sim_scache" 6>&1
7358 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
7362 # The default model shouldn't matter as long as there's a BFD.
7364 default_sim_default_model
="crisv32"
7365 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
7366 if test "${enable_sim_default_model+set}" = set; then
7367 enableval
="$enable_sim_default_model"
7368 case "${enableval}" in
7369 yes|no
) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
7370 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
7371 { (exit 1); exit 1; }; };;
7372 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
7374 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
7375 echo "Setting default model = $sim_default_model" 6>&1
7378 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
7382 # Check whether --enable-sim-environment or --disable-sim-environment was given.
7383 if test "${enable_sim_environment+set}" = set; then
7384 enableval
="$enable_sim_environment"
7385 case "${enableval}" in
7386 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
7387 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
7388 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
7389 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
7390 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
7391 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
7392 { (exit 1); exit 1; }; };
7393 sim_environment
="";;
7395 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
7396 echo "Setting sim environment = $sim_environment" 6>&1
7399 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
7402 default_sim_inline
=""
7403 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7404 if test "${enable_sim_inline+set}" = set; then
7405 enableval
="$enable_sim_inline"
7407 case "$enableval" in
7408 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7409 0) sim_inline
="-DDEFAULT_INLINE=0";;
7410 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7411 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7412 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7415 *_INLINE
=*) new_flag
="-D$x";;
7416 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7417 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7418 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7420 if test x
"$sim_inline" = x
""; then
7421 sim_inline
="$new_flag"
7423 sim_inline
="$sim_inline $new_flag"
7427 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7428 echo "Setting inline flags = $sim_inline" 6>&1
7432 if test "x$cross_compiling" = "xno"; then
7433 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7434 sim_inline
="${default_sim_inline}"
7435 if test x
"$silent" != x
"yes"; then
7436 echo "Setting inline flags = $sim_inline" 6>&1
7442 sim_inline
="-DDEFAULT_INLINE=0"
7448 cgendir
='$(srcdir)/../../cgen'
7449 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
7450 if test "${enable_cgen_maint+set}" = set; then
7451 enableval
="$enable_cgen_maint"
7452 case "${enableval}" in
7453 yes) cgen_maint
=yes ;;
7454 no
) cgen_maint
=no
;;
7456 # argument is cgen install directory (not implemented yet).
7457 # Having a `share' directory might be more appropriate for the .scm,
7459 cgendir
=${cgen_maint}/lib
/cgen
7463 fi; if test x
${cgen_maint} != xno
; then
7474 ac_sources
="$sim_link_files"
7475 ac_dests
="$sim_link_links"
7476 while test -n "$ac_sources"; do
7477 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7478 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7479 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7481 ac_config_links
="$ac_config_links $ac_config_links_1"
7484 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7485 cgen_breaks
="break cgen_rtx_error";
7488 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7490 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7492 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7494 ac_config_commands
="$ac_config_commands Makefile"
7496 ac_config_commands
="$ac_config_commands stamp-h"
7498 cat >confcache
<<\_ACEOF
7499 # This file is a shell script that caches the results of configure
7500 # tests run on this system so they can be shared between configure
7501 # scripts and configure runs, see configure's option --config-cache.
7502 # It is not useful on other systems. If it contains results you don't
7503 # want to keep, you may remove or edit it.
7505 # config.status only pays attention to the cache file if you give it
7506 # the --recheck option to rerun configure.
7508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7514 # The following way of writing the cache mishandles newlines in values,
7515 # but we know of no workaround that is simple, portable, and efficient.
7516 # So, don't put newlines in cache variables' values.
7517 # Ultrix sh set writes to stderr and can't be redirected directly,
7518 # and sets the high bit in the cache file unless we assign to the vars.
7521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7523 # `set' does not quote correctly, so add quotes (double-quote
7524 # substitution turns \\\\ into \\, and sed turns \\ into \).
7527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7530 # `set' quotes correctly as required by POSIX, so do not add quotes.
7532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7543 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7544 if test -w $cache_file; then
7545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7546 cat confcache
>$cache_file
7548 echo "not updating unwritable cache $cache_file"
7553 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7554 # Let make expand exec_prefix.
7555 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7559 # trailing colons and then remove the whole line if VPATH becomes empty
7560 # (actually we leave an empty line to preserve line numbers).
7561 if test "x$srcdir" = x.
; then
7562 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7563 s/:*\$(srcdir):*/:/;
7564 s/:*\${srcdir}:*/:/;
7566 s/^\([^=]*=[ ]*\):*/\1/;
7572 DEFS
=-DHAVE_CONFIG_H
7576 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7577 # 1. Remove the extension, and $U if already installed.
7578 ac_i
=`echo "$ac_i" |
7579 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7581 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7582 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7586 LTLIBOBJS
=$ac_ltlibobjs
7590 : ${CONFIG_STATUS=./config.status}
7591 ac_clean_files_save
=$ac_clean_files
7592 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7593 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7594 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7595 cat >$CONFIG_STATUS <<_ACEOF
7597 # Generated by $as_me.
7598 # Run this file to recreate the current configuration.
7599 # Compiler output produced by configure, useful for debugging
7600 # configure, is in config.log if it exists.
7605 SHELL=\${CONFIG_SHELL-$SHELL}
7608 cat >>$CONFIG_STATUS <<\_ACEOF
7609 ## --------------------- ##
7610 ## M4sh Initialization. ##
7611 ## --------------------- ##
7613 # Be Bourne compatible
7614 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7617 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7618 # is contrary to our usage. Disable this feature.
7619 alias -g '${1+"$@"}'='"$@"'
7620 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7623 DUALCASE
=1; export DUALCASE
# for MKS sh
7625 # Support unset when possible.
7626 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7633 # Work around bugs in pre-3.0 UWIN ksh.
7634 $as_unset ENV MAIL MAILPATH
7641 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7642 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7643 LC_TELEPHONE LC_TIME
7645 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7646 eval $as_var=C
; export $as_var
7652 # Required to use basename.
7653 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7659 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7660 as_basename
=basename
7666 # Name of the executable.
7667 as_me
=`$as_basename "$0" ||
7668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7669 X"$0" : 'X\(//\)$' \| \
7670 X"$0" : 'X\(/\)$' \| \
7671 . : '\(.\)' 2>/dev/null ||
7673 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7674 /^X\/\(\/\/\)$/{ s//\1/; q; }
7675 /^X\/\(\/\).*/{ s//\1/; q; }
7679 # PATH needs CR, and LINENO needs CR and PATH.
7680 # Avoid depending upon Character Ranges.
7681 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7682 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7683 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7684 as_cr_digits
='0123456789'
7685 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7687 # The user is always right.
7688 if test "${PATH_SEPARATOR+set}" != set; then
7689 echo "#! /bin/sh" >conf$$.sh
7690 echo "exit 0" >>conf$$.sh
7692 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7703 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7704 test "x$as_lineno_1" != "x$as_lineno_2" &&
7705 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7706 # Find who we are. Look in the path if we contain no path at all
7709 *[\\/]* ) as_myself
=$0 ;;
7710 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir
=.
7715 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7720 # We did not find ourselves, most probably we were run as `sh COMMAND'
7721 # in which case we are not to be found in the path.
7722 if test "x$as_myself" = x
; then
7725 if test ! -f "$as_myself"; then
7726 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7727 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7728 { (exit 1); exit 1; }; }
7730 case $CONFIG_SHELL in
7732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7733 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7736 test -z "$as_dir" && as_dir
=.
7737 for as_base
in sh bash ksh sh5
; do
7740 if ("$as_dir/$as_base" -c '
7743 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7744 test "x$as_lineno_1" != "x$as_lineno_2" &&
7745 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7746 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7747 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7748 CONFIG_SHELL
=$as_dir/$as_base
7750 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7758 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7759 # uniformly replaced by the line number. The first 'sed' inserts a
7760 # line-number line before each line; the second 'sed' does the real
7761 # work. The second script uses 'N' to pair each line-number line
7762 # with the numbered line, and appends trailing '-' during
7763 # substitution so that $LINENO is not a special case at line end.
7764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7765 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7766 sed '=' <$as_myself |
7771 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7774 s,^['$as_cr_digits']*\n,,
7776 chmod +x
$as_me.lineno ||
7777 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7778 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7779 { (exit 1); exit 1; }; }
7781 # Don't try to exec as it changes $[0], causing all sort of problems
7782 # (the dirname of $[0] is not the place where we might find the
7783 # original and so on. Autoconf is especially sensible to this).
7785 # Exit status is that of the last command.
7790 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7791 *c
*,-n*) ECHO_N
= ECHO_C
='
7793 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7794 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7797 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7803 rm -f conf$$ conf$$.exe conf$$.
file
7805 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7806 # We could just check for DJGPP; but this test a) works b) is more generic
7807 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7808 if test -f conf$$.exe
; then
7809 # Don't use ln at all; we don't have any links
7814 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7819 rm -f conf$$ conf$$.exe conf$$.
file
7821 if mkdir
-p .
2>/dev
/null
; then
7824 test -d .
/-p && rmdir .
/-p
7828 as_executable_p
="test -f"
7830 # Sed expression to map a string onto a valid CPP name.
7831 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7833 # Sed expression to map a string onto a valid variable name.
7834 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7838 # We need space, tab and new line, in precisely that order.
7848 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7849 # report actual input values of CONFIG_FILES etc. instead of their
7850 # values after options handling. Logging --version etc. is OK.
7854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7855 ## Running $as_me. ##
7860 This file was extended by $as_me, which was
7861 generated by GNU Autoconf 2.59. Invocation command line was
7863 CONFIG_FILES = $CONFIG_FILES
7864 CONFIG_HEADERS = $CONFIG_HEADERS
7865 CONFIG_LINKS = $CONFIG_LINKS
7866 CONFIG_COMMANDS = $CONFIG_COMMANDS
7870 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7874 # Files that config.status was made for.
7875 if test -n "$ac_config_files"; then
7876 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7879 if test -n "$ac_config_headers"; then
7880 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7883 if test -n "$ac_config_links"; then
7884 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7887 if test -n "$ac_config_commands"; then
7888 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7891 cat >>$CONFIG_STATUS <<\_ACEOF
7894 \`$as_me' instantiates files from templates according to the
7895 current configuration.
7897 Usage: $0 [OPTIONS] [FILE]...
7899 -h, --help print this help, then exit
7900 -V, --version print version number, then exit
7901 -q, --quiet do not print progress messages
7902 -d, --debug don't remove temporary files
7903 --recheck update $as_me by reconfiguring in the same conditions
7904 --file=FILE[:TEMPLATE]
7905 instantiate the configuration file FILE
7906 --header=FILE[:TEMPLATE]
7907 instantiate the configuration header FILE
7909 Configuration files:
7912 Configuration headers:
7915 Configuration links:
7918 Configuration commands:
7921 Report bugs to <bug-autoconf@gnu.org>."
7924 cat >>$CONFIG_STATUS <<_ACEOF
7927 configured by $0, generated by GNU Autoconf 2.59,
7928 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7930 Copyright (C) 2003 Free Software Foundation, Inc.
7931 This config.status script is free software; the Free Software Foundation
7932 gives unlimited permission to copy, distribute and modify it."
7937 cat >>$CONFIG_STATUS <<\_ACEOF
7938 # If no file are specified by the user, then we need to provide default
7939 # value. By we need to know if files were specified by the user.
7945 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7946 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7954 *) # This is not an option, so the user has probably given explicit
7957 ac_need_defaults
=false
;;
7961 # Handling of the options.
7963 cat >>$CONFIG_STATUS <<\_ACEOF
7964 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7966 --version |
--vers* |
-V )
7967 echo "$ac_cs_version"; exit 0 ;;
7969 # Conflict between --help and --header
7970 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7971 Try \`$0 --help' for more information." >&5
7972 echo "$as_me: error: ambiguous option: $1
7973 Try \`$0 --help' for more information." >&2;}
7974 { (exit 1); exit 1; }; };;
7975 --help |
--hel |
-h )
7976 echo "$ac_cs_usage"; exit 0 ;;
7977 --debug |
--d* |
-d )
7979 --file |
--fil |
--fi |
--f )
7981 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7982 ac_need_defaults
=false
;;
7983 --header |
--heade |
--head |
--hea )
7985 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7986 ac_need_defaults
=false
;;
7987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7988 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7992 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7993 Try \`$0 --help' for more information." >&5
7994 echo "$as_me: error: unrecognized option: $1
7995 Try \`$0 --help' for more information." >&2;}
7996 { (exit 1); exit 1; }; } ;;
7998 *) ac_config_targets
="$ac_config_targets $1" ;;
8004 ac_configure_extra_args
=
8006 if $ac_cs_silent; then
8008 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8012 cat >>$CONFIG_STATUS <<_ACEOF
8013 if \$ac_cs_recheck; then
8014 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8015 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8024 cat >>$CONFIG_STATUS <<\_ACEOF
8025 for ac_config_target
in $ac_config_targets
8027 case "$ac_config_target" in
8028 # Handling of arguments.
8029 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8030 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8031 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8032 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8033 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8034 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8035 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8036 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8037 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8038 { (exit 1); exit 1; }; };;
8042 # If the user did not use the arguments to specify the items to instantiate,
8043 # then the envvar interface is used. Set only those that are not.
8044 # We use the long form for the default assignment because of an extremely
8045 # bizarre bug on SunOS 4.1.3.
8046 if $ac_need_defaults; then
8047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8049 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8053 # Have a temporary directory for convenience. Make it in the build tree
8054 # simply because there is no reason to put it here, and in addition,
8055 # creating and moving files from /tmp can sometimes cause problems.
8056 # Create a temporary directory, and hook for its removal unless debugging.
8059 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8060 trap '{ (exit 1); exit 1; }' 1 2 13 15
8063 # Create a (secure) tmp directory for tmp files.
8066 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8067 test -n "$tmp" && test -d "$tmp"
8070 tmp
=.
/confstat$$
-$RANDOM
8071 (umask 077 && mkdir
$tmp)
8074 echo "$me: cannot create a temporary directory in ." >&2
8075 { (exit 1); exit 1; }
8080 cat >>$CONFIG_STATUS <<_ACEOF
8083 # CONFIG_FILES section.
8086 # No need to generate the scripts if there are no CONFIG_FILES.
8087 # This happens for instance when ./config.status config.h
8088 if test -n "\$CONFIG_FILES"; then
8089 # Protect against being on the right side of a sed subst in config.status.
8090 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8091 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8092 s,@SHELL@,$SHELL,;t t
8093 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8094 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8095 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8096 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8097 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8098 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8099 s,@exec_prefix@,$exec_prefix,;t t
8100 s,@prefix@,$prefix,;t t
8101 s,@program_transform_name@,$program_transform_name,;t t
8102 s,@bindir@,$bindir,;t t
8103 s,@sbindir@,$sbindir,;t t
8104 s,@libexecdir@,$libexecdir,;t t
8105 s,@datadir@,$datadir,;t t
8106 s,@sysconfdir@,$sysconfdir,;t t
8107 s,@sharedstatedir@,$sharedstatedir,;t t
8108 s,@localstatedir@,$localstatedir,;t t
8109 s,@libdir@,$libdir,;t t
8110 s,@includedir@,$includedir,;t t
8111 s,@oldincludedir@,$oldincludedir,;t t
8112 s,@infodir@,$infodir,;t t
8113 s,@mandir@,$mandir,;t t
8114 s,@build_alias@,$build_alias,;t t
8115 s,@host_alias@,$host_alias,;t t
8116 s,@target_alias@,$target_alias,;t t
8118 s,@ECHO_C@,$ECHO_C,;t t
8119 s,@ECHO_N@,$ECHO_N,;t t
8120 s,@ECHO_T@,$ECHO_T,;t t
8122 s,@sim_environment@,$sim_environment,;t t
8123 s,@sim_alignment@,$sim_alignment,;t t
8124 s,@sim_assert@,$sim_assert,;t t
8125 s,@sim_bitsize@,$sim_bitsize,;t t
8126 s,@sim_endian@,$sim_endian,;t t
8127 s,@sim_hostendian@,$sim_hostendian,;t t
8128 s,@sim_float@,$sim_float,;t t
8129 s,@sim_scache@,$sim_scache,;t t
8130 s,@sim_default_model@,$sim_default_model,;t t
8131 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8132 s,@sim_hw_objs@,$sim_hw_objs,;t t
8133 s,@sim_hw@,$sim_hw,;t t
8134 s,@sim_inline@,$sim_inline,;t t
8135 s,@sim_packages@,$sim_packages,;t t
8136 s,@sim_regparm@,$sim_regparm,;t t
8137 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8138 s,@sim_smp@,$sim_smp,;t t
8139 s,@sim_stdcall@,$sim_stdcall,;t t
8140 s,@sim_xor_endian@,$sim_xor_endian,;t t
8141 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8142 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8143 s,@build@,$build,;t t
8144 s,@build_cpu@,$build_cpu,;t t
8145 s,@build_vendor@,$build_vendor,;t t
8146 s,@build_os@,$build_os,;t t
8148 s,@host_cpu@,$host_cpu,;t t
8149 s,@host_vendor@,$host_vendor,;t t
8150 s,@host_os@,$host_os,;t t
8151 s,@target@,$target,;t t
8152 s,@target_cpu@,$target_cpu,;t t
8153 s,@target_vendor@,$target_vendor,;t t
8154 s,@target_os@,$target_os,;t t
8156 s,@CFLAGS@,$CFLAGS,;t t
8157 s,@LDFLAGS@,$LDFLAGS,;t t
8158 s,@CPPFLAGS@,$CPPFLAGS,;t t
8159 s,@ac_ct_CC@,$ac_ct_CC,;t t
8160 s,@EXEEXT@,$EXEEXT,;t t
8161 s,@OBJEXT@,$OBJEXT,;t t
8162 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8163 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8164 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8165 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8166 s,@HDEFINES@,$HDEFINES,;t t
8168 s,@RANLIB@,$RANLIB,;t t
8169 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8170 s,@SET_MAKE@,$SET_MAKE,;t t
8172 s,@EGREP@,$EGREP,;t t
8173 s,@ALLOCA@,$ALLOCA,;t t
8174 s,@USE_NLS@,$USE_NLS,;t t
8175 s,@MSGFMT@,$MSGFMT,;t t
8176 s,@GMSGFMT@,$GMSGFMT,;t t
8177 s,@XGETTEXT@,$XGETTEXT,;t t
8178 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8179 s,@CATALOGS@,$CATALOGS,;t t
8180 s,@CATOBJEXT@,$CATOBJEXT,;t t
8181 s,@DATADIRNAME@,$DATADIRNAME,;t t
8182 s,@GMOFILES@,$GMOFILES,;t t
8183 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8184 s,@INTLDEPS@,$INTLDEPS,;t t
8185 s,@INTLLIBS@,$INTLLIBS,;t t
8186 s,@INTLOBJS@,$INTLOBJS,;t t
8187 s,@POFILES@,$POFILES,;t t
8188 s,@POSUB@,$POSUB,;t t
8189 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8190 s,@GT_NO@,$GT_NO,;t t
8191 s,@GT_YES@,$GT_YES,;t t
8192 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8194 s,@MAINT@,$MAINT,;t t
8195 s,@sim_bswap@,$sim_bswap,;t t
8196 s,@sim_cflags@,$sim_cflags,;t t
8197 s,@sim_debug@,$sim_debug,;t t
8198 s,@sim_stdio@,$sim_stdio,;t t
8199 s,@sim_trace@,$sim_trace,;t t
8200 s,@sim_profile@,$sim_profile,;t t
8201 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
8202 s,@cgendir@,$cgendir,;t t
8204 s,@cgen_breaks@,$cgen_breaks,;t t
8205 s,@LIBOBJS@,$LIBOBJS,;t t
8206 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8211 cat >>$CONFIG_STATUS <<\_ACEOF
8212 # Split the substitutions into bite-sized pieces for seds with
8213 # small command number limits, like on Digital OSF/1 and HP-UX.
8215 ac_sed_frag
=1 # Number of current file.
8216 ac_beg
=1 # First line for current file.
8217 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8220 while $ac_more_lines; do
8221 if test $ac_beg -gt 1; then
8222 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8224 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8226 if test ! -s $tmp/subs.frag
; then
8229 # The purpose of the label and of the branching condition is to
8230 # speed up the sed processing (if there are no `@' at all, there
8231 # is no need to browse any of the substitutions).
8232 # These are the two extra sed commands mentioned above.
8234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8235 if test -z "$ac_sed_cmds"; then
8236 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8238 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8240 ac_sed_frag
=`expr $ac_sed_frag + 1`
8242 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8245 if test -z "$ac_sed_cmds"; then
8248 fi # test -n "$CONFIG_FILES"
8251 cat >>$CONFIG_STATUS <<\_ACEOF
8252 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8253 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8255 - |
*:- |
*:-:* ) # input from stdin
8257 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8258 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8259 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8260 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8261 * ) ac_file_in
=$ac_file.
in ;;
8264 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8265 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8267 X"$ac_file" : 'X\(//\)[^/]' \| \
8268 X"$ac_file" : 'X\(//\)$' \| \
8269 X"$ac_file" : 'X\(/\)' \| \
8270 . : '\(.\)' 2>/dev/null ||
8272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8273 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8274 /^X\(\/\/\)$/{ s//\1/; q; }
8275 /^X\(\/\).*/{ s//\1/; q; }
8277 { if $as_mkdir_p; then
8282 while test ! -d "$as_dir"; do
8283 as_dirs
="$as_dir $as_dirs"
8284 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8286 X"$as_dir" : 'X\(//\)[^/]' \| \
8287 X"$as_dir" : 'X\(//\)$' \| \
8288 X"$as_dir" : 'X\(/\)' \| \
8289 . : '\(.\)' 2>/dev/null ||
8291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8293 /^X\(\/\/\)$/{ s//\1/; q; }
8294 /^X\(\/\).*/{ s//\1/; q; }
8297 test ! -n "$as_dirs" || mkdir
$as_dirs
8298 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8299 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8300 { (exit 1); exit 1; }; }; }
8304 if test "$ac_dir" != .
; then
8305 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8306 # A "../" for each directory in $ac_dir_suffix.
8307 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8309 ac_dir_suffix
= ac_top_builddir
=
8313 .
) # No --srcdir option. We are building in place.
8315 if test -z "$ac_top_builddir"; then
8318 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8320 [\\/]* | ?
:[\\/]* ) # Absolute path.
8321 ac_srcdir
=$srcdir$ac_dir_suffix;
8322 ac_top_srcdir
=$srcdir ;;
8324 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8325 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8328 # Do not use `cd foo && pwd` to compute absolute paths, because
8329 # the directories may not exist.
8331 .
) ac_abs_builddir
="$ac_dir";;
8334 .
) ac_abs_builddir
=`pwd`;;
8335 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8336 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8339 case $ac_abs_builddir in
8340 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8342 case ${ac_top_builddir}.
in
8343 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8344 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8345 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8348 case $ac_abs_builddir in
8349 .
) ac_abs_srcdir
=$ac_srcdir;;
8352 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8353 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8354 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8357 case $ac_abs_builddir in
8358 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8360 case $ac_top_srcdir in
8361 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8362 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8363 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8369 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8370 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8373 if test x
"$ac_file" != x-
; then
8374 { echo "$as_me:$LINENO: creating $ac_file" >&5
8375 echo "$as_me: creating $ac_file" >&6;}
8378 # Let's still pretend it is `configure' which instantiates (i.e., don't
8379 # use $as_me), people would be surprised to read:
8380 # /* config.h. Generated by config.status. */
8381 if test x
"$ac_file" = x-
; then
8384 configure_input
="$ac_file. "
8386 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8387 sed 's,.*/,,'` by configure."
8389 # First look for the input files in the build tree, otherwise in the
8391 ac_file_inputs
=`IFS=:
8392 for f in $ac_file_in; do
8394 -) echo $tmp/stdin ;;
8396 # Absolute (can't be DOS-style, as IFS=:)
8397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8398 echo "$as_me: error: cannot find input file: $f" >&2;}
8399 { (exit 1); exit 1; }; }
8402 if test -f "$f"; then
8405 elif test -f "$srcdir/$f"; then
8410 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8411 echo "$as_me: error: cannot find input file: $f" >&2;}
8412 { (exit 1); exit 1; }; }
8415 done` ||
{ (exit 1); exit 1; }
8417 cat >>$CONFIG_STATUS <<_ACEOF
8421 cat >>$CONFIG_STATUS <<\_ACEOF
8423 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8424 s
,@configure_input@
,$configure_input,;t t
8425 s
,@srcdir@
,$ac_srcdir,;t t
8426 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8427 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8428 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8429 s
,@builddir@
,$ac_builddir,;t t
8430 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8431 s
,@top_builddir@
,$ac_top_builddir,;t t
8432 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8433 s
,@INSTALL@
,$ac_INSTALL,;t t
8434 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8436 if test x"$ac_file" != x-; then
8437 mv $tmp/out $ac_file
8445 cat >>$CONFIG_STATUS <<\_ACEOF
8448 # CONFIG_HEADER section.
8451 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8452 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8454 # ac_d sets the value in "#define NAME VALUE" lines.
8455 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8456 ac_dB
='[ ].*$,\1#\2'
8459 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8460 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8461 ac_uB
='$,\1#\2define\3'
8465 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8468 - |
*:- |
*:-:* ) # input from stdin
8470 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8471 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8472 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8473 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8474 * ) ac_file_in
=$ac_file.
in ;;
8477 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8478 echo "$as_me: creating $ac_file" >&6;}
8480 # First look for the input files in the build tree, otherwise in the
8482 ac_file_inputs
=`IFS=:
8483 for f in $ac_file_in; do
8485 -) echo $tmp/stdin ;;
8487 # Absolute (can't be DOS-style, as IFS=:)
8488 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8489 echo "$as_me: error: cannot find input file: $f" >&2;}
8490 { (exit 1); exit 1; }; }
8491 # Do quote $f, to prevent DOS paths from being IFS'd.
8494 if test -f "$f"; then
8497 elif test -f "$srcdir/$f"; then
8502 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8503 echo "$as_me: error: cannot find input file: $f" >&2;}
8504 { (exit 1); exit 1; }; }
8507 done` ||
{ (exit 1); exit 1; }
8508 # Remove the trailing spaces.
8509 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8513 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8514 # `conftest.undefs', that substitutes the proper values into
8515 # config.h.in to produce config.h. The first handles `#define'
8516 # templates, and the second `#undef' templates.
8517 # And first: Protect against being on the right side of a sed subst in
8518 # config.status. Protect against being in an unquoted here document
8520 rm -f conftest.defines conftest.undefs
8521 # Using a here document instead of a string reduces the quoting nightmare.
8522 # Putting comments in sed scripts is not portable.
8524 # `end' is used to avoid that the second main sed command (meant for
8525 # 0-ary CPP macros) applies to n-ary macro definitions.
8526 # See the Autoconf documentation for `clear'.
8527 cat >confdef2sed.
sed <<\_ACEOF
8532 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8534 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8537 # If some macros were called several times there might be several times
8538 # the same #defines, which is useless. Nevertheless, we may not want to
8539 # sort them, since we want the *last* AC-DEFINE to be honored.
8540 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8541 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8542 rm -f confdef2sed.sed
8544 # This sed command replaces #undef with comments. This is necessary, for
8545 # example, in the case of _POSIX_SOURCE, which is predefined and required
8546 # on some systems where configure will not decide to define it.
8547 cat >>conftest.undefs <<\_ACEOF
8548 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8551 # Break up conftest.defines because some shells have a limit on the size
8552 # of here documents, and old seds have small limits too (100 cmds).
8553 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8554 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8555 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8556 echo ' :' >>$CONFIG_STATUS
8558 while grep . conftest.defines >/dev/null
8560 # Write a limited-size here document to $tmp/defines.sed.
8561 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8562 # Speed up: don't consider the non `#define' lines.
8563 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8564 # Work around the forget-to-reset-the-flag bug.
8565 echo 't clr' >>$CONFIG_STATUS
8566 echo ': clr' >>$CONFIG_STATUS
8567 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8569 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8573 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8574 rm -f conftest.defines
8575 mv conftest.
tail conftest.defines
8577 rm -f conftest.defines
8578 echo ' fi # grep' >>$CONFIG_STATUS
8579 echo >>$CONFIG_STATUS
8581 # Break up conftest.undefs because some shells have a limit on the size
8582 # of here documents, and old seds have small limits too (100 cmds).
8583 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8585 while grep . conftest.undefs
>/dev
/null
8587 # Write a limited-size here document to $tmp/undefs.sed.
8588 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8589 # Speed up: don't consider the non
`#undef'
8590 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8591 # Work around the forget-to-reset-the-flag bug.
8592 echo 't clr' >>$CONFIG_STATUS
8593 echo ': clr' >>$CONFIG_STATUS
8594 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8596 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8600 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8601 rm -f conftest.undefs
8602 mv conftest.tail conftest.undefs
8604 rm -f conftest.undefs
8606 cat >>$CONFIG_STATUS <<\_ACEOF
8607 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8608 # use $as_me), people would be surprised to read:
8609 # /* config.h. Generated by config.status. */
8610 if test x
"$ac_file" = x-
; then
8611 echo "/* Generated by configure. */" >$tmp/config.h
8613 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8615 cat $tmp/in >>$tmp/config.h
8617 if test x
"$ac_file" != x-
; then
8618 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8619 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8620 echo "$as_me: $ac_file is unchanged" >&6;}
8622 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8624 X"$ac_file" : 'X\(//\)[^/]' \| \
8625 X"$ac_file" : 'X\(//\)$' \| \
8626 X"$ac_file" : 'X\(/\)' \| \
8627 . : '\(.\)' 2>/dev/null ||
8629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8631 /^X\(\/\/\)$/{ s//\1/; q; }
8632 /^X\(\/\).*/{ s//\1/; q; }
8634 { if $as_mkdir_p; then
8639 while test ! -d "$as_dir"; do
8640 as_dirs
="$as_dir $as_dirs"
8641 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8643 X"$as_dir" : 'X\(//\)[^/]' \| \
8644 X"$as_dir" : 'X\(//\)$' \| \
8645 X"$as_dir" : 'X\(/\)' \| \
8646 . : '\(.\)' 2>/dev/null ||
8648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8650 /^X\(\/\/\)$/{ s//\1/; q; }
8651 /^X\(\/\).*/{ s//\1/; q; }
8654 test ! -n "$as_dirs" || mkdir
$as_dirs
8655 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8657 { (exit 1); exit 1; }; }; }
8660 mv $tmp/config.h
$ac_file
8668 cat >>$CONFIG_STATUS <<\_ACEOF
8671 # CONFIG_LINKS section.
8674 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8675 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8676 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8678 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8679 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8681 if test ! -r $srcdir/$ac_source; then
8682 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8683 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8684 { (exit 1); exit 1; }; }
8688 # Make relative symlinks.
8689 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8690 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8691 X"$ac_dest" : 'X\(//\)[^/]' \| \
8692 X"$ac_dest" : 'X\(//\)$' \| \
8693 X"$ac_dest" : 'X\(/\)' \| \
8694 . : '\(.\)' 2>/dev/null ||
8696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8698 /^X\(\/\/\)$/{ s//\1/; q; }
8699 /^X\(\/\).*/{ s//\1/; q; }
8701 { if $as_mkdir_p; then
8702 mkdir
-p "$ac_dest_dir"
8704 as_dir
="$ac_dest_dir"
8706 while test ! -d "$as_dir"; do
8707 as_dirs
="$as_dir $as_dirs"
8708 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8710 X"$as_dir" : 'X\(//\)[^/]' \| \
8711 X"$as_dir" : 'X\(//\)$' \| \
8712 X"$as_dir" : 'X\(/\)' \| \
8713 . : '\(.\)' 2>/dev/null ||
8715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8717 /^X\(\/\/\)$/{ s//\1/; q; }
8718 /^X\(\/\).*/{ s//\1/; q; }
8721 test ! -n "$as_dirs" || mkdir
$as_dirs
8722 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8723 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8724 { (exit 1); exit 1; }; }; }
8728 if test "$ac_dest_dir" != .
; then
8729 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8730 # A "../" for each directory in $ac_dir_suffix.
8731 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8733 ac_dir_suffix
= ac_top_builddir
=
8737 .
) # No --srcdir option. We are building in place.
8739 if test -z "$ac_top_builddir"; then
8742 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8744 [\\/]* | ?
:[\\/]* ) # Absolute path.
8745 ac_srcdir
=$srcdir$ac_dir_suffix;
8746 ac_top_srcdir
=$srcdir ;;
8748 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8749 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8752 # Do not use `cd foo && pwd` to compute absolute paths, because
8753 # the directories may not exist.
8755 .
) ac_abs_builddir
="$ac_dest_dir";;
8757 case "$ac_dest_dir" in
8758 .
) ac_abs_builddir
=`pwd`;;
8759 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
8760 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
8763 case $ac_abs_builddir in
8764 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8766 case ${ac_top_builddir}.
in
8767 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8768 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8769 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8772 case $ac_abs_builddir in
8773 .
) ac_abs_srcdir
=$ac_srcdir;;
8776 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8777 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8778 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8781 case $ac_abs_builddir in
8782 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8784 case $ac_top_srcdir in
8785 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8786 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8787 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8793 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
8794 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
8797 # Try a symlink, then a hard link, then a copy.
8798 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
8799 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
8800 cp -p $srcdir/$ac_source $ac_dest ||
8801 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8802 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8803 { (exit 1); exit 1; }; }
8806 cat >>$CONFIG_STATUS <<\_ACEOF
8809 # CONFIG_COMMANDS section.
8811 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8812 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8813 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8814 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816 X"$ac_dest" : 'X\(//\)[^/]' \| \
8817 X"$ac_dest" : 'X\(//\)$' \| \
8818 X"$ac_dest" : 'X\(/\)' \| \
8819 . : '\(.\)' 2>/dev/null ||
8821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8823 /^X\(\/\/\)$/{ s//\1/; q; }
8824 /^X\(\/\).*/{ s//\1/; q; }
8826 { if $as_mkdir_p; then
8831 while test ! -d "$as_dir"; do
8832 as_dirs
="$as_dir $as_dirs"
8833 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8835 X"$as_dir" : 'X\(//\)[^/]' \| \
8836 X"$as_dir" : 'X\(//\)$' \| \
8837 X"$as_dir" : 'X\(/\)' \| \
8838 . : '\(.\)' 2>/dev/null ||
8840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8842 /^X\(\/\/\)$/{ s//\1/; q; }
8843 /^X\(\/\).*/{ s//\1/; q; }
8846 test ! -n "$as_dirs" || mkdir
$as_dirs
8847 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8849 { (exit 1); exit 1; }; }; }
8853 if test "$ac_dir" != .
; then
8854 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8855 # A "../" for each directory in $ac_dir_suffix.
8856 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8858 ac_dir_suffix
= ac_top_builddir
=
8862 .
) # No --srcdir option. We are building in place.
8864 if test -z "$ac_top_builddir"; then
8867 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8869 [\\/]* | ?
:[\\/]* ) # Absolute path.
8870 ac_srcdir
=$srcdir$ac_dir_suffix;
8871 ac_top_srcdir
=$srcdir ;;
8873 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8874 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8877 # Do not use `cd foo && pwd` to compute absolute paths, because
8878 # the directories may not exist.
8880 .
) ac_abs_builddir
="$ac_dir";;
8883 .
) ac_abs_builddir
=`pwd`;;
8884 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8885 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8888 case $ac_abs_builddir in
8889 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8891 case ${ac_top_builddir}.
in
8892 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8893 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8894 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8897 case $ac_abs_builddir in
8898 .
) ac_abs_srcdir
=$ac_srcdir;;
8901 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8902 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8903 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8906 case $ac_abs_builddir in
8907 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8909 case $ac_top_srcdir in
8910 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8911 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8912 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8917 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8918 echo "$as_me: executing $ac_dest commands" >&6;}
8920 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8921 rm -f Makesim1.tmp Makesim2.tmp Makefile
8922 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
8923 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
8924 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8925 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8926 <Makefile.sim
>Makefile
8927 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8929 stamp-h
) echo > stamp-h
;;
8934 cat >>$CONFIG_STATUS <<\_ACEOF
8936 { (exit 0); exit 0; }
8938 chmod +x
$CONFIG_STATUS
8939 ac_clean_files
=$ac_clean_files_save
8942 # configure is writing to config.log, and then calls config.status.
8943 # config.status does its own redirection, appending to config.log.
8944 # Unfortunately, on DOS this fails, as config.log is still kept open
8945 # by configure, so config.status won't be able to write to it; its
8946 # output is simply discarded. So we exec the FD to /dev/null,
8947 # effectively closing config.log, so it can be properly (re)opened and
8948 # appended to by config.status. When coming back to configure, we
8949 # need to make the FD available again.
8950 if test "$no_create" != yes; then
8952 ac_config_status_args
=
8953 test "$silent" = yes &&
8954 ac_config_status_args
="$ac_config_status_args --quiet"
8956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8959 # would make configure fail if this is the last instruction.
8960 $ac_cs_success ||
{ (exit 1); exit 1; }