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
1308 # This works around the fact that libtool configuration may change LD
1309 # for this particular configuration, but some shells, instead of
1310 # keeping the changes in LD private, export them just because LD is
1311 # exported. We don't use libtool yet, but some day we might, so...
1312 ORIGINAL_LD_FOR_MULTILIBS=$LD
1315 # Check whether --with-target-subdir or --without-target-subdir was given.
1316 if test "${with_target_subdir+set}" = set; then
1317 withval="$with_target_subdir"
1321 # Check whether --with-build-subdir or --without-build-subdir was given.
1322 if test "${with_build_subdir+set}" = set; then
1323 withval="$with_build_subdir"
1327 # Check whether --with-cross-host or --without-cross-host was given.
1328 if test "${with_cross_host+set}" = set; then
1329 withval="$with_cross_host"
1333 # Check whether --with-newlib or --without-newlib was given.
1334 if test "${with_newlib+set}" = set; then
1335 withval="$with_newlib"
1339 if test "${srcdir}" = "."; then
1340 if test -n "${with_build_subdir}"; then
1341 libiberty_topdir="${srcdir}/../.."
1343 elif test -z "${with_target_subdir}"; then
1344 libiberty_topdir="${srcdir}/.."
1346 if test "${with_target_subdir}" != "."; then
1347 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1349 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1353 libiberty_topdir="${srcdir}/.."
1357 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1358 if test -f $ac_dir/install-sh; then
1360 ac_install_sh="$ac_aux_dir/install-sh -c"
1362 elif test -f $ac_dir/install.sh; then
1364 ac_install_sh="$ac_aux_dir/install.sh -c"
1366 elif test -f $ac_dir/shtool; then
1368 ac_install_sh="$ac_aux_dir/shtool install -c"
1372 if test -z "$ac_aux_dir"; then
1373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1374 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1375 { (exit 1); exit 1; }; }
1377 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1378 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1379 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1383 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1384 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1385 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1386 if test "${enable_maintainer_mode+set}" = set; then
1387 enableval="$enable_maintainer_mode"
1388 maintainer_mode=$enableval
1393 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1394 echo "${ECHO_T}$maintainer_mode" >&6
1396 if test "$maintainer_mode" = "yes"; then
1404 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1405 # rely on it - libiberty is built before texinfo.
1406 # Extract the first word of "makeinfo", so it can be a program name with args.
1407 set dummy makeinfo; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$MAKEINFO"; then
1414 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 test -z "$as_dir" && as_dir=.
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423 ac_cv_prog_MAKEINFO="makeinfo"
1424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 MAKEINFO=$ac_cv_prog_MAKEINFO
1433 if test -n "$MAKEINFO"; then
1434 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1435 echo "${ECHO_T}$MAKEINFO" >&6
1437 echo "$as_me:$LINENO: result: no" >&5
1438 echo "${ECHO_T}no" >&6
1441 if test "x$MAKEINFO" = "x"; then
1442 MAKEINFO="@echo makeinfo missing; true"
1447 */missing\ makeinfo*)
1449 { echo "$as_me:$LINENO: WARNING:
1450 *** Makeinfo is missing. Info documentation will not be built." >&5
1451 echo "$as_me: WARNING:
1452 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1455 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1457 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1459 { echo "$as_me:$LINENO: WARNING:
1460 *** Makeinfo is too old. Info documentation will not be built." >&5
1461 echo "$as_me: WARNING:
1462 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1471 # Extract the first word of "perl", so it can be a program name with args.
1472 set dummy perl; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_PERL+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$PERL"; then
1479 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_PERL="perl"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 PERL=$ac_cv_prog_PERL
1498 if test -n "$PERL"; then
1499 echo "$as_me:$LINENO: result: $PERL" >&5
1500 echo "${ECHO_T}$PERL" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 if test x"$PERL" = x""; then
1513 # Make sure we can run config.sub.
1514 $ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: checking build system type" >&5
1520 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521 if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 ac_cv_build_alias=$build_alias
1525 test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527 test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538 echo "${ECHO_T}$ac_cv_build" >&6
1540 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545 echo "$as_me:$LINENO: checking host system type" >&5
1546 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547 if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 ac_cv_host_alias=$host_alias
1551 test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560 echo "${ECHO_T}$ac_cv_host" >&6
1562 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569 if test -n "$ac_tool_prefix"; then
1570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1571 set dummy ${ac_tool_prefix}ar; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_AR+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 if test -n "$AR"; then
1578 ac_cv_prog_AR="$AR" # Let the user override the test.
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_AR="${ac_tool_prefix}ar"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 if test -n "$AR"; then
1598 echo "$as_me:$LINENO: result: $AR" >&5
1599 echo "${ECHO_T}$AR" >&6
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1606 if test -z "$ac_cv_prog_AR"; then
1608 # Extract the first word of "ar", so it can be a program name with args.
1609 set dummy ar; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 if test -n "$ac_ct_AR"; then
1616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_ac_ct_AR="ar"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1635 if test -n "$ac_ct_AR"; then
1636 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1637 echo "${ECHO_T}$ac_ct_AR" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1648 if test -n "$ac_tool_prefix"; then
1649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_RANLIB+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$RANLIB"; then
1657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 RANLIB=$ac_cv_prog_RANLIB
1676 if test -n "$RANLIB"; then
1677 echo "$as_me:$LINENO: result: $RANLIB" >&5
1678 echo "${ECHO_T}$RANLIB" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1685 if test -z "$ac_cv_prog_RANLIB"; then
1686 ac_ct_RANLIB=$RANLIB
1687 # Extract the first word of "ranlib", so it can be a program name with args.
1688 set dummy ranlib; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 if test -n "$ac_ct_RANLIB"; then
1695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_ac_ct_RANLIB="ranlib"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1715 if test -n "$ac_ct_RANLIB"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1717 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 RANLIB=$ac_ct_RANLIB
1725 RANLIB="$ac_cv_prog_RANLIB"
1731 ac_cpp='$CPP $CPPFLAGS'
1732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735 if test -n "$ac_tool_prefix"; then
1736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 if test -n "$CC"; then
1764 echo "$as_me:$LINENO: result: $CC" >&5
1765 echo "${ECHO_T}$CC" >&6
1767 echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1772 if test -z "$ac_cv_prog_CC"; then
1774 # Extract the first word of "gcc", so it can be a program name with args.
1775 set dummy gcc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$ac_ct_CC"; then
1782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_ac_ct_CC="gcc"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1801 if test -n "$ac_ct_CC"; then
1802 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1803 echo "${ECHO_T}$ac_ct_CC" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1814 if test -z "$CC"; then
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}cc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}cc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1852 if test -z "$ac_cv_prog_CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="cc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1895 if test -z "$CC"; then
1896 # Extract the first word of "cc", so it can be a program name with args.
1897 set dummy cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1915 ac_prog_rejected=yes
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test $ac_prog_rejected = yes; then
1926 # We found a bogon in the path, so make sure we never use it.
1927 set dummy $ac_cv_prog_CC
1929 if test $# != 0; then
1930 # We chose a different compiler from the bogus one.
1931 # However, it has the same basename, so the bogon will be chosen
1932 # first if we set CC to just the basename; use the full file name.
1934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1940 if test -n "$CC"; then
1941 echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1949 if test -z "$CC"; then
1950 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1988 test -n "$CC" && break
1991 if test -z "$CC"; then
1995 # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_ac_ct_CC="$ac_prog"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2030 test -n "$ac_ct_CC" && break
2039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040 See \`config.log' for more details." >&5
2041 echo "$as_me: error: no acceptable C compiler found in \$PATH
2042 See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2045 # Provide some information about the compiler.
2046 echo "$as_me:$LINENO:" \
2047 "checking for C compiler version" >&5
2048 ac_compiler=`set X $ac_compile; echo $2`
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050 (eval $ac_compiler --version </dev/null >&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055 (eval $ac_compiler -v </dev/null >&5) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060 (eval $ac_compiler -V </dev/null >&5) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2065 cat >conftest.$ac_ext <<_ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082 (eval $ac_link) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2091 if test x$gcc_no_link = xyes; then
2092 # Setting cross_compile will disable run tests; it will
2093 # also disable AC_CHECK_FILE but that's generally
2094 # correct if we can't link.
2098 cat >conftest.$ac_ext <<_ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 # This is the source file.
2144 # We found the default executable, but exeext='' is most
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2188 if test "$cross_compiling" = maybe; then
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2250 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2251 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2252 if test "${ac_cv_objext+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 cat >conftest.$ac_ext <<_ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2270 rm -f conftest.o conftest.obj
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2287 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2296 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2297 echo "${ECHO_T}$ac_cv_objext" >&6
2298 OBJEXT=$ac_cv_objext
2300 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2301 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2302 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2327 grep -v '^ *+' conftest.er1 >conftest.err
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358 GCC=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS=${CFLAGS+set}
2360 ac_save_CFLAGS=$CFLAGS
2362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_g+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2414 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2415 if test "$ac_test_CFLAGS" = set; then
2416 CFLAGS=$ac_save_CFLAGS
2417 elif test $ac_cv_prog_cc_g = yes; then
2418 if test "$GCC" = yes; then
2424 if test "$GCC" = yes; then
2430 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2431 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2432 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 ac_cv_prog_cc_stdc=no
2437 cat >conftest.$ac_ext <<_ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2445 #include <sys/types.h>
2446 #include <sys/stat.h>
2447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2448 struct buf { int x; };
2449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2450 static char *e (p, i)
2456 static char *f (char * (*g) (char **, int), char **p, ...)
2461 s = g (p, va_arg (v,int));
2466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2467 function prototypes and stuff, but not '\xHH' hex character constants.
2468 These don't provoke an error unfortunately, instead are silently treated
2469 as 'x'. The following induces an error, until -std1 is added to get
2470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2471 array size at least. It's necessary to write '\x00'==0 to get something
2472 that's true only with -std1. */
2473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX -qlanglvl=ansi
2492 # Ultrix and OSF/1 -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions -Aa -D_HPUX_SOURCE
2495 # SVR4 -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2498 CC="$ac_save_CC $ac_arg"
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2503 grep -v '^ *+' conftest.er1 >conftest.err
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_prog_cc_stdc=$ac_arg
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext
2530 rm -f conftest.$ac_ext conftest.$ac_objext
2535 case "x$ac_cv_prog_cc_stdc" in
2537 echo "$as_me:$LINENO: result: none needed" >&5
2538 echo "${ECHO_T}none needed" >&6 ;;
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2542 CC="$CC $ac_cv_prog_cc_stdc" ;;
2545 # Some people use a C++ compiler to compile C. Since we use `exit',
2546 # in C++ we need to declare it. In case someone uses the same compiler
2547 # for both compiling C and C++ we need to have the C++ compiler decide
2548 # the declaration of exit, since it's the most demanding environment.
2549 cat >conftest.$ac_ext <<_ACEOF
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 for ac_declaration in \
2578 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579 'extern "C" void std::exit (int); using std::exit;' \
2580 'extern "C" void exit (int) throw ();' \
2581 'extern "C" void exit (int);' \
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 if test -n "$ac_declaration"; then
2677 echo '#ifdef __cplusplus' >>confdefs.h
2678 echo $ac_declaration >>confdefs.h
2679 echo '#endif' >>confdefs.h
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2700 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2701 # On Suns, sometimes $CPP names a directory.
2702 if test -n "$CPP" && test -d "$CPP"; then
2705 if test -z "$CPP"; then
2706 if test "${ac_cv_prog_CPP+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 # Double quotes because CPP needs to be expanded
2710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2713 for ac_c_preproc_warn_flag in '' yes
2715 # Use a header file that comes with gcc, so configuring glibc
2716 # with a fresh cross-compiler works.
2717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2718 # <limits.h> exists even on freestanding compilers.
2719 # On the NeXT, cc -E runs the code through the compiler's parser,
2720 # not just through cpp. "Syntax error" is here to catch this case.
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2728 # include <limits.h>
2730 # include <assert.h>
2734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2751 if test -z "$ac_cpp_err"; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 # Broken: fails on valid input.
2760 rm -f conftest.err conftest.$ac_ext
2762 # OK, works on sane cases. Now check whether non-existent headers
2763 # can be detected and how.
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 #include <ac_nonexistent.h>
2772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } >/dev/null; then
2780 if test -s conftest.err; then
2781 ac_cpp_err=$ac_c_preproc_warn_flag
2782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2789 if test -z "$ac_cpp_err"; then
2790 # Broken: success on invalid input.
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 # Passes both tests.
2800 rm -f conftest.err conftest.$ac_ext
2803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2804 rm -f conftest.err conftest.$ac_ext
2805 if $ac_preproc_ok; then
2817 echo "$as_me:$LINENO: result: $CPP" >&5
2818 echo "${ECHO_T}$CPP" >&6
2820 for ac_c_preproc_warn_flag in '' yes
2822 # Use a header file that comes with gcc, so configuring glibc
2823 # with a fresh cross-compiler works.
2824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825 # <limits.h> exists even on freestanding compilers.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2835 # include <limits.h>
2837 # include <assert.h>
2841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844 grep -v '^ *+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } >/dev/null; then
2849 if test -s conftest.err; then
2850 ac_cpp_err=$ac_c_preproc_warn_flag
2851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2858 if test -z "$ac_cpp_err"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 # Broken: fails on valid input.
2867 rm -f conftest.err conftest.$ac_ext
2869 # OK, works on sane cases. Now check whether non-existent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 #include <ac_nonexistent.h>
2879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } >/dev/null; then
2887 if test -s conftest.err; then
2888 ac_cpp_err=$ac_c_preproc_warn_flag
2889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2896 if test -z "$ac_cpp_err"; then
2897 # Broken: success on invalid input.
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 # Passes both tests.
2907 rm -f conftest.err conftest.$ac_ext
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2915 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 ac_c_preproc_warn_flag=yes
2931 if test x$GCC = xyes; then
2932 ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
2936 if test "x$CC" != xcc; then
2937 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2938 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2940 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2941 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2943 set dummy $CC; ac_cc=`echo $2 |
2944 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2945 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2963 # Make sure it works both with $CC and with simple cc.
2964 # We do the test twice because some compilers refuse to overwrite an
2965 # existing .o file with -o, though they will create one.
2966 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2967 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); };
2978 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2979 if test "x$CC" != xcc; then
2980 # Test first that cc exists at all.
2981 if { ac_try='cc -c conftest.$ac_ext >&5'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2988 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); };
3002 # cc exists but doesn't like -o.
3003 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3008 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3013 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3014 echo "$as_me:$LINENO: result: yes" >&5
3015 echo "${ECHO_T}yes" >&6
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3020 cat >>confdefs.h <<\_ACEOF
3021 #define NO_MINUS_C_MINUS_O 1
3026 # autoconf is lame and doesn't give us any substitution variable for this.
3027 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3028 NO_MINUS_C_MINUS_O=yes
3030 OUTPUT_OPTION='-o $@'
3036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3038 if test "${ac_cv_c_const+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3051 /* FIXME: Include the comments suggested by Paul. */
3053 /* Ultrix mips cc rejects this. */
3054 typedef int charset[2];
3056 /* SunOS 4.1.1 cc rejects this. */
3057 char const *const *ccp;
3059 /* NEC SVR4.0.2 mips cc rejects this. */
3060 struct point {int x, y;};
3061 static struct point const zero = {0,0};
3062 /* AIX XL C 1.02.0.0 rejects this.
3063 It does not let you subtract one const X* pointer from another in
3064 an arm of an if-expression whose if-part is not a constant
3066 const char *g = "string";
3067 ccp = &g + (g ? g-g : 0);
3068 /* HPUX 7.0 cc rejects these. */
3071 ccp = (char const *const *) p;
3072 { /* SCO 3.2v4 cc rejects this. */
3074 char const *s = 0 ? (char *) 0 : (char const *) 0;
3078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3080 const int *foo = &x[0];
3083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3084 typedef const int *iptr;
3088 { /* AIX XL C 1.02.0.0 rejects this saying
3089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3090 struct s { int j; const int *ap[3]; };
3091 struct s *b; b->j = 5;
3093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3134 echo "${ECHO_T}$ac_cv_c_const" >&6
3135 if test $ac_cv_c_const = no; then
3137 cat >>confdefs.h <<\_ACEOF
3143 echo "$as_me:$LINENO: checking for inline" >&5
3144 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3145 if test "${ac_cv_c_inline+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 for ac_kw in inline __inline__ __inline; do
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3158 static $ac_kw foo_t static_foo () {return 0; }
3159 $ac_kw foo_t foo () {return 0; }
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 ac_cv_c_inline=$ac_kw; break
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3196 echo "${ECHO_T}$ac_cv_c_inline" >&6
3199 case $ac_cv_c_inline in
3202 case $ac_cv_c_inline in
3204 *) ac_val=$ac_cv_c_inline;;
3206 cat >>confdefs.h <<_ACEOF
3208 #define inline $ac_val
3214 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3215 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3216 if test "${ac_cv_c_bigendian+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 ac_cv_c_bigendian=unknown
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
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -z "$ac_c_werror_flag"
3250 || test ! -s conftest.err'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 # It does; now see whether it defined to BIG_ENDIAN or not.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <sys/types.h>
3270 #include <sys/param.h>
3275 #if BYTE_ORDER != BIG_ENDIAN
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_c_bigendian=yes
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 ac_cv_c_bigendian=no
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 if test $ac_cv_c_bigendian = unknown; then
3319 if test "$cross_compiling" = yes; then
3320 echo $ac_n "cross-compiling... " 2>&6
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 /* Are we little or big endian? From Harbison&Steele. */
3333 char c[sizeof (long)];
3336 exit (u.c[sizeof (long) - 1] == 1);
3339 rm -f conftest$ac_exeext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341 (eval $ac_link) 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_c_bigendian=no
3352 echo "$as_me: program exited with status $ac_status" >&5
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_cv_c_bigendian=yes
3359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3365 if test $ac_cv_c_bigendian = unknown; then
3366 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
3367 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
3369 cat >conftest.c <<EOF
3370 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3371 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3372 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3373 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3374 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3375 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3376 int main() { _ascii (); _ebcdic (); return 0; }
3378 if test -f conftest.c ; then
3379 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
3380 if test `grep -l BIGenDianSyS conftest.o` ; then
3381 echo $ac_n ' big endian probe OK, ' 1>&6
3382 ac_cv_c_bigendian=yes
3384 if test `grep -l LiTTleEnDian conftest.o` ; then
3385 echo $ac_n ' little endian probe OK, ' 1>&6
3386 if test $ac_cv_c_bigendian = yes ; then
3387 ac_cv_c_bigendian=unknown;
3389 ac_cv_c_bigendian=no
3392 echo $ac_n 'guessing bigendian ... ' >&6
3395 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3398 if test $ac_cv_c_bigendian = yes; then
3400 cat >>confdefs.h <<\_ACEOF
3401 #define WORDS_BIGENDIAN 1
3405 cat >>confdefs.h <<\_ACEOF
3406 #define HOST_WORDS_BIG_ENDIAN 1
3414 cat >>confdefs.h <<_ACEOF
3415 #define BYTEORDER $BYTEORDER
3418 if test $ac_cv_c_bigendian = unknown; then
3419 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
3420 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
3421 { (exit 1); exit 1; }; }
3427 ac_config_headers="$ac_config_headers config.h:config.in"
3431 # Find a good install program. We prefer a C program (faster),
3432 # so one script is as good as another. But avoid the broken or
3433 # incompatible versions:
3434 # SysV /etc/install, /usr/sbin/install
3435 # SunOS /usr/etc/install
3436 # IRIX /sbin/install
3438 # AmigaOS /C/install, which installs bootblocks on floppy discs
3439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3442 # OS/2's system install, which has a completely different semantic
3443 # ./install, which can be erroneously created by make from ./install.sh.
3444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3446 if test -z "$INSTALL"; then
3447 if test "${ac_cv_path_install+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 # Account for people who put trailing slashes in PATH elements.
3457 ./ | .// | /cC/* | \
3458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3462 # OSF1 and SCO ODT 3.0 have their own names for install.
3463 # Don't use installbsd from OSF since it installs stuff as root
3465 for ac_prog in ginstall scoinst install; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3468 if test $ac_prog = install &&
3469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3470 # AIX install. It has an incompatible calling convention.
3472 elif test $ac_prog = install &&
3473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3474 # program-specific install script used by HP pwplus--don't use.
3477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3489 if test "${ac_cv_path_install+set}" = set; then
3490 INSTALL=$ac_cv_path_install
3492 # As a last resort, use the slow shell script. We don't cache a
3493 # path for INSTALL within a source directory, because that will
3494 # break other packages using the cache if that directory is
3495 # removed, or if the path is relative.
3496 INSTALL=$ac_install_sh
3499 echo "$as_me:$LINENO: result: $INSTALL" >&5
3500 echo "${ECHO_T}$INSTALL" >&6
3502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3503 # It thinks the first close brace ends the variable substitution.
3504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3511 . ${srcdir}/config.table
3512 host_makefile_frag=${frag}
3515 # It's OK to check for header files. Although the compiler may not be
3516 # able to link anything, it had better be able to at least compile
3541 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
3543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544 echo "$as_me:$LINENO: checking for $ac_header" >&5
3545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <$ac_header>
3557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 if test -z "$ac_cpp_err"; then
3575 eval "$as_ac_Header=yes"
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 eval "$as_ac_Header=no"
3582 rm -f conftest.err conftest.$ac_ext
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587 cat >>confdefs.h <<_ACEOF
3588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3594 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3595 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3596 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <sys/types.h>
3606 #include <sys/wait.h>
3608 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3611 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_header_sys_wait_h=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_cv_header_sys_wait_h=no
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3656 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3657 if test $ac_cv_header_sys_wait_h = yes; then
3659 cat >>confdefs.h <<\_ACEOF
3660 #define HAVE_SYS_WAIT_H 1
3665 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3666 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3667 if test "${ac_cv_header_time+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 #include <sys/time.h>
3683 if ((struct tm *) 0)
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_header_time=yes
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_header_time=no
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3721 echo "${ECHO_T}$ac_cv_header_time" >&6
3722 if test $ac_cv_header_time = yes; then
3724 cat >>confdefs.h <<\_ACEOF
3725 #define TIME_WITH_SYS_TIME 1
3731 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3732 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3733 if test "${libiberty_cv_declare_errno+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 libiberty_cv_declare_errno=no
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 libiberty_cv_declare_errno=yes
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3783 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3784 if test $libiberty_cv_declare_errno = yes
3786 cat >>confdefs.h <<\_ACEOF
3787 #define NEED_DECLARATION_ERRNO 1
3793 echo "$as_me:$LINENO: checking for egrep" >&5
3794 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3795 if test "${ac_cv_prog_egrep+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3799 then ac_cv_prog_egrep='grep -E'
3800 else ac_cv_prog_egrep='egrep'
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3804 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3805 EGREP=$ac_cv_prog_egrep
3808 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_header_stdc=yes
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_header_stdc=no
3861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3863 if test $ac_cv_header_stdc = yes; then
3864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 $EGREP "memchr" >/dev/null 2>&1; then
3878 ac_cv_header_stdc=no
3884 if test $ac_cv_header_stdc = yes; then
3885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896 $EGREP "free" >/dev/null 2>&1; then
3899 ac_cv_header_stdc=no
3905 if test $ac_cv_header_stdc = yes; then
3906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3907 if test "$cross_compiling" = yes; then
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3917 #if ((' ' & 0x0FF) == 0x020)
3918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3921 # define ISLOWER(c) \
3922 (('a' <= (c) && (c) <= 'i') \
3923 || ('j' <= (c) && (c) <= 'r') \
3924 || ('s' <= (c) && (c) <= 'z'))
3925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3933 for (i = 0; i < 256; i++)
3934 if (XOR (islower (i), ISLOWER (i))
3935 || toupper (i) != TOUPPER (i))
3940 rm -f conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3953 echo "$as_me: program exited with status $ac_status" >&5
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3958 ac_cv_header_stdc=no
3960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3966 if test $ac_cv_header_stdc = yes; then
3968 cat >>confdefs.h <<\_ACEOF
3969 #define STDC_HEADERS 1
3974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3985 inttypes.h stdint.h unistd.h
3987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988 echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.$ac_ext <<_ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <$ac_header>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4019 eval "$as_ac_Header=yes"
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 eval "$as_ac_Header=no"
4026 rm -f conftest.err conftest.$ac_ext
4028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4031 cat >>confdefs.h <<_ACEOF
4032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4039 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4040 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4041 if test "${ac_cv_type_uintptr_t+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 $ac_includes_default
4054 if ((uintptr_t *) 0)
4056 if (sizeof (uintptr_t))
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_cv_type_uintptr_t=yes
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_cv_type_uintptr_t=no
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4094 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4095 if test $ac_cv_type_uintptr_t = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100 #define uintptr_t unsigned long
4105 # Given the above check, we always have uintptr_t or a fallback
4106 # definition. So define HAVE_UINTPTR_T in case any imported code
4109 cat >>confdefs.h <<\_ACEOF
4110 #define HAVE_UINTPTR_T 1
4114 echo "$as_me:$LINENO: checking for pid_t" >&5
4115 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4116 if test "${ac_cv_type_pid_t+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 $ac_includes_default
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_cv_type_pid_t=yes
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4169 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4170 if test $ac_cv_type_pid_t = yes; then
4174 cat >>confdefs.h <<_ACEOF
4181 # This is the list of functions which libiberty will provide if they
4182 # are not available on the host.
4185 funcs="$funcs atexit"
4186 funcs="$funcs basename"
4188 funcs="$funcs bcopy"
4189 funcs="$funcs bsearch"
4190 funcs="$funcs bzero"
4191 funcs="$funcs calloc"
4192 funcs="$funcs clock"
4194 funcs="$funcs getcwd"
4195 funcs="$funcs getpagesize"
4196 funcs="$funcs index"
4197 funcs="$funcs insque"
4198 funcs="$funcs memchr"
4199 funcs="$funcs memcmp"
4200 funcs="$funcs memcpy"
4201 funcs="$funcs memmove"
4202 funcs="$funcs mempcpy"
4203 funcs="$funcs memset"
4204 funcs="$funcs mkstemps"
4205 funcs="$funcs putenv"
4206 funcs="$funcs random"
4207 funcs="$funcs rename"
4208 funcs="$funcs rindex"
4209 funcs="$funcs setenv"
4210 funcs="$funcs snprintf"
4211 funcs="$funcs sigsetmask"
4212 funcs="$funcs stpcpy"
4213 funcs="$funcs stpncpy"
4214 funcs="$funcs strcasecmp"
4215 funcs="$funcs strchr"
4216 funcs="$funcs strdup"
4217 funcs="$funcs strncasecmp"
4218 funcs="$funcs strrchr"
4219 funcs="$funcs strstr"
4220 funcs="$funcs strtod"
4221 funcs="$funcs strtol"
4222 funcs="$funcs strtoul"
4223 funcs="$funcs tmpnam"
4224 funcs="$funcs vasprintf"
4225 funcs="$funcs vfprintf"
4226 funcs="$funcs vprintf"
4227 funcs="$funcs vsnprintf"
4228 funcs="$funcs vsprintf"
4229 funcs="$funcs waitpid"
4231 # Also in the old function.def file: alloca, vfork, getopt.
4233 vars="sys_errlist sys_nerr sys_siglist"
4235 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4236 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4237 checkfuncs="$checkfuncs getsysinfo table sysctl"
4239 # These are neither executed nor required, but they help keep
4240 # autoheader happy without adding a bunch of text to acconfig.h.
4241 if test "x" = "y"; then
4305 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
4306 getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
4307 memmove mempcpy memset putenv random rename rindex sigsetmask \
4308 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
4309 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
4310 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4311 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
4312 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
4313 realpath canonicalize_file_name
4315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4316 echo "$as_me:$LINENO: checking for $ac_func" >&5
4317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_var+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 if test x$gcc_no_link = xyes; then
4322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4324 { (exit 1); exit 1; }; }
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 /* System header to define __stub macros and hopefully few prototypes,
4333 which can conflict with char $ac_func (); below.
4334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 <limits.h> exists even on freestanding compilers. Under hpux,
4336 including <limits.h> includes <sys/time.h> and causes problems
4337 checking for functions defined therein. */
4338 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4339 # include <limits.h>
4341 # include <assert.h>
4343 /* Override any gcc2 internal prototype to avoid an error. */
4348 /* We use char because int might match the return type of a gcc2
4349 builtin and then its argument prototype would still apply. */
4351 /* The GNU C library defines this for functions which it implements
4352 to always fail with ENOSYS. Some functions are actually named
4353 something starting with __ and the normal name is an alias. */
4354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4357 char (*f) () = $ac_func;
4366 return f != $ac_func;
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest$ac_exeext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 eval "$as_ac_var=yes"
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 eval "$as_ac_var=no"
4400 rm -f conftest.err conftest.$ac_objext \
4401 conftest$ac_exeext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4405 if test `eval echo '${'$as_ac_var'}'` = yes; then
4406 cat >>confdefs.h <<_ACEOF
4407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4414 cat >>confdefs.h <<\_ACEOF
4415 #define HAVE_SYS_ERRLIST 1
4419 cat >>confdefs.h <<\_ACEOF
4420 #define HAVE_SYS_NERR 1
4424 cat >>confdefs.h <<\_ACEOF
4425 #define HAVE_SYS_SIGLIST 1
4430 # For each of these functions, if the host does not provide the
4431 # function we want to put FN.o in LIBOBJS, and if the host does
4432 # provide the function, we want to define HAVE_FN in config.h.
4437 if test -n "${with_target_subdir}"; then
4439 # We are being configured as a target library. AC_REPLACE_FUNCS
4440 # may not work correctly, because the compiler may not be able to
4441 # link executables. Note that we may still be being configured
4444 # If we are being configured for newlib, we know which functions
4445 # newlib provide and which ones we will be expected to provide.
4447 if test "x${with_newlib}" = "xyes"; then
4449 "asprintf.$ac_objext" | \
4450 *" asprintf.$ac_objext" | \
4451 "asprintf.$ac_objext "* | \
4452 *" asprintf.$ac_objext "* ) ;;
4453 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
4457 "basename.$ac_objext" | \
4458 *" basename.$ac_objext" | \
4459 "basename.$ac_objext "* | \
4460 *" basename.$ac_objext "* ) ;;
4461 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
4465 "insque.$ac_objext" | \
4466 *" insque.$ac_objext" | \
4467 "insque.$ac_objext "* | \
4468 *" insque.$ac_objext "* ) ;;
4469 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
4473 "random.$ac_objext" | \
4474 *" random.$ac_objext" | \
4475 "random.$ac_objext "* | \
4476 *" random.$ac_objext "* ) ;;
4477 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
4481 "strdup.$ac_objext" | \
4482 *" strdup.$ac_objext" | \
4483 "strdup.$ac_objext "* | \
4484 *" strdup.$ac_objext "* ) ;;
4485 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
4489 "vasprintf.$ac_objext" | \
4490 *" vasprintf.$ac_objext" | \
4491 "vasprintf.$ac_objext "* | \
4492 *" vasprintf.$ac_objext "* ) ;;
4493 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
4499 asprintf | basename | insque | random | strdup | vasprintf)
4502 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4503 cat >>confdefs.h <<_ACEOF
4511 # newlib doesnt provide any of the variables in $vars, so we
4512 # dont have to check them here.
4514 # Of the functions in $checkfuncs, newlib only has strerror.
4515 cat >> confdefs.h <<\EOF
4516 #define HAVE_STRERROR 1
4524 # We may wish to install the target headers somewhere.
4525 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
4526 if test "${enable_install_libiberty+set}" = set; then
4527 enableval="$enable_install_libiberty"
4528 enable_install_libiberty=$enableval
4530 enable_install_libiberty=no
4532 # Option parsed, now set things appropriately.
4533 case x"$enable_install_libiberty" in
4535 target_header_dir=libiberty
4541 # This could be sanity-checked in various ways...
4542 target_header_dir="${enable_install_libiberty}"
4549 # Not a target library, so we set things up to run the test suite.
4550 CHECK=check-cplus-dem
4558 *-*-cygwin* | *-*-mingw*)
4559 cat >> confdefs.h <<\EOF
4560 #define HAVE_SYS_ERRLIST 1
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_SYS_NERR 1
4570 if test -z "${setobjs}"; then
4574 # Handle VxWorks configuration specially, since on VxWorks the
4575 # libraries are actually on the target board, not in the file
4578 "basename.$ac_objext" | \
4579 *" basename.$ac_objext" | \
4580 "basename.$ac_objext "* | \
4581 *" basename.$ac_objext "* ) ;;
4582 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
4586 "getpagesize.$ac_objext" | \
4587 *" getpagesize.$ac_objext" | \
4588 "getpagesize.$ac_objext "* | \
4589 *" getpagesize.$ac_objext "* ) ;;
4590 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
4594 "insque.$ac_objext" | \
4595 *" insque.$ac_objext" | \
4596 "insque.$ac_objext "* | \
4597 *" insque.$ac_objext "* ) ;;
4598 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
4602 "random.$ac_objext" | \
4603 *" random.$ac_objext" | \
4604 "random.$ac_objext "* | \
4605 *" random.$ac_objext "* ) ;;
4606 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
4610 "strcasecmp.$ac_objext" | \
4611 *" strcasecmp.$ac_objext" | \
4612 "strcasecmp.$ac_objext "* | \
4613 *" strcasecmp.$ac_objext "* ) ;;
4614 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
4618 "strncasecmp.$ac_objext" | \
4619 *" strncasecmp.$ac_objext" | \
4620 "strncasecmp.$ac_objext "* | \
4621 *" strncasecmp.$ac_objext "* ) ;;
4622 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
4626 "strdup.$ac_objext" | \
4627 *" strdup.$ac_objext" | \
4628 "strdup.$ac_objext "* | \
4629 *" strdup.$ac_objext "* ) ;;
4630 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
4634 "vfork.$ac_objext" | \
4635 *" vfork.$ac_objext" | \
4636 "vfork.$ac_objext "* | \
4637 *" vfork.$ac_objext "* ) ;;
4638 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
4642 "waitpid.$ac_objext" | \
4643 *" waitpid.$ac_objext" | \
4644 "waitpid.$ac_objext "* | \
4645 *" waitpid.$ac_objext "* ) ;;
4646 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
4650 "vasprintf.$ac_objext" | \
4651 *" vasprintf.$ac_objext" | \
4652 "vasprintf.$ac_objext "* | \
4653 *" vasprintf.$ac_objext "* ) ;;
4654 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
4659 basename | getpagesize | insque | random | strcasecmp)
4661 strncasecmp | strdup | vfork | waitpid | vasprintf)
4664 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4665 cat >>confdefs.h <<_ACEOF
4673 # VxWorks doesn't provide any of the variables in $vars, so we
4674 # don't have to check them here.
4676 # Of the functions in $checkfuncs, VxWorks only has strerror.
4677 cat >> confdefs.h <<\EOF
4678 #define HAVE_STRERROR 1
4688 if test -z "${setobjs}"; then
4693 # The Cygwin library actually uses a couple of files from
4694 # libiberty when it is built. If we are building a native
4695 # Cygwin, and we run the tests, we will appear to have these
4696 # files. However, when we go on to build winsup, we will wind up
4697 # with a library which does not have the files, since they should
4698 # have come from libiberty.
4700 # We handle this by removing the functions the winsup library
4701 # provides from our shell variables, so that they appear to be
4704 # DJ - only if we're *building* cygwin, not just building *with* cygwin
4706 if test -n "${with_target_subdir}"
4708 funcs="`echo $funcs | sed -e 's/random//'`"
4710 "random.$ac_objext" | \
4711 *" random.$ac_objext" | \
4712 "random.$ac_objext "* | \
4713 *" random.$ac_objext "* ) ;;
4714 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
4717 vars="`echo $vars | sed -e 's/sys_siglist//'`"
4718 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
4723 # Under mingw32, sys_nerr and sys_errlist exist, but they are
4724 # macros, so the test below won't find them.
4725 libiberty_cv_var_sys_nerr=yes
4726 libiberty_cv_var_sys_errlist=yes
4730 # Under some versions of uwin, vfork is notoriously buggy and the test
4731 # can hang configure; on other versions, vfork exists just as a stub.
4732 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
4733 ac_cv_func_vfork_works=no
4734 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
4735 # macros (actually, these are imported from a DLL, but the end effect
4736 # is the same), so the test below won't find them.
4737 libiberty_cv_var_sys_nerr=yes
4738 libiberty_cv_var_sys_errlist=yes
4742 # Under VMS, vfork works very different than on Unix. The standard test
4743 # won't work, and it isn't easily adaptable. It makes more sense to
4745 ac_cv_func_vfork_works=yes
4750 # We haven't set the list of objects yet. Use the standard autoconf
4751 # tests. This will only work if the compiler works.
4752 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4753 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4754 if test "${ac_cv_search_strerror+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 ac_func_search_save_LIBS=$LIBS
4758 ac_cv_search_strerror=no
4759 if test x$gcc_no_link = xyes; then
4760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4762 { (exit 1); exit 1; }; }
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 /* Override any gcc2 internal prototype to avoid an error. */
4775 /* We use char because int might match the return type of a gcc2
4776 builtin and then its argument prototype would still apply. */
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest$ac_exeext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_search_strerror="none required"
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4814 rm -f conftest.err conftest.$ac_objext \
4815 conftest$ac_exeext conftest.$ac_ext
4816 if test "$ac_cv_search_strerror" = no; then
4817 for ac_lib in cposix; do
4818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4819 if test x$gcc_no_link = xyes; then
4820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4822 { (exit 1); exit 1; }; }
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4831 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_c_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest$ac_exeext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_cv_search_strerror="-l$ac_lib"
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4875 rm -f conftest.err conftest.$ac_objext \
4876 conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_func_search_save_LIBS
4881 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4882 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4883 if test "$ac_cv_search_strerror" != no; then
4884 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4889 for ac_func in $funcs
4891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4892 echo "$as_me:$LINENO: checking for $ac_func" >&5
4893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4894 if eval "test \"\${$as_ac_var+set}\" = set"; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 if test x$gcc_no_link = xyes; then
4898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4900 { (exit 1); exit 1; }; }
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char $ac_func (); below.
4910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 <limits.h> exists even on freestanding compilers. Under hpux,
4912 including <limits.h> includes <sys/time.h> and causes problems
4913 checking for functions defined therein. */
4914 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4915 # include <limits.h>
4917 # include <assert.h>
4919 /* Override any gcc2 internal prototype to avoid an error. */
4924 /* We use char because int might match the return type of a gcc2
4925 builtin and then its argument prototype would still apply. */
4927 /* The GNU C library defines this for functions which it implements
4928 to always fail with ENOSYS. Some functions are actually named
4929 something starting with __ and the normal name is an alias. */
4930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4933 char (*f) () = $ac_func;
4942 return f != $ac_func;
4947 rm -f conftest.$ac_objext conftest$ac_exeext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949 (eval $ac_link) 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 eval "$as_ac_var=yes"
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 eval "$as_ac_var=no"
4976 rm -f conftest.err conftest.$ac_objext \
4977 conftest$ac_exeext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4981 if test `eval echo '${'$as_ac_var'}'` = yes; then
4982 cat >>confdefs.h <<_ACEOF
4983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4988 "$ac_func.$ac_objext" | \
4989 *" $ac_func.$ac_objext" | \
4990 "$ac_func.$ac_objext "* | \
4991 *" $ac_func.$ac_objext "* ) ;;
4992 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4999 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
5000 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
5001 if test "${ac_cv_os_cray+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 #if defined(CRAY) && ! defined(CRAY2)
5017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018 $EGREP "webecray" >/dev/null 2>&1; then
5026 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5027 echo "${ECHO_T}$ac_cv_os_cray" >&6
5028 if test $ac_cv_os_cray = yes; then
5029 for ac_func in _getb67 GETB67 getb67; do
5030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5031 echo "$as_me:$LINENO: checking for $ac_func" >&5
5032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_var+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test x$gcc_no_link = xyes; then
5037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5039 { (exit 1); exit 1; }; }
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 /* System header to define __stub macros and hopefully few prototypes,
5048 which can conflict with char $ac_func (); below.
5049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 <limits.h> exists even on freestanding compilers. Under hpux,
5051 including <limits.h> includes <sys/time.h> and causes problems
5052 checking for functions defined therein. */
5053 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5054 # include <limits.h>
5056 # include <assert.h>
5058 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5072 char (*f) () = $ac_func;
5081 return f != $ac_func;
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 eval "$as_ac_var=yes"
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 eval "$as_ac_var=no"
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5120 if test `eval echo '${'$as_ac_var'}'` = yes; then
5122 cat >>confdefs.h <<_ACEOF
5123 #define CRAY_STACKSEG_END $ac_func
5131 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5132 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5133 if test "${ac_cv_c_stack_direction+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 if test "$cross_compiling" = yes; then
5137 ac_cv_c_stack_direction=0
5139 cat >conftest.$ac_ext <<_ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 find_stack_direction ()
5147 static char *addr = 0;
5152 return find_stack_direction ();
5155 return (&dummy > addr) ? 1 : -1;
5159 exit (find_stack_direction() < 0);
5162 rm -f conftest$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_c_stack_direction=1
5175 echo "$as_me: program exited with status $ac_status" >&5
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5180 ac_cv_c_stack_direction=-1
5182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5186 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5188 cat >>confdefs.h <<_ACEOF
5189 #define STACK_DIRECTION $ac_cv_c_stack_direction
5195 for ac_header in unistd.h vfork.h
5197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5198 echo "$as_me:$LINENO: checking for $ac_header" >&5
5199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <$ac_header>
5211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_c_preproc_warn_flag
5221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5228 if test -z "$ac_cpp_err"; then
5229 eval "$as_ac_Header=yes"
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 eval "$as_ac_Header=no"
5236 rm -f conftest.err conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5241 cat >>confdefs.h <<_ACEOF
5242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5250 for ac_func in fork vfork
5252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:$LINENO: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test x$gcc_no_link = xyes; then
5259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5261 { (exit 1); exit 1; }; }
5263 cat >conftest.$ac_ext <<_ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 /* System header to define __stub macros and hopefully few prototypes,
5270 which can conflict with char $ac_func (); below.
5271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 <limits.h> exists even on freestanding compilers. Under hpux,
5273 including <limits.h> includes <sys/time.h> and causes problems
5274 checking for functions defined therein. */
5275 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5276 # include <limits.h>
5278 # include <assert.h>
5280 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294 char (*f) () = $ac_func;
5303 return f != $ac_func;
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 eval "$as_ac_var=yes"
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 eval "$as_ac_var=no"
5337 rm -f conftest.err conftest.$ac_objext \
5338 conftest$ac_exeext conftest.$ac_ext
5340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5342 if test `eval echo '${'$as_ac_var'}'` = yes; then
5343 cat >>confdefs.h <<_ACEOF
5344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5350 if test "x$ac_cv_func_fork" = xyes; then
5351 echo "$as_me:$LINENO: checking for working fork" >&5
5352 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5353 if test "${ac_cv_func_fork_works+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 if test "$cross_compiling" = yes; then
5357 ac_cv_func_fork_works=cross
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* By Ruediger Kuhlmann. */
5361 #include <sys/types.h>
5363 # include <unistd.h>
5365 /* Some systems only have a dummy stub for fork() */
5373 rm -f conftest$ac_exeext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5375 (eval $ac_link) 2>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_func_fork_works=yes
5386 echo "$as_me: program exited with status $ac_status" >&5
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_cv_func_fork_works=no
5393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5396 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5397 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5400 ac_cv_func_fork_works=$ac_cv_func_fork
5402 if test "x$ac_cv_func_fork_works" = xcross; then
5404 *-*-amigaos* | *-*-msdosdjgpp*)
5405 # Override, as these systems have only a dummy fork() stub
5406 ac_cv_func_fork_works=no
5409 ac_cv_func_fork_works=yes
5412 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5413 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5415 ac_cv_func_vfork_works=$ac_cv_func_vfork
5416 if test "x$ac_cv_func_vfork" = xyes; then
5417 echo "$as_me:$LINENO: checking for working vfork" >&5
5418 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5419 if test "${ac_cv_func_vfork_works+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 if test "$cross_compiling" = yes; then
5423 ac_cv_func_vfork_works=cross
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 /* Thanks to Paul Eggert for this test. */
5434 #include <sys/types.h>
5435 #include <sys/stat.h>
5436 #include <sys/wait.h>
5438 # include <unistd.h>
5443 /* On some sparc systems, changes by the child to local and incoming
5444 argument registers are propagated back to the parent. The compiler
5445 is told about this with #include <vfork.h>, but some compilers
5446 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5447 static variable whose address is put into a register that is
5448 clobbered by the vfork. */
5451 sparc_address_test (int arg)
5453 sparc_address_test (arg) int arg;
5474 pid_t parent = getpid ();
5477 sparc_address_test (0);
5482 /* Here is another test for sparc vfork register problems. This
5483 test uses lots of local variables, at least as many local
5484 variables as main has allocated so far including compiler
5485 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5486 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5487 reuse the register of parent for one of the local variables,
5488 since it will think that parent can't possibly be used any more
5489 in this routine. Assigning to the local variable will thus
5490 munge parent in the parent process. */
5492 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5493 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5494 /* Convince the compiler that p..p7 are live; otherwise, it might
5495 use the same hardware register for all 8 local variables. */
5496 if (p != p1 || p != p2 || p != p3 || p != p4
5497 || p != p5 || p != p6 || p != p7)
5500 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5501 from child file descriptors. If the child closes a descriptor
5502 before it execs or exits, this munges the parent's descriptor
5503 as well. Test for this by closing stdout in the child. */
5504 _exit(close(fileno(stdout)) != 0);
5509 while (wait(&status) != child)
5512 /* Was there some problem with vforking? */
5515 /* Did the child fail? (This shouldn't happen.) */
5518 /* Did the vfork/compiler bug occur? */
5519 || parent != getpid()
5521 /* Did the file descriptor bug occur? */
5522 || fstat(fileno(stdout), &st) != 0
5527 rm -f conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_func_vfork_works=yes
5540 echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_cv_func_vfork_works=no
5547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5550 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5551 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5554 if test "x$ac_cv_func_fork_works" = xcross; then
5555 ac_cv_func_vfork_works=$ac_cv_func_vfork
5556 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5557 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5560 if test "x$ac_cv_func_vfork_works" = xyes; then
5562 cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_WORKING_VFORK 1
5568 cat >>confdefs.h <<\_ACEOF
5573 if test "x$ac_cv_func_fork_works" = xyes; then
5575 cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_WORKING_FORK 1
5581 if test $ac_cv_func_vfork_works = no; then
5583 "vfork.$ac_objext" | \
5584 *" vfork.$ac_objext" | \
5585 "vfork.$ac_objext "* | \
5586 *" vfork.$ac_objext "* ) ;;
5587 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
5591 # We only need _doprnt if we might use it to implement v*printf.
5592 if test $ac_cv_func_vprintf != yes \
5593 || test $ac_cv_func_vfprintf != yes \
5594 || test $ac_cv_func_vsprintf != yes; then
5596 for ac_func in _doprnt
5598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_func" >&5
5600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_var+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 if test x$gcc_no_link = xyes; then
5605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5607 { (exit 1); exit 1; }; }
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func (); below.
5617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5618 <limits.h> exists even on freestanding compilers. Under hpux,
5619 including <limits.h> includes <sys/time.h> and causes problems
5620 checking for functions defined therein. */
5621 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5622 # include <limits.h>
5624 # include <assert.h>
5626 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5640 char (*f) () = $ac_func;
5649 return f != $ac_func;
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 eval "$as_ac_var=yes"
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 eval "$as_ac_var=no"
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5688 if test `eval echo '${'$as_ac_var'}'` = yes; then
5689 cat >>confdefs.h <<_ACEOF
5690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5695 "$ac_func.$ac_objext" | \
5696 *" $ac_func.$ac_objext" | \
5697 "$ac_func.$ac_objext "* | \
5698 *" $ac_func.$ac_objext "* ) ;;
5699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5708 for ac_func in _doprnt
5710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5711 echo "$as_me:$LINENO: checking for $ac_func" >&5
5712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5713 if eval "test \"\${$as_ac_var+set}\" = set"; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func (); below.
5729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5730 <limits.h> exists even on freestanding compilers. Under hpux,
5731 including <limits.h> includes <sys/time.h> and causes problems
5732 checking for functions defined therein. */
5733 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5734 # include <limits.h>
5736 # include <assert.h>
5738 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5746 /* The GNU C library defines this for functions which it implements
5747 to always fail with ENOSYS. Some functions are actually named
5748 something starting with __ and the normal name is an alias. */
5749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5752 char (*f) () = $ac_func;
5761 return f != $ac_func;
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768 (eval $ac_link) 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 eval "$as_ac_var=yes"
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_var=no"
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5800 if test `eval echo '${'$as_ac_var'}'` = yes; then
5801 cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5811 echo "$as_me:$LINENO: checking for $v" >&5
5812 echo $ECHO_N "checking for $v... $ECHO_C" >&6
5813 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test x$gcc_no_link = xyes; then
5817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5819 { (exit 1); exit 1; }; }
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5831 extern int $v []; p = $v;
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 eval "libiberty_cv_var_$v=yes"
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 eval "libiberty_cv_var_$v=no"
5865 rm -f conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5869 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
5870 echo "$as_me:$LINENO: result: yes" >&5
5871 echo "${ECHO_T}yes" >&6
5872 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >>confdefs.h <<_ACEOF
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5883 # special check for _system_configuration because AIX <4.3.2 do not
5884 # contain the `physmem' member.
5885 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5886 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/systemcfg.h>
5897 double x = _system_configuration.physmem;
5902 rm -f conftest.$ac_objext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904 (eval $ac_compile) 2>conftest.er1
5906 grep -v '^ *+' conftest.er1 >conftest.err
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag"
5912 || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest.$ac_objext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925 echo "${ECHO_T}yes" >&6
5927 cat >>confdefs.h <<\_ACEOF
5928 #define HAVE__SYSTEM_CONFIGURATION 1
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 for ac_func in $checkfuncs
5943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5944 echo "$as_me:$LINENO: checking for $ac_func" >&5
5945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5946 if eval "test \"\${$as_ac_var+set}\" = set"; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test x$gcc_no_link = xyes; then
5950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5952 { (exit 1); exit 1; }; }
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func (); below.
5962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5963 <limits.h> exists even on freestanding compilers. Under hpux,
5964 including <limits.h> includes <sys/time.h> and causes problems
5965 checking for functions defined therein. */
5966 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5967 # include <limits.h>
5969 # include <assert.h>
5971 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5985 char (*f) () = $ac_func;
5994 return f != $ac_func;
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 eval "$as_ac_var=yes"
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 eval "$as_ac_var=no"
6028 rm -f conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6033 if test `eval echo '${'$as_ac_var'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
6042 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
6043 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6053 #include "confdefs.h"
6055 #ifdef HAVE_STRING_H
6058 #ifdef HAVE_STRINGS_H
6059 #include <strings.h>
6062 #ifdef HAVE_STDLIB_H
6065 #ifdef HAVE_UNISTD_H
6071 char *(*pfn) = (char *(*)) canonicalize_file_name
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 libiberty_cv_decl_needed_canonicalize_file_name=no
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 libiberty_cv_decl_needed_canonicalize_file_name=yes
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6108 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
6109 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
6110 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
6112 cat >>confdefs.h <<\_ACEOF
6113 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6120 # Figure out which version of pexecute to use.
6122 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
6123 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
6124 *-*-msdos*) pexecute=./pex-msdos.o ;;
6125 *-*-os2-emx*) pexecute=./pex-os2.o ;;
6126 *) pexecute=./pex-unix.o ;;
6130 if test x$gcc_no_link = xyes; then
6131 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6132 ac_cv_func_mmap_fixed_mapped=no
6135 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6138 for ac_header in stdlib.h unistd.h
6140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6141 echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <$ac_header>
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null; then
6162 if test -s conftest.err; then
6163 ac_cpp_err=$ac_c_preproc_warn_flag
6164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6171 if test -z "$ac_cpp_err"; then
6172 eval "$as_ac_Header=yes"
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 eval "$as_ac_Header=no"
6179 rm -f conftest.err conftest.$ac_ext
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6184 cat >>confdefs.h <<_ACEOF
6185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6192 for ac_func in getpagesize
6194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6195 echo "$as_me:$LINENO: checking for $ac_func" >&5
6196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6197 if eval "test \"\${$as_ac_var+set}\" = set"; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test x$gcc_no_link = xyes; then
6201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6203 { (exit 1); exit 1; }; }
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func (); below.
6213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214 <limits.h> exists even on freestanding compilers. Under hpux,
6215 including <limits.h> includes <sys/time.h> and causes problems
6216 checking for functions defined therein. */
6217 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6218 # include <limits.h>
6220 # include <assert.h>
6222 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6230 /* The GNU C library defines this for functions which it implements
6231 to always fail with ENOSYS. Some functions are actually named
6232 something starting with __ and the normal name is an alias. */
6233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6236 char (*f) () = $ac_func;
6245 return f != $ac_func;
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>conftest.er1
6254 grep -v '^ *+' conftest.er1 >conftest.err
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 eval "$as_ac_var=yes"
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 eval "$as_ac_var=no"
6279 rm -f conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6284 if test `eval echo '${'$as_ac_var'}'` = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6292 echo "$as_me:$LINENO: checking for working mmap" >&5
6293 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 if test "$cross_compiling" = yes; then
6298 ac_cv_func_mmap_fixed_mapped=no
6300 cat >conftest.$ac_ext <<_ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6307 /* malloc might have been renamed as rpl_malloc. */
6310 /* Thanks to Mike Haertel and Jim Avera for this test.
6311 Here is a matrix of mmap possibilities:
6312 mmap private not fixed
6313 mmap private fixed at somewhere currently unmapped
6314 mmap private fixed at somewhere already mapped
6315 mmap shared not fixed
6316 mmap shared fixed at somewhere currently unmapped
6317 mmap shared fixed at somewhere already mapped
6318 For private mappings, we should verify that changes cannot be read()
6319 back from the file, nor mmap's back from the file at a different
6320 address. (There have been systems where private was not correctly
6321 implemented like the infamous i386 svr4.0, and systems where the
6322 VM page cache was not coherent with the file system buffer cache
6323 like early versions of FreeBSD and possibly contemporary NetBSD.)
6324 For shared mappings, we should conversely verify that changes get
6325 propagated back to all the places they're supposed to be.
6327 Grep wants private fixed already mapped.
6328 The main things grep needs to know about mmap are:
6329 * does it exist and is it safe to write into the mmap'd area
6330 * how to use it (BSD variants) */
6333 #include <sys/mman.h>
6335 #if !STDC_HEADERS && !HAVE_STDLIB_H
6339 /* This mess was copied from the GNU getpagesize.h. */
6340 #if !HAVE_GETPAGESIZE
6341 /* Assume that all systems that can run configure have sys/param.h. */
6342 # if !HAVE_SYS_PARAM_H
6343 # define HAVE_SYS_PARAM_H 1
6346 # ifdef _SC_PAGESIZE
6347 # define getpagesize() sysconf(_SC_PAGESIZE)
6348 # else /* no _SC_PAGESIZE */
6349 # if HAVE_SYS_PARAM_H
6350 # include <sys/param.h>
6351 # ifdef EXEC_PAGESIZE
6352 # define getpagesize() EXEC_PAGESIZE
6353 # else /* no EXEC_PAGESIZE */
6355 # define getpagesize() NBPG * CLSIZE
6358 # endif /* no CLSIZE */
6359 # else /* no NBPG */
6361 # define getpagesize() NBPC
6362 # else /* no NBPC */
6364 # define getpagesize() PAGESIZE
6365 # endif /* PAGESIZE */
6366 # endif /* no NBPC */
6367 # endif /* no NBPG */
6368 # endif /* no EXEC_PAGESIZE */
6369 # else /* no HAVE_SYS_PARAM_H */
6370 # define getpagesize() 8192 /* punt totally */
6371 # endif /* no HAVE_SYS_PARAM_H */
6372 # endif /* no _SC_PAGESIZE */
6374 #endif /* no HAVE_GETPAGESIZE */
6379 char *data, *data2, *data3;
6383 pagesize = getpagesize ();
6385 /* First, make a file with some known garbage in it. */
6386 data = (char *) malloc (pagesize);
6389 for (i = 0; i < pagesize; ++i)
6390 *(data + i) = rand ();
6392 fd = creat ("conftest.mmap", 0600);
6395 if (write (fd, data, pagesize) != pagesize)
6399 /* Next, try to mmap the file at a fixed address which already has
6400 something else allocated at it. If we can, also make sure that
6401 we see the same garbage. */
6402 fd = open ("conftest.mmap", O_RDWR);
6405 data2 = (char *) malloc (2 * pagesize);
6408 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6409 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6410 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6412 for (i = 0; i < pagesize; ++i)
6413 if (*(data + i) != *(data2 + i))
6416 /* Finally, make sure that changes to the mapped area do not
6417 percolate back to the file as seen by read(). (This is a bug on
6418 some variants of i386 svr4.0.) */
6419 for (i = 0; i < pagesize; ++i)
6420 *(data2 + i) = *(data2 + i) + 1;
6421 data3 = (char *) malloc (pagesize);
6424 if (read (fd, data3, pagesize) != pagesize)
6426 for (i = 0; i < pagesize; ++i)
6427 if (*(data + i) != *(data3 + i))
6433 rm -f conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_cv_func_mmap_fixed_mapped=yes
6446 echo "$as_me: program exited with status $ac_status" >&5
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_cv_func_mmap_fixed_mapped=no
6453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6457 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6458 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6460 cat >>confdefs.h <<\_ACEOF
6469 echo "$as_me:$LINENO: checking for working strncmp" >&5
6470 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
6471 if test "${ac_cv_func_strncmp_works+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 if test "$cross_compiling" = yes; then
6475 ac_cv_func_strncmp_works=no
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6484 /* Test by Jim Wilson and Kaveh Ghazi.
6485 Check whether strncmp reads past the end of its string parameters. */
6486 #include <sys/types.h>
6492 #ifdef HAVE_SYS_MMAN_H
6493 #include <sys/mman.h>
6497 #ifdef MAP_ANONYMOUS
6498 #define MAP_ANON MAP_ANONYMOUS
6500 #define MAP_ANON MAP_FILE
6511 #define MAP_LEN 0x10000
6515 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
6519 dev_zero = open ("/dev/zero", O_RDONLY);
6523 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
6524 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
6525 if (p == (char *)-1)
6526 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
6527 MAP_ANON|MAP_PRIVATE, -1, 0);
6528 if (p == (char *)-1)
6532 char *string = "__si_type_info";
6533 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
6534 char *r = (char *) p + 0xe;
6540 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
6545 rm -f conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_func_strncmp_works=yes
6558 echo "$as_me: program exited with status $ac_status" >&5
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_func_strncmp_works=no
6565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6567 rm -f core core.* *.core
6569 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
6570 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
6571 if test $ac_cv_func_strncmp_works = no ; then
6573 "strncmp.$ac_objext" | \
6574 *" strncmp.$ac_objext" | \
6575 "strncmp.$ac_objext "* | \
6576 *" strncmp.$ac_objext "* ) ;;
6577 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
6583 # Install a library built with a cross compiler in $(tooldir) rather
6585 if test -z "${with_cross_host}"; then
6588 INSTALL_DEST=tooldir
6594 for l in x $LIBOBJS; do
6602 # We need multilib support, but only if configuring for the target.
6603 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
6604 ac_config_commands="$ac_config_commands default"
6605 cat >confcache <<\_ACEOF
6606 # This file is a shell script that caches the results of configure
6607 # tests run on this system so they can be shared between configure
6608 # scripts and configure runs, see configure's option --config-cache.
6609 # It is not useful on other systems. If it contains results you don't
6610 # want to keep, you may remove or edit it.
6612 # config.status only pays attention to the cache file if you give it
6613 # the --recheck option to rerun configure.
6615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6621 # The following way of writing the cache mishandles newlines in values,
6622 # but we know of no workaround that is simple, portable, and efficient.
6623 # So, don't put newlines in cache variables' values.
6624 # Ultrix sh set writes to stderr and can't be redirected directly,
6625 # and sets the high bit in the cache file unless we assign to the vars.
6628 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6630 # `set' does not quote correctly, so add quotes (double-quote
6631 # substitution turns \\\\ into \\, and sed turns \\ into \).
6634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6637 # `set' quotes correctly as required by POSIX, so do not add quotes.
6639 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6648 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6650 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6651 if test -w $cache_file; then
6652 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6653 cat confcache >$cache_file
6655 echo "not updating unwritable cache $cache_file"
6660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6661 # Let make expand exec_prefix.
6662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6664 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6665 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6666 # trailing colons and then remove the whole line if VPATH becomes empty
6667 # (actually we leave an empty line to preserve line numbers).
6668 if test "x$srcdir" = x.; then
6669 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6670 s/:*\$(srcdir):*/:/;
6671 s/:*\${srcdir}:*/:/;
6673 s/^\([^=]*=[ ]*\):*/\1/;
6679 DEFS=-DHAVE_CONFIG_H
6683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6684 # 1. Remove the extension, and $U if already installed.
6685 ac_i=`echo "$ac_i" |
6686 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6688 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6689 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6693 LTLIBOBJS=$ac_ltlibobjs
6697 : ${CONFIG_STATUS=./config.status}
6698 ac_clean_files_save=$ac_clean_files
6699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6702 cat >$CONFIG_STATUS <<_ACEOF
6704 # Generated by $as_me.
6705 # Run this file to recreate the current configuration.
6706 # Compiler output produced by configure, useful for debugging
6707 # configure, is in config.log if it exists.
6712 SHELL=\${CONFIG_SHELL-$SHELL}
6715 cat >>$CONFIG_STATUS <<\_ACEOF
6716 ## --------------------- ##
6717 ## M4sh Initialization. ##
6718 ## --------------------- ##
6720 # Be Bourne compatible
6721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6724 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6725 # is contrary to our usage. Disable this feature.
6726 alias -g '${1+"$@"}'='"$@"'
6727 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6730 DUALCASE=1; export DUALCASE # for MKS sh
6732 # Support unset when possible.
6733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6740 # Work around bugs in pre-3.0 UWIN ksh.
6741 $as_unset ENV MAIL MAILPATH
6748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6750 LC_TELEPHONE LC_TIME
6752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6753 eval $as_var=C; export $as_var
6759 # Required to use basename.
6760 if expr a : '\(a\)' >/dev/null 2>&1; then
6766 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6767 as_basename=basename
6773 # Name of the executable.
6774 as_me=`$as_basename "$0" ||
6775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6776 X"$0" : 'X\(//\)$' \| \
6777 X"$0" : 'X\(/\)$' \| \
6778 . : '\(.\)' 2>/dev/null ||
6780 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6781 /^X\/\(\/\/\)$/{ s//\1/; q; }
6782 /^X\/\(\/\).*/{ s//\1/; q; }
6786 # PATH needs CR, and LINENO needs CR and PATH.
6787 # Avoid depending upon Character Ranges.
6788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6791 as_cr_digits='0123456789'
6792 as_cr_alnum=$as_cr_Letters$as_cr_digits
6794 # The user is always right.
6795 if test "${PATH_SEPARATOR+set}" != set; then
6796 echo "#! /bin/sh" >conf$$.sh
6797 echo "exit 0" >>conf$$.sh
6799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6811 test "x$as_lineno_1" != "x$as_lineno_2" &&
6812 test "x$as_lineno_3" = "x$as_lineno_2" || {
6813 # Find who we are. Look in the path if we contain no path at all
6816 *[\\/]* ) as_myself=$0 ;;
6817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6827 # We did not find ourselves, most probably we were run as `sh COMMAND'
6828 # in which case we are not to be found in the path.
6829 if test "x$as_myself" = x; then
6832 if test ! -f "$as_myself"; then
6833 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6834 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6835 { (exit 1); exit 1; }; }
6837 case $CONFIG_SHELL in
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6843 test -z "$as_dir" && as_dir=.
6844 for as_base in sh bash ksh sh5; do
6847 if ("$as_dir/$as_base" -c '
6850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6851 test "x$as_lineno_1" != "x$as_lineno_2" &&
6852 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6853 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6854 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6855 CONFIG_SHELL=$as_dir/$as_base
6857 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6866 # uniformly replaced by the line number. The first 'sed' inserts a
6867 # line-number line before each line; the second 'sed' does the real
6868 # work. The second script uses 'N' to pair each line-number line
6869 # with the numbered line, and appends trailing '-' during
6870 # substitution so that $LINENO is not a special case at line end.
6871 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6872 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6873 sed '=' <$as_myself |
6878 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6881 s,^['$as_cr_digits']*\n,,
6883 chmod +x $as_me.lineno ||
6884 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6885 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6886 { (exit 1); exit 1; }; }
6888 # Don't try to exec as it changes $[0], causing all sort of problems
6889 # (the dirname of $[0] is not the place where we might find the
6890 # original and so on. Autoconf is especially sensible to this).
6892 # Exit status is that of the last command.
6897 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6898 *c*,-n*) ECHO_N= ECHO_C='
6900 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6901 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6904 if expr a : '\(a\)' >/dev/null 2>&1; then
6910 rm -f conf$$ conf$$.exe conf$$.file
6912 if ln -s conf$$.file conf$$ 2>/dev/null; then
6913 # We could just check for DJGPP; but this test a) works b) is more generic
6914 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6915 if test -f conf$$.exe; then
6916 # Don't use ln at all; we don't have any links
6921 elif ln conf$$.file conf$$ 2>/dev/null; then
6926 rm -f conf$$ conf$$.exe conf$$.file
6928 if mkdir -p . 2>/dev/null; then
6931 test -d ./-p && rmdir ./-p
6935 as_executable_p="test -f"
6937 # Sed expression to map a string onto a valid CPP name.
6938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6940 # Sed expression to map a string onto a valid variable name.
6941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6945 # We need space, tab and new line, in precisely that order.
6955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6956 # report actual input values of CONFIG_FILES etc. instead of their
6957 # values after options handling. Logging --version etc. is OK.
6961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6962 ## Running $as_me. ##
6967 This file was extended by $as_me, which was
6968 generated by GNU Autoconf 2.59. Invocation command line was
6970 CONFIG_FILES = $CONFIG_FILES
6971 CONFIG_HEADERS = $CONFIG_HEADERS
6972 CONFIG_LINKS = $CONFIG_LINKS
6973 CONFIG_COMMANDS = $CONFIG_COMMANDS
6977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6981 # Files that config.status was made for.
6982 if test -n "$ac_config_files"; then
6983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6986 if test -n "$ac_config_headers"; then
6987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6990 if test -n "$ac_config_links"; then
6991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6994 if test -n "$ac_config_commands"; then
6995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6998 cat >>$CONFIG_STATUS <<\_ACEOF
7001 \`$as_me' instantiates files from templates according to the
7002 current configuration.
7004 Usage: $0 [OPTIONS] [FILE]...
7006 -h, --help print this help, then exit
7007 -V, --version print version number, then exit
7008 -q, --quiet do not print progress messages
7009 -d, --debug don't remove temporary files
7010 --recheck update $as_me by reconfiguring in the same conditions
7011 --file=FILE[:TEMPLATE]
7012 instantiate the configuration file FILE
7013 --header=FILE[:TEMPLATE]
7014 instantiate the configuration header FILE
7016 Configuration files:
7019 Configuration headers:
7022 Configuration commands:
7025 Report bugs to <bug-autoconf@gnu.org>."
7028 cat >>$CONFIG_STATUS <<_ACEOF
7031 configured by $0, generated by GNU Autoconf 2.59,
7032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7034 Copyright (C) 2003 Free Software Foundation, Inc.
7035 This config.status script is free software; the Free Software Foundation
7036 gives unlimited permission to copy, distribute and modify it."
7041 cat >>$CONFIG_STATUS <<\_ACEOF
7042 # If no file are specified by the user, then we need to provide default
7043 # value. By we need to know if files were specified by the user.
7049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7058 *) # This is not an option, so the user has probably given explicit
7061 ac_need_defaults=false;;
7065 # Handling of the options.
7067 cat >>$CONFIG_STATUS <<\_ACEOF
7068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7070 --version | --vers* | -V )
7071 echo "$ac_cs_version"; exit 0 ;;
7073 # Conflict between --help and --header
7074 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7075 Try \`$0 --help' for more information." >&5
7076 echo "$as_me: error: ambiguous option: $1
7077 Try \`$0 --help' for more information." >&2;}
7078 { (exit 1); exit 1; }; };;
7079 --help | --hel | -h )
7080 echo "$ac_cs_usage"; exit 0 ;;
7081 --debug | --d* | -d )
7083 --file | --fil | --fi | --f )
7085 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7086 ac_need_defaults=false;;
7087 --header | --heade | --head | --hea )
7089 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7090 ac_need_defaults=false;;
7091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7096 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7097 Try \`$0 --help' for more information." >&5
7098 echo "$as_me: error: unrecognized option: $1
7099 Try \`$0 --help' for more information." >&2;}
7100 { (exit 1); exit 1; }; } ;;
7102 *) ac_config_targets="$ac_config_targets $1" ;;
7108 ac_configure_extra_args=
7110 if $ac_cs_silent; then
7112 ac_configure_extra_args="$ac_configure_extra_args --silent"
7116 cat >>$CONFIG_STATUS <<_ACEOF
7117 if \$ac_cs_recheck; then
7118 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7119 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7124 cat >>$CONFIG_STATUS <<_ACEOF
7126 # INIT-COMMANDS section.
7132 with_target_subdir=${with_target_subdir}
7133 with_build_subdir=${with_build_subdir}
7134 with_multisubdir=${with_multisubdir}
7135 ac_configure_args="--enable-multilib ${ac_configure_args}"
7136 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7137 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
7138 libiberty_topdir=${libiberty_topdir}
7145 cat >>$CONFIG_STATUS <<\_ACEOF
7146 for ac_config_target in $ac_config_targets
7148 case "$ac_config_target" in
7149 # Handling of arguments.
7150 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7151 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7152 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7153 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7156 { (exit 1); exit 1; }; };;
7160 # If the user did not use the arguments to specify the items to instantiate,
7161 # then the envvar interface is used. Set only those that are not.
7162 # We use the long form for the default assignment because of an extremely
7163 # bizarre bug on SunOS 4.1.3.
7164 if $ac_need_defaults; then
7165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7170 # Have a temporary directory for convenience. Make it in the build tree
7171 # simply because there is no reason to put it here, and in addition,
7172 # creating and moving files from /tmp can sometimes cause problems.
7173 # Create a temporary directory, and hook for its removal unless debugging.
7176 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7177 trap '{ (exit 1); exit 1; }' 1 2 13 15
7180 # Create a (secure) tmp directory for tmp files.
7183 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7184 test -n "$tmp" && test -d "$tmp"
7187 tmp=./confstat$$-$RANDOM
7188 (umask 077 && mkdir $tmp)
7191 echo "$me: cannot create a temporary directory in ." >&2
7192 { (exit 1); exit 1; }
7197 cat >>$CONFIG_STATUS <<_ACEOF
7200 # CONFIG_FILES section.
7203 # No need to generate the scripts if there are no CONFIG_FILES.
7204 # This happens for instance when ./config.status config.h
7205 if test -n "\$CONFIG_FILES"; then
7206 # Protect against being on the right side of a sed subst in config.status.
7207 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7208 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7209 s,@SHELL@,$SHELL,;t t
7210 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7211 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7212 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7213 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7214 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7215 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7216 s,@exec_prefix@,$exec_prefix,;t t
7217 s,@prefix@,$prefix,;t t
7218 s,@program_transform_name@,$program_transform_name,;t t
7219 s,@bindir@,$bindir,;t t
7220 s,@sbindir@,$sbindir,;t t
7221 s,@libexecdir@,$libexecdir,;t t
7222 s,@datadir@,$datadir,;t t
7223 s,@sysconfdir@,$sysconfdir,;t t
7224 s,@sharedstatedir@,$sharedstatedir,;t t
7225 s,@localstatedir@,$localstatedir,;t t
7226 s,@libdir@,$libdir,;t t
7227 s,@includedir@,$includedir,;t t
7228 s,@oldincludedir@,$oldincludedir,;t t
7229 s,@infodir@,$infodir,;t t
7230 s,@mandir@,$mandir,;t t
7231 s,@build_alias@,$build_alias,;t t
7232 s,@host_alias@,$host_alias,;t t
7233 s,@target_alias@,$target_alias,;t t
7235 s,@ECHO_C@,$ECHO_C,;t t
7236 s,@ECHO_N@,$ECHO_N,;t t
7237 s,@ECHO_T@,$ECHO_T,;t t
7239 s,@libiberty_topdir@,$libiberty_topdir,;t t
7240 s,@MAINT@,$MAINT,;t t
7241 s,@NOTMAINT@,$NOTMAINT,;t t
7242 s,@MAKEINFO@,$MAKEINFO,;t t
7243 s,@BUILD_INFO@,$BUILD_INFO,;t t
7245 s,@HAVE_PERL@,$HAVE_PERL,;t t
7246 s,@build@,$build,;t t
7247 s,@build_cpu@,$build_cpu,;t t
7248 s,@build_vendor@,$build_vendor,;t t
7249 s,@build_os@,$build_os,;t t
7251 s,@host_cpu@,$host_cpu,;t t
7252 s,@host_vendor@,$host_vendor,;t t
7253 s,@host_os@,$host_os,;t t
7255 s,@ac_ct_AR@,$ac_ct_AR,;t t
7256 s,@RANLIB@,$RANLIB,;t t
7257 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7259 s,@CFLAGS@,$CFLAGS,;t t
7260 s,@LDFLAGS@,$LDFLAGS,;t t
7261 s,@CPPFLAGS@,$CPPFLAGS,;t t
7262 s,@ac_ct_CC@,$ac_ct_CC,;t t
7263 s,@EXEEXT@,$EXEEXT,;t t
7264 s,@OBJEXT@,$OBJEXT,;t t
7266 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
7267 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
7268 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
7269 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7270 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7271 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7272 s,@EGREP@,$EGREP,;t t
7273 s,@LIBOBJS@,$LIBOBJS,;t t
7274 s,@CHECK@,$CHECK,;t t
7275 s,@target_header_dir@,$target_header_dir,;t t
7276 s,@pexecute@,$pexecute,;t t
7277 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
7278 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7279 /@host_makefile_frag@/r $host_makefile_frag
7280 s,@host_makefile_frag@,,;t t
7285 cat >>$CONFIG_STATUS <<\_ACEOF
7286 # Split the substitutions into bite-sized pieces for seds with
7287 # small command number limits, like on Digital OSF/1 and HP-UX.
7289 ac_sed_frag=1 # Number of current file.
7290 ac_beg=1 # First line for current file.
7291 ac_end=$ac_max_sed_lines # Line after last line for current file.
7294 while $ac_more_lines; do
7295 if test $ac_beg -gt 1; then
7296 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7298 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7300 if test ! -s $tmp/subs.frag; then
7303 # The purpose of the label and of the branching condition is to
7304 # speed up the sed processing (if there are no `@' at all, there
7305 # is no need to browse any of the substitutions).
7306 # These are the two extra sed commands mentioned above.
7308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7309 if test -z "$ac_sed_cmds"; then
7310 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7312 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7314 ac_sed_frag=`expr $ac_sed_frag + 1`
7316 ac_end=`expr $ac_end + $ac_max_sed_lines`
7319 if test -z "$ac_sed_cmds"; then
7322 fi # test -n "$CONFIG_FILES"
7325 cat >>$CONFIG_STATUS <<\_ACEOF
7326 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7329 - | *:- | *:-:* ) # input from stdin
7331 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7333 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7335 * ) ac_file_in=$ac_file.in ;;
7338 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7339 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7341 X"$ac_file" : 'X\(//\)[^/]' \| \
7342 X"$ac_file" : 'X\(//\)$' \| \
7343 X"$ac_file" : 'X\(/\)' \| \
7344 . : '\(.\)' 2>/dev/null ||
7346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7348 /^X\(\/\/\)$/{ s//\1/; q; }
7349 /^X\(\/\).*/{ s//\1/; q; }
7351 { if $as_mkdir_p; then
7356 while test ! -d "$as_dir"; do
7357 as_dirs="$as_dir $as_dirs"
7358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7360 X"$as_dir" : 'X\(//\)[^/]' \| \
7361 X"$as_dir" : 'X\(//\)$' \| \
7362 X"$as_dir" : 'X\(/\)' \| \
7363 . : '\(.\)' 2>/dev/null ||
7365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7367 /^X\(\/\/\)$/{ s//\1/; q; }
7368 /^X\(\/\).*/{ s//\1/; q; }
7371 test ! -n "$as_dirs" || mkdir $as_dirs
7372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7374 { (exit 1); exit 1; }; }; }
7378 if test "$ac_dir" != .; then
7379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7380 # A "../" for each directory in $ac_dir_suffix.
7381 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7383 ac_dir_suffix= ac_top_builddir=
7387 .) # No --srcdir option. We are building in place.
7389 if test -z "$ac_top_builddir"; then
7392 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7394 [\\/]* | ?:[\\/]* ) # Absolute path.
7395 ac_srcdir=$srcdir$ac_dir_suffix;
7396 ac_top_srcdir=$srcdir ;;
7398 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7399 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7402 # Do not use `cd foo && pwd` to compute absolute paths, because
7403 # the directories may not exist.
7405 .) ac_abs_builddir="$ac_dir";;
7408 .) ac_abs_builddir=`pwd`;;
7409 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7410 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7413 case $ac_abs_builddir in
7414 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7416 case ${ac_top_builddir}. in
7417 .) ac_abs_top_builddir=$ac_abs_builddir;;
7418 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7419 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7422 case $ac_abs_builddir in
7423 .) ac_abs_srcdir=$ac_srcdir;;
7426 .) ac_abs_srcdir=$ac_abs_builddir;;
7427 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7428 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7431 case $ac_abs_builddir in
7432 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7434 case $ac_top_srcdir in
7435 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7436 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7437 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7443 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7444 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7447 if test x"$ac_file" != x-; then
7448 { echo "$as_me:$LINENO: creating $ac_file" >&5
7449 echo "$as_me: creating $ac_file" >&6;}
7452 # Let's still pretend it is `configure' which instantiates (i.e., don't
7453 # use $as_me), people would be surprised to read:
7454 # /* config.h. Generated by config.status. */
7455 if test x"$ac_file" = x-; then
7458 configure_input="$ac_file. "
7460 configure_input=$configure_input"Generated from `echo $ac_file_in |
7461 sed 's,.*/,,'` by configure."
7463 # First look for the input files in the build tree, otherwise in the
7465 ac_file_inputs=`IFS=:
7466 for f in $ac_file_in; do
7468 -) echo $tmp/stdin ;;
7470 # Absolute (can't be DOS-style, as IFS=:)
7471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7472 echo "$as_me: error: cannot find input file: $f" >&2;}
7473 { (exit 1); exit 1; }; }
7476 if test -f "$f"; then
7479 elif test -f "$srcdir/$f"; then
7484 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7485 echo "$as_me: error: cannot find input file: $f" >&2;}
7486 { (exit 1); exit 1; }; }
7489 done` || { (exit 1); exit 1; }
7491 cat >>$CONFIG_STATUS <<_ACEOF
7495 cat >>$CONFIG_STATUS <<\_ACEOF
7497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7498 s,@configure_input@,$configure_input,;t t
7499 s,@srcdir@,$ac_srcdir,;t t
7500 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7501 s,@top_srcdir@,$ac_top_srcdir,;t t
7502 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7503 s,@builddir@,$ac_builddir,;t t
7504 s,@abs_builddir@,$ac_abs_builddir,;t t
7505 s,@top_builddir@,$ac_top_builddir,;t t
7506 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7507 s,@INSTALL@,$ac_INSTALL,;t t
7508 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7510 if test x"$ac_file" != x-; then
7511 mv $tmp/out $ac_file
7519 cat >>$CONFIG_STATUS <<\_ACEOF
7522 # CONFIG_HEADER section.
7525 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7526 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7528 # ac_d sets the value in "#define NAME VALUE" lines.
7529 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7530 ac_dB='[ ].*$,\1#\2'
7533 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7534 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7535 ac_uB='$,\1#\2define\3'
7539 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7542 - | *:- | *:-:* ) # input from stdin
7544 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7546 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7548 * ) ac_file_in=$ac_file.in ;;
7551 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7552 echo "$as_me: creating $ac_file" >&6;}
7554 # First look for the input files in the build tree, otherwise in the
7556 ac_file_inputs=`IFS=:
7557 for f in $ac_file_in; do
7559 -) echo $tmp/stdin ;;
7561 # Absolute (can't be DOS-style, as IFS=:)
7562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7563 echo "$as_me: error: cannot find input file: $f" >&2;}
7564 { (exit 1); exit 1; }; }
7565 # Do quote $f, to prevent DOS paths from being IFS'd.
7568 if test -f "$f"; then
7571 elif test -f "$srcdir/$f"; then
7576 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7577 echo "$as_me: error: cannot find input file: $f" >&2;}
7578 { (exit 1); exit 1; }; }
7581 done` || { (exit 1); exit 1; }
7582 # Remove the trailing spaces.
7583 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7587 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7588 # `conftest.undefs', that substitutes the proper values into
7589 # config.h.in to produce config.h. The first handles `#define'
7590 # templates, and the second `#undef' templates.
7591 # And first: Protect against being on the right side of a sed subst in
7592 # config.status. Protect against being in an unquoted here document
7594 rm -f conftest.defines conftest.undefs
7595 # Using a here document instead of a string reduces the quoting nightmare.
7596 # Putting comments in sed scripts is not portable.
7598 # `end' is used to avoid that the second main sed command (meant for
7599 # 0-ary CPP macros) applies to n-ary macro definitions.
7600 # See the Autoconf documentation for `clear'.
7601 cat >confdef2sed.sed <<\_ACEOF
7606 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7608 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7611 # If some macros were called several times there might be several times
7612 # the same #defines, which is useless. Nevertheless, we may not want to
7613 # sort them, since we want the *last* AC-DEFINE to be honored.
7614 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7615 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7616 rm -f confdef2sed.sed
7618 # This sed command replaces #undef with comments. This is necessary, for
7619 # example, in the case of _POSIX_SOURCE, which is predefined and required
7620 # on some systems where configure will not decide to define it.
7621 cat >>conftest.undefs <<\_ACEOF
7622 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7625 # Break up conftest.defines because some shells have a limit on the size
7626 # of here documents, and old seds have small limits too (100 cmds).
7627 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7628 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7629 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7630 echo ' :' >>$CONFIG_STATUS
7632 while grep . conftest.defines >/dev/null
7634 # Write a limited-size here document to $tmp/defines.sed.
7635 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7636 # Speed up: don't consider the non `#define' lines.
7637 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7638 # Work around the forget-to-reset-the-flag bug.
7639 echo 't clr' >>$CONFIG_STATUS
7640 echo ': clr' >>$CONFIG_STATUS
7641 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7643 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7647 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7648 rm -f conftest.defines
7649 mv conftest.tail conftest.defines
7651 rm -f conftest.defines
7652 echo ' fi # grep' >>$CONFIG_STATUS
7653 echo >>$CONFIG_STATUS
7655 # Break up conftest.undefs because some shells have a limit on the size
7656 # of here documents, and old seds have small limits too (100 cmds).
7657 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7659 while grep . conftest.undefs >/dev/null
7661 # Write a limited-size here document to $tmp/undefs.sed.
7662 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7663 # Speed up: don't consider the non `#undef'
7664 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7665 # Work around the forget-to-reset-the-flag bug.
7666 echo 't clr' >>$CONFIG_STATUS
7667 echo ': clr' >>$CONFIG_STATUS
7668 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7670 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7674 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7675 rm -f conftest.undefs
7676 mv conftest.tail conftest.undefs
7678 rm -f conftest.undefs
7680 cat >>$CONFIG_STATUS <<\_ACEOF
7681 # Let's still pretend it is `configure' which instantiates (i.e., don't
7682 # use $as_me), people would be surprised to read:
7683 # /* config.h. Generated by config.status. */
7684 if test x"$ac_file" = x-; then
7685 echo "/* Generated by configure. */" >$tmp/config.h
7687 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7689 cat $tmp/in >>$tmp/config.h
7691 if test x"$ac_file" != x-; then
7692 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7693 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7694 echo "$as_me: $ac_file is unchanged" >&6;}
7696 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7698 X"$ac_file" : 'X\(//\)[^/]' \| \
7699 X"$ac_file" : 'X\(//\)$' \| \
7700 X"$ac_file" : 'X\(/\)' \| \
7701 . : '\(.\)' 2>/dev/null ||
7703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7705 /^X\(\/\/\)$/{ s//\1/; q; }
7706 /^X\(\/\).*/{ s//\1/; q; }
7708 { if $as_mkdir_p; then
7713 while test ! -d "$as_dir"; do
7714 as_dirs="$as_dir $as_dirs"
7715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7717 X"$as_dir" : 'X\(//\)[^/]' \| \
7718 X"$as_dir" : 'X\(//\)$' \| \
7719 X"$as_dir" : 'X\(/\)' \| \
7720 . : '\(.\)' 2>/dev/null ||
7722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7724 /^X\(\/\/\)$/{ s//\1/; q; }
7725 /^X\(\/\).*/{ s//\1/; q; }
7728 test ! -n "$as_dirs" || mkdir $as_dirs
7729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7731 { (exit 1); exit 1; }; }; }
7734 mv $tmp/config.h $ac_file
7742 cat >>$CONFIG_STATUS <<\_ACEOF
7745 # CONFIG_COMMANDS section.
7747 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7748 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7749 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7750 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7751 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7752 X"$ac_dest" : 'X\(//\)[^/]' \| \
7753 X"$ac_dest" : 'X\(//\)$' \| \
7754 X"$ac_dest" : 'X\(/\)' \| \
7755 . : '\(.\)' 2>/dev/null ||
7757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7759 /^X\(\/\/\)$/{ s//\1/; q; }
7760 /^X\(\/\).*/{ s//\1/; q; }
7762 { if $as_mkdir_p; then
7767 while test ! -d "$as_dir"; do
7768 as_dirs="$as_dir $as_dirs"
7769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$as_dir" : 'X\(//\)[^/]' \| \
7772 X"$as_dir" : 'X\(//\)$' \| \
7773 X"$as_dir" : 'X\(/\)' \| \
7774 . : '\(.\)' 2>/dev/null ||
7776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7778 /^X\(\/\/\)$/{ s//\1/; q; }
7779 /^X\(\/\).*/{ s//\1/; q; }
7782 test ! -n "$as_dirs" || mkdir $as_dirs
7783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7785 { (exit 1); exit 1; }; }; }
7789 if test "$ac_dir" != .; then
7790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7791 # A "../" for each directory in $ac_dir_suffix.
7792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7794 ac_dir_suffix= ac_top_builddir=
7798 .) # No --srcdir option. We are building in place.
7800 if test -z "$ac_top_builddir"; then
7803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7805 [\\/]* | ?:[\\/]* ) # Absolute path.
7806 ac_srcdir=$srcdir$ac_dir_suffix;
7807 ac_top_srcdir=$srcdir ;;
7809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7813 # Do not use `cd foo && pwd` to compute absolute paths, because
7814 # the directories may not exist.
7816 .) ac_abs_builddir="$ac_dir";;
7819 .) ac_abs_builddir=`pwd`;;
7820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7824 case $ac_abs_builddir in
7825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7827 case ${ac_top_builddir}. in
7828 .) ac_abs_top_builddir=$ac_abs_builddir;;
7829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7833 case $ac_abs_builddir in
7834 .) ac_abs_srcdir=$ac_srcdir;;
7837 .) ac_abs_srcdir=$ac_abs_builddir;;
7838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7842 case $ac_abs_builddir in
7843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7845 case $ac_top_srcdir in
7846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7853 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7854 echo "$as_me: executing $ac_dest commands" >&6;}
7856 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7857 if test -n "$CONFIG_FILES"; then
7858 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
7859 # FIXME: We shouldn't need to set ac_file
7861 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7862 . ${libiberty_topdir}/config-ml.in
7869 cat >>$CONFIG_STATUS <<\_ACEOF
7871 { (exit 0); exit 0; }
7873 chmod +x $CONFIG_STATUS
7874 ac_clean_files=$ac_clean_files_save
7877 # configure is writing to config.log, and then calls config.status.
7878 # config.status does its own redirection, appending to config.log.
7879 # Unfortunately, on DOS this fails, as config.log is still kept open
7880 # by configure, so config.status won't be able to write to it; its
7881 # output is simply discarded. So we exec the FD to /dev/null,
7882 # effectively closing config.log, so it can be properly (re)opened and
7883 # appended to by config.status. When coming back to configure, we
7884 # need to make the FD available again.
7885 if test "$no_create" != yes; then
7887 ac_config_status_args=
7888 test "$silent" = yes &&
7889 ac_config_status_args="$ac_config_status_args --quiet"
7891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7894 # would make configure fail if this is the last instruction.
7895 $ac_cs_success || { (exit 1); exit 1; }