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"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2357 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2359 GCC=`test $ac_compiler_gnu = yes && echo yes`
2360 ac_test_CFLAGS=${CFLAGS+set}
2361 ac_save_CFLAGS=$CFLAGS
2363 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_g+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2416 if test "$ac_test_CFLAGS" = set; then
2417 CFLAGS=$ac_save_CFLAGS
2418 elif test $ac_cv_prog_cc_g = yes; then
2419 if test "$GCC" = yes; then
2425 if test "$GCC" = yes; then
2431 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2432 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2433 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 ac_cv_prog_cc_stdc=no
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2446 #include <sys/types.h>
2447 #include <sys/stat.h>
2448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2449 struct buf { int x; };
2450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2451 static char *e (p, i)
2457 static char *f (char * (*g) (char **, int), char **p, ...)
2462 s = g (p, va_arg (v,int));
2467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2468 function prototypes and stuff, but not '\xHH' hex character constants.
2469 These don't provoke an error unfortunately, instead are silently treated
2470 as 'x'. The following induces an error, until -std1 is added to get
2471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2472 array size at least. It's necessary to write '\x00'==0 to get something
2473 that's true only with -std1. */
2474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2476 int test (int i, double x);
2477 struct s1 {int (*f) (int a);};
2478 struct s2 {int (*f) (double a);};
2479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2490 # Don't try gcc -ansi; that turns off useful extensions and
2491 # breaks some systems' header files.
2492 # AIX -qlanglvl=ansi
2493 # Ultrix and OSF/1 -std1
2494 # HP-UX 10.20 and later -Ae
2495 # HP-UX older versions -Aa -D_HPUX_SOURCE
2496 # SVR4 -Xc -D__EXTENSIONS__
2497 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2499 CC="$ac_save_CC $ac_arg"
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_cv_prog_cc_stdc=$ac_arg
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2529 rm -f conftest.err conftest.$ac_objext
2531 rm -f conftest.$ac_ext conftest.$ac_objext
2536 case "x$ac_cv_prog_cc_stdc" in
2538 echo "$as_me:$LINENO: result: none needed" >&5
2539 echo "${ECHO_T}none needed" >&6 ;;
2541 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2542 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2543 CC="$CC $ac_cv_prog_cc_stdc" ;;
2546 # Some people use a C++ compiler to compile C. Since we use `exit',
2547 # in C++ we need to declare it. In case someone uses the same compiler
2548 # for both compiling C and C++ we need to have the C++ compiler decide
2549 # the declaration of exit, since it's the most demanding environment.
2550 cat >conftest.$ac_ext <<_ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 for ac_declaration in \
2579 'extern "C" void std::exit (int) throw (); using std::exit;' \
2580 'extern "C" void std::exit (int); using std::exit;' \
2581 'extern "C" void exit (int) throw ();' \
2582 'extern "C" void exit (int);' \
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 if test -n "$ac_declaration"; then
2678 echo '#ifdef __cplusplus' >>confdefs.h
2679 echo $ac_declaration >>confdefs.h
2680 echo '#endif' >>confdefs.h
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2701 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2702 # On Suns, sometimes $CPP names a directory.
2703 if test -n "$CPP" && test -d "$CPP"; then
2706 if test -z "$CPP"; then
2707 if test "${ac_cv_prog_CPP+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 # Double quotes because CPP needs to be expanded
2711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2714 for ac_c_preproc_warn_flag in '' yes
2716 # Use a header file that comes with gcc, so configuring glibc
2717 # with a fresh cross-compiler works.
2718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2719 # <limits.h> exists even on freestanding compilers.
2720 # On the NeXT, cc -E runs the code through the compiler's parser,
2721 # not just through cpp. "Syntax error" is here to catch this case.
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2729 # include <limits.h>
2731 # include <assert.h>
2735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } >/dev/null; then
2743 if test -s conftest.err; then
2744 ac_cpp_err=$ac_c_preproc_warn_flag
2745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2752 if test -z "$ac_cpp_err"; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 # Broken: fails on valid input.
2761 rm -f conftest.err conftest.$ac_ext
2763 # OK, works on sane cases. Now check whether non-existent headers
2764 # can be detected and how.
2765 cat >conftest.$ac_ext <<_ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #include <ac_nonexistent.h>
2773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } >/dev/null; then
2781 if test -s conftest.err; then
2782 ac_cpp_err=$ac_c_preproc_warn_flag
2783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2790 if test -z "$ac_cpp_err"; then
2791 # Broken: success on invalid input.
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 # Passes both tests.
2801 rm -f conftest.err conftest.$ac_ext
2804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2805 rm -f conftest.err conftest.$ac_ext
2806 if $ac_preproc_ok; then
2818 echo "$as_me:$LINENO: result: $CPP" >&5
2819 echo "${ECHO_T}$CPP" >&6
2821 for ac_c_preproc_warn_flag in '' yes
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2826 # <limits.h> exists even on freestanding compilers.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 # include <limits.h>
2838 # include <assert.h>
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null; then
2850 if test -s conftest.err; then
2851 ac_cpp_err=$ac_c_preproc_warn_flag
2852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2859 if test -z "$ac_cpp_err"; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 # Broken: fails on valid input.
2868 rm -f conftest.err conftest.$ac_ext
2870 # OK, works on sane cases. Now check whether non-existent headers
2871 # can be detected and how.
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null; then
2888 if test -s conftest.err; then
2889 ac_cpp_err=$ac_c_preproc_warn_flag
2890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2897 if test -z "$ac_cpp_err"; then
2898 # Broken: success on invalid input.
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 # Passes both tests.
2908 rm -f conftest.err conftest.$ac_ext
2911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2912 rm -f conftest.err conftest.$ac_ext
2913 if $ac_preproc_ok; then
2916 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 ac_c_preproc_warn_flag=yes
2932 if test x$GCC = xyes; then
2933 ac_libiberty_warn_cflags='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes'
2937 if test "x$CC" != xcc; then
2938 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2939 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2941 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2942 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2944 set dummy $CC; ac_cc=`echo $2 |
2945 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2946 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2964 # Make sure it works both with $CC and with simple cc.
2965 # We do the test twice because some compilers refuse to overwrite an
2966 # existing .o file with -o, though they will create one.
2967 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2968 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); };
2979 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2980 if test "x$CC" != xcc; then
2981 # Test first that cc exists at all.
2982 if { ac_try='cc -c conftest.$ac_ext >&5'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2989 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); };
3003 # cc exists but doesn't like -o.
3004 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3009 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3014 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016 echo "${ECHO_T}yes" >&6
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3021 cat >>confdefs.h <<\_ACEOF
3022 #define NO_MINUS_C_MINUS_O 1
3027 # autoconf is lame and doesn't give us any substitution variable for this.
3028 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3029 NO_MINUS_C_MINUS_O=yes
3031 OUTPUT_OPTION='-o $@'
3037 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3039 if test "${ac_cv_c_const+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3052 /* FIXME: Include the comments suggested by Paul. */
3054 /* Ultrix mips cc rejects this. */
3055 typedef int charset[2];
3057 /* SunOS 4.1.1 cc rejects this. */
3058 char const *const *ccp;
3060 /* NEC SVR4.0.2 mips cc rejects this. */
3061 struct point {int x, y;};
3062 static struct point const zero = {0,0};
3063 /* AIX XL C 1.02.0.0 rejects this.
3064 It does not let you subtract one const X* pointer from another in
3065 an arm of an if-expression whose if-part is not a constant
3067 const char *g = "string";
3068 ccp = &g + (g ? g-g : 0);
3069 /* HPUX 7.0 cc rejects these. */
3072 ccp = (char const *const *) p;
3073 { /* SCO 3.2v4 cc rejects this. */
3075 char const *s = 0 ? (char *) 0 : (char const *) 0;
3079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3081 const int *foo = &x[0];
3084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3085 typedef const int *iptr;
3089 { /* AIX XL C 1.02.0.0 rejects this saying
3090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3091 struct s { int j; const int *ap[3]; };
3092 struct s *b; b->j = 5;
3094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3135 echo "${ECHO_T}$ac_cv_c_const" >&6
3136 if test $ac_cv_c_const = no; then
3138 cat >>confdefs.h <<\_ACEOF
3144 echo "$as_me:$LINENO: checking for inline" >&5
3145 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3146 if test "${ac_cv_c_inline+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 for ac_kw in inline __inline__ __inline; do
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3159 static $ac_kw foo_t static_foo () {return 0; }
3160 $ac_kw foo_t foo () {return 0; }
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_c_inline=$ac_kw; break
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3197 echo "${ECHO_T}$ac_cv_c_inline" >&6
3200 case $ac_cv_c_inline in
3203 case $ac_cv_c_inline in
3205 *) ac_val=$ac_cv_c_inline;;
3207 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_val
3215 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3216 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3217 if test "${ac_cv_c_bigendian+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # See if sys/param.h defines the BYTE_ORDER macro.
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227 #include <sys/types.h>
3228 #include <sys/param.h>
3233 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 # It does; now see whether it defined to BIG_ENDIAN or not.
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/param.h>
3276 #if BYTE_ORDER != BIG_ENDIAN
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>conftest.er1
3288 grep -v '^ *+' conftest.er1 >conftest.err
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -z "$ac_c_werror_flag"
3294 || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_c_bigendian=yes
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 ac_cv_c_bigendian=no
3313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 # It does not; compile a test program.
3319 if test "$cross_compiling" = yes; then
3320 # try to guess the endianness by grepping values into an object file
3321 ac_cv_c_bigendian=unknown
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3329 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3330 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3331 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3332 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3333 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3337 _ascii (); _ebcdic ();
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3365 ac_cv_c_bigendian=yes
3367 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3368 if test "$ac_cv_c_bigendian" = unknown; then
3369 ac_cv_c_bigendian=no
3371 # finding both strings is unlikely to happen, but who knows?
3372 ac_cv_c_bigendian=unknown
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3391 /* Are we little or big endian? From Harbison&Steele. */
3395 char c[sizeof (long)];
3398 exit (u.c[sizeof (long) - 1] == 1);
3401 rm -f conftest$ac_exeext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3403 (eval $ac_link) 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_cv_c_bigendian=no
3414 echo "$as_me: program exited with status $ac_status" >&5
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3419 ac_cv_c_bigendian=yes
3421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3427 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3428 case $ac_cv_c_bigendian in
3431 cat >>confdefs.h <<\_ACEOF
3432 #define WORDS_BIGENDIAN 1
3438 { { echo "$as_me:$LINENO: error: unknown endianness
3439 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3440 echo "$as_me: error: unknown endianness
3441 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3442 { (exit 1); exit 1; }; } ;;
3448 ac_config_headers="$ac_config_headers config.h:config.in"
3452 # Find a good install program. We prefer a C program (faster),
3453 # so one script is as good as another. But avoid the broken or
3454 # incompatible versions:
3455 # SysV /etc/install, /usr/sbin/install
3456 # SunOS /usr/etc/install
3457 # IRIX /sbin/install
3459 # AmigaOS /C/install, which installs bootblocks on floppy discs
3460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3463 # OS/2's system install, which has a completely different semantic
3464 # ./install, which can be erroneously created by make from ./install.sh.
3465 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3466 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3467 if test -z "$INSTALL"; then
3468 if test "${ac_cv_path_install+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 # Account for people who put trailing slashes in PATH elements.
3478 ./ | .// | /cC/* | \
3479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3480 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3483 # OSF1 and SCO ODT 3.0 have their own names for install.
3484 # Don't use installbsd from OSF since it installs stuff as root
3486 for ac_prog in ginstall scoinst install; do
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3489 if test $ac_prog = install &&
3490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3491 # AIX install. It has an incompatible calling convention.
3493 elif test $ac_prog = install &&
3494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495 # program-specific install script used by HP pwplus--don't use.
3498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3510 if test "${ac_cv_path_install+set}" = set; then
3511 INSTALL=$ac_cv_path_install
3513 # As a last resort, use the slow shell script. We don't cache a
3514 # path for INSTALL within a source directory, because that will
3515 # break other packages using the cache if that directory is
3516 # removed, or if the path is relative.
3517 INSTALL=$ac_install_sh
3520 echo "$as_me:$LINENO: result: $INSTALL" >&5
3521 echo "${ECHO_T}$INSTALL" >&6
3523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3524 # It thinks the first close brace ends the variable substitution.
3525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3532 . ${srcdir}/config.table
3533 host_makefile_frag=${frag}
3536 # It's OK to check for header files. Although the compiler may not be
3537 # able to link anything, it had better be able to at least compile
3564 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
3566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3567 echo "$as_me:$LINENO: checking for $ac_header" >&5
3568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <$ac_header>
3580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } >/dev/null; then
3588 if test -s conftest.err; then
3589 ac_cpp_err=$ac_c_preproc_warn_flag
3590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597 if test -z "$ac_cpp_err"; then
3598 eval "$as_ac_Header=yes"
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 eval "$as_ac_Header=no"
3605 rm -f conftest.err conftest.$ac_ext
3607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3610 cat >>confdefs.h <<_ACEOF
3611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3617 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3618 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3619 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 #include <sys/types.h>
3629 #include <sys/wait.h>
3631 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3634 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3642 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>conftest.er1
3651 grep -v '^ *+' conftest.er1 >conftest.err
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 { ac_try='test -z "$ac_c_werror_flag"
3657 || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_cv_header_sys_wait_h=yes
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 ac_cv_header_sys_wait_h=no
3676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3679 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3680 if test $ac_cv_header_sys_wait_h = yes; then
3682 cat >>confdefs.h <<\_ACEOF
3683 #define HAVE_SYS_WAIT_H 1
3688 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3689 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3690 if test "${ac_cv_header_time+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <sys/types.h>
3700 #include <sys/time.h>
3706 if ((struct tm *) 0)
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_header_time=yes
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_cv_header_time=no
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3744 echo "${ECHO_T}$ac_cv_header_time" >&6
3745 if test $ac_cv_header_time = yes; then
3747 cat >>confdefs.h <<\_ACEOF
3748 #define TIME_WITH_SYS_TIME 1
3754 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3755 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3756 if test "${libiberty_cv_declare_errno+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3774 rm -f conftest.$ac_objext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 libiberty_cv_declare_errno=no
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 libiberty_cv_declare_errno=yes
3803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3806 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3807 if test $libiberty_cv_declare_errno = yes
3809 cat >>confdefs.h <<\_ACEOF
3810 #define NEED_DECLARATION_ERRNO 1
3816 # Determine the size of an int for struct fibnode.
3817 echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3819 if test "${ac_cv_prog_egrep+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3823 then ac_cv_prog_egrep='grep -E'
3824 else ac_cv_prog_egrep='egrep'
3827 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3828 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3829 EGREP=$ac_cv_prog_egrep
3832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3834 if test "${ac_cv_header_stdc+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_header_stdc=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_cv_header_stdc=no
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 if test $ac_cv_header_stdc = yes; then
3888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "memchr" >/dev/null 2>&1; then
3902 ac_cv_header_stdc=no
3908 if test $ac_cv_header_stdc = yes; then
3909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "free" >/dev/null 2>&1; then
3923 ac_cv_header_stdc=no
3929 if test $ac_cv_header_stdc = yes; then
3930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3931 if test "$cross_compiling" = yes; then
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3941 #if ((' ' & 0x0FF) == 0x020)
3942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3945 # define ISLOWER(c) \
3946 (('a' <= (c) && (c) <= 'i') \
3947 || ('j' <= (c) && (c) <= 'r') \
3948 || ('s' <= (c) && (c) <= 'z'))
3949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957 for (i = 0; i < 256; i++)
3958 if (XOR (islower (i), ISLOWER (i))
3959 || toupper (i) != TOUPPER (i))
3964 rm -f conftest$ac_exeext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_header_stdc=no
3984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <$ac_header>
4025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } >/dev/null; then
4033 if test -s conftest.err; then
4034 ac_cpp_err=$ac_c_preproc_warn_flag
4035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4042 if test -z "$ac_cpp_err"; then
4043 eval "$as_ac_Header=yes"
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 eval "$as_ac_Header=no"
4050 rm -f conftest.err conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4055 cat >>confdefs.h <<_ACEOF
4056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4063 echo "$as_me:$LINENO: checking for int" >&5
4064 echo $ECHO_N "checking for int... $ECHO_C" >&6
4065 if test "${ac_cv_type_int+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4118 echo "${ECHO_T}$ac_cv_type_int" >&6
4120 echo "$as_me:$LINENO: checking size of int" >&5
4121 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4122 if test "${ac_cv_sizeof_int+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 if test "$ac_cv_type_int" = yes; then
4126 # The cast to unsigned long works around a bug in the HP C Compiler
4127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4129 # This bug is HP SR number 8606223364.
4130 if test "$cross_compiling" = yes; then
4131 # Depending upon the size, compute the lo and hi bounds.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 $ac_includes_default
4142 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4153 grep -v '^ *+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4173 cat >conftest.$ac_ext <<_ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 $ac_includes_default
4183 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 ac_hi=$ac_mid; break
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 ac_lo=`expr $ac_mid + 1`
4218 if test $ac_lo -le $ac_mid; then
4222 ac_mid=`expr 2 '*' $ac_mid + 1`
4224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4240 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag"
4257 || test ! -s conftest.err'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; } &&
4263 { ac_try='test -s conftest.$ac_objext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 $ac_includes_default
4281 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_lo=$ac_mid; break
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_hi=`expr '(' $ac_mid ')' - 1`
4316 if test $ac_mid -le $ac_hi; then
4320 ac_mid=`expr 2 '*' $ac_mid`
4322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 # Binary search between lo and hi bounds.
4334 while test "x$ac_lo" != "x$ac_hi"; do
4335 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 $ac_includes_default
4346 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4353 rm -f conftest.$ac_objext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>conftest.er1
4357 grep -v '^ *+' conftest.er1 >conftest.err
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag"
4363 || test ! -s conftest.err'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 ac_lo=`expr '(' $ac_mid ')' + 1`
4382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ?*) ac_cv_sizeof_int=$ac_lo;;
4386 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4387 See \`config.log' for more details." >&5
4388 echo "$as_me: error: cannot compute sizeof (int), 77
4389 See \`config.log' for more details." >&2;}
4390 { (exit 1); exit 1; }; } ;;
4393 if test "$cross_compiling" = yes; then
4394 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4395 See \`config.log' for more details." >&5
4396 echo "$as_me: error: cannot run test program while cross compiling
4397 See \`config.log' for more details." >&2;}
4398 { (exit 1); exit 1; }; }
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 $ac_includes_default
4407 long longval () { return (long) (sizeof (int)); }
4408 unsigned long ulongval () { return (long) (sizeof (int)); }
4415 FILE *f = fopen ("conftest.val", "w");
4418 if (((long) (sizeof (int))) < 0)
4420 long i = longval ();
4421 if (i != ((long) (sizeof (int))))
4423 fprintf (f, "%ld\n", i);
4427 unsigned long i = ulongval ();
4428 if (i != ((long) (sizeof (int))))
4430 fprintf (f, "%lu\n", i);
4432 exit (ferror (f) || fclose (f) != 0);
4438 rm -f conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440 (eval $ac_link) 2>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_sizeof_int=`cat conftest.val`
4451 echo "$as_me: program exited with status $ac_status" >&5
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4457 See \`config.log' for more details." >&5
4458 echo "$as_me: error: cannot compute sizeof (int), 77
4459 See \`config.log' for more details." >&2;}
4460 { (exit 1); exit 1; }; }
4462 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4471 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4472 cat >>confdefs.h <<_ACEOF
4473 #define SIZEOF_INT $ac_cv_sizeof_int
4478 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4479 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4480 if test "${ac_cv_type_uintptr_t+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 cat >conftest.$ac_ext <<_ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4493 if ((uintptr_t *) 0)
4495 if (sizeof (uintptr_t))
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_cv_type_uintptr_t=yes
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 ac_cv_type_uintptr_t=no
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4533 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4534 if test $ac_cv_type_uintptr_t = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539 #define uintptr_t unsigned long
4545 # Look for a 64-bit type.
4546 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4547 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4548 if test "${liberty_cv_uint64+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #ifdef HAVE_STDINT_H
4563 extern uint64_t foo;
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 liberty_cv_uint64=uint64_t
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
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_LIMITS_H
4610 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 liberty_cv_uint64="unsigned long"
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 #ifdef HAVE_LIMITS_H
4657 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 liberty_cv_uint64="unsigned long long"
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 liberty_cv_uint64=none
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4699 echo "${ECHO_T}$liberty_cv_uint64" >&6
4700 if test "$liberty_cv_uint64" != none; then
4702 cat >>confdefs.h <<_ACEOF
4703 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4708 # Given the above check, we always have uintptr_t or a fallback
4709 # definition. So define HAVE_UINTPTR_T in case any imported code
4712 cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_UINTPTR_T 1
4717 echo "$as_me:$LINENO: checking for pid_t" >&5
4718 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4719 if test "${ac_cv_type_pid_t+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_cv_type_pid_t=yes
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4772 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4773 if test $ac_cv_type_pid_t = yes; then
4777 cat >>confdefs.h <<_ACEOF
4784 # This is the list of functions which libiberty will provide if they
4785 # are not available on the host.
4788 funcs="$funcs atexit"
4789 funcs="$funcs basename"
4791 funcs="$funcs bcopy"
4792 funcs="$funcs bsearch"
4793 funcs="$funcs bzero"
4794 funcs="$funcs calloc"
4795 funcs="$funcs clock"
4797 funcs="$funcs getcwd"
4798 funcs="$funcs getpagesize"
4799 funcs="$funcs gettimeofday"
4800 funcs="$funcs index"
4801 funcs="$funcs insque"
4802 funcs="$funcs memchr"
4803 funcs="$funcs memcmp"
4804 funcs="$funcs memcpy"
4805 funcs="$funcs memmove"
4806 funcs="$funcs mempcpy"
4807 funcs="$funcs memset"
4808 funcs="$funcs mkstemps"
4809 funcs="$funcs putenv"
4810 funcs="$funcs random"
4811 funcs="$funcs rename"
4812 funcs="$funcs rindex"
4813 funcs="$funcs setenv"
4814 funcs="$funcs snprintf"
4815 funcs="$funcs sigsetmask"
4816 funcs="$funcs stpcpy"
4817 funcs="$funcs stpncpy"
4818 funcs="$funcs strcasecmp"
4819 funcs="$funcs strchr"
4820 funcs="$funcs strdup"
4821 funcs="$funcs strncasecmp"
4822 funcs="$funcs strndup"
4823 funcs="$funcs strrchr"
4824 funcs="$funcs strstr"
4825 funcs="$funcs strtod"
4826 funcs="$funcs strtol"
4827 funcs="$funcs strtoul"
4828 funcs="$funcs tmpnam"
4829 funcs="$funcs vasprintf"
4830 funcs="$funcs vfprintf"
4831 funcs="$funcs vprintf"
4832 funcs="$funcs vsnprintf"
4833 funcs="$funcs vsprintf"
4834 funcs="$funcs waitpid"
4836 # Also in the old function.def file: alloca, vfork, getopt.
4838 vars="sys_errlist sys_nerr sys_siglist"
4840 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4841 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4842 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
4844 # These are neither executed nor required, but they help keep
4845 # autoheader happy without adding a bunch of text to acconfig.h.
4846 if test "x" = "y"; then
4915 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
4916 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
4917 memmove mempcpy memset putenv random rename rindex sigsetmask \
4918 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
4919 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
4920 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4921 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
4922 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
4923 realpath canonicalize_file_name __fsetlocking
4925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4926 echo "$as_me:$LINENO: checking for $ac_func" >&5
4927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4928 if eval "test \"\${$as_ac_var+set}\" = set"; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 if test x$gcc_no_link = xyes; then
4932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4934 { (exit 1); exit 1; }; }
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func (); below.
4944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 <limits.h> exists even on freestanding compilers. Under hpux,
4946 including <limits.h> includes <sys/time.h> and causes problems
4947 checking for functions defined therein. */
4948 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4949 # include <limits.h>
4951 # include <assert.h>
4953 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4961 /* The GNU C library defines this for functions which it implements
4962 to always fail with ENOSYS. Some functions are actually named
4963 something starting with __ and the normal name is an alias. */
4964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4967 char (*f) () = $ac_func;
4976 return f != $ac_func;
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983 (eval $ac_link) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest$ac_exeext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 eval "$as_ac_var=yes"
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 eval "$as_ac_var=no"
5010 rm -f conftest.err conftest.$ac_objext \
5011 conftest$ac_exeext conftest.$ac_ext
5013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5015 if test `eval echo '${'$as_ac_var'}'` = yes; then
5016 cat >>confdefs.h <<_ACEOF
5017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5023 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5024 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5025 if test "${ac_cv_have_decl_basename+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5039 char *p = (char *) basename;
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_have_decl_basename=yes
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_cv_have_decl_basename=no
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5078 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5079 if test $ac_cv_have_decl_basename = yes; then
5081 cat >>confdefs.h <<_ACEOF
5082 #define HAVE_DECL_BASENAME 1
5087 cat >>confdefs.h <<_ACEOF
5088 #define HAVE_DECL_BASENAME 0
5093 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5094 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5095 if test "${ac_cv_have_decl_ffs+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 $ac_includes_default
5109 char *p = (char *) ffs;
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest.$ac_objext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 ac_cv_have_decl_ffs=yes
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 ac_cv_have_decl_ffs=no
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5148 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5149 if test $ac_cv_have_decl_ffs = yes; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define HAVE_DECL_FFS 1
5157 cat >>confdefs.h <<_ACEOF
5158 #define HAVE_DECL_FFS 0
5163 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5164 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5165 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5179 char *p = (char *) asprintf;
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1 >conftest.err
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_have_decl_asprintf=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_cv_have_decl_asprintf=no
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5218 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5219 if test $ac_cv_have_decl_asprintf = yes; then
5221 cat >>confdefs.h <<_ACEOF
5222 #define HAVE_DECL_ASPRINTF 1
5227 cat >>confdefs.h <<_ACEOF
5228 #define HAVE_DECL_ASPRINTF 0
5233 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5234 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5235 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 $ac_includes_default
5249 char *p = (char *) vasprintf;
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_cv_have_decl_vasprintf=yes
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 ac_cv_have_decl_vasprintf=no
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5288 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5289 if test $ac_cv_have_decl_vasprintf = yes; then
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_DECL_VASPRINTF 1
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_DECL_VASPRINTF 0
5306 cat >>confdefs.h <<\_ACEOF
5307 #define HAVE_SYS_ERRLIST 1
5311 cat >>confdefs.h <<\_ACEOF
5312 #define HAVE_SYS_NERR 1
5316 cat >>confdefs.h <<\_ACEOF
5317 #define HAVE_SYS_SIGLIST 1
5322 # For each of these functions, if the host does not provide the
5323 # function we want to put FN.o in LIBOBJS, and if the host does
5324 # provide the function, we want to define HAVE_FN in config.h.
5329 if test -n "${with_target_subdir}"; then
5331 # We are being configured as a target library. AC_REPLACE_FUNCS
5332 # may not work correctly, because the compiler may not be able to
5333 # link executables. Note that we may still be being configured
5336 # If we are being configured for newlib, we know which functions
5337 # newlib provide and which ones we will be expected to provide.
5339 if test "x${with_newlib}" = "xyes"; then
5341 "asprintf.$ac_objext" | \
5342 *" asprintf.$ac_objext" | \
5343 "asprintf.$ac_objext "* | \
5344 *" asprintf.$ac_objext "* ) ;;
5345 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5349 "basename.$ac_objext" | \
5350 *" basename.$ac_objext" | \
5351 "basename.$ac_objext "* | \
5352 *" basename.$ac_objext "* ) ;;
5353 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5357 "insque.$ac_objext" | \
5358 *" insque.$ac_objext" | \
5359 "insque.$ac_objext "* | \
5360 *" insque.$ac_objext "* ) ;;
5361 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5365 "random.$ac_objext" | \
5366 *" random.$ac_objext" | \
5367 "random.$ac_objext "* | \
5368 *" random.$ac_objext "* ) ;;
5369 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5373 "strdup.$ac_objext" | \
5374 *" strdup.$ac_objext" | \
5375 "strdup.$ac_objext "* | \
5376 *" strdup.$ac_objext "* ) ;;
5377 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5381 "vasprintf.$ac_objext" | \
5382 *" vasprintf.$ac_objext" | \
5383 "vasprintf.$ac_objext "* | \
5384 *" vasprintf.$ac_objext "* ) ;;
5385 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5391 asprintf | basename | insque | random | strdup | vasprintf)
5394 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5395 cat >>confdefs.h <<_ACEOF
5403 # newlib doesnt provide any of the variables in $vars, so we
5404 # dont have to check them here.
5406 # Of the functions in $checkfuncs, newlib only has strerror.
5407 cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_STRERROR 1
5416 # We may wish to install the target headers somewhere.
5417 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5418 if test "${enable_install_libiberty+set}" = set; then
5419 enableval="$enable_install_libiberty"
5420 enable_install_libiberty=$enableval
5422 enable_install_libiberty=no
5424 # Option parsed, now set things appropriately.
5425 case x"$enable_install_libiberty" in
5427 target_header_dir=libiberty
5433 # This could be sanity-checked in various ways...
5434 target_header_dir="${enable_install_libiberty}"
5441 # Not a target library, so we set things up to run the test suite.
5450 *-*-cygwin* | *-*-mingw*)
5451 cat >>confdefs.h <<\_ACEOF
5452 #define HAVE_SYS_ERRLIST 1
5455 cat >>confdefs.h <<\_ACEOF
5456 #define HAVE_SYS_NERR 1
5462 if test -z "${setobjs}"; then
5466 # Handle VxWorks configuration specially, since on VxWorks the
5467 # libraries are actually on the target board, not in the file
5470 "basename.$ac_objext" | \
5471 *" basename.$ac_objext" | \
5472 "basename.$ac_objext "* | \
5473 *" basename.$ac_objext "* ) ;;
5474 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5478 "getpagesize.$ac_objext" | \
5479 *" getpagesize.$ac_objext" | \
5480 "getpagesize.$ac_objext "* | \
5481 *" getpagesize.$ac_objext "* ) ;;
5482 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5486 "insque.$ac_objext" | \
5487 *" insque.$ac_objext" | \
5488 "insque.$ac_objext "* | \
5489 *" insque.$ac_objext "* ) ;;
5490 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5494 "random.$ac_objext" | \
5495 *" random.$ac_objext" | \
5496 "random.$ac_objext "* | \
5497 *" random.$ac_objext "* ) ;;
5498 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5502 "strcasecmp.$ac_objext" | \
5503 *" strcasecmp.$ac_objext" | \
5504 "strcasecmp.$ac_objext "* | \
5505 *" strcasecmp.$ac_objext "* ) ;;
5506 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
5510 "strncasecmp.$ac_objext" | \
5511 *" strncasecmp.$ac_objext" | \
5512 "strncasecmp.$ac_objext "* | \
5513 *" strncasecmp.$ac_objext "* ) ;;
5514 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
5518 "strdup.$ac_objext" | \
5519 *" strdup.$ac_objext" | \
5520 "strdup.$ac_objext "* | \
5521 *" strdup.$ac_objext "* ) ;;
5522 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5526 "vfork.$ac_objext" | \
5527 *" vfork.$ac_objext" | \
5528 "vfork.$ac_objext "* | \
5529 *" vfork.$ac_objext "* ) ;;
5530 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
5534 "waitpid.$ac_objext" | \
5535 *" waitpid.$ac_objext" | \
5536 "waitpid.$ac_objext "* | \
5537 *" waitpid.$ac_objext "* ) ;;
5538 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5542 "vasprintf.$ac_objext" | \
5543 *" vasprintf.$ac_objext" | \
5544 "vasprintf.$ac_objext "* | \
5545 *" vasprintf.$ac_objext "* ) ;;
5546 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5551 basename | getpagesize | insque | random | strcasecmp)
5553 strncasecmp | strdup | vfork | waitpid | vasprintf)
5556 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5557 cat >>confdefs.h <<_ACEOF
5565 # VxWorks doesn't provide any of the variables in $vars, so we
5566 # don't have to check them here.
5568 # Of the functions in $checkfuncs, VxWorks only has strerror.
5569 cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_STRERROR 1
5580 if test -z "${setobjs}"; then
5585 # The Cygwin library actually uses a couple of files from
5586 # libiberty when it is built. If we are building a native
5587 # Cygwin, and we run the tests, we will appear to have these
5588 # files. However, when we go on to build winsup, we will wind up
5589 # with a library which does not have the files, since they should
5590 # have come from libiberty.
5592 # We handle this by removing the functions the winsup library
5593 # provides from our shell variables, so that they appear to be
5596 # DJ - only if we're *building* cygwin, not just building *with* cygwin
5598 if test -n "${with_target_subdir}"
5600 funcs="`echo $funcs | sed -e 's/random//'`"
5602 "random.$ac_objext" | \
5603 *" random.$ac_objext" | \
5604 "random.$ac_objext "* | \
5605 *" random.$ac_objext "* ) ;;
5606 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5609 vars="`echo $vars | sed -e 's/sys_siglist//'`"
5610 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
5615 # Under mingw32, sys_nerr and sys_errlist exist, but they are
5616 # macros, so the test below won't find them.
5617 libiberty_cv_var_sys_nerr=yes
5618 libiberty_cv_var_sys_errlist=yes
5622 # vfork and fork are stubs.
5623 ac_cv_func_vfork_works=no
5627 # Under some versions of uwin, vfork is notoriously buggy and the test
5628 # can hang configure; on other versions, vfork exists just as a stub.
5629 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
5630 ac_cv_func_vfork_works=no
5631 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
5632 # macros (actually, these are imported from a DLL, but the end effect
5633 # is the same), so the test below won't find them.
5634 libiberty_cv_var_sys_nerr=yes
5635 libiberty_cv_var_sys_errlist=yes
5639 # Under VMS, vfork works very different than on Unix. The standard test
5640 # won't work, and it isn't easily adaptable. It makes more sense to
5642 ac_cv_func_vfork_works=yes
5647 # We haven't set the list of objects yet. Use the standard autoconf
5648 # tests. This will only work if the compiler works.
5649 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5650 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5651 if test "${ac_cv_search_strerror+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_func_search_save_LIBS=$LIBS
5655 ac_cv_search_strerror=no
5656 if test x$gcc_no_link = xyes; then
5657 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5659 { (exit 1); exit 1; }; }
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5668 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_search_strerror="none required"
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 if test "$ac_cv_search_strerror" = no; then
5714 for ac_lib in cposix; do
5715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5716 if test x$gcc_no_link = xyes; then
5717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5719 { (exit 1); exit 1; }; }
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_c_werror_flag"
5753 || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 ac_cv_search_strerror="-l$ac_lib"
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5772 rm -f conftest.err conftest.$ac_objext \
5773 conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_func_search_save_LIBS
5778 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5779 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5780 if test "$ac_cv_search_strerror" != no; then
5781 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5786 for ac_func in $funcs
5788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5789 echo "$as_me:$LINENO: checking for $ac_func" >&5
5790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5791 if eval "test \"\${$as_ac_var+set}\" = set"; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test x$gcc_no_link = xyes; then
5795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5797 { (exit 1); exit 1; }; }
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 /* System header to define __stub macros and hopefully few prototypes,
5806 which can conflict with char $ac_func (); below.
5807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 <limits.h> exists even on freestanding compilers. Under hpux,
5809 including <limits.h> includes <sys/time.h> and causes problems
5810 checking for functions defined therein. */
5811 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5812 # include <limits.h>
5814 # include <assert.h>
5816 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5824 /* The GNU C library defines this for functions which it implements
5825 to always fail with ENOSYS. Some functions are actually named
5826 something starting with __ and the normal name is an alias. */
5827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5830 char (*f) () = $ac_func;
5839 return f != $ac_func;
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -z "$ac_c_werror_flag"
5854 || test ! -s conftest.err'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest$ac_exeext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 eval "$as_ac_var=yes"
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 eval "$as_ac_var=no"
5873 rm -f conftest.err conftest.$ac_objext \
5874 conftest$ac_exeext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5878 if test `eval echo '${'$as_ac_var'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5885 "$ac_func.$ac_objext" | \
5886 *" $ac_func.$ac_objext" | \
5887 "$ac_func.$ac_objext "* | \
5888 *" $ac_func.$ac_objext "* ) ;;
5889 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5896 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
5897 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
5898 if test "${ac_cv_os_cray+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #if defined(CRAY) && ! defined(CRAY2)
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915 $EGREP "webecray" >/dev/null 2>&1; then
5923 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5924 echo "${ECHO_T}$ac_cv_os_cray" >&6
5925 if test $ac_cv_os_cray = yes; then
5926 for ac_func in _getb67 GETB67 getb67; do
5927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5928 echo "$as_me:$LINENO: checking for $ac_func" >&5
5929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_var+set}\" = set"; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test x$gcc_no_link = xyes; then
5934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5936 { (exit 1); exit 1; }; }
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func (); below.
5946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5947 <limits.h> exists even on freestanding compilers. Under hpux,
5948 including <limits.h> includes <sys/time.h> and causes problems
5949 checking for functions defined therein. */
5950 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5951 # include <limits.h>
5953 # include <assert.h>
5955 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5963 /* The GNU C library defines this for functions which it implements
5964 to always fail with ENOSYS. Some functions are actually named
5965 something starting with __ and the normal name is an alias. */
5966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 char (*f) () = $ac_func;
5978 return f != $ac_func;
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 eval "$as_ac_var=yes"
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 eval "$as_ac_var=no"
6012 rm -f conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6017 if test `eval echo '${'$as_ac_var'}'` = yes; then
6019 cat >>confdefs.h <<_ACEOF
6020 #define CRAY_STACKSEG_END $ac_func
6028 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6029 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6030 if test "${ac_cv_c_stack_direction+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 if test "$cross_compiling" = yes; then
6034 ac_cv_c_stack_direction=0
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 find_stack_direction ()
6044 static char *addr = 0;
6049 return find_stack_direction ();
6052 return (&dummy > addr) ? 1 : -1;
6056 exit (find_stack_direction() < 0);
6059 rm -f conftest$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_c_stack_direction=1
6072 echo "$as_me: program exited with status $ac_status" >&5
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_c_stack_direction=-1
6079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6083 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6085 cat >>confdefs.h <<_ACEOF
6086 #define STACK_DIRECTION $ac_cv_c_stack_direction
6092 for ac_header in unistd.h vfork.h
6094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6095 echo "$as_me:$LINENO: checking for $ac_header" >&5
6096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #include <$ac_header>
6108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null; then
6116 if test -s conftest.err; then
6117 ac_cpp_err=$ac_c_preproc_warn_flag
6118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6125 if test -z "$ac_cpp_err"; then
6126 eval "$as_ac_Header=yes"
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 eval "$as_ac_Header=no"
6133 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6138 cat >>confdefs.h <<_ACEOF
6139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 for ac_func in fork vfork
6149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6150 echo "$as_me:$LINENO: checking for $ac_func" >&5
6151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6152 if eval "test \"\${$as_ac_var+set}\" = set"; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 if test x$gcc_no_link = xyes; then
6156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6158 { (exit 1); exit 1; }; }
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func (); below.
6168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6169 <limits.h> exists even on freestanding compilers. Under hpux,
6170 including <limits.h> includes <sys/time.h> and causes problems
6171 checking for functions defined therein. */
6172 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6173 # include <limits.h>
6175 # include <assert.h>
6177 /* Override any gcc2 internal prototype to avoid an error. */
6182 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6185 /* The GNU C library defines this for functions which it implements
6186 to always fail with ENOSYS. Some functions are actually named
6187 something starting with __ and the normal name is an alias. */
6188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6191 char (*f) () = $ac_func;
6200 return f != $ac_func;
6205 rm -f conftest.$ac_objext conftest$ac_exeext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207 (eval $ac_link) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 eval "$as_ac_var=yes"
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 eval "$as_ac_var=no"
6234 rm -f conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6239 if test `eval echo '${'$as_ac_var'}'` = yes; then
6240 cat >>confdefs.h <<_ACEOF
6241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6247 if test "x$ac_cv_func_fork" = xyes; then
6248 echo "$as_me:$LINENO: checking for working fork" >&5
6249 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6250 if test "${ac_cv_func_fork_works+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 if test "$cross_compiling" = yes; then
6254 ac_cv_func_fork_works=cross
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* By Ruediger Kuhlmann. */
6258 #include <sys/types.h>
6260 # include <unistd.h>
6262 /* Some systems only have a dummy stub for fork() */
6270 rm -f conftest$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_func_fork_works=yes
6283 echo "$as_me: program exited with status $ac_status" >&5
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_cv_func_fork_works=no
6290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6293 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6294 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6297 ac_cv_func_fork_works=$ac_cv_func_fork
6299 if test "x$ac_cv_func_fork_works" = xcross; then
6301 *-*-amigaos* | *-*-msdosdjgpp*)
6302 # Override, as these systems have only a dummy fork() stub
6303 ac_cv_func_fork_works=no
6306 ac_cv_func_fork_works=yes
6309 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6310 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6312 ac_cv_func_vfork_works=$ac_cv_func_vfork
6313 if test "x$ac_cv_func_vfork" = xyes; then
6314 echo "$as_me:$LINENO: checking for working vfork" >&5
6315 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6316 if test "${ac_cv_func_vfork_works+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 if test "$cross_compiling" = yes; then
6320 ac_cv_func_vfork_works=cross
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 /* Thanks to Paul Eggert for this test. */
6331 #include <sys/types.h>
6332 #include <sys/stat.h>
6333 #include <sys/wait.h>
6335 # include <unistd.h>
6340 /* On some sparc systems, changes by the child to local and incoming
6341 argument registers are propagated back to the parent. The compiler
6342 is told about this with #include <vfork.h>, but some compilers
6343 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6344 static variable whose address is put into a register that is
6345 clobbered by the vfork. */
6348 sparc_address_test (int arg)
6350 sparc_address_test (arg) int arg;
6371 pid_t parent = getpid ();
6374 sparc_address_test (0);
6379 /* Here is another test for sparc vfork register problems. This
6380 test uses lots of local variables, at least as many local
6381 variables as main has allocated so far including compiler
6382 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6383 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6384 reuse the register of parent for one of the local variables,
6385 since it will think that parent can't possibly be used any more
6386 in this routine. Assigning to the local variable will thus
6387 munge parent in the parent process. */
6389 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6390 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6391 /* Convince the compiler that p..p7 are live; otherwise, it might
6392 use the same hardware register for all 8 local variables. */
6393 if (p != p1 || p != p2 || p != p3 || p != p4
6394 || p != p5 || p != p6 || p != p7)
6397 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6398 from child file descriptors. If the child closes a descriptor
6399 before it execs or exits, this munges the parent's descriptor
6400 as well. Test for this by closing stdout in the child. */
6401 _exit(close(fileno(stdout)) != 0);
6406 while (wait(&status) != child)
6409 /* Was there some problem with vforking? */
6412 /* Did the child fail? (This shouldn't happen.) */
6415 /* Did the vfork/compiler bug occur? */
6416 || parent != getpid()
6418 /* Did the file descriptor bug occur? */
6419 || fstat(fileno(stdout), &st) != 0
6424 rm -f conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_func_vfork_works=yes
6437 echo "$as_me: program exited with status $ac_status" >&5
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_func_vfork_works=no
6444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6448 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6451 if test "x$ac_cv_func_fork_works" = xcross; then
6452 ac_cv_func_vfork_works=$ac_cv_func_vfork
6453 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6454 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6457 if test "x$ac_cv_func_vfork_works" = xyes; then
6459 cat >>confdefs.h <<\_ACEOF
6460 #define HAVE_WORKING_VFORK 1
6465 cat >>confdefs.h <<\_ACEOF
6470 if test "x$ac_cv_func_fork_works" = xyes; then
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_WORKING_FORK 1
6478 if test $ac_cv_func_vfork_works = no; then
6480 "vfork.$ac_objext" | \
6481 *" vfork.$ac_objext" | \
6482 "vfork.$ac_objext "* | \
6483 *" vfork.$ac_objext "* ) ;;
6484 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6488 # We only need _doprnt if we might use it to implement v*printf.
6489 if test $ac_cv_func_vprintf != yes \
6490 || test $ac_cv_func_vfprintf != yes \
6491 || test $ac_cv_func_vsprintf != yes; then
6493 for ac_func in _doprnt
6495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6496 echo "$as_me:$LINENO: checking for $ac_func" >&5
6497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6498 if eval "test \"\${$as_ac_var+set}\" = set"; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 if test x$gcc_no_link = xyes; then
6502 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6504 { (exit 1); exit 1; }; }
6506 cat >conftest.$ac_ext <<_ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 /* System header to define __stub macros and hopefully few prototypes,
6513 which can conflict with char $ac_func (); below.
6514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6515 <limits.h> exists even on freestanding compilers. Under hpux,
6516 including <limits.h> includes <sys/time.h> and causes problems
6517 checking for functions defined therein. */
6518 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6519 # include <limits.h>
6521 # include <assert.h>
6523 /* Override any gcc2 internal prototype to avoid an error. */
6528 /* We use char because int might match the return type of a gcc2
6529 builtin and then its argument prototype would still apply. */
6531 /* The GNU C library defines this for functions which it implements
6532 to always fail with ENOSYS. Some functions are actually named
6533 something starting with __ and the normal name is an alias. */
6534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6537 char (*f) () = $ac_func;
6546 return f != $ac_func;
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 eval "$as_ac_var=yes"
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 eval "$as_ac_var=no"
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6585 if test `eval echo '${'$as_ac_var'}'` = yes; then
6586 cat >>confdefs.h <<_ACEOF
6587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6592 "$ac_func.$ac_objext" | \
6593 *" $ac_func.$ac_objext" | \
6594 "$ac_func.$ac_objext "* | \
6595 *" $ac_func.$ac_objext "* ) ;;
6596 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6605 for ac_func in _doprnt
6607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6608 echo "$as_me:$LINENO: checking for $ac_func" >&5
6609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6610 if eval "test \"\${$as_ac_var+set}\" = set"; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 if test x$gcc_no_link = xyes; then
6614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6616 { (exit 1); exit 1; }; }
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func (); below.
6626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6627 <limits.h> exists even on freestanding compilers. Under hpux,
6628 including <limits.h> includes <sys/time.h> and causes problems
6629 checking for functions defined therein. */
6630 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6631 # include <limits.h>
6633 # include <assert.h>
6635 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6643 /* The GNU C library defines this for functions which it implements
6644 to always fail with ENOSYS. Some functions are actually named
6645 something starting with __ and the normal name is an alias. */
6646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649 char (*f) () = $ac_func;
6658 return f != $ac_func;
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665 (eval $ac_link) 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_c_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest$ac_exeext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 eval "$as_ac_var=yes"
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 eval "$as_ac_var=no"
6692 rm -f conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
6695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6697 if test `eval echo '${'$as_ac_var'}'` = yes; then
6698 cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6708 echo "$as_me:$LINENO: checking for $v" >&5
6709 echo $ECHO_N "checking for $v... $ECHO_C" >&6
6710 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 if test x$gcc_no_link = xyes; then
6714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6716 { (exit 1); exit 1; }; }
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6728 extern int $v []; p = $v;
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6735 (eval $ac_link) 2>conftest.er1
6737 grep -v '^ *+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 eval "libiberty_cv_var_$v=yes"
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 eval "libiberty_cv_var_$v=no"
6762 rm -f conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
6766 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6767 echo "$as_me:$LINENO: result: yes" >&5
6768 echo "${ECHO_T}yes" >&6
6769 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6770 cat >>confdefs.h <<_ACEOF
6775 echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6
6780 # special check for _system_configuration because AIX <4.3.2 do not
6781 # contain the `physmem' member.
6782 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6783 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <sys/systemcfg.h>
6794 double x = _system_configuration.physmem;
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 echo "$as_me:$LINENO: result: yes" >&5
6822 echo "${ECHO_T}yes" >&6
6824 cat >>confdefs.h <<\_ACEOF
6825 #define HAVE__SYSTEM_CONFIGURATION 1
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6838 for ac_func in $checkfuncs
6840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6841 echo "$as_me:$LINENO: checking for $ac_func" >&5
6842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6843 if eval "test \"\${$as_ac_var+set}\" = set"; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 if test x$gcc_no_link = xyes; then
6847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6849 { (exit 1); exit 1; }; }
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 /* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char $ac_func (); below.
6859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860 <limits.h> exists even on freestanding compilers. Under hpux,
6861 including <limits.h> includes <sys/time.h> and causes problems
6862 checking for functions defined therein. */
6863 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6864 # include <limits.h>
6866 # include <assert.h>
6868 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6876 /* The GNU C library defines this for functions which it implements
6877 to always fail with ENOSYS. Some functions are actually named
6878 something starting with __ and the normal name is an alias. */
6879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6882 char (*f) () = $ac_func;
6891 return f != $ac_func;
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest$ac_exeext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 eval "$as_ac_var=yes"
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 eval "$as_ac_var=no"
6925 rm -f conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6930 if test `eval echo '${'$as_ac_var'}'` = yes; then
6931 cat >>confdefs.h <<_ACEOF
6932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6938 echo "$as_me:$LINENO: checking whether basename is declared" >&5
6939 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
6940 if test "${ac_cv_have_decl_basename+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6954 char *p = (char *) basename;
6961 rm -f conftest.$ac_objext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_cv_have_decl_basename=yes
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_cv_have_decl_basename=no
6990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
6993 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
6994 if test $ac_cv_have_decl_basename = yes; then
6996 cat >>confdefs.h <<_ACEOF
6997 #define HAVE_DECL_BASENAME 1
7002 cat >>confdefs.h <<_ACEOF
7003 #define HAVE_DECL_BASENAME 0
7008 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7009 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7010 if test "${ac_cv_have_decl_ffs+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 $ac_includes_default
7024 char *p = (char *) ffs;
7031 rm -f conftest.$ac_objext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033 (eval $ac_compile) 2>conftest.er1
7035 grep -v '^ *+' conftest.er1 >conftest.err
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try='test -z "$ac_c_werror_flag"
7041 || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_have_decl_ffs=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_cv_have_decl_ffs=no
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7063 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7064 if test $ac_cv_have_decl_ffs = yes; then
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_DECL_FFS 1
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_DECL_FFS 0
7078 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7079 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7080 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7094 char *p = (char *) asprintf;
7101 rm -f conftest.$ac_objext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103 (eval $ac_compile) 2>conftest.er1
7105 grep -v '^ *+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try='test -z "$ac_c_werror_flag"
7111 || test ! -s conftest.err'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; } &&
7117 { ac_try='test -s conftest.$ac_objext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_have_decl_asprintf=yes
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_cv_have_decl_asprintf=no
7130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7132 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7133 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7134 if test $ac_cv_have_decl_asprintf = yes; then
7136 cat >>confdefs.h <<_ACEOF
7137 #define HAVE_DECL_ASPRINTF 1
7142 cat >>confdefs.h <<_ACEOF
7143 #define HAVE_DECL_ASPRINTF 0
7148 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7149 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7150 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >conftest.$ac_ext <<_ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7164 char *p = (char *) vasprintf;
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_have_decl_vasprintf=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_cv_have_decl_vasprintf=no
7200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7203 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7204 if test $ac_cv_have_decl_vasprintf = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_DECL_VASPRINTF 1
7212 cat >>confdefs.h <<_ACEOF
7213 #define HAVE_DECL_VASPRINTF 0
7220 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7221 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7222 if test "${ac_cv_have_decl_calloc+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7236 char *p = (char *) calloc;
7243 rm -f conftest.$ac_objext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245 (eval $ac_compile) 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag"
7253 || test ! -s conftest.err'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_cv_have_decl_calloc=yes
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 ac_cv_have_decl_calloc=no
7272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
7275 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
7276 if test $ac_cv_have_decl_calloc = yes; then
7278 cat >>confdefs.h <<_ACEOF
7279 #define HAVE_DECL_CALLOC 1
7284 cat >>confdefs.h <<_ACEOF
7285 #define HAVE_DECL_CALLOC 0
7290 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7291 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7292 if test "${ac_cv_have_decl_getenv+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7306 char *p = (char *) getenv;
7313 rm -f conftest.$ac_objext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -z "$ac_c_werror_flag"
7323 || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_cv_have_decl_getenv=yes
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_have_decl_getenv=no
7342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7345 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7346 if test $ac_cv_have_decl_getenv = yes; then
7348 cat >>confdefs.h <<_ACEOF
7349 #define HAVE_DECL_GETENV 1
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_DECL_GETENV 0
7360 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
7361 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7362 if test "${ac_cv_have_decl_malloc+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7376 char *p = (char *) malloc;
7383 rm -f conftest.$ac_objext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385 (eval $ac_compile) 2>conftest.er1
7387 grep -v '^ *+' conftest.er1 >conftest.err
7389 cat conftest.err >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try='test -z "$ac_c_werror_flag"
7393 || test ! -s conftest.err'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; } &&
7399 { ac_try='test -s conftest.$ac_objext'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then
7405 ac_cv_have_decl_malloc=yes
7407 echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 ac_cv_have_decl_malloc=no
7412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
7415 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7416 if test $ac_cv_have_decl_malloc = yes; then
7418 cat >>confdefs.h <<_ACEOF
7419 #define HAVE_DECL_MALLOC 1
7424 cat >>confdefs.h <<_ACEOF
7425 #define HAVE_DECL_MALLOC 0
7430 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
7431 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7432 if test "${ac_cv_have_decl_realloc+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7446 char *p = (char *) realloc;
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag"
7463 || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest.$ac_objext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 ac_cv_have_decl_realloc=yes
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 ac_cv_have_decl_realloc=no
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
7485 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7486 if test $ac_cv_have_decl_realloc = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_DECL_REALLOC 1
7494 cat >>confdefs.h <<_ACEOF
7495 #define HAVE_DECL_REALLOC 0
7500 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
7501 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
7502 if test "${ac_cv_have_decl_sbrk+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 $ac_includes_default
7516 char *p = (char *) sbrk;
7523 rm -f conftest.$ac_objext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_cv_have_decl_sbrk=yes
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_cv_have_decl_sbrk=no
7552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7554 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
7555 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
7556 if test $ac_cv_have_decl_sbrk = yes; then
7558 cat >>confdefs.h <<_ACEOF
7559 #define HAVE_DECL_SBRK 1
7564 cat >>confdefs.h <<_ACEOF
7565 #define HAVE_DECL_SBRK 0
7572 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
7573 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
7574 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 cat >conftest.$ac_ext <<_ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7584 #include "confdefs.h"
7586 #ifdef HAVE_STRING_H
7589 #ifdef HAVE_STRINGS_H
7590 #include <strings.h>
7593 #ifdef HAVE_STDLIB_H
7596 #ifdef HAVE_UNISTD_H
7602 char *(*pfn) = (char *(*)) canonicalize_file_name
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>conftest.er1
7611 grep -v '^ *+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag"
7617 || test ! -s conftest.err'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 libiberty_cv_decl_needed_canonicalize_file_name=no
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 libiberty_cv_decl_needed_canonicalize_file_name=yes
7636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7640 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
7641 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7643 cat >>confdefs.h <<\_ACEOF
7644 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7651 # Figure out which version of pexecute to use.
7653 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
7654 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
7655 *-*-msdos*) pexecute=./pex-msdos.o ;;
7656 *) pexecute=./pex-unix.o ;;
7660 if test x$gcc_no_link = xyes; then
7661 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
7662 ac_cv_func_mmap_fixed_mapped=no
7665 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
7668 for ac_header in stdlib.h unistd.h
7670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7671 echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #include <$ac_header>
7684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } >/dev/null; then
7692 if test -s conftest.err; then
7693 ac_cpp_err=$ac_c_preproc_warn_flag
7694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7701 if test -z "$ac_cpp_err"; then
7702 eval "$as_ac_Header=yes"
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 eval "$as_ac_Header=no"
7709 rm -f conftest.err conftest.$ac_ext
7711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7714 cat >>confdefs.h <<_ACEOF
7715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7722 for ac_func in getpagesize
7724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7725 echo "$as_me:$LINENO: checking for $ac_func" >&5
7726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7727 if eval "test \"\${$as_ac_var+set}\" = set"; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 if test x$gcc_no_link = xyes; then
7731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7733 { (exit 1); exit 1; }; }
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 /* System header to define __stub macros and hopefully few prototypes,
7742 which can conflict with char $ac_func (); below.
7743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7744 <limits.h> exists even on freestanding compilers. Under hpux,
7745 including <limits.h> includes <sys/time.h> and causes problems
7746 checking for functions defined therein. */
7747 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7748 # include <limits.h>
7750 # include <assert.h>
7752 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7766 char (*f) () = $ac_func;
7775 return f != $ac_func;
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>conftest.er1
7784 grep -v '^ *+' conftest.er1 >conftest.err
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 eval "$as_ac_var=yes"
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 eval "$as_ac_var=no"
7809 rm -f conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7814 if test `eval echo '${'$as_ac_var'}'` = yes; then
7815 cat >>confdefs.h <<_ACEOF
7816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7822 echo "$as_me:$LINENO: checking for working mmap" >&5
7823 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7824 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 if test "$cross_compiling" = yes; then
7828 ac_cv_func_mmap_fixed_mapped=no
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 $ac_includes_default
7837 /* malloc might have been renamed as rpl_malloc. */
7840 /* Thanks to Mike Haertel and Jim Avera for this test.
7841 Here is a matrix of mmap possibilities:
7842 mmap private not fixed
7843 mmap private fixed at somewhere currently unmapped
7844 mmap private fixed at somewhere already mapped
7845 mmap shared not fixed
7846 mmap shared fixed at somewhere currently unmapped
7847 mmap shared fixed at somewhere already mapped
7848 For private mappings, we should verify that changes cannot be read()
7849 back from the file, nor mmap's back from the file at a different
7850 address. (There have been systems where private was not correctly
7851 implemented like the infamous i386 svr4.0, and systems where the
7852 VM page cache was not coherent with the file system buffer cache
7853 like early versions of FreeBSD and possibly contemporary NetBSD.)
7854 For shared mappings, we should conversely verify that changes get
7855 propagated back to all the places they're supposed to be.
7857 Grep wants private fixed already mapped.
7858 The main things grep needs to know about mmap are:
7859 * does it exist and is it safe to write into the mmap'd area
7860 * how to use it (BSD variants) */
7863 #include <sys/mman.h>
7865 #if !STDC_HEADERS && !HAVE_STDLIB_H
7869 /* This mess was copied from the GNU getpagesize.h. */
7870 #if !HAVE_GETPAGESIZE
7871 /* Assume that all systems that can run configure have sys/param.h. */
7872 # if !HAVE_SYS_PARAM_H
7873 # define HAVE_SYS_PARAM_H 1
7876 # ifdef _SC_PAGESIZE
7877 # define getpagesize() sysconf(_SC_PAGESIZE)
7878 # else /* no _SC_PAGESIZE */
7879 # if HAVE_SYS_PARAM_H
7880 # include <sys/param.h>
7881 # ifdef EXEC_PAGESIZE
7882 # define getpagesize() EXEC_PAGESIZE
7883 # else /* no EXEC_PAGESIZE */
7885 # define getpagesize() NBPG * CLSIZE
7888 # endif /* no CLSIZE */
7889 # else /* no NBPG */
7891 # define getpagesize() NBPC
7892 # else /* no NBPC */
7894 # define getpagesize() PAGESIZE
7895 # endif /* PAGESIZE */
7896 # endif /* no NBPC */
7897 # endif /* no NBPG */
7898 # endif /* no EXEC_PAGESIZE */
7899 # else /* no HAVE_SYS_PARAM_H */
7900 # define getpagesize() 8192 /* punt totally */
7901 # endif /* no HAVE_SYS_PARAM_H */
7902 # endif /* no _SC_PAGESIZE */
7904 #endif /* no HAVE_GETPAGESIZE */
7909 char *data, *data2, *data3;
7913 pagesize = getpagesize ();
7915 /* First, make a file with some known garbage in it. */
7916 data = (char *) malloc (pagesize);
7919 for (i = 0; i < pagesize; ++i)
7920 *(data + i) = rand ();
7922 fd = creat ("conftest.mmap", 0600);
7925 if (write (fd, data, pagesize) != pagesize)
7929 /* Next, try to mmap the file at a fixed address which already has
7930 something else allocated at it. If we can, also make sure that
7931 we see the same garbage. */
7932 fd = open ("conftest.mmap", O_RDWR);
7935 data2 = (char *) malloc (2 * pagesize);
7938 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7939 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7940 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7942 for (i = 0; i < pagesize; ++i)
7943 if (*(data + i) != *(data2 + i))
7946 /* Finally, make sure that changes to the mapped area do not
7947 percolate back to the file as seen by read(). (This is a bug on
7948 some variants of i386 svr4.0.) */
7949 for (i = 0; i < pagesize; ++i)
7950 *(data2 + i) = *(data2 + i) + 1;
7951 data3 = (char *) malloc (pagesize);
7954 if (read (fd, data3, pagesize) != pagesize)
7956 for (i = 0; i < pagesize; ++i)
7957 if (*(data + i) != *(data3 + i))
7963 rm -f conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_func_mmap_fixed_mapped=yes
7976 echo "$as_me: program exited with status $ac_status" >&5
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_func_mmap_fixed_mapped=no
7983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7987 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7990 cat >>confdefs.h <<\_ACEOF
7999 echo "$as_me:$LINENO: checking for working strncmp" >&5
8000 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8001 if test "${ac_cv_func_strncmp_works+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 if test "$cross_compiling" = yes; then
8005 ac_cv_func_strncmp_works=no
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8014 /* Test by Jim Wilson and Kaveh Ghazi.
8015 Check whether strncmp reads past the end of its string parameters. */
8016 #include <sys/types.h>
8022 #ifdef HAVE_SYS_MMAN_H
8023 #include <sys/mman.h>
8027 #ifdef MAP_ANONYMOUS
8028 #define MAP_ANON MAP_ANONYMOUS
8030 #define MAP_ANON MAP_FILE
8041 #define MAP_LEN 0x10000
8045 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8049 dev_zero = open ("/dev/zero", O_RDONLY);
8053 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8054 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8055 if (p == (char *)-1)
8056 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8057 MAP_ANON|MAP_PRIVATE, -1, 0);
8058 if (p == (char *)-1)
8062 char *string = "__si_type_info";
8063 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8064 char *r = (char *) p + 0xe;
8070 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8075 rm -f conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_cv_func_strncmp_works=yes
8088 echo "$as_me: program exited with status $ac_status" >&5
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_cv_func_strncmp_works=no
8095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8097 rm -f core core.* *.core
8099 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8100 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8101 if test $ac_cv_func_strncmp_works = no ; then
8103 "strncmp.$ac_objext" | \
8104 *" strncmp.$ac_objext" | \
8105 "strncmp.$ac_objext "* | \
8106 *" strncmp.$ac_objext "* ) ;;
8107 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
8113 # Install a library built with a cross compiler in $(tooldir) rather
8115 if test -z "${with_cross_host}"; then
8118 INSTALL_DEST=tooldir
8124 for l in x $LIBOBJS; do
8132 # We need multilib support, but only if configuring for the target.
8133 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
8135 ac_config_commands="$ac_config_commands default"
8137 cat >confcache <<\_ACEOF
8138 # This file is a shell script that caches the results of configure
8139 # tests run on this system so they can be shared between configure
8140 # scripts and configure runs, see configure's option --config-cache.
8141 # It is not useful on other systems. If it contains results you don't
8142 # want to keep, you may remove or edit it.
8144 # config.status only pays attention to the cache file if you give it
8145 # the --recheck option to rerun configure.
8147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8153 # The following way of writing the cache mishandles newlines in values,
8154 # but we know of no workaround that is simple, portable, and efficient.
8155 # So, don't put newlines in cache variables' values.
8156 # Ultrix sh set writes to stderr and can't be redirected directly,
8157 # and sets the high bit in the cache file unless we assign to the vars.
8160 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8162 # `set' does not quote correctly, so add quotes (double-quote
8163 # substitution turns \\\\ into \\, and sed turns \\ into \).
8166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8169 # `set' quotes correctly as required by POSIX, so do not add quotes.
8171 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8180 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8182 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8183 if test -w $cache_file; then
8184 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8185 cat confcache >$cache_file
8187 echo "not updating unwritable cache $cache_file"
8192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8193 # Let make expand exec_prefix.
8194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8196 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8197 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8198 # trailing colons and then remove the whole line if VPATH becomes empty
8199 # (actually we leave an empty line to preserve line numbers).
8200 if test "x$srcdir" = x.; then
8201 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8202 s/:*\$(srcdir):*/:/;
8203 s/:*\${srcdir}:*/:/;
8205 s/^\([^=]*=[ ]*\):*/\1/;
8211 DEFS=-DHAVE_CONFIG_H
8215 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8216 # 1. Remove the extension, and $U if already installed.
8217 ac_i=`echo "$ac_i" |
8218 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8220 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8221 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8225 LTLIBOBJS=$ac_ltlibobjs
8229 : ${CONFIG_STATUS=./config.status}
8230 ac_clean_files_save=$ac_clean_files
8231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8232 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8233 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8234 cat >$CONFIG_STATUS <<_ACEOF
8236 # Generated by $as_me.
8237 # Run this file to recreate the current configuration.
8238 # Compiler output produced by configure, useful for debugging
8239 # configure, is in config.log if it exists.
8244 SHELL=\${CONFIG_SHELL-$SHELL}
8247 cat >>$CONFIG_STATUS <<\_ACEOF
8248 ## --------------------- ##
8249 ## M4sh Initialization. ##
8250 ## --------------------- ##
8252 # Be Bourne compatible
8253 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8256 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8257 # is contrary to our usage. Disable this feature.
8258 alias -g '${1+"$@"}'='"$@"'
8259 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8262 DUALCASE=1; export DUALCASE # for MKS sh
8264 # Support unset when possible.
8265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8272 # Work around bugs in pre-3.0 UWIN ksh.
8273 $as_unset ENV MAIL MAILPATH
8280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8282 LC_TELEPHONE LC_TIME
8284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8285 eval $as_var=C; export $as_var
8291 # Required to use basename.
8292 if expr a : '\(a\)' >/dev/null 2>&1; then
8298 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8299 as_basename=basename
8305 # Name of the executable.
8306 as_me=`$as_basename "$0" ||
8307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8308 X"$0" : 'X\(//\)$' \| \
8309 X"$0" : 'X\(/\)$' \| \
8310 . : '\(.\)' 2>/dev/null ||
8312 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8313 /^X\/\(\/\/\)$/{ s//\1/; q; }
8314 /^X\/\(\/\).*/{ s//\1/; q; }
8318 # PATH needs CR, and LINENO needs CR and PATH.
8319 # Avoid depending upon Character Ranges.
8320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8323 as_cr_digits='0123456789'
8324 as_cr_alnum=$as_cr_Letters$as_cr_digits
8326 # The user is always right.
8327 if test "${PATH_SEPARATOR+set}" != set; then
8328 echo "#! /bin/sh" >conf$$.sh
8329 echo "exit 0" >>conf$$.sh
8331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8343 test "x$as_lineno_1" != "x$as_lineno_2" &&
8344 test "x$as_lineno_3" = "x$as_lineno_2" || {
8345 # Find who we are. Look in the path if we contain no path at all
8348 *[\\/]* ) as_myself=$0 ;;
8349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8359 # We did not find ourselves, most probably we were run as `sh COMMAND'
8360 # in which case we are not to be found in the path.
8361 if test "x$as_myself" = x; then
8364 if test ! -f "$as_myself"; then
8365 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8366 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8367 { (exit 1); exit 1; }; }
8369 case $CONFIG_SHELL in
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8375 test -z "$as_dir" && as_dir=.
8376 for as_base in sh bash ksh sh5; do
8379 if ("$as_dir/$as_base" -c '
8382 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8383 test "x$as_lineno_1" != "x$as_lineno_2" &&
8384 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8385 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8386 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8387 CONFIG_SHELL=$as_dir/$as_base
8389 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8397 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8398 # uniformly replaced by the line number. The first 'sed' inserts a
8399 # line-number line before each line; the second 'sed' does the real
8400 # work. The second script uses 'N' to pair each line-number line
8401 # with the numbered line, and appends trailing '-' during
8402 # substitution so that $LINENO is not a special case at line end.
8403 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8404 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8405 sed '=' <$as_myself |
8410 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8413 s,^['$as_cr_digits']*\n,,
8415 chmod +x $as_me.lineno ||
8416 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8417 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8418 { (exit 1); exit 1; }; }
8420 # Don't try to exec as it changes $[0], causing all sort of problems
8421 # (the dirname of $[0] is not the place where we might find the
8422 # original and so on. Autoconf is especially sensible to this).
8424 # Exit status is that of the last command.
8429 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8430 *c*,-n*) ECHO_N= ECHO_C='
8432 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8433 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8436 if expr a : '\(a\)' >/dev/null 2>&1; then
8442 rm -f conf$$ conf$$.exe conf$$.file
8444 if ln -s conf$$.file conf$$ 2>/dev/null; then
8445 # We could just check for DJGPP; but this test a) works b) is more generic
8446 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8447 if test -f conf$$.exe; then
8448 # Don't use ln at all; we don't have any links
8453 elif ln conf$$.file conf$$ 2>/dev/null; then
8458 rm -f conf$$ conf$$.exe conf$$.file
8460 if mkdir -p . 2>/dev/null; then
8463 test -d ./-p && rmdir ./-p
8467 as_executable_p="test -f"
8469 # Sed expression to map a string onto a valid CPP name.
8470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8472 # Sed expression to map a string onto a valid variable name.
8473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8477 # We need space, tab and new line, in precisely that order.
8487 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8488 # report actual input values of CONFIG_FILES etc. instead of their
8489 # values after options handling. Logging --version etc. is OK.
8493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8494 ## Running $as_me. ##
8499 This file was extended by $as_me, which was
8500 generated by GNU Autoconf 2.59. Invocation command line was
8502 CONFIG_FILES = $CONFIG_FILES
8503 CONFIG_HEADERS = $CONFIG_HEADERS
8504 CONFIG_LINKS = $CONFIG_LINKS
8505 CONFIG_COMMANDS = $CONFIG_COMMANDS
8509 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8513 # Files that config.status was made for.
8514 if test -n "$ac_config_files"; then
8515 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8518 if test -n "$ac_config_headers"; then
8519 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8522 if test -n "$ac_config_links"; then
8523 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8526 if test -n "$ac_config_commands"; then
8527 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8530 cat >>$CONFIG_STATUS <<\_ACEOF
8533 \`$as_me' instantiates files from templates according to the
8534 current configuration.
8536 Usage: $0 [OPTIONS] [FILE]...
8538 -h, --help print this help, then exit
8539 -V, --version print version number, then exit
8540 -q, --quiet do not print progress messages
8541 -d, --debug don't remove temporary files
8542 --recheck update $as_me by reconfiguring in the same conditions
8543 --file=FILE[:TEMPLATE]
8544 instantiate the configuration file FILE
8545 --header=FILE[:TEMPLATE]
8546 instantiate the configuration header FILE
8548 Configuration files:
8551 Configuration headers:
8554 Configuration commands:
8557 Report bugs to <bug-autoconf@gnu.org>."
8560 cat >>$CONFIG_STATUS <<_ACEOF
8563 configured by $0, generated by GNU Autoconf 2.59,
8564 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8566 Copyright (C) 2003 Free Software Foundation, Inc.
8567 This config.status script is free software; the Free Software Foundation
8568 gives unlimited permission to copy, distribute and modify it."
8573 cat >>$CONFIG_STATUS <<\_ACEOF
8574 # If no file are specified by the user, then we need to provide default
8575 # value. By we need to know if files were specified by the user.
8581 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8582 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8590 *) # This is not an option, so the user has probably given explicit
8593 ac_need_defaults=false;;
8597 # Handling of the options.
8599 cat >>$CONFIG_STATUS <<\_ACEOF
8600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8602 --version | --vers* | -V )
8603 echo "$ac_cs_version"; exit 0 ;;
8605 # Conflict between --help and --header
8606 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8607 Try \`$0 --help' for more information." >&5
8608 echo "$as_me: error: ambiguous option: $1
8609 Try \`$0 --help' for more information." >&2;}
8610 { (exit 1); exit 1; }; };;
8611 --help | --hel | -h )
8612 echo "$ac_cs_usage"; exit 0 ;;
8613 --debug | --d* | -d )
8615 --file | --fil | --fi | --f )
8617 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8618 ac_need_defaults=false;;
8619 --header | --heade | --head | --hea )
8621 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8622 ac_need_defaults=false;;
8623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8628 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8629 Try \`$0 --help' for more information." >&5
8630 echo "$as_me: error: unrecognized option: $1
8631 Try \`$0 --help' for more information." >&2;}
8632 { (exit 1); exit 1; }; } ;;
8634 *) ac_config_targets="$ac_config_targets $1" ;;
8640 ac_configure_extra_args=
8642 if $ac_cs_silent; then
8644 ac_configure_extra_args="$ac_configure_extra_args --silent"
8648 cat >>$CONFIG_STATUS <<_ACEOF
8649 if \$ac_cs_recheck; then
8650 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8651 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8656 cat >>$CONFIG_STATUS <<_ACEOF
8658 # INIT-COMMANDS section.
8664 with_target_subdir=${with_target_subdir}
8665 with_multisubdir=${with_multisubdir}
8666 ac_configure_args="--enable-multilib ${ac_configure_args}"
8667 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8668 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8669 libiberty_topdir=${libiberty_topdir}
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8677 for ac_config_target in $ac_config_targets
8679 case "$ac_config_target" in
8680 # Handling of arguments.
8681 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8682 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8683 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8684 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8685 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8686 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8687 { (exit 1); exit 1; }; };;
8691 # If the user did not use the arguments to specify the items to instantiate,
8692 # then the envvar interface is used. Set only those that are not.
8693 # We use the long form for the default assignment because of an extremely
8694 # bizarre bug on SunOS 4.1.3.
8695 if $ac_need_defaults; then
8696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8701 # Have a temporary directory for convenience. Make it in the build tree
8702 # simply because there is no reason to put it here, and in addition,
8703 # creating and moving files from /tmp can sometimes cause problems.
8704 # Create a temporary directory, and hook for its removal unless debugging.
8707 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8708 trap '{ (exit 1); exit 1; }' 1 2 13 15
8711 # Create a (secure) tmp directory for tmp files.
8714 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8715 test -n "$tmp" && test -d "$tmp"
8718 tmp=./confstat$$-$RANDOM
8719 (umask 077 && mkdir $tmp)
8722 echo "$me: cannot create a temporary directory in ." >&2
8723 { (exit 1); exit 1; }
8728 cat >>$CONFIG_STATUS <<_ACEOF
8731 # CONFIG_FILES section.
8734 # No need to generate the scripts if there are no CONFIG_FILES.
8735 # This happens for instance when ./config.status config.h
8736 if test -n "\$CONFIG_FILES"; then
8737 # Protect against being on the right side of a sed subst in config.status.
8738 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8739 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8740 s,@SHELL@,$SHELL,;t t
8741 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8742 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8743 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8744 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8745 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8746 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8747 s,@exec_prefix@,$exec_prefix,;t t
8748 s,@prefix@,$prefix,;t t
8749 s,@program_transform_name@,$program_transform_name,;t t
8750 s,@bindir@,$bindir,;t t
8751 s,@sbindir@,$sbindir,;t t
8752 s,@libexecdir@,$libexecdir,;t t
8753 s,@datadir@,$datadir,;t t
8754 s,@sysconfdir@,$sysconfdir,;t t
8755 s,@sharedstatedir@,$sharedstatedir,;t t
8756 s,@localstatedir@,$localstatedir,;t t
8757 s,@libdir@,$libdir,;t t
8758 s,@includedir@,$includedir,;t t
8759 s,@oldincludedir@,$oldincludedir,;t t
8760 s,@infodir@,$infodir,;t t
8761 s,@mandir@,$mandir,;t t
8762 s,@build_alias@,$build_alias,;t t
8763 s,@host_alias@,$host_alias,;t t
8764 s,@target_alias@,$target_alias,;t t
8766 s,@ECHO_C@,$ECHO_C,;t t
8767 s,@ECHO_N@,$ECHO_N,;t t
8768 s,@ECHO_T@,$ECHO_T,;t t
8770 s,@libiberty_topdir@,$libiberty_topdir,;t t
8771 s,@MAINT@,$MAINT,;t t
8772 s,@NOTMAINT@,$NOTMAINT,;t t
8773 s,@MAKEINFO@,$MAKEINFO,;t t
8774 s,@BUILD_INFO@,$BUILD_INFO,;t t
8776 s,@HAVE_PERL@,$HAVE_PERL,;t t
8777 s,@build@,$build,;t t
8778 s,@build_cpu@,$build_cpu,;t t
8779 s,@build_vendor@,$build_vendor,;t t
8780 s,@build_os@,$build_os,;t t
8782 s,@host_cpu@,$host_cpu,;t t
8783 s,@host_vendor@,$host_vendor,;t t
8784 s,@host_os@,$host_os,;t t
8786 s,@ac_ct_AR@,$ac_ct_AR,;t t
8787 s,@RANLIB@,$RANLIB,;t t
8788 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8790 s,@CFLAGS@,$CFLAGS,;t t
8791 s,@LDFLAGS@,$LDFLAGS,;t t
8792 s,@CPPFLAGS@,$CPPFLAGS,;t t
8793 s,@ac_ct_CC@,$ac_ct_CC,;t t
8794 s,@EXEEXT@,$EXEEXT,;t t
8795 s,@OBJEXT@,$OBJEXT,;t t
8797 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
8798 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
8799 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
8800 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8801 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8802 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8803 s,@EGREP@,$EGREP,;t t
8804 s,@LIBOBJS@,$LIBOBJS,;t t
8805 s,@CHECK@,$CHECK,;t t
8806 s,@target_header_dir@,$target_header_dir,;t t
8807 s,@pexecute@,$pexecute,;t t
8808 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
8809 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8810 /@host_makefile_frag@/r $host_makefile_frag
8811 s,@host_makefile_frag@,,;t t
8816 cat >>$CONFIG_STATUS <<\_ACEOF
8817 # Split the substitutions into bite-sized pieces for seds with
8818 # small command number limits, like on Digital OSF/1 and HP-UX.
8820 ac_sed_frag=1 # Number of current file.
8821 ac_beg=1 # First line for current file.
8822 ac_end=$ac_max_sed_lines # Line after last line for current file.
8825 while $ac_more_lines; do
8826 if test $ac_beg -gt 1; then
8827 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8829 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8831 if test ! -s $tmp/subs.frag; then
8834 # The purpose of the label and of the branching condition is to
8835 # speed up the sed processing (if there are no `@' at all, there
8836 # is no need to browse any of the substitutions).
8837 # These are the two extra sed commands mentioned above.
8839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8840 if test -z "$ac_sed_cmds"; then
8841 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8843 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8845 ac_sed_frag=`expr $ac_sed_frag + 1`
8847 ac_end=`expr $ac_end + $ac_max_sed_lines`
8850 if test -z "$ac_sed_cmds"; then
8853 fi # test -n "$CONFIG_FILES"
8856 cat >>$CONFIG_STATUS <<\_ACEOF
8857 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8860 - | *:- | *:-:* ) # input from stdin
8862 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8864 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8866 * ) ac_file_in=$ac_file.in ;;
8869 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8870 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8871 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8872 X"$ac_file" : 'X\(//\)[^/]' \| \
8873 X"$ac_file" : 'X\(//\)$' \| \
8874 X"$ac_file" : 'X\(/\)' \| \
8875 . : '\(.\)' 2>/dev/null ||
8877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8879 /^X\(\/\/\)$/{ s//\1/; q; }
8880 /^X\(\/\).*/{ s//\1/; q; }
8882 { if $as_mkdir_p; then
8887 while test ! -d "$as_dir"; do
8888 as_dirs="$as_dir $as_dirs"
8889 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8891 X"$as_dir" : 'X\(//\)[^/]' \| \
8892 X"$as_dir" : 'X\(//\)$' \| \
8893 X"$as_dir" : 'X\(/\)' \| \
8894 . : '\(.\)' 2>/dev/null ||
8896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8898 /^X\(\/\/\)$/{ s//\1/; q; }
8899 /^X\(\/\).*/{ s//\1/; q; }
8902 test ! -n "$as_dirs" || mkdir $as_dirs
8903 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8905 { (exit 1); exit 1; }; }; }
8909 if test "$ac_dir" != .; then
8910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8911 # A "../" for each directory in $ac_dir_suffix.
8912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8914 ac_dir_suffix= ac_top_builddir=
8918 .) # No --srcdir option. We are building in place.
8920 if test -z "$ac_top_builddir"; then
8923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8925 [\\/]* | ?:[\\/]* ) # Absolute path.
8926 ac_srcdir=$srcdir$ac_dir_suffix;
8927 ac_top_srcdir=$srcdir ;;
8929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8933 # Do not use `cd foo && pwd` to compute absolute paths, because
8934 # the directories may not exist.
8936 .) ac_abs_builddir="$ac_dir";;
8939 .) ac_abs_builddir=`pwd`;;
8940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8944 case $ac_abs_builddir in
8945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8947 case ${ac_top_builddir}. in
8948 .) ac_abs_top_builddir=$ac_abs_builddir;;
8949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8953 case $ac_abs_builddir in
8954 .) ac_abs_srcdir=$ac_srcdir;;
8957 .) ac_abs_srcdir=$ac_abs_builddir;;
8958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8962 case $ac_abs_builddir in
8963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8965 case $ac_top_srcdir in
8966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8975 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8978 if test x"$ac_file" != x-; then
8979 { echo "$as_me:$LINENO: creating $ac_file" >&5
8980 echo "$as_me: creating $ac_file" >&6;}
8983 # Let's still pretend it is `configure' which instantiates (i.e., don't
8984 # use $as_me), people would be surprised to read:
8985 # /* config.h. Generated by config.status. */
8986 if test x"$ac_file" = x-; then
8989 configure_input="$ac_file. "
8991 configure_input=$configure_input"Generated from `echo $ac_file_in |
8992 sed 's,.*/,,'` by configure."
8994 # First look for the input files in the build tree, otherwise in the
8996 ac_file_inputs=`IFS=:
8997 for f in $ac_file_in; do
8999 -) echo $tmp/stdin ;;
9001 # Absolute (can't be DOS-style, as IFS=:)
9002 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9003 echo "$as_me: error: cannot find input file: $f" >&2;}
9004 { (exit 1); exit 1; }; }
9007 if test -f "$f"; then
9010 elif test -f "$srcdir/$f"; then
9015 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9016 echo "$as_me: error: cannot find input file: $f" >&2;}
9017 { (exit 1); exit 1; }; }
9020 done` || { (exit 1); exit 1; }
9022 cat >>$CONFIG_STATUS <<_ACEOF
9026 cat >>$CONFIG_STATUS <<\_ACEOF
9028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9029 s,@configure_input@,$configure_input,;t t
9030 s,@srcdir@,$ac_srcdir,;t t
9031 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9032 s,@top_srcdir@,$ac_top_srcdir,;t t
9033 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9034 s,@builddir@,$ac_builddir,;t t
9035 s,@abs_builddir@,$ac_abs_builddir,;t t
9036 s,@top_builddir@,$ac_top_builddir,;t t
9037 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9038 s,@INSTALL@,$ac_INSTALL,;t t
9039 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9041 if test x"$ac_file" != x-; then
9042 mv $tmp/out $ac_file
9050 cat >>$CONFIG_STATUS <<\_ACEOF
9053 # CONFIG_HEADER section.
9056 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9057 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9059 # ac_d sets the value in "#define NAME VALUE" lines.
9060 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9061 ac_dB='[ ].*$,\1#\2'
9064 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9065 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9066 ac_uB='$,\1#\2define\3'
9070 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9073 - | *:- | *:-:* ) # input from stdin
9075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9079 * ) ac_file_in=$ac_file.in ;;
9082 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9083 echo "$as_me: creating $ac_file" >&6;}
9085 # First look for the input files in the build tree, otherwise in the
9087 ac_file_inputs=`IFS=:
9088 for f in $ac_file_in; do
9090 -) echo $tmp/stdin ;;
9092 # Absolute (can't be DOS-style, as IFS=:)
9093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9094 echo "$as_me: error: cannot find input file: $f" >&2;}
9095 { (exit 1); exit 1; }; }
9096 # Do quote $f, to prevent DOS paths from being IFS'd.
9099 if test -f "$f"; then
9102 elif test -f "$srcdir/$f"; then
9107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9108 echo "$as_me: error: cannot find input file: $f" >&2;}
9109 { (exit 1); exit 1; }; }
9112 done` || { (exit 1); exit 1; }
9113 # Remove the trailing spaces.
9114 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9118 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9119 # `conftest.undefs', that substitutes the proper values into
9120 # config.h.in to produce config.h. The first handles `#define'
9121 # templates, and the second `#undef' templates.
9122 # And first: Protect against being on the right side of a sed subst in
9123 # config.status. Protect against being in an unquoted here document
9125 rm -f conftest.defines conftest.undefs
9126 # Using a here document instead of a string reduces the quoting nightmare.
9127 # Putting comments in sed scripts is not portable.
9129 # `end' is used to avoid that the second main sed command (meant for
9130 # 0-ary CPP macros) applies to n-ary macro definitions.
9131 # See the Autoconf documentation for `clear'.
9132 cat >confdef2sed.sed <<\_ACEOF
9137 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9139 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9142 # If some macros were called several times there might be several times
9143 # the same #defines, which is useless. Nevertheless, we may not want to
9144 # sort them, since we want the *last* AC-DEFINE to be honored.
9145 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9146 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9147 rm -f confdef2sed.sed
9149 # This sed command replaces #undef with comments. This is necessary, for
9150 # example, in the case of _POSIX_SOURCE, which is predefined and required
9151 # on some systems where configure will not decide to define it.
9152 cat >>conftest.undefs <<\_ACEOF
9153 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9156 # Break up conftest.defines because some shells have a limit on the size
9157 # of here documents, and old seds have small limits too (100 cmds).
9158 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9159 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9160 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9161 echo ' :' >>$CONFIG_STATUS
9163 while grep . conftest.defines >/dev/null
9165 # Write a limited-size here document to $tmp/defines.sed.
9166 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9167 # Speed up: don't consider the non `#define' lines.
9168 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9169 # Work around the forget-to-reset-the-flag bug.
9170 echo 't clr' >>$CONFIG_STATUS
9171 echo ': clr' >>$CONFIG_STATUS
9172 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9174 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9178 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9179 rm -f conftest.defines
9180 mv conftest.tail conftest.defines
9182 rm -f conftest.defines
9183 echo ' fi # grep' >>$CONFIG_STATUS
9184 echo >>$CONFIG_STATUS
9186 # Break up conftest.undefs because some shells have a limit on the size
9187 # of here documents, and old seds have small limits too (100 cmds).
9188 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9190 while grep . conftest.undefs >/dev/null
9192 # Write a limited-size here document to $tmp/undefs.sed.
9193 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9194 # Speed up: don't consider the non `#undef'
9195 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9196 # Work around the forget-to-reset-the-flag bug.
9197 echo 't clr' >>$CONFIG_STATUS
9198 echo ': clr' >>$CONFIG_STATUS
9199 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9201 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9205 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9206 rm -f conftest.undefs
9207 mv conftest.tail conftest.undefs
9209 rm -f conftest.undefs
9211 cat >>$CONFIG_STATUS <<\_ACEOF
9212 # Let's still pretend it is `configure' which instantiates (i.e., don't
9213 # use $as_me), people would be surprised to read:
9214 # /* config.h. Generated by config.status. */
9215 if test x"$ac_file" = x-; then
9216 echo "/* Generated by configure. */" >$tmp/config.h
9218 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9220 cat $tmp/in >>$tmp/config.h
9222 if test x"$ac_file" != x-; then
9223 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9224 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9225 echo "$as_me: $ac_file is unchanged" >&6;}
9227 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9229 X"$ac_file" : 'X\(//\)[^/]' \| \
9230 X"$ac_file" : 'X\(//\)$' \| \
9231 X"$ac_file" : 'X\(/\)' \| \
9232 . : '\(.\)' 2>/dev/null ||
9234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9236 /^X\(\/\/\)$/{ s//\1/; q; }
9237 /^X\(\/\).*/{ s//\1/; q; }
9239 { if $as_mkdir_p; then
9244 while test ! -d "$as_dir"; do
9245 as_dirs="$as_dir $as_dirs"
9246 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9248 X"$as_dir" : 'X\(//\)[^/]' \| \
9249 X"$as_dir" : 'X\(//\)$' \| \
9250 X"$as_dir" : 'X\(/\)' \| \
9251 . : '\(.\)' 2>/dev/null ||
9253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9255 /^X\(\/\/\)$/{ s//\1/; q; }
9256 /^X\(\/\).*/{ s//\1/; q; }
9259 test ! -n "$as_dirs" || mkdir $as_dirs
9260 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9261 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9262 { (exit 1); exit 1; }; }; }
9265 mv $tmp/config.h $ac_file
9273 cat >>$CONFIG_STATUS <<\_ACEOF
9276 # CONFIG_COMMANDS section.
9278 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9279 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9280 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9281 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9282 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9283 X"$ac_dest" : 'X\(//\)[^/]' \| \
9284 X"$ac_dest" : 'X\(//\)$' \| \
9285 X"$ac_dest" : 'X\(/\)' \| \
9286 . : '\(.\)' 2>/dev/null ||
9288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9290 /^X\(\/\/\)$/{ s//\1/; q; }
9291 /^X\(\/\).*/{ s//\1/; q; }
9293 { if $as_mkdir_p; then
9298 while test ! -d "$as_dir"; do
9299 as_dirs="$as_dir $as_dirs"
9300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9302 X"$as_dir" : 'X\(//\)[^/]' \| \
9303 X"$as_dir" : 'X\(//\)$' \| \
9304 X"$as_dir" : 'X\(/\)' \| \
9305 . : '\(.\)' 2>/dev/null ||
9307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9309 /^X\(\/\/\)$/{ s//\1/; q; }
9310 /^X\(\/\).*/{ s//\1/; q; }
9313 test ! -n "$as_dirs" || mkdir $as_dirs
9314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9316 { (exit 1); exit 1; }; }; }
9320 if test "$ac_dir" != .; then
9321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9322 # A "../" for each directory in $ac_dir_suffix.
9323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9325 ac_dir_suffix= ac_top_builddir=
9329 .) # No --srcdir option. We are building in place.
9331 if test -z "$ac_top_builddir"; then
9334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9336 [\\/]* | ?:[\\/]* ) # Absolute path.
9337 ac_srcdir=$srcdir$ac_dir_suffix;
9338 ac_top_srcdir=$srcdir ;;
9340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9344 # Do not use `cd foo && pwd` to compute absolute paths, because
9345 # the directories may not exist.
9347 .) ac_abs_builddir="$ac_dir";;
9350 .) ac_abs_builddir=`pwd`;;
9351 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9352 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9355 case $ac_abs_builddir in
9356 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9358 case ${ac_top_builddir}. in
9359 .) ac_abs_top_builddir=$ac_abs_builddir;;
9360 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9361 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9364 case $ac_abs_builddir in
9365 .) ac_abs_srcdir=$ac_srcdir;;
9368 .) ac_abs_srcdir=$ac_abs_builddir;;
9369 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9370 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9373 case $ac_abs_builddir in
9374 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9376 case $ac_top_srcdir in
9377 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9378 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9379 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9384 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9385 echo "$as_me: executing $ac_dest commands" >&6;}
9387 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9388 if test -n "$CONFIG_FILES"; then
9389 if test -n "${with_target_subdir}"; then
9390 # FIXME: We shouldn't need to set ac_file
9392 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9393 . ${libiberty_topdir}/config-ml.in
9400 cat >>$CONFIG_STATUS <<\_ACEOF
9402 { (exit 0); exit 0; }
9404 chmod +x $CONFIG_STATUS
9405 ac_clean_files=$ac_clean_files_save
9408 # configure is writing to config.log, and then calls config.status.
9409 # config.status does its own redirection, appending to config.log.
9410 # Unfortunately, on DOS this fails, as config.log is still kept open
9411 # by configure, so config.status won't be able to write to it; its
9412 # output is simply discarded. So we exec the FD to /dev/null,
9413 # effectively closing config.log, so it can be properly (re)opened and
9414 # appended to by config.status. When coming back to configure, we
9415 # need to make the FD available again.
9416 if test "$no_create" != yes; then
9418 ac_config_status_args=
9419 test "$silent" = yes &&
9420 ac_config_status_args="$ac_config_status_args --quiet"
9422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9425 # would make configure fail if this is the last instruction.
9426 $ac_cs_success || { (exit 1); exit 1; }