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
="xmalloc.c"
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 libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS'
313 ac_subst_files
='host_makefile_frag'
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 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing
) to the casual installer
850 --enable-install-libiberty Install headers
for end users
853 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
854 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
855 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
856 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
857 --with-cross-host=HOST Configuring with a cross compiler
858 --with-newlib Configuring with newlib
860 Some influential environment variables
:
861 CC C compiler
command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
864 nonstandard directory
<lib dir
>
865 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
866 headers
in a nonstandard directory
<include dir
>
869 Use these variables to override the choices made by
`configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Do not use `cd foo
&& pwd` to compute absolute paths, because
907 # the directories may not exist.
909 .) ac_abs_builddir="$ac_dir";;
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
991 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
992 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
993 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
994 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
995 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
997 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
998 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1000 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1001 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1002 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1003 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1004 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1005 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1006 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_must_keep_next=false
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 -* ) ac_must_keep_next=true ;;
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close
' the trap.
1086 trap 'exit_status
=$?
1087 # Save into config.log some information that might help in debugging.
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1097 # The following way of writing the cache mishandles newlines in values,
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1120 for ac_var
in $ac_subst_vars
1122 eval ac_val
=$
`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -n "$ac_subst_files"; then
1134 for ac_var
in $ac_subst_files
1136 eval ac_val
=$
`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -s confdefs.h
; then
1149 sed "/^$/d" confdefs.h |
sort
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1156 rm -f core
*.core
&&
1157 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 # Predefined preprocessor variables.
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's
/^
/|
/' "$ac_site_file" >&5
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1232 # Check that the precious variables saved in the cache have kept the same
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1245 ac_cache_corrupted=: ;;
1247 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1254 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1279 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1286 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 # This works around the fact that libtool configuration may change LD
1310 # for this particular configuration, but some shells, instead of
1311 # keeping the changes in LD private, export them just because LD is
1312 # exported. We don't use libtool yet
, but some day we might
, so...
1313 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1316 # Check whether --with-target-subdir or --without-target-subdir was given.
1317 if test "${with_target_subdir+set}" = set; then
1318 withval
="$with_target_subdir"
1322 # Check whether --with-build-subdir or --without-build-subdir was given.
1323 if test "${with_build_subdir+set}" = set; then
1324 withval
="$with_build_subdir"
1328 # Check whether --with-cross-host or --without-cross-host was given.
1329 if test "${with_cross_host+set}" = set; then
1330 withval
="$with_cross_host"
1334 # Check whether --with-newlib or --without-newlib was given.
1335 if test "${with_newlib+set}" = set; then
1336 withval
="$with_newlib"
1340 if test "${srcdir}" = "."; then
1341 if test -n "${with_build_subdir}"; then
1342 libiberty_topdir
="${srcdir}/../.."
1344 elif test -z "${with_target_subdir}"; then
1345 libiberty_topdir
="${srcdir}/.."
1347 if test "${with_target_subdir}" != "."; then
1348 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
1350 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
1354 libiberty_topdir
="${srcdir}/.."
1358 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
1359 if test -f $ac_dir/install-sh
; then
1361 ac_install_sh
="$ac_aux_dir/install-sh -c"
1363 elif test -f $ac_dir/install.sh
; then
1365 ac_install_sh
="$ac_aux_dir/install.sh -c"
1367 elif test -f $ac_dir/shtool
; then
1369 ac_install_sh
="$ac_aux_dir/shtool install -c"
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1376 { (exit 1); exit 1; }; }
1378 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1386 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1387 if test "${enable_maintainer_mode+set}" = set; then
1388 enableval
="$enable_maintainer_mode"
1389 maintainer_mode
=$enableval
1394 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1395 echo "${ECHO_T}$maintainer_mode" >&6
1397 if test "$maintainer_mode" = "yes"; then
1405 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1406 # rely on it - libiberty is built before texinfo.
1407 # Extract the first word of "makeinfo", so it can be a program name with args.
1408 set dummy makeinfo
; ac_word
=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 if test -n "$MAKEINFO"; then
1415 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1421 test -z "$as_dir" && as_dir
=.
1422 for ac_exec_ext
in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_MAKEINFO
="makeinfo"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 MAKEINFO
=$ac_cv_prog_MAKEINFO
1434 if test -n "$MAKEINFO"; then
1435 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1436 echo "${ECHO_T}$MAKEINFO" >&6
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1442 if test "x$MAKEINFO" = "x"; then
1443 MAKEINFO
="@echo makeinfo missing; true"
1448 */missing\ makeinfo
*)
1450 { echo "$as_me:$LINENO: WARNING:
1451 *** Makeinfo is missing. Info documentation will not be built." >&5
1452 echo "$as_me: WARNING:
1453 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1456 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1458 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1460 { echo "$as_me:$LINENO: WARNING:
1461 *** Makeinfo is too old. Info documentation will not be built." >&5
1462 echo "$as_me: WARNING:
1463 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1472 # Extract the first word of "perl", so it can be a program name with args.
1473 set dummy perl
; ac_word
=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_PERL+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$PERL"; then
1480 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
1482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir
=.
1487 for ac_exec_ext
in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_PERL
="perl"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 PERL
=$ac_cv_prog_PERL
1499 if test -n "$PERL"; then
1500 echo "$as_me:$LINENO: result: $PERL" >&5
1501 echo "${ECHO_T}$PERL" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 if test x
"$PERL" = x
""; then
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 ac_cv_build_alias
=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias
=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1541 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 ac_cv_host_alias
=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias
=$ac_cv_build_alias
1554 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1563 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 if test -n "$ac_tool_prefix"; then
1571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1572 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AR+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$AR"; then
1579 ac_cv_prog_AR
="$AR" # Let the user override the test.
1581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir
=.
1586 for ac_exec_ext
in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 if test -n "$AR"; then
1599 echo "$as_me:$LINENO: result: $AR" >&5
1600 echo "${ECHO_T}$AR" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1607 if test -z "$ac_cv_prog_AR"; then
1609 # Extract the first word of "ar", so it can be a program name with args.
1610 set dummy
ar; ac_word
=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$ac_ct_AR"; then
1617 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
1619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir
=.
1624 for ac_exec_ext
in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_ac_ct_AR
="ar"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
1636 if test -n "$ac_ct_AR"; then
1637 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1638 echo "${ECHO_T}$ac_ct_AR" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1651 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_RANLIB+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$RANLIB"; then
1658 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir
=.
1665 for ac_exec_ext
in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 RANLIB
=$ac_cv_prog_RANLIB
1677 if test -n "$RANLIB"; then
1678 echo "$as_me:$LINENO: result: $RANLIB" >&5
1679 echo "${ECHO_T}$RANLIB" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_RANLIB"; then
1687 ac_ct_RANLIB
=$RANLIB
1688 # Extract the first word of "ranlib", so it can be a program name with args.
1689 set dummy ranlib
; ac_word
=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_RANLIB"; then
1696 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
1698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir
=.
1703 for ac_exec_ext
in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_RANLIB
="ranlib"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
1715 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
1716 if test -n "$ac_ct_RANLIB"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1718 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 RANLIB
=$ac_ct_RANLIB
1726 RANLIB
="$ac_cv_prog_RANLIB"
1732 ac_cpp
='$CPP $CPPFLAGS'
1733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC
="$CC" # Let the user override the test.
1747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir
=.
1752 for ac_exec_ext
in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc
; ac_word
=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir
=.
1790 for ac_exec_ext
in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC
="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC
="$CC" # Let the user override the test.
1827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir
=.
1832 for ac_exec_ext
in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc
; ac_word
=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir
=.
1870 for ac_exec_ext
in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC
="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc
; ac_word
=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC
="$CC" # Let the user override the test.
1908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir
=.
1913 for ac_exec_ext
in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected
=yes
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy
$ac_cv_prog_CC
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC
="$CC" # Let the user override the test.
1964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir
=.
1969 for ac_exec_ext
in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1992 if test -z "$CC"; then
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy
$ac_prog; ac_word
=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir
=.
2011 for ac_exec_ext
in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC
="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler
=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.
$ac_ext <<_ACEOF
2069 cat confdefs.h
>>conftest.
$ac_ext
2070 cat >>conftest.
$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2092 if test x
$gcc_no_link = xyes
; then
2093 # Setting cross_compile will disable run tests; it will
2094 # also disable AC_CHECK_FILE but that's generally
2095 # correct if we can't link.
2099 cat >conftest.
$ac_ext <<_ACEOF
2102 cat confdefs.h
>>conftest.
$ac_ext
2103 cat >>conftest.
$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 ac_clean_files_save
=$ac_clean_files
2115 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2119 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2121 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2123 (eval $ac_link_default) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # Find the output, starting from the most likely. This scheme is
2128 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # Be careful to initialize this variable, since it used to be cached.
2132 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134 # b.out is created by i960 compilers.
2135 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2137 test -f "$ac_file" ||
continue
2139 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2142 # This is the source file.
2145 # We found the default executable, but exeext='' is most
2149 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool,
2151 # but it would be cool to find out if it's true. Does anybody
2152 # maintain Libtool? --akim.
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.
$ac_ext >&5
2163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&2;}
2167 { (exit 77); exit 77; }; }
2170 ac_exeext
=$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_file" >&5
2172 echo "${ECHO_T}$ac_file" >&6
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2179 # If not cross compiling, check that we can run a simple program.
2180 if test "$cross_compiling" != yes; then
2181 if { ac_try
='./$ac_file'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2189 if test "$cross_compiling" = maybe
; then
2192 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2202 echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6
2205 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2206 ac_clean_files
=$ac_clean_files_save
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2211 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6
2214 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2217 (eval $ac_link) 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2223 # work properly (i.e., refer to `conftest.exe'), while it won't with
2225 for ac_file
in conftest.exe conftest conftest.
*; do
2226 test -f "$ac_file" ||
continue
2228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2229 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2243 rm -f conftest
$ac_cv_exeext
2244 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2245 echo "${ECHO_T}$ac_cv_exeext" >&6
2247 rm -f conftest.
$ac_ext
2248 EXEEXT
=$ac_cv_exeext
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 cat >conftest.
$ac_ext <<_ACEOF
2259 cat confdefs.h
>>conftest.
$ac_ext
2260 cat >>conftest.
$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2271 rm -f conftest.o conftest.obj
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2280 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.
$ac_ext >&5
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2297 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2298 echo "${ECHO_T}$ac_cv_objext" >&6
2299 OBJEXT
=$ac_cv_objext
2301 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2302 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2303 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 cat >conftest.
$ac_ext <<_ACEOF
2309 cat confdefs.h
>>conftest.
$ac_ext
2310 cat >>conftest.
$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2324 rm -f conftest.
$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1
>conftest.err
2330 cat conftest.err
>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try
='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.
$ac_ext >&5
2352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2353 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS
=${CFLAGS+set}
2360 ac_save_CFLAGS
=$CFLAGS
2362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_g+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.
$ac_ext <<_ACEOF
2370 cat confdefs.h
>>conftest.
$ac_ext
2371 cat >>conftest.
$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.
$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1
>conftest.err
2388 cat conftest.err
>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try
='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS
=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc
=no
2436 cat >conftest.
$ac_ext <<_ACEOF
2439 cat confdefs.h
>>conftest.
$ac_ext
2440 cat >>conftest.
$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC
="$ac_save_CC $ac_arg"
2498 rm -f conftest.
$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1
>conftest.err
2504 cat conftest.err
>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try
='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc
=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.
$ac_ext >&5
2526 rm -f conftest.err conftest.
$ac_objext
2528 rm -f conftest.
$ac_ext conftest.
$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.
$ac_ext <<_ACEOF
2552 rm -f conftest.
$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1
>conftest.err
2558 cat conftest.err
>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try
='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 for ac_declaration
in \
2575 'extern "C" void std::exit (int) throw (); using std::exit;' \
2576 'extern "C" void std::exit (int); using std::exit;' \
2577 'extern "C" void exit (int) throw ();' \
2578 'extern "C" void exit (int);' \
2581 cat >conftest.
$ac_ext <<_ACEOF
2584 cat confdefs.h
>>conftest.
$ac_ext
2585 cat >>conftest.
$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2597 rm -f conftest.
$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1
>conftest.err
2603 cat conftest.err
>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try
='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.
$ac_ext >&5
2625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2626 cat >conftest.
$ac_ext <<_ACEOF
2629 cat confdefs.h
>>conftest.
$ac_ext
2630 cat >>conftest.
$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 rm -f conftest.
$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1
>conftest.err
2647 cat conftest.err
>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try
='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.
$ac_ext >&5
2668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2671 if test -n "$ac_declaration"; then
2672 echo '#ifdef __cplusplus' >>confdefs.h
2673 echo $ac_declaration >>confdefs.h
2674 echo '#endif' >>confdefs.h
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.
$ac_ext >&5
2682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2684 ac_cpp
='$CPP $CPPFLAGS'
2685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 ac_cpp
='$CPP $CPPFLAGS'
2691 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2694 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2696 # On Suns, sometimes $CPP names a directory.
2697 if test -n "$CPP" && test -d "$CPP"; then
2700 if test -z "$CPP"; then
2701 if test "${ac_cv_prog_CPP+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 # Double quotes because CPP needs to be expanded
2705 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2708 for ac_c_preproc_warn_flag
in '' yes
2710 # Use a header file that comes with gcc, so configuring glibc
2711 # with a fresh cross-compiler works.
2712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2713 # <limits.h> exists even on freestanding compilers.
2714 # On the NeXT, cc -E runs the code through the compiler's parser,
2715 # not just through cpp. "Syntax error" is here to catch this case.
2716 cat >conftest.
$ac_ext <<_ACEOF
2719 cat confdefs.h
>>conftest.
$ac_ext
2720 cat >>conftest.
$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2723 # include <limits.h>
2725 # include <assert.h>
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1
>conftest.err
2734 cat conftest.err
>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev
/null
; then
2737 if test -s conftest.err
; then
2738 ac_cpp_err
=$ac_c_preproc_warn_flag
2739 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2746 if test -z "$ac_cpp_err"; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.
$ac_ext >&5
2752 # Broken: fails on valid input.
2755 rm -f conftest.err conftest.
$ac_ext
2757 # OK, works on sane cases. Now check whether non-existent headers
2758 # can be detected and how.
2759 cat >conftest.
$ac_ext <<_ACEOF
2762 cat confdefs.h
>>conftest.
$ac_ext
2763 cat >>conftest.
$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2765 #include <ac_nonexistent.h>
2767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2768 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1
>conftest.err
2772 cat conftest.err
>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } >/dev
/null
; then
2775 if test -s conftest.err
; then
2776 ac_cpp_err
=$ac_c_preproc_warn_flag
2777 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2784 if test -z "$ac_cpp_err"; then
2785 # Broken: success on invalid input.
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.
$ac_ext >&5
2791 # Passes both tests.
2795 rm -f conftest.err conftest.
$ac_ext
2798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2799 rm -f conftest.err conftest.
$ac_ext
2800 if $ac_preproc_ok; then
2812 echo "$as_me:$LINENO: result: $CPP" >&5
2813 echo "${ECHO_T}$CPP" >&6
2815 for ac_c_preproc_warn_flag
in '' yes
2817 # Use a header file that comes with gcc, so configuring glibc
2818 # with a fresh cross-compiler works.
2819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 # <limits.h> exists even on freestanding compilers.
2821 # On the NeXT, cc -E runs the code through the compiler's parser,
2822 # not just through cpp. "Syntax error" is here to catch this case.
2823 cat >conftest.
$ac_ext <<_ACEOF
2826 cat confdefs.h
>>conftest.
$ac_ext
2827 cat >>conftest.
$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2830 # include <limits.h>
2832 # include <assert.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1
>conftest.err
2841 cat conftest.err
>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev
/null
; then
2844 if test -s conftest.err
; then
2845 ac_cpp_err
=$ac_c_preproc_warn_flag
2846 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2853 if test -z "$ac_cpp_err"; then
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.
$ac_ext >&5
2859 # Broken: fails on valid input.
2862 rm -f conftest.err conftest.
$ac_ext
2864 # OK, works on sane cases. Now check whether non-existent headers
2865 # can be detected and how.
2866 cat >conftest.
$ac_ext <<_ACEOF
2869 cat confdefs.h
>>conftest.
$ac_ext
2870 cat >>conftest.
$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #include <ac_nonexistent.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1
>conftest.err
2879 cat conftest.err
>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev
/null
; then
2882 if test -s conftest.err
; then
2883 ac_cpp_err
=$ac_c_preproc_warn_flag
2884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2891 if test -z "$ac_cpp_err"; then
2892 # Broken: success on invalid input.
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.
$ac_ext >&5
2898 # Passes both tests.
2902 rm -f conftest.err conftest.
$ac_ext
2905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2906 rm -f conftest.err conftest.
$ac_ext
2907 if $ac_preproc_ok; then
2910 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2911 See \`config.log' for more details." >&5
2912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2913 See \`config.log' for more details." >&2;}
2914 { (exit 1); exit 1; }; }
2918 ac_cpp
='$CPP $CPPFLAGS'
2919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2924 ac_c_preproc_warn_flag
=yes
2926 if test x
$GCC = xyes
; then
2927 ac_libiberty_warn_cflags
='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes'
2931 if test "x$CC" != xcc
; then
2932 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2933 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2935 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2936 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2938 set dummy
$CC; ac_cc
=`echo $2 |
2939 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2940 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.
$ac_ext <<_ACEOF
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 # Make sure it works both with $CC and with simple cc.
2959 # We do the test twice because some compilers refuse to overwrite an
2960 # existing .o file with -o, though they will create one.
2961 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2962 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); };
2973 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2974 if test "x$CC" != xcc
; then
2975 # Test first that cc exists at all.
2976 if { ac_try
='cc -c conftest.$ac_ext >&5'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2983 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); };
2997 # cc exists but doesn't like -o.
2998 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3003 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3008 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3009 echo "$as_me:$LINENO: result: yes" >&5
3010 echo "${ECHO_T}yes" >&6
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3015 cat >>confdefs.h
<<\_ACEOF
3016 #define NO_MINUS_C_MINUS_O 1
3021 # autoconf is lame and doesn't give us any substitution variable for this.
3022 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3023 NO_MINUS_C_MINUS_O
=yes
3025 OUTPUT_OPTION
='-o $@'
3031 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3032 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3033 if test "${ac_cv_c_const+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 cat >conftest.
$ac_ext <<_ACEOF
3039 cat confdefs.h
>>conftest.
$ac_ext
3040 cat >>conftest.
$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3046 /* FIXME: Include the comments suggested by Paul. */
3048 /* Ultrix mips cc rejects this. */
3049 typedef int charset[2];
3051 /* SunOS 4.1.1 cc rejects this. */
3052 char const *const *ccp;
3054 /* NEC SVR4.0.2 mips cc rejects this. */
3055 struct point {int x, y;};
3056 static struct point const zero = {0,0};
3057 /* AIX XL C 1.02.0.0 rejects this.
3058 It does not let you subtract one const X* pointer from another in
3059 an arm of an if-expression whose if-part is not a constant
3061 const char *g = "string";
3062 ccp = &g + (g ? g-g : 0);
3063 /* HPUX 7.0 cc rejects these. */
3066 ccp = (char const *const *) p;
3067 { /* SCO 3.2v4 cc rejects this. */
3069 char const *s = 0 ? (char *) 0 : (char const *) 0;
3073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3075 const int *foo = &x[0];
3078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3079 typedef const int *iptr;
3083 { /* AIX XL C 1.02.0.0 rejects this saying
3084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3085 struct s { int j; const int *ap[3]; };
3086 struct s *b; b->j = 5;
3088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3097 rm -f conftest.
$ac_objext
3098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>conftest.er1
3101 grep -v '^ *+' conftest.er1
>conftest.err
3103 cat conftest.err
>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try
='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.
$ac_ext >&5
3125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3127 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3128 echo "${ECHO_T}$ac_cv_c_const" >&6
3129 if test $ac_cv_c_const = no
; then
3131 cat >>confdefs.h
<<\_ACEOF
3137 echo "$as_me:$LINENO: checking for inline" >&5
3138 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3139 if test "${ac_cv_c_inline+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 for ac_kw
in inline __inline__ __inline
; do
3144 cat >conftest.
$ac_ext <<_ACEOF
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 static $ac_kw foo_t static_foo () {return 0; }
3153 $ac_kw foo_t foo () {return 0; }
3157 rm -f conftest.
$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3161 grep -v '^ *+' conftest.er1
>conftest.err
3163 cat conftest.err
>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try
='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 ac_cv_c_inline
=$ac_kw; break
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.
$ac_ext >&5
3184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3188 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3189 echo "${ECHO_T}$ac_cv_c_inline" >&6
3192 case $ac_cv_c_inline in
3195 case $ac_cv_c_inline in
3197 *) ac_val
=$ac_cv_c_inline;;
3199 cat >>confdefs.h
<<_ACEOF
3201 #define inline $ac_val
3207 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3208 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3209 if test "${ac_cv_c_bigendian+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 # See if sys/param.h defines the BYTE_ORDER macro.
3213 cat >conftest.
$ac_ext <<_ACEOF
3216 cat confdefs.h
>>conftest.
$ac_ext
3217 cat >>conftest.
$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <sys/types.h>
3220 #include <sys/param.h>
3225 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3233 rm -f conftest.
$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1
>conftest.err
3239 cat conftest.err
>&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 # It does; now see whether it defined to BIG_ENDIAN or not.
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <sys/types.h>
3262 #include <sys/param.h>
3267 #if BYTE_ORDER != BIG_ENDIAN
3275 rm -f conftest.
$ac_objext
3276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277 (eval $ac_compile) 2>conftest.er1
3279 grep -v '^ *+' conftest.er1
>conftest.err
3281 cat conftest.err
>&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
3284 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; } &&
3290 { ac_try
='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_cv_c_bigendian
=yes
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.
$ac_ext >&5
3301 ac_cv_c_bigendian
=no
3303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.
$ac_ext >&5
3308 # It does not; compile a test program.
3309 if test "$cross_compiling" = yes; then
3310 # try to guess the endianness by grepping values into an object file
3311 ac_cv_c_bigendian
=unknown
3312 cat >conftest.
$ac_ext <<_ACEOF
3315 cat confdefs.h
>>conftest.
$ac_ext
3316 cat >>conftest.
$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3319 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3320 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3321 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3322 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3323 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3327 _ascii (); _ebcdic ();
3332 rm -f conftest.
$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1
>conftest.err
3338 cat conftest.err
>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3354 ac_cv_c_bigendian
=yes
3356 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3357 if test "$ac_cv_c_bigendian" = unknown
; then
3358 ac_cv_c_bigendian
=no
3360 # finding both strings is unlikely to happen, but who knows?
3361 ac_cv_c_bigendian
=unknown
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.
$ac_ext >&5
3369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3371 cat >conftest.
$ac_ext <<_ACEOF
3374 cat confdefs.h
>>conftest.
$ac_ext
3375 cat >>conftest.
$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3380 /* Are we little or big endian? From Harbison&Steele. */
3384 char c[sizeof (long)];
3387 exit (u.c[sizeof (long) - 1] == 1);
3390 rm -f conftest
$ac_exeext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3392 (eval $ac_link) 2>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_c_bigendian
=no
3403 echo "$as_me: program exited with status $ac_status" >&5
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.
$ac_ext >&5
3408 ac_cv_c_bigendian
=yes
3410 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3415 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3416 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3417 case $ac_cv_c_bigendian in
3420 cat >>confdefs.h
<<\_ACEOF
3421 #define WORDS_BIGENDIAN 1
3427 { { echo "$as_me:$LINENO: error: unknown endianness
3428 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3429 echo "$as_me: error: unknown endianness
3430 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3431 { (exit 1); exit 1; }; } ;;
3437 ac_config_headers
="$ac_config_headers config.h:config.in"
3441 # Find a good install program. We prefer a C program (faster),
3442 # so one script is as good as another. But avoid the broken or
3443 # incompatible versions:
3444 # SysV /etc/install, /usr/sbin/install
3445 # SunOS /usr/etc/install
3446 # IRIX /sbin/install
3448 # AmigaOS /C/install, which installs bootblocks on floppy discs
3449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3452 # OS/2's system install, which has a completely different semantic
3453 # ./install, which can be erroneously created by make from ./install.sh.
3454 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3455 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3456 if test -z "$INSTALL"; then
3457 if test "${ac_cv_path_install+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir
=.
3465 # Account for people who put trailing slashes in PATH elements.
3467 .
/ | .
// |
/cC
/* | \
3468 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3469 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3472 # OSF1 and SCO ODT 3.0 have their own names for install.
3473 # Don't use installbsd from OSF since it installs stuff as root
3475 for ac_prog
in ginstall scoinst
install; do
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3478 if test $ac_prog = install &&
3479 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3480 # AIX install. It has an incompatible calling convention.
3482 elif test $ac_prog = install &&
3483 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3484 # program-specific install script used by HP pwplus--don't use.
3487 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3499 if test "${ac_cv_path_install+set}" = set; then
3500 INSTALL
=$ac_cv_path_install
3502 # As a last resort, use the slow shell script. We don't cache a
3503 # path for INSTALL within a source directory, because that will
3504 # break other packages using the cache if that directory is
3505 # removed, or if the path is relative.
3506 INSTALL
=$ac_install_sh
3509 echo "$as_me:$LINENO: result: $INSTALL" >&5
3510 echo "${ECHO_T}$INSTALL" >&6
3512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3513 # It thinks the first close brace ends the variable substitution.
3514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3518 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3521 # Don't build the shared library for build.
3522 if [ -n "${with_build_subdir}" ]; then
3528 rs6000-ibm-aix3.1 | rs6000-ibm-aix
)
3530 *-*-cxux7*) frag
=mh-cxux7
;;
3531 *-*-freebsd2.1.
*) frag
=mh-fbsd21
;;
3532 *-*-freebsd2.2.
[012]) frag
=mh-fbsd21
;;
3533 i370-
*-opened*) frag
=mh-openedition
;;
3534 i
[34567]86-*-windows*) frag
=mh-windows
;;
3537 if [ -n "${frag}" ]; then
3538 frags
=${libiberty_topdir}/libiberty
/config
/$frag
3543 # If they didn't specify --enable-shared, don't generate shared libs.
3544 case "${enable_shared}" in
3550 if [ "${shared}" = "yes" ]; then
3554 alpha
*-*-linux*) frag
=mh-elfalphapic
;;
3555 arm
*-*-*) frag
=mh-armpic
;;
3556 hppa
*-*-*) frag
=mh-papic
;;
3557 i
[34567]86-*-* | x86_64-
*-*)
3560 powerpc
*-*-*) frag
=mh-ppcpic
;;
3561 sparc
*-*-*) frag
=mh-sparcpic
;;
3562 s390
*-*-*) frag
=mh-s390pic
;;
3563 *) frag
=mh-
${host_cpu}pic
;;
3565 if [ -n "${frag}" ]; then
3566 frags
="${frags} ${libiberty_topdir}/config/${frag}"
3570 echo "# Warning: this fragment is automatically generated" > temp-frag
3572 for frag
in ${frags}; do
3573 if [ -f ${frag} ]; then
3574 echo "Appending ${frag} to xhost-mkfrag"
3575 echo "# Following fragment copied from ${frag}" >> temp-frag
3576 cat ${frag} >> temp-frag
3580 # record if we want to build shared libs.
3581 if [ "${shared}" = "yes" ]; then
3582 echo enable_shared
= yes >> temp-frag
3584 echo enable_shared
= no
>> temp-frag
3588 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3590 host_makefile_frag
=${frag}
3593 # It's OK to check for header files. Although the compiler may not be
3594 # able to link anything, it had better be able to at least compile
3621 for ac_header
in sys
/file.h sys
/param.h limits.h stdlib.h malloc.h string.h unistd.h
strings.h sys
/time.h
time.h sys
/resource.h sys
/stat.h sys
/mman.h fcntl.h alloca.h sys
/pstat.h sys
/sysmp.h sys
/sysinfo.h machine
/hal_sysinfo.h sys
/table.h sys
/sysctl.h sys
/systemcfg.h stdint.h stdio_ext.h
3623 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3624 echo "$as_me:$LINENO: checking for $ac_header" >&5
3625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 cat >conftest.
$ac_ext <<_ACEOF
3632 cat confdefs.h
>>conftest.
$ac_ext
3633 cat >>conftest.
$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <$ac_header>
3637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3640 grep -v '^ *+' conftest.er1
>conftest.err
3642 cat conftest.err
>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } >/dev
/null
; then
3645 if test -s conftest.err
; then
3646 ac_cpp_err
=$ac_c_preproc_warn_flag
3647 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3654 if test -z "$ac_cpp_err"; then
3655 eval "$as_ac_Header=yes"
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.
$ac_ext >&5
3660 eval "$as_ac_Header=no"
3662 rm -f conftest.err conftest.
$ac_ext
3664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3667 cat >>confdefs.h
<<_ACEOF
3668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3674 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3675 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3676 if test "${ac_cv_header_sys_wait_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. */
3685 #include <sys/types.h>
3686 #include <sys/wait.h>
3688 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3691 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3699 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3704 rm -f conftest.
$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>conftest.er1
3708 grep -v '^ *+' conftest.er1
>conftest.err
3710 cat conftest.err
>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try
='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_header_sys_wait_h
=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.
$ac_ext >&5
3730 ac_cv_header_sys_wait_h
=no
3732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3734 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3735 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3736 if test $ac_cv_header_sys_wait_h = yes; then
3738 cat >>confdefs.h
<<\_ACEOF
3739 #define HAVE_SYS_WAIT_H 1
3744 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3745 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3746 if test "${ac_cv_header_time+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 cat >conftest.
$ac_ext <<_ACEOF
3752 cat confdefs.h
>>conftest.
$ac_ext
3753 cat >>conftest.
$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <sys/types.h>
3756 #include <sys/time.h>
3762 if ((struct tm *) 0)
3768 rm -f conftest.
$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3772 grep -v '^ *+' conftest.er1
>conftest.err
3774 cat conftest.err
>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try
='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_header_time
=yes
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.
$ac_ext >&5
3794 ac_cv_header_time
=no
3796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3799 echo "${ECHO_T}$ac_cv_header_time" >&6
3800 if test $ac_cv_header_time = yes; then
3802 cat >>confdefs.h
<<\_ACEOF
3803 #define TIME_WITH_SYS_TIME 1
3809 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3810 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3811 if test "${libiberty_cv_declare_errno+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 cat >conftest.
$ac_ext <<_ACEOF
3817 cat confdefs.h
>>conftest.
$ac_ext
3818 cat >>conftest.
$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3829 rm -f conftest.
$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1
>conftest.err
3835 cat conftest.err
>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try
='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 libiberty_cv_declare_errno
=no
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.
$ac_ext >&5
3855 libiberty_cv_declare_errno
=yes
3857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3859 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3860 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3861 if test $libiberty_cv_declare_errno = yes
3863 cat >>confdefs.h
<<\_ACEOF
3864 #define NEED_DECLARATION_ERRNO 1
3870 # Determine the size of an int for struct fibnode.
3871 echo "$as_me:$LINENO: checking for egrep" >&5
3872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3873 if test "${ac_cv_prog_egrep+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3877 then ac_cv_prog_egrep
='grep -E'
3878 else ac_cv_prog_egrep
='egrep'
3881 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3882 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3883 EGREP
=$ac_cv_prog_egrep
3886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3888 if test "${ac_cv_header_stdc+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 cat >conftest.
$ac_ext <<_ACEOF
3894 cat confdefs.h
>>conftest.
$ac_ext
3895 cat >>conftest.
$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3910 rm -f conftest.
$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>conftest.er1
3914 grep -v '^ *+' conftest.er1
>conftest.err
3916 cat conftest.err
>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; } &&
3925 { ac_try
='test -s conftest.$ac_objext'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 ac_cv_header_stdc
=yes
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.
$ac_ext >&5
3936 ac_cv_header_stdc
=no
3938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3940 if test $ac_cv_header_stdc = yes; then
3941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "memchr" >/dev
/null
2>&1; then
3955 ac_cv_header_stdc
=no
3961 if test $ac_cv_header_stdc = yes; then
3962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3963 cat >conftest.
$ac_ext <<_ACEOF
3966 cat confdefs.h
>>conftest.
$ac_ext
3967 cat >>conftest.
$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "free" >/dev
/null
2>&1; then
3976 ac_cv_header_stdc
=no
3982 if test $ac_cv_header_stdc = yes; then
3983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3984 if test "$cross_compiling" = yes; then
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3994 #if ((' ' & 0x0FF) == 0x020)
3995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3998 # define ISLOWER(c) \
3999 (('a' <= (c) && (c) <= 'i') \
4000 || ('j' <= (c) && (c) <= 'r') \
4001 || ('s' <= (c) && (c) <= 'z'))
4002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4010 for (i = 0; i < 256; i++)
4011 if (XOR (islower (i), ISLOWER (i))
4012 || toupper (i) != TOUPPER (i))
4017 rm -f conftest
$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4030 echo "$as_me: program exited with status $ac_status" >&5
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.
$ac_ext >&5
4035 ac_cv_header_stdc
=no
4037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4041 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4042 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4043 if test $ac_cv_header_stdc = yes; then
4045 cat >>confdefs.h
<<\_ACEOF
4046 #define STDC_HEADERS 1
4051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4061 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4062 inttypes.h stdint.h unistd.h
4064 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4065 echo "$as_me:$LINENO: checking for $ac_header" >&5
4066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 cat >conftest.
$ac_ext <<_ACEOF
4073 cat confdefs.h
>>conftest.
$ac_ext
4074 cat >>conftest.
$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 #include <$ac_header>
4078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4079 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4081 grep -v '^ *+' conftest.er1
>conftest.err
4083 cat conftest.err
>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } >/dev
/null
; then
4086 if test -s conftest.err
; then
4087 ac_cpp_err
=$ac_c_preproc_warn_flag
4088 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4095 if test -z "$ac_cpp_err"; then
4096 eval "$as_ac_Header=yes"
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.
$ac_ext >&5
4101 eval "$as_ac_Header=no"
4103 rm -f conftest.err conftest.
$ac_ext
4105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4108 cat >>confdefs.h
<<_ACEOF
4109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116 echo "$as_me:$LINENO: checking for int" >&5
4117 echo $ECHO_N "checking for int... $ECHO_C" >&6
4118 if test "${ac_cv_type_int+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 cat >conftest.
$ac_ext <<_ACEOF
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4139 rm -f conftest.
$ac_objext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>conftest.er1
4143 grep -v '^ *+' conftest.er1
>conftest.err
4145 cat conftest.err
>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try
='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.
$ac_ext >&5
4167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4170 echo "${ECHO_T}$ac_cv_type_int" >&6
4172 echo "$as_me:$LINENO: checking size of int" >&5
4173 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4174 if test "${ac_cv_sizeof_int+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test "$ac_cv_type_int" = yes; then
4178 # The cast to unsigned long works around a bug in the HP C Compiler
4179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4181 # This bug is HP SR number 8606223364.
4182 if test "$cross_compiling" = yes; then
4183 # Depending upon the size, compute the lo and hi bounds.
4184 cat >conftest.
$ac_ext <<_ACEOF
4187 cat confdefs.h
>>conftest.
$ac_ext
4188 cat >>conftest.
$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 $ac_includes_default
4194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4201 rm -f conftest.
$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>conftest.er1
4205 grep -v '^ *+' conftest.er1
>conftest.err
4207 cat conftest.err
>&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try
='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4224 cat >conftest.
$ac_ext <<_ACEOF
4227 cat confdefs.h
>>conftest.
$ac_ext
4228 cat >>conftest.
$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 $ac_includes_default
4234 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4241 rm -f conftest.
$ac_objext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4243 (eval $ac_compile) 2>conftest.er1
4245 grep -v '^ *+' conftest.er1
>conftest.err
4247 cat conftest.err
>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try
='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_hi
=$ac_mid; break
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.
$ac_ext >&5
4267 ac_lo
=`expr $ac_mid + 1`
4268 if test $ac_lo -le $ac_mid; then
4272 ac_mid
=`expr 2 '*' $ac_mid + 1`
4274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.
$ac_ext >&5
4280 cat >conftest.
$ac_ext <<_ACEOF
4283 cat confdefs.h
>>conftest.
$ac_ext
4284 cat >>conftest.
$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4290 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4297 rm -f conftest.
$ac_objext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299 (eval $ac_compile) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1
>conftest.err
4303 cat conftest.err
>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try
='test -s conftest.$ac_objext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4320 cat >conftest.
$ac_ext <<_ACEOF
4323 cat confdefs.h
>>conftest.
$ac_ext
4324 cat >>conftest.
$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4330 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4337 rm -f conftest.
$ac_objext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>conftest.er1
4341 grep -v '^ *+' conftest.er1
>conftest.err
4343 cat conftest.err
>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try
='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_lo
=$ac_mid; break
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4363 ac_hi
=`expr '(' $ac_mid ')' - 1`
4364 if test $ac_mid -le $ac_hi; then
4368 ac_mid
=`expr 2 '*' $ac_mid`
4370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.
$ac_ext >&5
4378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4381 # Binary search between lo and hi bounds.
4382 while test "x$ac_lo" != "x$ac_hi"; do
4383 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4384 cat >conftest.
$ac_ext <<_ACEOF
4387 cat confdefs.h
>>conftest.
$ac_ext
4388 cat >>conftest.
$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4394 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4401 rm -f conftest.
$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>conftest.er1
4405 grep -v '^ *+' conftest.er1
>conftest.err
4407 cat conftest.err
>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
4410 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try
='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.
$ac_ext >&5
4427 ac_lo
=`expr '(' $ac_mid ')' + 1`
4429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4432 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4433 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4434 See \`config.log' for more details." >&5
4435 echo "$as_me: error: cannot compute sizeof (int), 77
4436 See \`config.log' for more details." >&2;}
4437 { (exit 1); exit 1; }; } ;;
4440 if test "$cross_compiling" = yes; then
4441 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4442 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4443 { (exit 1); exit 1; }; }
4445 cat >conftest.
$ac_ext <<_ACEOF
4448 cat confdefs.h
>>conftest.
$ac_ext
4449 cat >>conftest.
$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4452 long longval () { return (long) (sizeof (int)); }
4453 unsigned long ulongval () { return (long) (sizeof (int)); }
4460 FILE *f = fopen ("conftest.val", "w");
4463 if (((long) (sizeof (int))) < 0)
4465 long i = longval ();
4466 if (i != ((long) (sizeof (int))))
4468 fprintf (f, "%ld\n", i);
4472 unsigned long i = ulongval ();
4473 if (i != ((long) (sizeof (int))))
4475 fprintf (f, "%lu\n", i);
4477 exit (ferror (f) || fclose (f) != 0);
4483 rm -f conftest
$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485 (eval $ac_link) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_sizeof_int
=`cat conftest.val`
4496 echo "$as_me: program exited with status $ac_status" >&5
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4502 See \`config.log' for more details." >&5
4503 echo "$as_me: error: cannot compute sizeof (int), 77
4504 See \`config.log' for more details." >&2;}
4505 { (exit 1); exit 1; }; }
4507 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4515 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4516 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4517 cat >>confdefs.h
<<_ACEOF
4518 #define SIZEOF_INT $ac_cv_sizeof_int
4523 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4524 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4525 if test "${ac_cv_type_uintptr_t+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.
$ac_ext <<_ACEOF
4531 cat confdefs.h
>>conftest.
$ac_ext
4532 cat >>conftest.
$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4538 if ((uintptr_t *) 0)
4540 if (sizeof (uintptr_t))
4546 rm -f conftest.
$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>conftest.er1
4550 grep -v '^ *+' conftest.er1
>conftest.err
4552 cat conftest.err
>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try
='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_cv_type_uintptr_t
=yes
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.
$ac_ext >&5
4572 ac_cv_type_uintptr_t
=no
4574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4576 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4577 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4578 if test $ac_cv_type_uintptr_t = yes; then
4582 cat >>confdefs.h
<<_ACEOF
4583 #define uintptr_t unsigned long
4589 # Look for a 64-bit type.
4590 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4591 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4592 if test "${liberty_cv_uint64+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 #ifdef HAVE_STDINT_H
4607 extern uint64_t foo;
4612 rm -f conftest.
$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1
>conftest.err
4618 cat conftest.err
>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; } &&
4627 { ac_try
='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 liberty_cv_uint64
=uint64_t
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.
$ac_ext >&5
4638 cat >conftest.
$ac_ext <<_ACEOF
4641 cat confdefs.h
>>conftest.
$ac_ext
4642 cat >>conftest.
$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 #ifdef HAVE_LIMITS_H
4653 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4658 rm -f conftest.
$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660 (eval $ac_compile) 2>conftest.er1
4662 grep -v '^ *+' conftest.er1
>conftest.err
4664 cat conftest.err
>&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try
='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 liberty_cv_uint64
="unsigned long"
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.
$ac_ext >&5
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #ifdef HAVE_LIMITS_H
4699 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4704 rm -f conftest.
$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1
>conftest.err
4710 cat conftest.err
>&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 liberty_cv_uint64
="unsigned long long"
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.
$ac_ext >&5
4730 liberty_cv_uint64
=none
4732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4739 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4740 echo "${ECHO_T}$liberty_cv_uint64" >&6
4741 if test "$liberty_cv_uint64" != none
; then
4743 cat >>confdefs.h
<<_ACEOF
4744 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4749 # Given the above check, we always have uintptr_t or a fallback
4750 # definition. So define HAVE_UINTPTR_T in case any imported code
4753 cat >>confdefs.h
<<\_ACEOF
4754 #define HAVE_UINTPTR_T 1
4758 echo "$as_me:$LINENO: checking for pid_t" >&5
4759 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4760 if test "${ac_cv_type_pid_t+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.
$ac_ext <<_ACEOF
4766 cat confdefs.h
>>conftest.
$ac_ext
4767 cat >>conftest.
$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4781 rm -f conftest.
$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try
='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_type_pid_t
=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.
$ac_ext >&5
4809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4811 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4813 if test $ac_cv_type_pid_t = yes; then
4817 cat >>confdefs.h
<<_ACEOF
4824 # This is the list of functions which libiberty will provide if they
4825 # are not available on the host.
4828 funcs
="$funcs atexit"
4829 funcs
="$funcs basename"
4831 funcs
="$funcs bcopy"
4832 funcs
="$funcs bsearch"
4833 funcs
="$funcs bzero"
4834 funcs
="$funcs calloc"
4835 funcs
="$funcs clock"
4837 funcs
="$funcs getcwd"
4838 funcs
="$funcs getpagesize"
4839 funcs
="$funcs gettimeofday"
4840 funcs
="$funcs index"
4841 funcs
="$funcs insque"
4842 funcs
="$funcs memchr"
4843 funcs
="$funcs memcmp"
4844 funcs
="$funcs memcpy"
4845 funcs
="$funcs memmove"
4846 funcs
="$funcs mempcpy"
4847 funcs
="$funcs memset"
4848 funcs
="$funcs mkstemps"
4849 funcs
="$funcs putenv"
4850 funcs
="$funcs random"
4851 funcs
="$funcs rename"
4852 funcs
="$funcs rindex"
4853 funcs
="$funcs setenv"
4854 funcs
="$funcs snprintf"
4855 funcs
="$funcs sigsetmask"
4856 funcs
="$funcs stpcpy"
4857 funcs
="$funcs stpncpy"
4858 funcs
="$funcs strcasecmp"
4859 funcs
="$funcs strchr"
4860 funcs
="$funcs strdup"
4861 funcs
="$funcs strncasecmp"
4862 funcs
="$funcs strndup"
4863 funcs
="$funcs strrchr"
4864 funcs
="$funcs strstr"
4865 funcs
="$funcs strtod"
4866 funcs
="$funcs strtol"
4867 funcs
="$funcs strtoul"
4868 funcs
="$funcs strverscmp"
4869 funcs
="$funcs tmpnam"
4870 funcs
="$funcs vasprintf"
4871 funcs
="$funcs vfprintf"
4872 funcs
="$funcs vprintf"
4873 funcs
="$funcs vsnprintf"
4874 funcs
="$funcs vsprintf"
4875 funcs
="$funcs waitpid"
4877 # Also in the old function.def file: alloca, vfork, getopt.
4879 vars
="sys_errlist sys_nerr sys_siglist"
4881 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4882 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4883 checkfuncs
="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
4885 # These are neither executed nor required, but they help keep
4886 # autoheader happy without adding a bunch of text to acconfig.h.
4887 if test "x" = "y"; then
4957 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
4958 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
4959 memmove mempcpy memset putenv random rename rindex sigsetmask \
4960 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
4961 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
4962 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4963 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
4964 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
4965 realpath canonicalize_file_name __fsetlocking
4967 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4968 echo "$as_me:$LINENO: checking for $ac_func" >&5
4969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4970 if eval "test \"\${$as_ac_var+set}\" = set"; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test x
$gcc_no_link = xyes
; then
4974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4976 { (exit 1); exit 1; }; }
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 /* System header to define __stub macros and hopefully few prototypes,
4985 which can conflict with char $ac_func (); below.
4986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 <limits.h> exists even on freestanding compilers. Under hpux,
4988 including <limits.h> includes <sys/time.h> and causes problems
4989 checking for functions defined therein. */
4990 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4991 # include <limits.h>
4993 # include <assert.h>
4995 /* Override any gcc2 internal prototype to avoid an error. */
5000 /* We use char because int might match the return type of a gcc2
5001 builtin and then its argument prototype would still apply. */
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5009 char (*f) () = $ac_func;
5018 return f != $ac_func;
5023 rm -f conftest.
$ac_objext conftest
$ac_exeext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5025 (eval $ac_link) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1
>conftest.err
5029 cat conftest.err
>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest$ac_exeext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 eval "$as_ac_var=yes"
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5049 eval "$as_ac_var=no"
5051 rm -f conftest.err conftest.
$ac_objext \
5052 conftest
$ac_exeext conftest.
$ac_ext
5054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5056 if test `eval echo '${'$as_ac_var'}'` = yes; then
5057 cat >>confdefs.h
<<_ACEOF
5058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5064 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5065 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5066 if test "${ac_cv_have_decl_basename+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 cat >conftest.
$ac_ext <<_ACEOF
5072 cat confdefs.h
>>conftest.
$ac_ext
5073 cat >>conftest.
$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5080 char *p = (char *) basename;
5087 rm -f conftest.
$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1
>conftest.err
5093 cat conftest.err
>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try
='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_have_decl_basename
=yes
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.
$ac_ext >&5
5113 ac_cv_have_decl_basename
=no
5115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5118 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5119 if test $ac_cv_have_decl_basename = yes; then
5121 cat >>confdefs.h
<<_ACEOF
5122 #define HAVE_DECL_BASENAME 1
5127 cat >>confdefs.h
<<_ACEOF
5128 #define HAVE_DECL_BASENAME 0
5133 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5134 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5135 if test "${ac_cv_have_decl_ffs+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.
$ac_ext <<_ACEOF
5141 cat confdefs.h
>>conftest.
$ac_ext
5142 cat >>conftest.
$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5149 char *p = (char *) ffs;
5156 rm -f conftest.
$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1
>conftest.err
5162 cat conftest.err
>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try
='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_have_decl_ffs
=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.
$ac_ext >&5
5182 ac_cv_have_decl_ffs
=no
5184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5187 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5188 if test $ac_cv_have_decl_ffs = yes; then
5190 cat >>confdefs.h
<<_ACEOF
5191 #define HAVE_DECL_FFS 1
5196 cat >>confdefs.h
<<_ACEOF
5197 #define HAVE_DECL_FFS 0
5202 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5203 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5204 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 cat >conftest.
$ac_ext <<_ACEOF
5210 cat confdefs.h
>>conftest.
$ac_ext
5211 cat >>conftest.
$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5218 char *p = (char *) asprintf;
5225 rm -f conftest.
$ac_objext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>conftest.er1
5229 grep -v '^ *+' conftest.er1
>conftest.err
5231 cat conftest.err
>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try
='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_cv_have_decl_asprintf
=yes
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.
$ac_ext >&5
5251 ac_cv_have_decl_asprintf
=no
5253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5256 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5257 if test $ac_cv_have_decl_asprintf = yes; then
5259 cat >>confdefs.h
<<_ACEOF
5260 #define HAVE_DECL_ASPRINTF 1
5265 cat >>confdefs.h
<<_ACEOF
5266 #define HAVE_DECL_ASPRINTF 0
5271 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5272 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5273 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5287 char *p = (char *) vasprintf;
5294 rm -f conftest.
$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1
>conftest.err
5300 cat conftest.err
>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try
='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_cv_have_decl_vasprintf
=yes
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.
$ac_ext >&5
5320 ac_cv_have_decl_vasprintf
=no
5322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5325 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5326 if test $ac_cv_have_decl_vasprintf = yes; then
5328 cat >>confdefs.h
<<_ACEOF
5329 #define HAVE_DECL_VASPRINTF 1
5334 cat >>confdefs.h
<<_ACEOF
5335 #define HAVE_DECL_VASPRINTF 0
5340 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5341 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5342 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 cat >conftest.
$ac_ext <<_ACEOF
5348 cat confdefs.h
>>conftest.
$ac_ext
5349 cat >>conftest.
$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 $ac_includes_default
5356 char *p = (char *) snprintf;
5363 rm -f conftest.
$ac_objext
5364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5365 (eval $ac_compile) 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" || test ! -s conftest.err'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try
='test -s conftest.$ac_objext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_have_decl_snprintf
=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.
$ac_ext >&5
5389 ac_cv_have_decl_snprintf
=no
5391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5394 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5395 if test $ac_cv_have_decl_snprintf = yes; then
5397 cat >>confdefs.h
<<_ACEOF
5398 #define HAVE_DECL_SNPRINTF 1
5403 cat >>confdefs.h
<<_ACEOF
5404 #define HAVE_DECL_SNPRINTF 0
5409 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5410 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5411 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 cat >conftest.
$ac_ext <<_ACEOF
5417 cat confdefs.h
>>conftest.
$ac_ext
5418 cat >>conftest.
$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5425 char *p = (char *) vsnprintf;
5432 rm -f conftest.
$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>conftest.er1
5436 grep -v '^ *+' conftest.er1
>conftest.err
5438 cat conftest.err
>&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try
='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_have_decl_vsnprintf
=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.
$ac_ext >&5
5458 ac_cv_have_decl_vsnprintf
=no
5460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5463 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5464 if test $ac_cv_have_decl_vsnprintf = yes; then
5466 cat >>confdefs.h
<<_ACEOF
5467 #define HAVE_DECL_VSNPRINTF 1
5472 cat >>confdefs.h
<<_ACEOF
5473 #define HAVE_DECL_VSNPRINTF 0
5481 cat >>confdefs.h
<<\_ACEOF
5482 #define HAVE_SYS_ERRLIST 1
5486 cat >>confdefs.h
<<\_ACEOF
5487 #define HAVE_SYS_NERR 1
5491 cat >>confdefs.h
<<\_ACEOF
5492 #define HAVE_SYS_SIGLIST 1
5497 # For each of these functions, if the host does not provide the
5498 # function we want to put FN.o in LIBOBJS, and if the host does
5499 # provide the function, we want to define HAVE_FN in config.h.
5504 if test -n "${with_target_subdir}"; then
5506 # We are being configured as a target library. AC_REPLACE_FUNCS
5507 # may not work correctly, because the compiler may not be able to
5508 # link executables. Note that we may still be being configured
5511 # If we are being configured for newlib, we know which functions
5512 # newlib provide and which ones we will be expected to provide.
5514 if test "x${with_newlib}" = "xyes"; then
5516 "asprintf.$ac_objext" | \
5517 *" asprintf.$ac_objext" | \
5518 "asprintf.$ac_objext "* | \
5519 *" asprintf.$ac_objext "* ) ;;
5520 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5524 "basename.$ac_objext" | \
5525 *" basename.$ac_objext" | \
5526 "basename.$ac_objext "* | \
5527 *" basename.$ac_objext "* ) ;;
5528 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5532 "insque.$ac_objext" | \
5533 *" insque.$ac_objext" | \
5534 "insque.$ac_objext "* | \
5535 *" insque.$ac_objext "* ) ;;
5536 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5540 "random.$ac_objext" | \
5541 *" random.$ac_objext" | \
5542 "random.$ac_objext "* | \
5543 *" random.$ac_objext "* ) ;;
5544 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5548 "strdup.$ac_objext" | \
5549 *" strdup.$ac_objext" | \
5550 "strdup.$ac_objext "* | \
5551 *" strdup.$ac_objext "* ) ;;
5552 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5556 "vasprintf.$ac_objext" | \
5557 *" vasprintf.$ac_objext" | \
5558 "vasprintf.$ac_objext "* | \
5559 *" vasprintf.$ac_objext "* ) ;;
5560 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5566 asprintf |
basename | insque | random | strdup | vasprintf
)
5569 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5570 cat >>confdefs.h
<<_ACEOF
5578 # newlib doesnt provide any of the variables in $vars, so we
5579 # dont have to check them here.
5581 # Of the functions in $checkfuncs, newlib only has strerror.
5582 cat >>confdefs.h
<<\_ACEOF
5583 #define HAVE_STRERROR 1
5591 # We may wish to install the target headers somewhere.
5592 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5593 if test "${enable_install_libiberty+set}" = set; then
5594 enableval
="$enable_install_libiberty"
5595 enable_install_libiberty
=$enableval
5597 enable_install_libiberty
=no
5599 # Option parsed, now set things appropriately.
5600 case x
"$enable_install_libiberty" in
5602 target_header_dir
=libiberty
5608 # This could be sanity-checked in various ways...
5609 target_header_dir
="${enable_install_libiberty}"
5616 # Not a target library, so we set things up to run the test suite.
5625 *-*-cygwin* |
*-*-mingw*)
5626 cat >>confdefs.h
<<\_ACEOF
5627 #define HAVE_SYS_ERRLIST 1
5630 cat >>confdefs.h
<<\_ACEOF
5631 #define HAVE_SYS_NERR 1
5637 if test -z "${setobjs}"; then
5641 # Handle VxWorks configuration specially, since on VxWorks the
5642 # libraries are actually on the target board, not in the file
5645 "basename.$ac_objext" | \
5646 *" basename.$ac_objext" | \
5647 "basename.$ac_objext "* | \
5648 *" basename.$ac_objext "* ) ;;
5649 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5653 "getpagesize.$ac_objext" | \
5654 *" getpagesize.$ac_objext" | \
5655 "getpagesize.$ac_objext "* | \
5656 *" getpagesize.$ac_objext "* ) ;;
5657 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
5661 "insque.$ac_objext" | \
5662 *" insque.$ac_objext" | \
5663 "insque.$ac_objext "* | \
5664 *" insque.$ac_objext "* ) ;;
5665 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5669 "random.$ac_objext" | \
5670 *" random.$ac_objext" | \
5671 "random.$ac_objext "* | \
5672 *" random.$ac_objext "* ) ;;
5673 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5677 "strcasecmp.$ac_objext" | \
5678 *" strcasecmp.$ac_objext" | \
5679 "strcasecmp.$ac_objext "* | \
5680 *" strcasecmp.$ac_objext "* ) ;;
5681 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
5685 "strncasecmp.$ac_objext" | \
5686 *" strncasecmp.$ac_objext" | \
5687 "strncasecmp.$ac_objext "* | \
5688 *" strncasecmp.$ac_objext "* ) ;;
5689 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
5693 "strdup.$ac_objext" | \
5694 *" strdup.$ac_objext" | \
5695 "strdup.$ac_objext "* | \
5696 *" strdup.$ac_objext "* ) ;;
5697 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5701 "vfork.$ac_objext" | \
5702 *" vfork.$ac_objext" | \
5703 "vfork.$ac_objext "* | \
5704 *" vfork.$ac_objext "* ) ;;
5705 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
5709 "waitpid.$ac_objext" | \
5710 *" waitpid.$ac_objext" | \
5711 "waitpid.$ac_objext "* | \
5712 *" waitpid.$ac_objext "* ) ;;
5713 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
5717 "vasprintf.$ac_objext" | \
5718 *" vasprintf.$ac_objext" | \
5719 "vasprintf.$ac_objext "* | \
5720 *" vasprintf.$ac_objext "* ) ;;
5721 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5726 basename | getpagesize | insque | random | strcasecmp
)
5728 strncasecmp | strdup | vfork | waitpid | vasprintf
)
5731 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5732 cat >>confdefs.h
<<_ACEOF
5740 # VxWorks doesn't provide any of the variables in $vars, so we
5741 # don't have to check them here.
5743 # Of the functions in $checkfuncs, VxWorks only has strerror.
5744 cat >>confdefs.h
<<\_ACEOF
5745 #define HAVE_STRERROR 1
5755 if test -z "${setobjs}"; then
5760 # The Cygwin library actually uses a couple of files from
5761 # libiberty when it is built. If we are building a native
5762 # Cygwin, and we run the tests, we will appear to have these
5763 # files. However, when we go on to build winsup, we will wind up
5764 # with a library which does not have the files, since they should
5765 # have come from libiberty.
5767 # We handle this by removing the functions the winsup library
5768 # provides from our shell variables, so that they appear to be
5771 # DJ - only if we're *building* cygwin, not just building *with* cygwin
5773 if test -n "${with_target_subdir}"
5775 funcs
="`echo $funcs | sed -e 's/random//'`"
5777 "random.$ac_objext" | \
5778 *" random.$ac_objext" | \
5779 "random.$ac_objext "* | \
5780 *" random.$ac_objext "* ) ;;
5781 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5784 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
5785 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
5790 # Under mingw32, sys_nerr and sys_errlist exist, but they are
5791 # macros, so the test below won't find them.
5792 libiberty_cv_var_sys_nerr
=yes
5793 libiberty_cv_var_sys_errlist
=yes
5797 # vfork and fork are stubs.
5798 ac_cv_func_vfork_works
=no
5802 # Under some versions of uwin, vfork is notoriously buggy and the test
5803 # can hang configure; on other versions, vfork exists just as a stub.
5804 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
5805 ac_cv_func_vfork_works
=no
5806 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
5807 # macros (actually, these are imported from a DLL, but the end effect
5808 # is the same), so the test below won't find them.
5809 libiberty_cv_var_sys_nerr
=yes
5810 libiberty_cv_var_sys_errlist
=yes
5814 # Under VMS, vfork works very different than on Unix. The standard test
5815 # won't work, and it isn't easily adaptable. It makes more sense to
5817 ac_cv_func_vfork_works
=yes
5822 # We haven't set the list of objects yet. Use the standard autoconf
5823 # tests. This will only work if the compiler works.
5824 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5825 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5826 if test "${ac_cv_search_strerror+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_func_search_save_LIBS
=$LIBS
5830 ac_cv_search_strerror
=no
5831 if test x
$gcc_no_link = xyes
; then
5832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5834 { (exit 1); exit 1; }; }
5836 cat >conftest.
$ac_ext <<_ACEOF
5839 cat confdefs.h
>>conftest.
$ac_ext
5840 cat >>conftest.
$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5858 rm -f conftest.
$ac_objext conftest
$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1
>conftest.err
5864 cat conftest.err
>&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try
='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_search_strerror
="none required"
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5885 rm -f conftest.err conftest.
$ac_objext \
5886 conftest
$ac_exeext conftest.
$ac_ext
5887 if test "$ac_cv_search_strerror" = no
; then
5888 for ac_lib
in cposix
; do
5889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5890 if test x
$gcc_no_link = xyes
; then
5891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5893 { (exit 1); exit 1; }; }
5895 cat >conftest.
$ac_ext <<_ACEOF
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5917 rm -f conftest.
$ac_objext conftest
$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>conftest.er1
5921 grep -v '^ *+' conftest.er1
>conftest.err
5923 cat conftest.err
>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try
='test -s conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_cv_search_strerror
="-l$ac_lib"
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.
$ac_ext >&5
5945 rm -f conftest.err conftest.
$ac_objext \
5946 conftest
$ac_exeext conftest.
$ac_ext
5949 LIBS
=$ac_func_search_save_LIBS
5951 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5952 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5953 if test "$ac_cv_search_strerror" != no
; then
5954 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5959 for ac_func
in $funcs
5961 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5962 echo "$as_me:$LINENO: checking for $ac_func" >&5
5963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5964 if eval "test \"\${$as_ac_var+set}\" = set"; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 if test x
$gcc_no_link = xyes
; then
5968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5970 { (exit 1); exit 1; }; }
5972 cat >conftest.
$ac_ext <<_ACEOF
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func (); below.
5980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5981 <limits.h> exists even on freestanding compilers. Under hpux,
5982 including <limits.h> includes <sys/time.h> and causes problems
5983 checking for functions defined therein. */
5984 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5985 # include <limits.h>
5987 # include <assert.h>
5989 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 char (*f) () = $ac_func;
6012 return f != $ac_func;
6017 rm -f conftest.
$ac_objext conftest
$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>conftest.er1
6021 grep -v '^ *+' conftest.er1
>conftest.err
6023 cat conftest.err
>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try
='test -s conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 eval "$as_ac_var=yes"
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.
$ac_ext >&5
6043 eval "$as_ac_var=no"
6045 rm -f conftest.err conftest.
$ac_objext \
6046 conftest
$ac_exeext conftest.
$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6050 if test `eval echo '${'$as_ac_var'}'` = yes; then
6051 cat >>confdefs.h
<<_ACEOF
6052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6057 "$ac_func.$ac_objext" | \
6058 *" $ac_func.$ac_objext" | \
6059 "$ac_func.$ac_objext "* | \
6060 *" $ac_func.$ac_objext "* ) ;;
6061 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6068 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6069 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6070 if test "${ac_cv_os_cray+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.
$ac_ext <<_ACEOF
6076 cat confdefs.h
>>conftest.
$ac_ext
6077 cat >>conftest.
$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 #if defined(CRAY) && ! defined(CRAY2)
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "webecray" >/dev
/null
2>&1; then
6095 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6096 echo "${ECHO_T}$ac_cv_os_cray" >&6
6097 if test $ac_cv_os_cray = yes; then
6098 for ac_func
in _getb67 GETB67 getb67
; do
6099 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6100 echo "$as_me:$LINENO: checking for $ac_func" >&5
6101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6102 if eval "test \"\${$as_ac_var+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 if test x
$gcc_no_link = xyes
; then
6106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6108 { (exit 1); exit 1; }; }
6110 cat >conftest.
$ac_ext <<_ACEOF
6113 cat confdefs.h
>>conftest.
$ac_ext
6114 cat >>conftest.
$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func (); below.
6118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 <limits.h> exists even on freestanding compilers. Under hpux,
6120 including <limits.h> includes <sys/time.h> and causes problems
6121 checking for functions defined therein. */
6122 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6123 # include <limits.h>
6125 # include <assert.h>
6127 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */
6135 /* The GNU C library defines this for functions which it implements
6136 to always fail with ENOSYS. Some functions are actually named
6137 something starting with __ and the normal name is an alias. */
6138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6141 char (*f) () = $ac_func;
6150 return f != $ac_func;
6155 rm -f conftest.
$ac_objext conftest
$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 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); } &&
6164 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try
='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 eval "$as_ac_var=yes"
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.
$ac_ext >&5
6181 eval "$as_ac_var=no"
6183 rm -f conftest.err conftest.
$ac_objext \
6184 conftest
$ac_exeext conftest.
$ac_ext
6186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6188 if test `eval echo '${'$as_ac_var'}'` = yes; then
6190 cat >>confdefs.h
<<_ACEOF
6191 #define CRAY_STACKSEG_END $ac_func
6199 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6200 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6201 if test "${ac_cv_c_stack_direction+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 if test "$cross_compiling" = yes; then
6205 ac_cv_c_stack_direction
=0
6207 cat >conftest.
$ac_ext <<_ACEOF
6210 cat confdefs.h
>>conftest.
$ac_ext
6211 cat >>conftest.
$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 find_stack_direction ()
6215 static char *addr = 0;
6220 return find_stack_direction ();
6223 return (&dummy > addr) ? 1 : -1;
6227 exit (find_stack_direction() < 0);
6230 rm -f conftest
$ac_exeext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232 (eval $ac_link) 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_c_stack_direction
=1
6243 echo "$as_me: program exited with status $ac_status" >&5
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_cv_c_stack_direction
=-1
6250 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6253 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6254 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6256 cat >>confdefs.h
<<_ACEOF
6257 #define STACK_DIRECTION $ac_cv_c_stack_direction
6263 for ac_header
in unistd.h vfork.h
6265 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6266 echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 cat >conftest.
$ac_ext <<_ACEOF
6274 cat confdefs.h
>>conftest.
$ac_ext
6275 cat >>conftest.
$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <$ac_header>
6279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1
>conftest.err
6284 cat conftest.err
>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } >/dev
/null
; then
6287 if test -s conftest.err
; then
6288 ac_cpp_err
=$ac_c_preproc_warn_flag
6289 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6296 if test -z "$ac_cpp_err"; then
6297 eval "$as_ac_Header=yes"
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.
$ac_ext >&5
6302 eval "$as_ac_Header=no"
6304 rm -f conftest.err conftest.
$ac_ext
6306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6309 cat >>confdefs.h
<<_ACEOF
6310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6318 for ac_func
in fork vfork
6320 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321 echo "$as_me:$LINENO: checking for $ac_func" >&5
6322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_var+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 if test x
$gcc_no_link = xyes
; then
6327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6329 { (exit 1); exit 1; }; }
6331 cat >conftest.
$ac_ext <<_ACEOF
6334 cat confdefs.h
>>conftest.
$ac_ext
6335 cat >>conftest.
$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func (); below.
6339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340 <limits.h> exists even on freestanding compilers. Under hpux,
6341 including <limits.h> includes <sys/time.h> and causes problems
6342 checking for functions defined therein. */
6343 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6344 # include <limits.h>
6346 # include <assert.h>
6348 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6356 /* The GNU C library defines this for functions which it implements
6357 to always fail with ENOSYS. Some functions are actually named
6358 something starting with __ and the normal name is an alias. */
6359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6362 char (*f) () = $ac_func;
6371 return f != $ac_func;
6376 rm -f conftest.
$ac_objext conftest
$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1
>conftest.err
6382 cat conftest.err
>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try
='test -s conftest$ac_exeext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 eval "$as_ac_var=yes"
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.
$ac_ext >&5
6402 eval "$as_ac_var=no"
6404 rm -f conftest.err conftest.
$ac_objext \
6405 conftest
$ac_exeext conftest.
$ac_ext
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6409 if test `eval echo '${'$as_ac_var'}'` = yes; then
6410 cat >>confdefs.h
<<_ACEOF
6411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6417 if test "x$ac_cv_func_fork" = xyes
; then
6418 echo "$as_me:$LINENO: checking for working fork" >&5
6419 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6420 if test "${ac_cv_func_fork_works+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test "$cross_compiling" = yes; then
6424 ac_cv_func_fork_works
=cross
6426 cat >conftest.
$ac_ext <<_ACEOF
6427 /* By Ruediger Kuhlmann. */
6428 #include <sys/types.h>
6430 # include <unistd.h>
6432 /* Some systems only have a dummy stub for fork() */
6440 rm -f conftest
$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_func_fork_works
=yes
6453 echo "$as_me: program exited with status $ac_status" >&5
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.
$ac_ext >&5
6458 ac_cv_func_fork_works
=no
6460 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6463 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6464 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6467 ac_cv_func_fork_works
=$ac_cv_func_fork
6469 if test "x$ac_cv_func_fork_works" = xcross
; then
6471 *-*-amigaos* |
*-*-msdosdjgpp*)
6472 # Override, as these systems have only a dummy fork() stub
6473 ac_cv_func_fork_works
=no
6476 ac_cv_func_fork_works
=yes
6479 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6480 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6482 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6483 if test "x$ac_cv_func_vfork" = xyes
; then
6484 echo "$as_me:$LINENO: checking for working vfork" >&5
6485 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6486 if test "${ac_cv_func_vfork_works+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 if test "$cross_compiling" = yes; then
6490 ac_cv_func_vfork_works
=cross
6492 cat >conftest.
$ac_ext <<_ACEOF
6495 cat confdefs.h
>>conftest.
$ac_ext
6496 cat >>conftest.
$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 /* Thanks to Paul Eggert for this test. */
6501 #include <sys/types.h>
6502 #include <sys/stat.h>
6503 #include <sys/wait.h>
6505 # include <unistd.h>
6510 /* On some sparc systems, changes by the child to local and incoming
6511 argument registers are propagated back to the parent. The compiler
6512 is told about this with #include <vfork.h>, but some compilers
6513 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6514 static variable whose address is put into a register that is
6515 clobbered by the vfork. */
6518 sparc_address_test (int arg)
6520 sparc_address_test (arg) int arg;
6541 pid_t parent = getpid ();
6544 sparc_address_test (0);
6549 /* Here is another test for sparc vfork register problems. This
6550 test uses lots of local variables, at least as many local
6551 variables as main has allocated so far including compiler
6552 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6553 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6554 reuse the register of parent for one of the local variables,
6555 since it will think that parent can't possibly be used any more
6556 in this routine. Assigning to the local variable will thus
6557 munge parent in the parent process. */
6559 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6560 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6561 /* Convince the compiler that p..p7 are live; otherwise, it might
6562 use the same hardware register for all 8 local variables. */
6563 if (p != p1 || p != p2 || p != p3 || p != p4
6564 || p != p5 || p != p6 || p != p7)
6567 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6568 from child file descriptors. If the child closes a descriptor
6569 before it execs or exits, this munges the parent's descriptor
6570 as well. Test for this by closing stdout in the child. */
6571 _exit(close(fileno(stdout)) != 0);
6576 while (wait(&status) != child)
6579 /* Was there some problem with vforking? */
6582 /* Did the child fail? (This shouldn't happen.) */
6585 /* Did the vfork/compiler bug occur? */
6586 || parent != getpid()
6588 /* Did the file descriptor bug occur? */
6589 || fstat(fileno(stdout), &st) != 0
6594 rm -f conftest
$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_func_vfork_works
=yes
6607 echo "$as_me: program exited with status $ac_status" >&5
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.
$ac_ext >&5
6612 ac_cv_func_vfork_works
=no
6614 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6617 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6618 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6621 if test "x$ac_cv_func_fork_works" = xcross
; then
6622 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6623 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6624 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6627 if test "x$ac_cv_func_vfork_works" = xyes
; then
6629 cat >>confdefs.h
<<\_ACEOF
6630 #define HAVE_WORKING_VFORK 1
6635 cat >>confdefs.h
<<\_ACEOF
6640 if test "x$ac_cv_func_fork_works" = xyes
; then
6642 cat >>confdefs.h
<<\_ACEOF
6643 #define HAVE_WORKING_FORK 1
6648 if test $ac_cv_func_vfork_works = no
; then
6650 "vfork.$ac_objext" | \
6651 *" vfork.$ac_objext" | \
6652 "vfork.$ac_objext "* | \
6653 *" vfork.$ac_objext "* ) ;;
6654 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6658 # We only need _doprnt if we might use it to implement v*printf.
6659 if test $ac_cv_func_vprintf != yes \
6660 ||
test $ac_cv_func_vfprintf != yes \
6661 ||
test $ac_cv_func_vsprintf != yes; then
6663 for ac_func
in _doprnt
6665 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6666 echo "$as_me:$LINENO: checking for $ac_func" >&5
6667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6668 if eval "test \"\${$as_ac_var+set}\" = set"; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 if test x
$gcc_no_link = xyes
; then
6672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6674 { (exit 1); exit 1; }; }
6676 cat >conftest.
$ac_ext <<_ACEOF
6679 cat confdefs.h
>>conftest.
$ac_ext
6680 cat >>conftest.
$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 /* System header to define __stub macros and hopefully few prototypes,
6683 which can conflict with char $ac_func (); below.
6684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685 <limits.h> exists even on freestanding compilers. Under hpux,
6686 including <limits.h> includes <sys/time.h> and causes problems
6687 checking for functions defined therein. */
6688 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6689 # include <limits.h>
6691 # include <assert.h>
6693 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6701 /* The GNU C library defines this for functions which it implements
6702 to always fail with ENOSYS. Some functions are actually named
6703 something starting with __ and the normal name is an alias. */
6704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6707 char (*f) () = $ac_func;
6716 return f != $ac_func;
6721 rm -f conftest.
$ac_objext conftest
$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6725 grep -v '^ *+' conftest.er1
>conftest.err
6727 cat conftest.err
>&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try
='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 eval "$as_ac_var=yes"
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 eval "$as_ac_var=no"
6749 rm -f conftest.err conftest.
$ac_objext \
6750 conftest
$ac_exeext conftest.
$ac_ext
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6754 if test `eval echo '${'$as_ac_var'}'` = yes; then
6755 cat >>confdefs.h
<<_ACEOF
6756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6761 "$ac_func.$ac_objext" | \
6762 *" $ac_func.$ac_objext" | \
6763 "$ac_func.$ac_objext "* | \
6764 *" $ac_func.$ac_objext "* ) ;;
6765 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6774 for ac_func
in _doprnt
6776 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6777 echo "$as_me:$LINENO: checking for $ac_func" >&5
6778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6779 if eval "test \"\${$as_ac_var+set}\" = set"; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 if test x
$gcc_no_link = xyes
; then
6783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6785 { (exit 1); exit 1; }; }
6787 cat >conftest.
$ac_ext <<_ACEOF
6790 cat confdefs.h
>>conftest.
$ac_ext
6791 cat >>conftest.
$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 /* System header to define __stub macros and hopefully few prototypes,
6794 which can conflict with char $ac_func (); below.
6795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6796 <limits.h> exists even on freestanding compilers. Under hpux,
6797 including <limits.h> includes <sys/time.h> and causes problems
6798 checking for functions defined therein. */
6799 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6800 # include <limits.h>
6802 # include <assert.h>
6804 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6812 /* The GNU C library defines this for functions which it implements
6813 to always fail with ENOSYS. Some functions are actually named
6814 something starting with __ and the normal name is an alias. */
6815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6818 char (*f) () = $ac_func;
6827 return f != $ac_func;
6832 rm -f conftest.
$ac_objext conftest
$ac_exeext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834 (eval $ac_link) 2>conftest.er1
6836 grep -v '^ *+' conftest.er1
>conftest.err
6838 cat conftest.err
>&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; } &&
6847 { ac_try
='test -s conftest$ac_exeext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 eval "$as_ac_var=yes"
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6858 eval "$as_ac_var=no"
6860 rm -f conftest.err conftest.
$ac_objext \
6861 conftest
$ac_exeext conftest.
$ac_ext
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6865 if test `eval echo '${'$as_ac_var'}'` = yes; then
6866 cat >>confdefs.h
<<_ACEOF
6867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6876 echo "$as_me:$LINENO: checking for $v" >&5
6877 echo $ECHO_N "checking for $v... $ECHO_C" >&6
6878 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 if test x
$gcc_no_link = xyes
; then
6882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6884 { (exit 1); exit 1; }; }
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6896 extern int $v []; p = $v;
6901 rm -f conftest.
$ac_objext conftest
$ac_exeext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903 (eval $ac_link) 2>conftest.er1
6905 grep -v '^ *+' conftest.er1
>conftest.err
6907 cat conftest.err
>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try
='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 eval "libiberty_cv_var_$v=yes"
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 eval "libiberty_cv_var_$v=no"
6929 rm -f conftest.err conftest.
$ac_objext \
6930 conftest
$ac_exeext conftest.
$ac_ext
6933 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6936 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6937 cat >>confdefs.h
<<_ACEOF
6942 echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6
6947 # special check for _system_configuration because AIX <4.3.2 do not
6948 # contain the `physmem' member.
6949 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6950 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6951 cat >conftest.
$ac_ext <<_ACEOF
6954 cat confdefs.h
>>conftest.
$ac_ext
6955 cat >>conftest.
$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #include <sys/systemcfg.h>
6961 double x = _system_configuration.physmem;
6966 rm -f conftest.
$ac_objext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968 (eval $ac_compile) 2>conftest.er1
6970 grep -v '^ *+' conftest.er1
>conftest.err
6972 cat conftest.err
>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try
='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 echo "$as_me:$LINENO: result: yes" >&5
6988 echo "${ECHO_T}yes" >&6
6990 cat >>confdefs.h
<<\_ACEOF
6991 #define HAVE__SYSTEM_CONFIGURATION 1
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.
$ac_ext >&5
6998 echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6
7001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7004 for ac_func
in $checkfuncs
7006 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7007 echo "$as_me:$LINENO: checking for $ac_func" >&5
7008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7009 if eval "test \"\${$as_ac_var+set}\" = set"; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 if test x
$gcc_no_link = xyes
; then
7013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7015 { (exit 1); exit 1; }; }
7017 cat >conftest.
$ac_ext <<_ACEOF
7020 cat confdefs.h
>>conftest.
$ac_ext
7021 cat >>conftest.
$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 /* System header to define __stub macros and hopefully few prototypes,
7024 which can conflict with char $ac_func (); below.
7025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 <limits.h> exists even on freestanding compilers. Under hpux,
7027 including <limits.h> includes <sys/time.h> and causes problems
7028 checking for functions defined therein. */
7029 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7030 # include <limits.h>
7032 # include <assert.h>
7034 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 char (*f) () = $ac_func;
7057 return f != $ac_func;
7062 rm -f conftest.
$ac_objext conftest
$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>conftest.er1
7066 grep -v '^ *+' conftest.er1
>conftest.err
7068 cat conftest.err
>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try
='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 eval "$as_ac_var=yes"
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.
$ac_ext >&5
7088 eval "$as_ac_var=no"
7090 rm -f conftest.err conftest.
$ac_objext \
7091 conftest
$ac_exeext conftest.
$ac_ext
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7095 if test `eval echo '${'$as_ac_var'}'` = yes; then
7096 cat >>confdefs.h
<<_ACEOF
7097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7103 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7104 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7105 if test "${ac_cv_have_decl_basename+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 cat >conftest.
$ac_ext <<_ACEOF
7111 cat confdefs.h
>>conftest.
$ac_ext
7112 cat >>conftest.
$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7119 char *p = (char *) basename;
7126 rm -f conftest.
$ac_objext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7128 (eval $ac_compile) 2>conftest.er1
7130 grep -v '^ *+' conftest.er1
>conftest.err
7132 cat conftest.err
>&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try
='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_have_decl_basename
=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.
$ac_ext >&5
7152 ac_cv_have_decl_basename
=no
7154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7157 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7158 if test $ac_cv_have_decl_basename = yes; then
7160 cat >>confdefs.h
<<_ACEOF
7161 #define HAVE_DECL_BASENAME 1
7166 cat >>confdefs.h
<<_ACEOF
7167 #define HAVE_DECL_BASENAME 0
7172 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7173 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7174 if test "${ac_cv_have_decl_ffs+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 cat >conftest.
$ac_ext <<_ACEOF
7180 cat confdefs.h
>>conftest.
$ac_ext
7181 cat >>conftest.
$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7188 char *p = (char *) ffs;
7195 rm -f conftest.
$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>conftest.er1
7199 grep -v '^ *+' conftest.er1
>conftest.err
7201 cat conftest.err
>&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try
='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 ac_cv_have_decl_ffs
=yes
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.
$ac_ext >&5
7221 ac_cv_have_decl_ffs
=no
7223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7225 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7226 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7227 if test $ac_cv_have_decl_ffs = yes; then
7229 cat >>confdefs.h
<<_ACEOF
7230 #define HAVE_DECL_FFS 1
7235 cat >>confdefs.h
<<_ACEOF
7236 #define HAVE_DECL_FFS 0
7241 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7242 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7243 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 cat >conftest.
$ac_ext <<_ACEOF
7249 cat confdefs.h
>>conftest.
$ac_ext
7250 cat >>conftest.
$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7257 char *p = (char *) asprintf;
7264 rm -f conftest.
$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7268 grep -v '^ *+' conftest.er1
>conftest.err
7270 cat conftest.err
>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try
='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_have_decl_asprintf
=yes
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.
$ac_ext >&5
7290 ac_cv_have_decl_asprintf
=no
7292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7295 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7296 if test $ac_cv_have_decl_asprintf = yes; then
7298 cat >>confdefs.h
<<_ACEOF
7299 #define HAVE_DECL_ASPRINTF 1
7304 cat >>confdefs.h
<<_ACEOF
7305 #define HAVE_DECL_ASPRINTF 0
7310 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7311 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7312 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.
$ac_ext <<_ACEOF
7318 cat confdefs.h
>>conftest.
$ac_ext
7319 cat >>conftest.
$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7326 char *p = (char *) vasprintf;
7333 rm -f conftest.
$ac_objext
7334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>conftest.er1
7337 grep -v '^ *+' conftest.er1
>conftest.err
7339 cat conftest.err
>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try
='test -s conftest.$ac_objext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_cv_have_decl_vasprintf
=yes
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.
$ac_ext >&5
7359 ac_cv_have_decl_vasprintf
=no
7361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7364 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7365 if test $ac_cv_have_decl_vasprintf = yes; then
7367 cat >>confdefs.h
<<_ACEOF
7368 #define HAVE_DECL_VASPRINTF 1
7373 cat >>confdefs.h
<<_ACEOF
7374 #define HAVE_DECL_VASPRINTF 0
7379 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7380 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7381 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 cat >conftest.
$ac_ext <<_ACEOF
7387 cat confdefs.h
>>conftest.
$ac_ext
7388 cat >>conftest.
$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 $ac_includes_default
7395 char *p = (char *) snprintf;
7402 rm -f conftest.
$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7406 grep -v '^ *+' conftest.er1
>conftest.err
7408 cat conftest.err
>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try
='test -s conftest.$ac_objext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 ac_cv_have_decl_snprintf
=yes
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.
$ac_ext >&5
7428 ac_cv_have_decl_snprintf
=no
7430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7433 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7434 if test $ac_cv_have_decl_snprintf = yes; then
7436 cat >>confdefs.h
<<_ACEOF
7437 #define HAVE_DECL_SNPRINTF 1
7442 cat >>confdefs.h
<<_ACEOF
7443 #define HAVE_DECL_SNPRINTF 0
7448 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7449 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7450 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.
$ac_ext <<_ACEOF
7456 cat confdefs.h
>>conftest.
$ac_ext
7457 cat >>conftest.
$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 $ac_includes_default
7464 char *p = (char *) vsnprintf;
7471 rm -f conftest.
$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473 (eval $ac_compile) 2>conftest.er1
7475 grep -v '^ *+' conftest.er1
>conftest.err
7477 cat conftest.err
>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; } &&
7486 { ac_try
='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_cv_have_decl_vsnprintf
=yes
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.
$ac_ext >&5
7497 ac_cv_have_decl_vsnprintf
=no
7499 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7502 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7503 if test $ac_cv_have_decl_vsnprintf = yes; then
7505 cat >>confdefs.h
<<_ACEOF
7506 #define HAVE_DECL_VSNPRINTF 1
7511 cat >>confdefs.h
<<_ACEOF
7512 #define HAVE_DECL_VSNPRINTF 0
7519 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7520 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7521 if test "${ac_cv_have_decl_calloc+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 cat >conftest.
$ac_ext <<_ACEOF
7527 cat confdefs.h
>>conftest.
$ac_ext
7528 cat >>conftest.
$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 $ac_includes_default
7535 char *p = (char *) calloc;
7542 rm -f conftest.
$ac_objext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>conftest.er1
7546 grep -v '^ *+' conftest.er1
>conftest.err
7548 cat conftest.err
>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try
='test -s conftest.$ac_objext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_have_decl_calloc
=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.
$ac_ext >&5
7568 ac_cv_have_decl_calloc
=no
7570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
7573 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
7574 if test $ac_cv_have_decl_calloc = yes; then
7576 cat >>confdefs.h
<<_ACEOF
7577 #define HAVE_DECL_CALLOC 1
7582 cat >>confdefs.h
<<_ACEOF
7583 #define HAVE_DECL_CALLOC 0
7588 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7589 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7590 if test "${ac_cv_have_decl_getenv+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7604 char *p = (char *) getenv;
7611 rm -f conftest.
$ac_objext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613 (eval $ac_compile) 2>conftest.er1
7615 grep -v '^ *+' conftest.er1
>conftest.err
7617 cat conftest.err
>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try
='test -s conftest.$ac_objext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_have_decl_getenv
=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.
$ac_ext >&5
7637 ac_cv_have_decl_getenv
=no
7639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7642 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7643 if test $ac_cv_have_decl_getenv = yes; then
7645 cat >>confdefs.h
<<_ACEOF
7646 #define HAVE_DECL_GETENV 1
7651 cat >>confdefs.h
<<_ACEOF
7652 #define HAVE_DECL_GETENV 0
7657 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
7658 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
7659 if test "${ac_cv_have_decl_getopt+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 cat >conftest.
$ac_ext <<_ACEOF
7665 cat confdefs.h
>>conftest.
$ac_ext
7666 cat >>conftest.
$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 $ac_includes_default
7673 char *p = (char *) getopt;
7680 rm -f conftest.
$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>conftest.er1
7684 grep -v '^ *+' conftest.er1
>conftest.err
7686 cat conftest.err
>&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try
='test -s conftest.$ac_objext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 ac_cv_have_decl_getopt
=yes
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.
$ac_ext >&5
7706 ac_cv_have_decl_getopt
=no
7708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7710 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
7711 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
7712 if test $ac_cv_have_decl_getopt = yes; then
7714 cat >>confdefs.h
<<_ACEOF
7715 #define HAVE_DECL_GETOPT 1
7720 cat >>confdefs.h
<<_ACEOF
7721 #define HAVE_DECL_GETOPT 0
7726 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
7727 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7728 if test "${ac_cv_have_decl_malloc+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 cat >conftest.
$ac_ext <<_ACEOF
7734 cat confdefs.h
>>conftest.
$ac_ext
7735 cat >>conftest.
$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7742 char *p = (char *) malloc;
7749 rm -f conftest.
$ac_objext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7751 (eval $ac_compile) 2>conftest.er1
7753 grep -v '^ *+' conftest.er1
>conftest.err
7755 cat conftest.err
>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try
='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_have_decl_malloc
=yes
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.
$ac_ext >&5
7775 ac_cv_have_decl_malloc
=no
7777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
7780 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7781 if test $ac_cv_have_decl_malloc = yes; then
7783 cat >>confdefs.h
<<_ACEOF
7784 #define HAVE_DECL_MALLOC 1
7789 cat >>confdefs.h
<<_ACEOF
7790 #define HAVE_DECL_MALLOC 0
7795 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
7796 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7797 if test "${ac_cv_have_decl_realloc+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 cat >conftest.
$ac_ext <<_ACEOF
7803 cat confdefs.h
>>conftest.
$ac_ext
7804 cat >>conftest.
$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 $ac_includes_default
7811 char *p = (char *) realloc;
7818 rm -f conftest.
$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1
>conftest.err
7824 cat conftest.err
>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try
='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_have_decl_realloc
=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.
$ac_ext >&5
7844 ac_cv_have_decl_realloc
=no
7846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
7849 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7850 if test $ac_cv_have_decl_realloc = yes; then
7852 cat >>confdefs.h
<<_ACEOF
7853 #define HAVE_DECL_REALLOC 1
7858 cat >>confdefs.h
<<_ACEOF
7859 #define HAVE_DECL_REALLOC 0
7864 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
7865 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
7866 if test "${ac_cv_have_decl_sbrk+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 $ac_includes_default
7880 char *p = (char *) sbrk;
7887 rm -f conftest.
$ac_objext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7891 grep -v '^ *+' conftest.er1
>conftest.err
7893 cat conftest.err
>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try
='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_have_decl_sbrk
=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.
$ac_ext >&5
7913 ac_cv_have_decl_sbrk
=no
7915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
7918 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
7919 if test $ac_cv_have_decl_sbrk = yes; then
7921 cat >>confdefs.h
<<_ACEOF
7922 #define HAVE_DECL_SBRK 1
7927 cat >>confdefs.h
<<_ACEOF
7928 #define HAVE_DECL_SBRK 0
7935 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
7936 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
7937 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7951 char *p = (char *) strverscmp;
7958 rm -f conftest.
$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1
>conftest.err
7964 cat conftest.err
>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try
='test -s conftest.$ac_objext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_cv_have_decl_strverscmp
=yes
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7984 ac_cv_have_decl_strverscmp
=no
7986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
7989 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
7990 if test $ac_cv_have_decl_strverscmp = yes; then
7992 cat >>confdefs.h
<<_ACEOF
7993 #define HAVE_DECL_STRVERSCMP 1
7998 cat >>confdefs.h
<<_ACEOF
7999 #define HAVE_DECL_STRVERSCMP 0
8006 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8007 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8008 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 cat >conftest.
$ac_ext <<_ACEOF
8014 cat confdefs.h
>>conftest.
$ac_ext
8015 cat >>conftest.
$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8018 #include "confdefs.h"
8020 #ifdef HAVE_STRING_H
8023 #ifdef HAVE_STRINGS_H
8024 #include <strings.h>
8027 #ifdef HAVE_STDLIB_H
8030 #ifdef HAVE_UNISTD_H
8036 char *(*pfn) = (char *(*)) canonicalize_file_name
8041 rm -f conftest.
$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043 (eval $ac_compile) 2>conftest.er1
8045 grep -v '^ *+' conftest.er1
>conftest.err
8047 cat conftest.err
>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try
='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 libiberty_cv_decl_needed_canonicalize_file_name
=no
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.
$ac_ext >&5
8067 libiberty_cv_decl_needed_canonicalize_file_name
=yes
8069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8073 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8074 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8076 cat >>confdefs.h
<<\_ACEOF
8077 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8084 # Figure out which version of pexecute to use.
8086 *-*-mingw* |
*-*-winnt*) pexecute
=.
/pex-win32.o
;;
8087 *-*-msdosdjgpp*) pexecute
=.
/pex-djgpp.o
;;
8088 *-*-msdos*) pexecute
=.
/pex-msdos.o
;;
8089 *) pexecute
=.
/pex-unix.o
;;
8093 if test x
$gcc_no_link = xyes
; then
8094 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
8095 ac_cv_func_mmap_fixed_mapped
=no
8098 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
8101 for ac_header
in stdlib.h unistd.h
8103 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.
$ac_ext <<_ACEOF
8112 cat confdefs.h
>>conftest.
$ac_ext
8113 cat >>conftest.
$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 #include <$ac_header>
8117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8120 grep -v '^ *+' conftest.er1
>conftest.err
8122 cat conftest.err
>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } >/dev
/null
; then
8125 if test -s conftest.err
; then
8126 ac_cpp_err
=$ac_c_preproc_warn_flag
8127 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8134 if test -z "$ac_cpp_err"; then
8135 eval "$as_ac_Header=yes"
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.
$ac_ext >&5
8140 eval "$as_ac_Header=no"
8142 rm -f conftest.err conftest.
$ac_ext
8144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8147 cat >>confdefs.h
<<_ACEOF
8148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155 for ac_func
in getpagesize
8157 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8158 echo "$as_me:$LINENO: checking for $ac_func" >&5
8159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8160 if eval "test \"\${$as_ac_var+set}\" = set"; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 if test x
$gcc_no_link = xyes
; then
8164 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8166 { (exit 1); exit 1; }; }
8168 cat >conftest.
$ac_ext <<_ACEOF
8171 cat confdefs.h
>>conftest.
$ac_ext
8172 cat >>conftest.
$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char $ac_func (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. Under hpux,
8178 including <limits.h> includes <sys/time.h> and causes problems
8179 checking for functions defined therein. */
8180 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8181 # include <limits.h>
8183 # include <assert.h>
8185 /* Override any gcc2 internal prototype to avoid an error. */
8190 /* We use char because int might match the return type of a gcc2
8191 builtin and then its argument prototype would still apply. */
8193 /* The GNU C library defines this for functions which it implements
8194 to always fail with ENOSYS. Some functions are actually named
8195 something starting with __ and the normal name is an alias. */
8196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8199 char (*f) () = $ac_func;
8208 return f != $ac_func;
8213 rm -f conftest.
$ac_objext conftest
$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>conftest.er1
8217 grep -v '^ *+' conftest.er1
>conftest.err
8219 cat conftest.err
>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try
='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 eval "$as_ac_var=yes"
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.
$ac_ext >&5
8239 eval "$as_ac_var=no"
8241 rm -f conftest.err conftest.
$ac_objext \
8242 conftest
$ac_exeext conftest.
$ac_ext
8244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8246 if test `eval echo '${'$as_ac_var'}'` = yes; then
8247 cat >>confdefs.h
<<_ACEOF
8248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8254 echo "$as_me:$LINENO: checking for working mmap" >&5
8255 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8256 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 if test "$cross_compiling" = yes; then
8260 ac_cv_func_mmap_fixed_mapped
=no
8262 cat >conftest.
$ac_ext <<_ACEOF
8265 cat confdefs.h
>>conftest.
$ac_ext
8266 cat >>conftest.
$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 /* malloc might have been renamed as rpl_malloc. */
8272 /* Thanks to Mike Haertel and Jim Avera for this test.
8273 Here is a matrix of mmap possibilities:
8274 mmap private not fixed
8275 mmap private fixed at somewhere currently unmapped
8276 mmap private fixed at somewhere already mapped
8277 mmap shared not fixed
8278 mmap shared fixed at somewhere currently unmapped
8279 mmap shared fixed at somewhere already mapped
8280 For private mappings, we should verify that changes cannot be read()
8281 back from the file, nor mmap's back from the file at a different
8282 address. (There have been systems where private was not correctly
8283 implemented like the infamous i386 svr4.0, and systems where the
8284 VM page cache was not coherent with the file system buffer cache
8285 like early versions of FreeBSD and possibly contemporary NetBSD.)
8286 For shared mappings, we should conversely verify that changes get
8287 propagated back to all the places they're supposed to be.
8289 Grep wants private fixed already mapped.
8290 The main things grep needs to know about mmap are:
8291 * does it exist and is it safe to write into the mmap'd area
8292 * how to use it (BSD variants) */
8295 #include <sys/mman.h>
8297 #if !STDC_HEADERS && !HAVE_STDLIB_H
8301 /* This mess was copied from the GNU getpagesize.h. */
8302 #if !HAVE_GETPAGESIZE
8303 /* Assume that all systems that can run configure have sys/param.h. */
8304 # if !HAVE_SYS_PARAM_H
8305 # define HAVE_SYS_PARAM_H 1
8308 # ifdef _SC_PAGESIZE
8309 # define getpagesize() sysconf(_SC_PAGESIZE)
8310 # else /* no _SC_PAGESIZE */
8311 # if HAVE_SYS_PARAM_H
8312 # include <sys/param.h>
8313 # ifdef EXEC_PAGESIZE
8314 # define getpagesize() EXEC_PAGESIZE
8315 # else /* no EXEC_PAGESIZE */
8317 # define getpagesize() NBPG * CLSIZE
8320 # endif /* no CLSIZE */
8321 # else /* no NBPG */
8323 # define getpagesize() NBPC
8324 # else /* no NBPC */
8326 # define getpagesize() PAGESIZE
8327 # endif /* PAGESIZE */
8328 # endif /* no NBPC */
8329 # endif /* no NBPG */
8330 # endif /* no EXEC_PAGESIZE */
8331 # else /* no HAVE_SYS_PARAM_H */
8332 # define getpagesize() 8192 /* punt totally */
8333 # endif /* no HAVE_SYS_PARAM_H */
8334 # endif /* no _SC_PAGESIZE */
8336 #endif /* no HAVE_GETPAGESIZE */
8341 char *data, *data2, *data3;
8345 pagesize = getpagesize ();
8347 /* First, make a file with some known garbage in it. */
8348 data = (char *) malloc (pagesize);
8351 for (i = 0; i < pagesize; ++i)
8352 *(data + i) = rand ();
8354 fd = creat ("conftest.mmap", 0600);
8357 if (write (fd, data, pagesize) != pagesize)
8361 /* Next, try to mmap the file at a fixed address which already has
8362 something else allocated at it. If we can, also make sure that
8363 we see the same garbage. */
8364 fd = open ("conftest.mmap", O_RDWR);
8367 data2 = (char *) malloc (2 * pagesize);
8370 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8371 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8372 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8374 for (i = 0; i < pagesize; ++i)
8375 if (*(data + i) != *(data2 + i))
8378 /* Finally, make sure that changes to the mapped area do not
8379 percolate back to the file as seen by read(). (This is a bug on
8380 some variants of i386 svr4.0.) */
8381 for (i = 0; i < pagesize; ++i)
8382 *(data2 + i) = *(data2 + i) + 1;
8383 data3 = (char *) malloc (pagesize);
8386 if (read (fd, data3, pagesize) != pagesize)
8388 for (i = 0; i < pagesize; ++i)
8389 if (*(data + i) != *(data3 + i))
8395 rm -f conftest
$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_func_mmap_fixed_mapped
=yes
8408 echo "$as_me: program exited with status $ac_status" >&5
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.
$ac_ext >&5
8413 ac_cv_func_mmap_fixed_mapped
=no
8415 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8418 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8419 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8422 cat >>confdefs.h
<<\_ACEOF
8431 echo "$as_me:$LINENO: checking for working strncmp" >&5
8432 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8433 if test "${ac_cv_func_strncmp_works+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 if test "$cross_compiling" = yes; then
8437 ac_cv_func_strncmp_works
=no
8439 cat >conftest.
$ac_ext <<_ACEOF
8442 cat confdefs.h
>>conftest.
$ac_ext
8443 cat >>conftest.
$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8446 /* Test by Jim Wilson and Kaveh Ghazi.
8447 Check whether strncmp reads past the end of its string parameters. */
8448 #include <sys/types.h>
8454 #ifdef HAVE_SYS_MMAN_H
8455 #include <sys/mman.h>
8459 #ifdef MAP_ANONYMOUS
8460 #define MAP_ANON MAP_ANONYMOUS
8462 #define MAP_ANON MAP_FILE
8473 #define MAP_LEN 0x10000
8477 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8481 dev_zero = open ("/dev/zero", O_RDONLY);
8485 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8486 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8487 if (p == (char *)-1)
8488 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8489 MAP_ANON|MAP_PRIVATE, -1, 0);
8490 if (p == (char *)-1)
8494 char *string = "__si_type_info";
8495 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8496 char *r = (char *) p + 0xe;
8502 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8507 rm -f conftest
$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_cv_func_strncmp_works
=yes
8520 echo "$as_me: program exited with status $ac_status" >&5
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.
$ac_ext >&5
8525 ac_cv_func_strncmp_works
=no
8527 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8529 rm -f core core.
* *.core
8531 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8532 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8533 if test $ac_cv_func_strncmp_works = no
; then
8535 "strncmp.$ac_objext" | \
8536 *" strncmp.$ac_objext" | \
8537 "strncmp.$ac_objext "* | \
8538 *" strncmp.$ac_objext "* ) ;;
8539 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
8545 # Install a library built with a cross compiler in $(tooldir) rather
8547 if test -z "${with_cross_host}"; then
8550 INSTALL_DEST
=tooldir
8556 for l
in x
$LIBOBJS; do
8564 # We need multilib support, but only if configuring for the target.
8565 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
8567 ac_config_commands
="$ac_config_commands default"
8569 cat >confcache
<<\_ACEOF
8570 # This file is a shell script that caches the results of configure
8571 # tests run on this system so they can be shared between configure
8572 # scripts and configure runs, see configure's option --config-cache.
8573 # It is not useful on other systems. If it contains results you don't
8574 # want to keep, you may remove or edit it.
8576 # config.status only pays attention to the cache file if you give it
8577 # the --recheck option to rerun configure.
8579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8585 # The following way of writing the cache mishandles newlines in values,
8586 # but we know of no workaround that is simple, portable, and efficient.
8587 # So, don't put newlines in cache variables' values.
8588 # Ultrix sh set writes to stderr and can't be redirected directly,
8589 # and sets the high bit in the cache file unless we assign to the vars.
8592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8594 # `set' does not quote correctly, so add quotes (double-quote
8595 # substitution turns \\\\ into \\, and sed turns \\ into \).
8598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8601 # `set' quotes correctly as required by POSIX, so do not add quotes.
8603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8614 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8615 if test -w $cache_file; then
8616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8617 cat confcache
>$cache_file
8619 echo "not updating unwritable cache $cache_file"
8624 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8625 # Let make expand exec_prefix.
8626 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8630 # trailing colons and then remove the whole line if VPATH becomes empty
8631 # (actually we leave an empty line to preserve line numbers).
8632 if test "x$srcdir" = x.
; then
8633 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8634 s/:*\$(srcdir):*/:/;
8635 s/:*\${srcdir}:*/:/;
8637 s/^\([^=]*=[ ]*\):*/\1/;
8643 DEFS
=-DHAVE_CONFIG_H
8647 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8648 # 1. Remove the extension, and $U if already installed.
8649 ac_i
=`echo "$ac_i" |
8650 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8652 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8653 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8657 LTLIBOBJS
=$ac_ltlibobjs
8661 : ${CONFIG_STATUS=./config.status}
8662 ac_clean_files_save
=$ac_clean_files
8663 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8664 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8665 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8666 cat >$CONFIG_STATUS <<_ACEOF
8668 # Generated by $as_me.
8669 # Run this file to recreate the current configuration.
8670 # Compiler output produced by configure, useful for debugging
8671 # configure, is in config.log if it exists.
8676 SHELL=\${CONFIG_SHELL-$SHELL}
8679 cat >>$CONFIG_STATUS <<\_ACEOF
8680 ## --------------------- ##
8681 ## M4sh Initialization. ##
8682 ## --------------------- ##
8684 # Be Bourne compatible
8685 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8688 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8689 # is contrary to our usage. Disable this feature.
8690 alias -g '${1+"$@"}'='"$@"'
8691 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8694 DUALCASE
=1; export DUALCASE
# for MKS sh
8696 # Support unset when possible.
8697 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8704 # Work around bugs in pre-3.0 UWIN ksh.
8705 $as_unset ENV MAIL MAILPATH
8712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8714 LC_TELEPHONE LC_TIME
8716 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8717 eval $as_var=C
; export $as_var
8723 # Required to use basename.
8724 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8730 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8731 as_basename
=basename
8737 # Name of the executable.
8738 as_me
=`$as_basename "$0" ||
8739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8740 X"$0" : 'X\(//\)$' \| \
8741 X"$0" : 'X\(/\)$' \| \
8742 . : '\(.\)' 2>/dev/null ||
8744 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8745 /^X\/\(\/\/\)$/{ s//\1/; q; }
8746 /^X\/\(\/\).*/{ s//\1/; q; }
8750 # PATH needs CR, and LINENO needs CR and PATH.
8751 # Avoid depending upon Character Ranges.
8752 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8753 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8754 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8755 as_cr_digits
='0123456789'
8756 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8758 # The user is always right.
8759 if test "${PATH_SEPARATOR+set}" != set; then
8760 echo "#! /bin/sh" >conf$$.sh
8761 echo "exit 0" >>conf$$.sh
8763 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8774 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8775 test "x$as_lineno_1" != "x$as_lineno_2" &&
8776 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8777 # Find who we are. Look in the path if we contain no path at all
8780 *[\\/]* ) as_myself
=$0 ;;
8781 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8785 test -z "$as_dir" && as_dir
=.
8786 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8791 # We did not find ourselves, most probably we were run as `sh COMMAND'
8792 # in which case we are not to be found in the path.
8793 if test "x$as_myself" = x
; then
8796 if test ! -f "$as_myself"; then
8797 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8798 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8799 { (exit 1); exit 1; }; }
8801 case $CONFIG_SHELL in
8803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8804 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8807 test -z "$as_dir" && as_dir
=.
8808 for as_base
in sh bash ksh sh5
; do
8811 if ("$as_dir/$as_base" -c '
8814 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8815 test "x$as_lineno_1" != "x$as_lineno_2" &&
8816 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8817 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8818 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8819 CONFIG_SHELL
=$as_dir/$as_base
8821 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8829 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8830 # uniformly replaced by the line number. The first 'sed' inserts a
8831 # line-number line before each line; the second 'sed' does the real
8832 # work. The second script uses 'N' to pair each line-number line
8833 # with the numbered line, and appends trailing '-' during
8834 # substitution so that $LINENO is not a special case at line end.
8835 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8836 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8837 sed '=' <$as_myself |
8842 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8845 s,^['$as_cr_digits']*\n,,
8847 chmod +x
$as_me.lineno ||
8848 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8849 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8850 { (exit 1); exit 1; }; }
8852 # Don't try to exec as it changes $[0], causing all sort of problems
8853 # (the dirname of $[0] is not the place where we might find the
8854 # original and so on. Autoconf is especially sensible to this).
8856 # Exit status is that of the last command.
8861 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8862 *c
*,-n*) ECHO_N
= ECHO_C
='
8864 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8865 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8868 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8874 rm -f conf$$ conf$$.exe conf$$.
file
8876 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8877 # We could just check for DJGPP; but this test a) works b) is more generic
8878 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8879 if test -f conf$$.exe
; then
8880 # Don't use ln at all; we don't have any links
8885 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8890 rm -f conf$$ conf$$.exe conf$$.
file
8892 if mkdir
-p .
2>/dev
/null
; then
8895 test -d .
/-p && rmdir .
/-p
8899 as_executable_p
="test -f"
8901 # Sed expression to map a string onto a valid CPP name.
8902 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8904 # Sed expression to map a string onto a valid variable name.
8905 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8909 # We need space, tab and new line, in precisely that order.
8919 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8920 # report actual input values of CONFIG_FILES etc. instead of their
8921 # values after options handling. Logging --version etc. is OK.
8925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8926 ## Running $as_me. ##
8931 This file was extended by $as_me, which was
8932 generated by GNU Autoconf 2.59. Invocation command line was
8934 CONFIG_FILES = $CONFIG_FILES
8935 CONFIG_HEADERS = $CONFIG_HEADERS
8936 CONFIG_LINKS = $CONFIG_LINKS
8937 CONFIG_COMMANDS = $CONFIG_COMMANDS
8941 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8945 # Files that config.status was made for.
8946 if test -n "$ac_config_files"; then
8947 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8950 if test -n "$ac_config_headers"; then
8951 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8954 if test -n "$ac_config_links"; then
8955 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8958 if test -n "$ac_config_commands"; then
8959 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8962 cat >>$CONFIG_STATUS <<\_ACEOF
8965 \`$as_me' instantiates files from templates according to the
8966 current configuration.
8968 Usage: $0 [OPTIONS] [FILE]...
8970 -h, --help print this help, then exit
8971 -V, --version print version number, then exit
8972 -q, --quiet do not print progress messages
8973 -d, --debug don't remove temporary files
8974 --recheck update $as_me by reconfiguring in the same conditions
8975 --file=FILE[:TEMPLATE]
8976 instantiate the configuration file FILE
8977 --header=FILE[:TEMPLATE]
8978 instantiate the configuration header FILE
8980 Configuration files:
8983 Configuration headers:
8986 Configuration commands:
8989 Report bugs to <bug-autoconf@gnu.org>."
8992 cat >>$CONFIG_STATUS <<_ACEOF
8995 configured by $0, generated by GNU Autoconf 2.59,
8996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8998 Copyright (C) 2003 Free Software Foundation, Inc.
8999 This config.status script is free software; the Free Software Foundation
9000 gives unlimited permission to copy, distribute and modify it."
9005 cat >>$CONFIG_STATUS <<\_ACEOF
9006 # If no file are specified by the user, then we need to provide default
9007 # value. By we need to know if files were specified by the user.
9013 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9014 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9022 *) # This is not an option, so the user has probably given explicit
9025 ac_need_defaults
=false
;;
9029 # Handling of the options.
9031 cat >>$CONFIG_STATUS <<\_ACEOF
9032 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9034 --version |
--vers* |
-V )
9035 echo "$ac_cs_version"; exit 0 ;;
9037 # Conflict between --help and --header
9038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9039 Try \`$0 --help' for more information." >&5
9040 echo "$as_me: error: ambiguous option: $1
9041 Try \`$0 --help' for more information." >&2;}
9042 { (exit 1); exit 1; }; };;
9043 --help |
--hel |
-h )
9044 echo "$ac_cs_usage"; exit 0 ;;
9045 --debug |
--d* |
-d )
9047 --file |
--fil |
--fi |
--f )
9049 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9050 ac_need_defaults
=false
;;
9051 --header |
--heade |
--head |
--hea )
9053 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9054 ac_need_defaults
=false
;;
9055 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9056 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9061 Try \`$0 --help' for more information." >&5
9062 echo "$as_me: error: unrecognized option: $1
9063 Try \`$0 --help' for more information." >&2;}
9064 { (exit 1); exit 1; }; } ;;
9066 *) ac_config_targets
="$ac_config_targets $1" ;;
9072 ac_configure_extra_args
=
9074 if $ac_cs_silent; then
9076 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9080 cat >>$CONFIG_STATUS <<_ACEOF
9081 if \$ac_cs_recheck; then
9082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9088 cat >>$CONFIG_STATUS <<_ACEOF
9090 # INIT-COMMANDS section.
9096 with_target_subdir=${with_target_subdir}
9097 with_multisubdir=${with_multisubdir}
9098 ac_configure_args="--enable-multilib ${ac_configure_args}"
9099 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9100 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9101 libiberty_topdir=${libiberty_topdir}
9108 cat >>$CONFIG_STATUS <<\_ACEOF
9109 for ac_config_target
in $ac_config_targets
9111 case "$ac_config_target" in
9112 # Handling of arguments.
9113 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9114 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
9115 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9116 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9119 { (exit 1); exit 1; }; };;
9123 # If the user did not use the arguments to specify the items to instantiate,
9124 # then the envvar interface is used. Set only those that are not.
9125 # We use the long form for the default assignment because of an extremely
9126 # bizarre bug on SunOS 4.1.3.
9127 if $ac_need_defaults; then
9128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9133 # Have a temporary directory for convenience. Make it in the build tree
9134 # simply because there is no reason to put it here, and in addition,
9135 # creating and moving files from /tmp can sometimes cause problems.
9136 # Create a temporary directory, and hook for its removal unless debugging.
9139 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9140 trap '{ (exit 1); exit 1; }' 1 2 13 15
9143 # Create a (secure) tmp directory for tmp files.
9146 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9147 test -n "$tmp" && test -d "$tmp"
9150 tmp
=.
/confstat$$
-$RANDOM
9151 (umask 077 && mkdir
$tmp)
9154 echo "$me: cannot create a temporary directory in ." >&2
9155 { (exit 1); exit 1; }
9160 cat >>$CONFIG_STATUS <<_ACEOF
9163 # CONFIG_FILES section.
9166 # No need to generate the scripts if there are no CONFIG_FILES.
9167 # This happens for instance when ./config.status config.h
9168 if test -n "\$CONFIG_FILES"; then
9169 # Protect against being on the right side of a sed subst in config.status.
9170 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9171 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9172 s,@SHELL@,$SHELL,;t t
9173 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9174 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9175 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9176 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9177 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9178 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9179 s,@exec_prefix@,$exec_prefix,;t t
9180 s,@prefix@,$prefix,;t t
9181 s,@program_transform_name@,$program_transform_name,;t t
9182 s,@bindir@,$bindir,;t t
9183 s,@sbindir@,$sbindir,;t t
9184 s,@libexecdir@,$libexecdir,;t t
9185 s,@datadir@,$datadir,;t t
9186 s,@sysconfdir@,$sysconfdir,;t t
9187 s,@sharedstatedir@,$sharedstatedir,;t t
9188 s,@localstatedir@,$localstatedir,;t t
9189 s,@libdir@,$libdir,;t t
9190 s,@includedir@,$includedir,;t t
9191 s,@oldincludedir@,$oldincludedir,;t t
9192 s,@infodir@,$infodir,;t t
9193 s,@mandir@,$mandir,;t t
9194 s,@build_alias@,$build_alias,;t t
9195 s,@host_alias@,$host_alias,;t t
9196 s,@target_alias@,$target_alias,;t t
9198 s,@ECHO_C@,$ECHO_C,;t t
9199 s,@ECHO_N@,$ECHO_N,;t t
9200 s,@ECHO_T@,$ECHO_T,;t t
9202 s,@libiberty_topdir@,$libiberty_topdir,;t t
9203 s,@MAINT@,$MAINT,;t t
9204 s,@NOTMAINT@,$NOTMAINT,;t t
9205 s,@MAKEINFO@,$MAKEINFO,;t t
9206 s,@BUILD_INFO@,$BUILD_INFO,;t t
9208 s,@HAVE_PERL@,$HAVE_PERL,;t t
9209 s,@build@,$build,;t t
9210 s,@build_cpu@,$build_cpu,;t t
9211 s,@build_vendor@,$build_vendor,;t t
9212 s,@build_os@,$build_os,;t t
9214 s,@host_cpu@,$host_cpu,;t t
9215 s,@host_vendor@,$host_vendor,;t t
9216 s,@host_os@,$host_os,;t t
9218 s,@ac_ct_AR@,$ac_ct_AR,;t t
9219 s,@RANLIB@,$RANLIB,;t t
9220 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9222 s,@CFLAGS@,$CFLAGS,;t t
9223 s,@LDFLAGS@,$LDFLAGS,;t t
9224 s,@CPPFLAGS@,$CPPFLAGS,;t t
9225 s,@ac_ct_CC@,$ac_ct_CC,;t t
9226 s,@EXEEXT@,$EXEEXT,;t t
9227 s,@OBJEXT@,$OBJEXT,;t t
9229 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9230 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9231 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9232 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9233 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9234 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9235 s,@EGREP@,$EGREP,;t t
9236 s,@LIBOBJS@,$LIBOBJS,;t t
9237 s,@CHECK@,$CHECK,;t t
9238 s,@target_header_dir@,$target_header_dir,;t t
9239 s,@pexecute@,$pexecute,;t t
9240 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9242 /@host_makefile_frag@/r $host_makefile_frag
9243 s,@host_makefile_frag@,,;t t
9248 cat >>$CONFIG_STATUS <<\_ACEOF
9249 # Split the substitutions into bite-sized pieces for seds with
9250 # small command number limits, like on Digital OSF/1 and HP-UX.
9252 ac_sed_frag
=1 # Number of current file.
9253 ac_beg
=1 # First line for current file.
9254 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9257 while $ac_more_lines; do
9258 if test $ac_beg -gt 1; then
9259 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9261 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9263 if test ! -s $tmp/subs.frag
; then
9266 # The purpose of the label and of the branching condition is to
9267 # speed up the sed processing (if there are no `@' at all, there
9268 # is no need to browse any of the substitutions).
9269 # These are the two extra sed commands mentioned above.
9271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9272 if test -z "$ac_sed_cmds"; then
9273 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9275 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9277 ac_sed_frag
=`expr $ac_sed_frag + 1`
9279 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9282 if test -z "$ac_sed_cmds"; then
9285 fi # test -n "$CONFIG_FILES"
9288 cat >>$CONFIG_STATUS <<\_ACEOF
9289 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9292 - |
*:- |
*:-:* ) # input from stdin
9294 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9295 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9296 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9297 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9298 * ) ac_file_in
=$ac_file.
in ;;
9301 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9302 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9304 X"$ac_file" : 'X\(//\)[^/]' \| \
9305 X"$ac_file" : 'X\(//\)$' \| \
9306 X"$ac_file" : 'X\(/\)' \| \
9307 . : '\(.\)' 2>/dev/null ||
9309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9311 /^X\(\/\/\)$/{ s//\1/; q; }
9312 /^X\(\/\).*/{ s//\1/; q; }
9314 { if $as_mkdir_p; then
9319 while test ! -d "$as_dir"; do
9320 as_dirs
="$as_dir $as_dirs"
9321 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9323 X"$as_dir" : 'X\(//\)[^/]' \| \
9324 X"$as_dir" : 'X\(//\)$' \| \
9325 X"$as_dir" : 'X\(/\)' \| \
9326 . : '\(.\)' 2>/dev/null ||
9328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9330 /^X\(\/\/\)$/{ s//\1/; q; }
9331 /^X\(\/\).*/{ s//\1/; q; }
9334 test ! -n "$as_dirs" || mkdir
$as_dirs
9335 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9337 { (exit 1); exit 1; }; }; }
9341 if test "$ac_dir" != .
; then
9342 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9343 # A "../" for each directory in $ac_dir_suffix.
9344 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9346 ac_dir_suffix
= ac_top_builddir
=
9350 .
) # No --srcdir option. We are building in place.
9352 if test -z "$ac_top_builddir"; then
9355 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9357 [\\/]* | ?
:[\\/]* ) # Absolute path.
9358 ac_srcdir
=$srcdir$ac_dir_suffix;
9359 ac_top_srcdir
=$srcdir ;;
9361 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9362 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9365 # Do not use `cd foo && pwd` to compute absolute paths, because
9366 # the directories may not exist.
9368 .
) ac_abs_builddir
="$ac_dir";;
9371 .
) ac_abs_builddir
=`pwd`;;
9372 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9373 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9376 case $ac_abs_builddir in
9377 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9379 case ${ac_top_builddir}.
in
9380 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9381 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9382 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9385 case $ac_abs_builddir in
9386 .
) ac_abs_srcdir
=$ac_srcdir;;
9389 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9390 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9391 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9394 case $ac_abs_builddir in
9395 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9397 case $ac_top_srcdir in
9398 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9399 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9400 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9406 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9407 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9410 # Let's still pretend it is `configure' which instantiates (i.e., don't
9411 # use $as_me), people would be surprised to read:
9412 # /* config.h. Generated by config.status. */
9413 if test x
"$ac_file" = x-
; then
9416 configure_input
="$ac_file. "
9418 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9419 sed 's,.*/,,'` by configure."
9421 # First look for the input files in the build tree, otherwise in the
9423 ac_file_inputs
=`IFS=:
9424 for f in $ac_file_in; do
9426 -) echo $tmp/stdin ;;
9428 # Absolute (can't be DOS-style, as IFS=:)
9429 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9430 echo "$as_me: error: cannot find input file: $f" >&2;}
9431 { (exit 1); exit 1; }; }
9434 if test -f "$f"; then
9437 elif test -f "$srcdir/$f"; then
9442 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9443 echo "$as_me: error: cannot find input file: $f" >&2;}
9444 { (exit 1); exit 1; }; }
9447 done` ||
{ (exit 1); exit 1; }
9449 if test x
"$ac_file" != x-
; then
9450 { echo "$as_me:$LINENO: creating $ac_file" >&5
9451 echo "$as_me: creating $ac_file" >&6;}
9455 cat >>$CONFIG_STATUS <<_ACEOF
9459 cat >>$CONFIG_STATUS <<\_ACEOF
9461 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9462 s
,@configure_input@
,$configure_input,;t t
9463 s
,@srcdir@
,$ac_srcdir,;t t
9464 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9465 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9466 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9467 s
,@builddir@
,$ac_builddir,;t t
9468 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9469 s
,@top_builddir@
,$ac_top_builddir,;t t
9470 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9471 s
,@INSTALL@
,$ac_INSTALL,;t t
9472 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9474 if test x"$ac_file" != x-; then
9475 mv $tmp/out $ac_file
9483 cat >>$CONFIG_STATUS <<\_ACEOF
9486 # CONFIG_HEADER section.
9489 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9490 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9492 # ac_d sets the value in "#define NAME VALUE" lines.
9493 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9494 ac_dB
='[ ].*$,\1#\2'
9497 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9498 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9499 ac_uB
='$,\1#\2define\3'
9503 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9506 - |
*:- |
*:-:* ) # input from stdin
9508 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9509 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9510 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9511 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9512 * ) ac_file_in
=$ac_file.
in ;;
9515 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9516 echo "$as_me: creating $ac_file" >&6;}
9518 # First look for the input files in the build tree, otherwise in the
9520 ac_file_inputs
=`IFS=:
9521 for f in $ac_file_in; do
9523 -) echo $tmp/stdin ;;
9525 # Absolute (can't be DOS-style, as IFS=:)
9526 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9527 echo "$as_me: error: cannot find input file: $f" >&2;}
9528 { (exit 1); exit 1; }; }
9529 # Do quote $f, to prevent DOS paths from being IFS'd.
9532 if test -f "$f"; then
9535 elif test -f "$srcdir/$f"; then
9540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9541 echo "$as_me: error: cannot find input file: $f" >&2;}
9542 { (exit 1); exit 1; }; }
9545 done` ||
{ (exit 1); exit 1; }
9546 # Remove the trailing spaces.
9547 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9551 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9552 # `conftest.undefs', that substitutes the proper values into
9553 # config.h.in to produce config.h. The first handles `#define'
9554 # templates, and the second `#undef' templates.
9555 # And first: Protect against being on the right side of a sed subst in
9556 # config.status. Protect against being in an unquoted here document
9558 rm -f conftest.defines conftest.undefs
9559 # Using a here document instead of a string reduces the quoting nightmare.
9560 # Putting comments in sed scripts is not portable.
9562 # `end' is used to avoid that the second main sed command (meant for
9563 # 0-ary CPP macros) applies to n-ary macro definitions.
9564 # See the Autoconf documentation for `clear'.
9565 cat >confdef2sed.
sed <<\_ACEOF
9570 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9572 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9575 # If some macros were called several times there might be several times
9576 # the same #defines, which is useless. Nevertheless, we may not want to
9577 # sort them, since we want the *last* AC-DEFINE to be honored.
9578 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9579 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9580 rm -f confdef2sed.sed
9582 # This sed command replaces #undef with comments. This is necessary, for
9583 # example, in the case of _POSIX_SOURCE, which is predefined and required
9584 # on some systems where configure will not decide to define it.
9585 cat >>conftest.undefs <<\_ACEOF
9586 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9589 # Break up conftest.defines because some shells have a limit on the size
9590 # of here documents, and old seds have small limits too (100 cmds).
9591 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9592 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9593 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9594 echo ' :' >>$CONFIG_STATUS
9596 while grep . conftest.defines >/dev/null
9598 # Write a limited-size here document to $tmp/defines.sed.
9599 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9600 # Speed up: don't consider the non `#define' lines.
9601 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9602 # Work around the forget-to-reset-the-flag bug.
9603 echo 't clr' >>$CONFIG_STATUS
9604 echo ': clr' >>$CONFIG_STATUS
9605 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9607 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9611 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9612 rm -f conftest.defines
9613 mv conftest.
tail conftest.defines
9615 rm -f conftest.defines
9616 echo ' fi # grep' >>$CONFIG_STATUS
9617 echo >>$CONFIG_STATUS
9619 # Break up conftest.undefs because some shells have a limit on the size
9620 # of here documents, and old seds have small limits too (100 cmds).
9621 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9623 while grep . conftest.undefs
>/dev
/null
9625 # Write a limited-size here document to $tmp/undefs.sed.
9626 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9627 # Speed up: don't consider the non
`#undef'
9628 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9629 # Work around the forget-to-reset-the-flag bug.
9630 echo 't clr' >>$CONFIG_STATUS
9631 echo ': clr' >>$CONFIG_STATUS
9632 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9634 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9638 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9639 rm -f conftest.undefs
9640 mv conftest.tail conftest.undefs
9642 rm -f conftest.undefs
9644 cat >>$CONFIG_STATUS <<\_ACEOF
9645 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9646 # use $as_me), people would be surprised to read:
9647 # /* config.h. Generated by config.status. */
9648 if test x
"$ac_file" = x-
; then
9649 echo "/* Generated by configure. */" >$tmp/config.h
9651 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9653 cat $tmp/in >>$tmp/config.h
9655 if test x
"$ac_file" != x-
; then
9656 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9657 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9658 echo "$as_me: $ac_file is unchanged" >&6;}
9660 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9662 X"$ac_file" : 'X\(//\)[^/]' \| \
9663 X"$ac_file" : 'X\(//\)$' \| \
9664 X"$ac_file" : 'X\(/\)' \| \
9665 . : '\(.\)' 2>/dev/null ||
9667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9669 /^X\(\/\/\)$/{ s//\1/; q; }
9670 /^X\(\/\).*/{ s//\1/; q; }
9672 { if $as_mkdir_p; then
9677 while test ! -d "$as_dir"; do
9678 as_dirs
="$as_dir $as_dirs"
9679 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9681 X"$as_dir" : 'X\(//\)[^/]' \| \
9682 X"$as_dir" : 'X\(//\)$' \| \
9683 X"$as_dir" : 'X\(/\)' \| \
9684 . : '\(.\)' 2>/dev/null ||
9686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9688 /^X\(\/\/\)$/{ s//\1/; q; }
9689 /^X\(\/\).*/{ s//\1/; q; }
9692 test ! -n "$as_dirs" || mkdir
$as_dirs
9693 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9694 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9695 { (exit 1); exit 1; }; }; }
9698 mv $tmp/config.h
$ac_file
9706 cat >>$CONFIG_STATUS <<\_ACEOF
9709 # CONFIG_COMMANDS section.
9711 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9712 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9713 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9714 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9715 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9716 X"$ac_dest" : 'X\(//\)[^/]' \| \
9717 X"$ac_dest" : 'X\(//\)$' \| \
9718 X"$ac_dest" : 'X\(/\)' \| \
9719 . : '\(.\)' 2>/dev/null ||
9721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9723 /^X\(\/\/\)$/{ s//\1/; q; }
9724 /^X\(\/\).*/{ s//\1/; q; }
9726 { if $as_mkdir_p; then
9731 while test ! -d "$as_dir"; do
9732 as_dirs
="$as_dir $as_dirs"
9733 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9735 X"$as_dir" : 'X\(//\)[^/]' \| \
9736 X"$as_dir" : 'X\(//\)$' \| \
9737 X"$as_dir" : 'X\(/\)' \| \
9738 . : '\(.\)' 2>/dev/null ||
9740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9742 /^X\(\/\/\)$/{ s//\1/; q; }
9743 /^X\(\/\).*/{ s//\1/; q; }
9746 test ! -n "$as_dirs" || mkdir
$as_dirs
9747 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9748 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9749 { (exit 1); exit 1; }; }; }
9753 if test "$ac_dir" != .
; then
9754 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9755 # A "../" for each directory in $ac_dir_suffix.
9756 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9758 ac_dir_suffix
= ac_top_builddir
=
9762 .
) # No --srcdir option. We are building in place.
9764 if test -z "$ac_top_builddir"; then
9767 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9769 [\\/]* | ?
:[\\/]* ) # Absolute path.
9770 ac_srcdir
=$srcdir$ac_dir_suffix;
9771 ac_top_srcdir
=$srcdir ;;
9773 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9774 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9777 # Do not use `cd foo && pwd` to compute absolute paths, because
9778 # the directories may not exist.
9780 .
) ac_abs_builddir
="$ac_dir";;
9783 .
) ac_abs_builddir
=`pwd`;;
9784 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9785 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9788 case $ac_abs_builddir in
9789 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9791 case ${ac_top_builddir}.
in
9792 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9793 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9794 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9797 case $ac_abs_builddir in
9798 .
) ac_abs_srcdir
=$ac_srcdir;;
9801 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9802 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9803 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9806 case $ac_abs_builddir in
9807 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9809 case $ac_top_srcdir in
9810 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9811 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9812 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9817 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9818 echo "$as_me: executing $ac_dest commands" >&6;}
9820 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
9821 if test -n "$CONFIG_FILES"; then
9822 if test -n "${with_target_subdir}"; then
9823 # FIXME: We shouldn't need to set ac_file
9825 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
9826 .
${libiberty_topdir}/config-ml.
in
9833 cat >>$CONFIG_STATUS <<\_ACEOF
9835 { (exit 0); exit 0; }
9837 chmod +x
$CONFIG_STATUS
9838 ac_clean_files
=$ac_clean_files_save
9841 # configure is writing to config.log, and then calls config.status.
9842 # config.status does its own redirection, appending to config.log.
9843 # Unfortunately, on DOS this fails, as config.log is still kept open
9844 # by configure, so config.status won't be able to write to it; its
9845 # output is simply discarded. So we exec the FD to /dev/null,
9846 # effectively closing config.log, so it can be properly (re)opened and
9847 # appended to by config.status. When coming back to configure, we
9848 # need to make the FD available again.
9849 if test "$no_create" != yes; then
9851 ac_config_status_args
=
9852 test "$silent" = yes &&
9853 ac_config_status_args
="$ac_config_status_args --quiet"
9855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9858 # would make configure fail if this is the last instruction.
9859 $ac_cs_success ||
{ (exit 1); exit 1; }