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="libbfd.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-included-gettext use the GNU gettext library included here
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
927 .) ac_abs_builddir="$ac_dir";;
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
997 It was created by $as_me, which was
998 generated by GNU Autoconf 2.59. Invocation command line was
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_must_keep_next=false
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 -* ) ac_must_keep_next=true ;;
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1115 # The following way of writing the cache mishandles newlines in values,
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1138 for ac_var in $ac_subst_vars
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -n "$ac_subst_files"; then
1152 for ac_var in $ac_subst_files
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1160 if test -s confdefs.h; then
1167 sed "/^$/d" confdefs.h | sort
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 # Predefined preprocessor variables.
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1250 # Check that the precious variables saved in the cache have kept the same
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 elif test -f $ac_dir/install.sh; then
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 elif test -f $ac_dir/shtool; then
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking target system type" >&5
1407 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408 if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_target_alias=$target_alias
1412 test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421 echo "${ECHO_T}$ac_cv_target" >&6
1422 target=$ac_cv_target
1423 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 # The aliases save the names the user supplied, while $host etc.
1429 # will get canonicalized.
1430 test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1433 program_prefix=${target_alias}-
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1476 if test -z "$ac_cv_prog_CC"; then
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1518 if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1556 if test -z "$ac_cv_prog_CC"; then
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1599 if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1653 if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$CC" && break
1695 if test -z "$CC"; then
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1734 test -n "$ac_ct_CC" && break
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1749 # Provide some information about the compiler.
1750 echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752 ac_compiler=`set X $ac_compile; echo $2`
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1769 cat >conftest.$ac_ext <<_ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h. */
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1789 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 # b.out is created by i960 compilers.
1805 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1807 test -f "$ac_file" || continue
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 # This is the source file.
1815 # We found the default executable, but exeext='' is most
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1840 ac_exeext=$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_file" >&5
1842 echo "${ECHO_T}$ac_file" >&6
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849 # If not cross compiling, check that we can run a simple program.
1850 if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1859 if test "$cross_compiling" = maybe; then
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot run C compiled programs.
1866 If you meant to cross compile, use \`--host'.
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1872 echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6
1875 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876 ac_clean_files=$ac_clean_files_save
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882 echo "${ECHO_T}$cross_compiling" >&6
1884 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1913 rm -f conftest$ac_cv_exeext
1914 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915 echo "${ECHO_T}$ac_cv_exeext" >&6
1917 rm -f conftest.$ac_ext
1918 EXEEXT=$ac_cv_exeext
1920 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922 if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.$ac_ext <<_ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 cat >conftest.$ac_ext <<_ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1997 grep -v '^ *+' conftest.er1 >conftest.err
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2017 echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028 GCC=`test $ac_compiler_gnu = yes && echo yes`
2029 ac_test_CFLAGS=${CFLAGS+set}
2030 ac_save_CFLAGS=$CFLAGS
2032 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 cat >conftest.$ac_ext <<_ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2056 grep -v '^ *+' conftest.er1 >conftest.err
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2094 if test "$GCC" = yes; then
2100 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 ac_cv_prog_cc_stdc=no
2107 cat >conftest.$ac_ext <<_ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2115 #include <sys/types.h>
2116 #include <sys/stat.h>
2117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118 struct buf { int x; };
2119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120 static char *e (p, i)
2126 static char *f (char * (*g) (char **, int), char **p, ...)
2131 s = g (p, va_arg (v,int));
2136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2145 int test (int i, double x);
2146 struct s1 {int (*f) (int a);};
2147 struct s2 {int (*f) (double a);};
2148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2159 # Don't try gcc -ansi; that turns off useful extensions and
2160 # breaks some systems' header files.
2161 # AIX -qlanglvl=ansi
2162 # Ultrix and OSF/1 -std1
2163 # HP-UX 10.20 and later -Ae
2164 # HP-UX older versions -Aa -D_HPUX_SOURCE
2165 # SVR4 -Xc -D__EXTENSIONS__
2166 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2173 grep -v '^ *+' conftest.er1 >conftest.err
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.err conftest.$ac_objext
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2205 case "x$ac_cv_prog_cc_stdc" in
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2228 grep -v '^ *+' conftest.er1 >conftest.err
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2270 rm -f conftest.$ac_objext
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2274 grep -v '^ *+' conftest.er1 >conftest.err
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2319 grep -v '^ *+' conftest.er1 >conftest.err
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367 if test "${ac_cv_search_strerror+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 ac_func_search_save_LIBS=$LIBS
2371 ac_cv_search_strerror=no
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2379 /* Override any gcc2 internal prototype to avoid an error. */
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_search_strerror="none required"
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2422 rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424 if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2434 /* Override any gcc2 internal prototype to avoid an error. */
2438 /* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2449 rm -f conftest.$ac_objext conftest$ac_exeext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2453 grep -v '^ *+' conftest.er1 >conftest.err
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2482 LIBS=$ac_func_search_save_LIBS
2484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486 if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2492 am__api_version="1.9"
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2508 if test -z "$INSTALL"; then
2509 if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL=$ac_cv_path_install
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
2558 INSTALL=$ac_install_sh
2561 echo "$as_me:$LINENO: result: $INSTALL" >&5
2562 echo "${ECHO_T}$INSTALL" >&6
2564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565 # It thinks the first close brace ends the variable substitution.
2566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2572 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2576 echo timestamp > conftest.file
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments. Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2586 set X `ls -t $srcdir/configure conftest.file`
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" >&5
2598 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
2603 test "$2" = conftest.file
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610 Check your system clock" >&5
2611 echo "$as_me: error: newly created file is older than distributed files!
2612 Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
2615 echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622 # Double any \ or $. echo might interpret backslashes.
2623 # By default was `s,x,x', remove it if useless.
2624 cat <<\_ACEOF >conftest.sed
2625 s/[\\$]/&&/g;s/;s,x,x,$//
2627 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630 # expand $ac_aux_dir to an absolute path
2631 am_aux_dir=`cd $ac_aux_dir && pwd`
2633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634 # Use eval to expand $SHELL
2635 if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2664 for d in ./-p ./--version;
2666 test -d $d && rmdir $d
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2672 mkdir_p='$(install_sh) -d'
2676 for ac_prog in gawk mawk nawk awk
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707 echo "${ECHO_T}$AWK" >&6
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2713 test -n "$AWK" && break
2716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.make <<\_ACEOF
2724 @echo 'ac_maketemp="$(MAKE)"'
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728 if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2731 eval ac_cv_prog_make_${ac_make}_set=no
2735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 SET_MAKE="MAKE=${MAKE-make}"
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2752 rmdir .tst 2>/dev/null
2754 DEPDIR="${am__leading_dot}deps"
2756 ac_config_commands="$ac_config_commands depfiles"
2759 am_make=${MAKE-make}
2760 cat > confinc << 'END'
2765 # If we don't find an include directive, just comment out the code.
2766 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2771 # First try GNU make style include.
2772 echo "include confinc" > confmf
2773 # We grep out `Entering directory' and `Leaving directory'
2774 # messages which can occur if `w' ends up in MAKEFLAGS.
2775 # In particular we don't look at `^make:' because GNU make might
2776 # be invoked under some other name (usually "gmake"), in which
2777 # case it prints its new name instead of `make'.
2778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2783 # Now try BSD make style include.
2784 if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2794 echo "$as_me:$LINENO: result: $_am_result" >&5
2795 echo "${ECHO_T}$_am_result" >&6
2796 rm -f confinc confmf
2798 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799 if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2803 if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2809 if test "x$enable_dependency_tracking" != xno; then
2819 # test to see if srcdir already configured
2820 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2837 # Define the identity of the package.
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE "$PACKAGE"
2847 cat >>confdefs.h <<_ACEOF
2848 #define VERSION "$VERSION"
2851 # Some tools Automake needs.
2853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2869 # Installed binaries are usually stripped using `strip' when the user
2870 # run `make install-strip'. However `strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the `STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 STRIP=$ac_cv_prog_STRIP
2902 if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904 echo "${ECHO_T}$STRIP" >&6
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2911 if test -z "$ac_cv_prog_STRIP"; then
2913 # Extract the first word of "strip", so it can be a program name with args.
2914 set dummy strip; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941 if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943 echo "${ECHO_T}$ac_ct_STRIP" >&6
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2951 STRIP="$ac_cv_prog_STRIP"
2955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2957 # We need awk for the "check" target. The system "awk" is bad on
2959 # Always define AMTAR for backward compatibility.
2961 AMTAR=${AMTAR-"${am_missing_run}tar"}
2963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2968 depcc="$CC" am_compiler_list=
2970 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3056 am_cv_CC_dependencies_compiler_type=none
3060 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3070 am__fastdepCC_FALSE='#'
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}ar; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test -n "$AR"; then
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109 echo "${ECHO_T}$AR" >&6
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3116 if test -z "$ac_cv_prog_AR"; then
3118 # Extract the first word of "ar", so it can be a program name with args.
3119 set dummy ar; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145 if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147 echo "${ECHO_T}$ac_ct_AR" >&6
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 RANLIB=$ac_cv_prog_RANLIB
3186 if test -n "$RANLIB"; then
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188 echo "${ECHO_T}$RANLIB" >&6
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3195 if test -z "$ac_cv_prog_RANLIB"; then
3196 ac_ct_RANLIB=$RANLIB
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198 set dummy ranlib; ac_word=$2
3199 echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225 if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 RANLIB=$ac_ct_RANLIB
3235 RANLIB="$ac_cv_prog_RANLIB"
3239 # Check whether --enable-shared or --disable-shared was given.
3240 if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
3244 yes) enable_shared=yes ;;
3245 no) enable_shared=no ;;
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3262 # Check whether --enable-static or --disable-static was given.
3263 if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
3267 yes) enable_static=yes ;;
3268 no) enable_static=no ;;
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3284 # Check whether --enable-fast-install or --disable-fast-install was given.
3285 if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
3289 yes) enable_fast_install=yes ;;
3290 no) enable_fast_install=no ;;
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3304 enable_fast_install=yes
3307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3308 if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3315 if test "$GCC" = yes; then
3316 # Check if gcc -print-prog-name=ld gives a path.
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3327 # Accept absolute paths.
3328 [\\/]* | [A-Za-z]:[\\/]*)
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3335 test -z "$LD" && LD="$ac_prog"
3338 # If it fails, then pretend we aren't using GCC.
3342 # If it is relative, then search for the first ld in PATH.
3346 elif test "$with_gnu_ld" = yes; then
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3353 if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -z "$LD"; then
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3361 lt_cv_path_LD="$ac_dir/$ac_prog"
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3366 test "$with_gnu_ld" != no && break
3368 test "$with_gnu_ld" != yes && break
3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3379 if test -n "$LD"; then
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381 echo "${ECHO_T}$LD" >&6
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3396 lt_cv_prog_gnu_ld=yes
3398 lt_cv_prog_gnu_ld=no
3401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3403 with_gnu_ld=$lt_cv_prog_gnu_ld
3406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408 if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 lt_cv_ld_reload_flag='-r'
3413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3415 reload_flag=$lt_cv_ld_reload_flag
3416 test -n "$reload_flag" && reload_flag=" $reload_flag"
3418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420 if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -n "$NM"; then
3424 # Let the user override the test.
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3429 test -z "$ac_dir" && ac_dir=.
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3437 lt_cv_path_NM="$tmp_nm -B"
3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -p"
3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3444 continue # so that we can try to find one that supports BSD flags
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3454 echo "$as_me:$LINENO: result: $NM" >&5
3455 echo "${ECHO_T}$NM" >&6
3457 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3460 if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465 echo "${ECHO_T}no, using $LN_S" >&6
3468 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470 if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
3474 lt_cv_file_magic_test_file=
3475 lt_cv_deplibs_check_method='unknown'
3476 # Need to set the preceding variable on all platforms that support
3477 # interlibrary dependencies.
3478 # 'none' -- dependencies not supported.
3479 # `unknown' -- same as none, but documents that we really don't know.
3480 # 'pass_all' -- all dependencies passed with no checks.
3481 # 'test_compile' -- check by making test program.
3482 # 'file_magic [regex]' -- check by looking for files in library path
3483 # which responds to the $file_magic_cmd with a given egrep regex.
3484 # If you have `file' or equivalent on your system and you're not sure
3485 # whether `pass_all' will *always* work, you probably want this one.
3489 lt_cv_deplibs_check_method=pass_all
3493 lt_cv_deplibs_check_method=pass_all
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3502 cygwin* | mingw* |pw32*)
3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
3507 darwin* | rhapsody*)
3508 # this will be overwritten by pass_all, but leave it in just in case
3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3510 lt_cv_file_magic_cmd='/usr/bin/file -L'
3512 rhapsody* | darwin1.012)
3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 lt_cv_deplibs_check_method=pass_all
3522 freebsd* | kfreebsd*-gnu)
3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534 lt_cv_deplibs_check_method=pass_all
3539 lt_cv_deplibs_check_method=pass_all
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546 lt_cv_file_magic_cmd=/usr/bin/file
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3565 *-32|*"-32 ") libmagic=32-bit;;
3566 *-n32|*"-n32 ") libmagic=N32;;
3567 *-64|*"-64 ") libmagic=64-bit;;
3568 *) libmagic=never-match;;
3570 # this will be overridden with pass_all, but let us keep it just in case
3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3575 lt_cv_deplibs_check_method=pass_all
3578 # This must be Linux ELF.
3580 lt_cv_deplibs_check_method=pass_all
3583 netbsd* | knetbsd*-gnu)
3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3597 osf3* | osf4* | osf5*)
3598 # this will be overridden with pass_all, but let us keep it just in case
3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 lt_cv_deplibs_check_method=pass_all
3605 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_file_magic_test_file=/lib/libc.so
3613 sysv5uw[78]* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3617 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3618 case $host_vendor in
3620 lt_cv_deplibs_check_method=pass_all
3623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3631 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3632 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3633 file_magic_cmd=$lt_cv_file_magic_cmd
3634 deplibs_check_method=$lt_cv_deplibs_check_method
3639 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3641 # find the maximum length of command line arguments
3642 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3643 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3644 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 # On DJGPP, this test can blow up pretty badly due to problems in libc
3653 # (any single argument exceeding 2000 bytes causes a buffer overrun
3654 # during glob expansion). Even if it were fixed, the result of this
3655 # check would be larger than it should be.
3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3660 # On Win9x/ME, this test blows up -- it succeeds, but takes
3661 # about 5 minutes as the teststring grows exponentially.
3662 # Worse, since 9x/ME are not pre-emptively multitasking,
3663 # you end up with a "frozen" computer, even though with patience
3664 # the test eventually succeeds (with a max line length of 256k).
3665 # Instead, let's just punt: use the minimum linelength reported by
3666 # all of the supported platforms: 8192 (on NT/2K/XP).
3667 lt_cv_sys_max_cmd_len=8192;
3671 # On AmigaOS with pdksh, this test takes hours, literally.
3672 # So we just punt and use a minimum line length of 8192.
3673 lt_cv_sys_max_cmd_len=8192;
3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3677 # This has been around since 386BSD, at least. Likely further.
3678 if test -x /sbin/sysctl; then
3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3680 elif test -x /usr/sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3685 # And add a safety zone
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3693 if test -n "$lt_cv_sys_max_cmd_len" ; then
3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3695 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3697 echo "$as_me:$LINENO: result: none" >&5
3698 echo "${ECHO_T}none" >&6
3702 # Only perform the check for file, if the check method requires it
3703 case $deplibs_check_method in
3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3707 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/${ac_tool_prefix}file; then
3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3726 if test -n "$file_magic_test_file"; then
3727 case $deplibs_check_method in
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3737 *** Warning: the command libtool uses to detect shared libraries,
3738 *** $file_magic_cmd, produces output that libtool cannot recognize.
3739 *** The result is that libtool may fail to recognize shared libraries
3740 *** as such. This will affect the creation of libtool libraries that
3741 *** depend on shared libraries, but programs linked with such libtool
3742 *** libraries will work regardless of this problem. Nevertheless, you
3743 *** may want to report the problem to your system manager and/or to
3744 *** bug-libtool@gnu.org
3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
3759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760 if test -n "$MAGIC_CMD"; then
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762 echo "${ECHO_T}$MAGIC_CMD" >&6
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 if test -z "$lt_cv_path_MAGIC_CMD"; then
3769 if test -n "$ac_tool_prefix"; then
3770 echo "$as_me:$LINENO: checking for file" >&5
3771 echo $ECHO_N "checking for file... $ECHO_C" >&6
3772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3783 ac_save_MAGIC_CMD="$MAGIC_CMD"
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 ac_dummy="/usr/bin:$PATH"
3786 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/file; then
3789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3790 if test -n "$file_magic_test_file"; then
3791 case $deplibs_check_method in
3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3796 egrep "$file_magic_regex" > /dev/null; then
3801 *** Warning: the command libtool uses to detect shared libraries,
3802 *** $file_magic_cmd, produces output that libtool cannot recognize.
3803 *** The result is that libtool may fail to recognize shared libraries
3804 *** as such. This will affect the creation of libtool libraries that
3805 *** depend on shared libraries, but programs linked with such libtool
3806 *** libraries will work regardless of this problem. Nevertheless, you
3807 *** may want to report the problem to your system manager and/or to
3808 *** bug-libtool@gnu.org
3818 MAGIC_CMD="$ac_save_MAGIC_CMD"
3823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824 if test -n "$MAGIC_CMD"; then
3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3826 echo "${ECHO_T}$MAGIC_CMD" >&6
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 RANLIB=$ac_cv_prog_RANLIB
3869 if test -n "$RANLIB"; then
3870 echo "$as_me:$LINENO: result: $RANLIB" >&5
3871 echo "${ECHO_T}$RANLIB" >&6
3873 echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3878 if test -z "$ac_cv_prog_RANLIB"; then
3879 ac_ct_RANLIB=$RANLIB
3880 # Extract the first word of "ranlib", so it can be a program name with args.
3881 set dummy ranlib; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 if test -n "$ac_ct_RANLIB"; then
3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_RANLIB="ranlib"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3908 if test -n "$ac_ct_RANLIB"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3910 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 RANLIB=$ac_ct_RANLIB
3918 RANLIB="$ac_cv_prog_RANLIB"
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}strip; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_STRIP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 STRIP=$ac_cv_prog_STRIP
3949 if test -n "$STRIP"; then
3950 echo "$as_me:$LINENO: result: $STRIP" >&5
3951 echo "${ECHO_T}$STRIP" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_STRIP"; then
3960 # Extract the first word of "strip", so it can be a program name with args.
3961 set dummy strip; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_STRIP="strip"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988 if test -n "$ac_ct_STRIP"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3990 echo "${ECHO_T}$ac_ct_STRIP" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3998 STRIP="$ac_cv_prog_STRIP"
4002 # Check for any special flags to pass to ltconfig.
4003 libtool_flags="--cache-file=$cache_file"
4004 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4005 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4006 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4007 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4008 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4011 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4012 if test "${enable_libtool_lock+set}" = set; then
4013 enableval="$enable_libtool_lock"
4016 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4017 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4020 # Check whether --with-pic or --without-pic was given.
4021 if test "${with_pic+set}" = set; then
4027 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4028 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4030 # Some flags need to be propagated to the compiler or linker for good
4034 # Find out which ABI we are using.
4035 echo '#line 4035 "configure"' > conftest.$ac_ext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; then
4041 if test "$lt_cv_prog_gnu_ld" = yes; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4044 LD="${LD-ld} -melf32bsmip"
4047 LD="${LD-ld} -melf32bmipn32"
4050 LD="${LD-ld} -melf64bmip"
4054 case `/usr/bin/file conftest.$ac_objext` in
4071 # Find out which ABI we are using.
4072 echo 'int i;' > conftest.$ac_ext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; then
4078 case "`/usr/bin/file conftest.o`" in
4090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4102 LD="${LD-ld} -m elf_i386"
4104 ppc64-*linux*|powerpc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4108 LD="${LD-ld} -m elf_s390"
4111 LD="${LD-ld} -m elf32_sparc"
4118 LD="${LD-ld} -m elf_x86_64"
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4124 LD="${LD-ld} -m elf64_s390"
4127 LD="${LD-ld} -m elf64_sparc"
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142 if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4168 rm -f conftest.$ac_objext conftest$ac_exeext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 lt_cv_cc_needs_belf=yes
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 lt_cv_cc_needs_belf=no
4197 rm -f conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4207 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210 CFLAGS="$SAVE_CFLAGS"
4218 # Save cache, so that ltconfig can load it
4219 cat >confcache <<\_ACEOF
4220 # This file is a shell script that caches the results of configure
4221 # tests run on this system so they can be shared between configure
4222 # scripts and configure runs, see configure's option --config-cache.
4223 # It is not useful on other systems. If it contains results you don't
4224 # want to keep, you may remove or edit it.
4226 # config.status only pays attention to the cache file if you give it
4227 # the --recheck option to rerun configure.
4229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4235 # The following way of writing the cache mishandles newlines in values,
4236 # but we know of no workaround that is simple, portable, and efficient.
4237 # So, don't put newlines in cache variables' values.
4238 # Ultrix sh set writes to stderr and can't be redirected directly,
4239 # and sets the high bit in the cache file unless we assign to the vars.
4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4244 # `set' does not quote correctly, so add quotes (double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \).
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4265 if test -w $cache_file; then
4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4267 cat confcache >$cache_file
4269 echo "not updating unwritable cache $cache_file"
4274 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4275 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4276 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4277 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4278 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4279 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4280 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4281 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4282 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4283 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4284 echo "$as_me: error: libtool configure failed" >&2;}
4285 { (exit 1); exit 1; }; }
4287 # Reload cache, that may have been modified by ltconfig
4288 if test -r "$cache_file"; then
4289 # Some versions of bash will fail to source /dev/null (special
4290 # files actually), so we avoid doing that.
4291 if test -f "$cache_file"; then
4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4293 echo "$as_me: loading cache $cache_file" >&6;}
4295 [\\/]* | ?:[\\/]* ) . $cache_file;;
4296 *) . ./$cache_file;;
4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4301 echo "$as_me: creating cache $cache_file" >&6;}
4306 # This can be used to rebuild libtool when needed
4307 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4309 # Always use our own libtool.
4310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4312 # Redirect the config.log output again, so that the ltconfig log is not
4313 # clobbered by the next message.
4314 exec 5>>./config.log
4322 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4323 if test "${enable_64_bit_bfd+set}" = set; then
4324 enableval="$enable_64_bit_bfd"
4325 case "${enableval}" in
4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4329 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4330 { (exit 1); exit 1; }; } ;;
4334 fi; # Check whether --enable-targets or --disable-targets was given.
4335 if test "${enable_targets+set}" = set; then
4336 enableval="$enable_targets"
4337 case "${enableval}" in
4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4339 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4340 { (exit 1); exit 1; }; }
4342 no) enable_targets= ;;
4343 *) enable_targets=$enableval ;;
4345 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4346 if test "${enable_commonbfdlib+set}" = set; then
4347 enableval="$enable_commonbfdlib"
4348 case "${enableval}" in
4349 yes) commonbfdlib=true ;;
4350 no) commonbfdlib=false ;;
4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4352 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4353 { (exit 1); exit 1; }; } ;;
4356 # Check whether --with-mmap or --without-mmap was given.
4357 if test "${with_mmap+set}" = set; then
4358 withval="$with_mmap"
4359 case "${withval}" in
4360 yes) want_mmap=true ;;
4361 no) want_mmap=false ;;
4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4363 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4364 { (exit 1); exit 1; }; } ;;
4369 # Check whether --enable-secureplt or --disable-secureplt was given.
4370 if test "${enable_secureplt+set}" = set; then
4371 enableval="$enable_secureplt"
4372 case "${enableval}" in
4373 yes) use_secureplt=true ;;
4374 no) use_secureplt=false ;;
4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4376 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4381 fi; if test $use_secureplt = true; then
4383 cat >>confdefs.h <<\_ACEOF
4384 #define USE_SECUREPLT 1
4390 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4392 # Check whether --enable-werror or --disable-werror was given.
4393 if test "${enable_werror+set}" = set; then
4394 enableval="$enable_werror"
4395 case "${enableval}" in
4396 yes | y) ERROR_ON_WARNING="yes" ;;
4397 no | n) ERROR_ON_WARNING="no" ;;
4398 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4399 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4400 { (exit 1); exit 1; }; } ;;
4404 # Enable -Werror by default when using gcc
4405 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4406 ERROR_ON_WARNING=yes
4410 if test "${ERROR_ON_WARNING}" = yes ; then
4411 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4412 NO_WERROR="-Wno-error"
4415 if test "${GCC}" = yes ; then
4416 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4419 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4420 if test "${enable_build_warnings+set}" = set; then
4421 enableval="$enable_build_warnings"
4422 case "${enableval}" in
4423 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4424 no) if test "${GCC}" = yes ; then
4427 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4428 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4429 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4430 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4435 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4436 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4443 ac_config_headers="$ac_config_headers config.h:config.in"
4446 if test -z "$target" ; then
4447 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4448 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4449 { (exit 1); exit 1; }; }
4452 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4453 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4454 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4455 if test "${enable_maintainer_mode+set}" = set; then
4456 enableval="$enable_maintainer_mode"
4457 USE_MAINTAINER_MODE=$enableval
4459 USE_MAINTAINER_MODE=no
4461 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4462 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4465 if test $USE_MAINTAINER_MODE = yes; then
4466 MAINTAINER_MODE_TRUE=
4467 MAINTAINER_MODE_FALSE='#'
4469 MAINTAINER_MODE_TRUE='#'
4470 MAINTAINER_MODE_FALSE=
4473 MAINT=$MAINTAINER_MODE_TRUE
4476 case ${build_alias} in
4477 "") build_noncanonical=${build} ;;
4478 *) build_noncanonical=${build_alias} ;;
4481 case ${host_alias} in
4482 "") host_noncanonical=${build_noncanonical} ;;
4483 *) host_noncanonical=${host_alias} ;;
4486 case ${target_alias} in
4487 "") target_noncanonical=${host_noncanonical} ;;
4488 *) target_noncanonical=${target_alias} ;;
4491 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4492 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4493 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4494 if test "${enable_install_libbfd+set}" = set; then
4495 enableval="$enable_install_libbfd"
4496 install_libbfd_p=$enableval
4498 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4499 install_libbfd_p=yes
4504 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4505 echo "${ECHO_T}$install_libbfd_p" >&6
4508 if test $install_libbfd_p = yes; then
4509 INSTALL_LIBBFD_TRUE=
4510 INSTALL_LIBBFD_FALSE='#'
4512 INSTALL_LIBBFD_TRUE='#'
4513 INSTALL_LIBBFD_FALSE=
4516 # Need _noncanonical variables for this.
4521 # libbfd.a is a host library containing target dependent code
4522 bfdlibdir='$(libdir)'
4523 bfdincludedir='$(includedir)'
4524 if test "${host}" != "${target}"; then
4525 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4526 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4536 bfd_default_target_size=32
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 if test -n "$CC"; then
4574 echo "$as_me:$LINENO: result: $CC" >&5
4575 echo "${ECHO_T}$CC" >&6
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4582 if test -z "$ac_cv_prog_CC"; then
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585 set dummy gcc; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4613 echo "${ECHO_T}$ac_ct_CC" >&6
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}cc; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 if test -n "$CC"; then
4654 echo "$as_me:$LINENO: result: $CC" >&5
4655 echo "${ECHO_T}$CC" >&6
4657 echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4662 if test -z "$ac_cv_prog_CC"; then
4664 # Extract the first word of "cc", so it can be a program name with args.
4665 set dummy cc; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691 if test -n "$ac_ct_CC"; then
4692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4693 echo "${ECHO_T}$ac_ct_CC" >&6
4695 echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4705 if test -z "$CC"; then
4706 # Extract the first word of "cc", so it can be a program name with args.
4707 set dummy cc; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725 ac_prog_rejected=yes
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 if test $ac_prog_rejected = yes; then
4736 # We found a bogon in the path, so make sure we never use it.
4737 set dummy $ac_cv_prog_CC
4739 if test $# != 0; then
4740 # We chose a different compiler from the bogus one.
4741 # However, it has the same basename, so the bogon will be chosen
4742 # first if we set CC to just the basename; use the full file name.
4744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4750 if test -n "$CC"; then
4751 echo "$as_me:$LINENO: result: $CC" >&5
4752 echo "${ECHO_T}$CC" >&6
4754 echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4759 if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4765 echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767 if test "${ac_cv_prog_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 if test -n "$CC"; then
4791 echo "$as_me:$LINENO: result: $CC" >&5
4792 echo "${ECHO_T}$CC" >&6
4794 echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4798 test -n "$CC" && break
4801 if test -z "$CC"; then
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806 set dummy $ac_prog; ac_word=$2
4807 echo "$as_me:$LINENO: checking for $ac_word" >&5
4808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 if test -n "$ac_ct_CC"; then
4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_ac_ct_CC="$ac_prog"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832 if test -n "$ac_ct_CC"; then
4833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4834 echo "${ECHO_T}$ac_ct_CC" >&6
4836 echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6
4840 test -n "$ac_ct_CC" && break
4849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4850 See \`config.log' for more details." >&5
4851 echo "$as_me: error: no acceptable C compiler found in \$PATH
4852 See \`config.log' for more details." >&2;}
4853 { (exit 1); exit 1; }; }
4855 # Provide some information about the compiler.
4856 echo "$as_me:$LINENO:" \
4857 "checking for C compiler version" >&5
4858 ac_compiler=`set X $ac_compile; echo $2`
4859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4860 (eval $ac_compiler --version </dev/null >&5) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }
4864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4865 (eval $ac_compiler -v </dev/null >&5) 2>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }
4869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4870 (eval $ac_compiler -V </dev/null >&5) 2>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }
4875 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4931 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4933 GCC=`test $ac_compiler_gnu = yes && echo yes`
4934 ac_test_CFLAGS=${CFLAGS+set}
4935 ac_save_CFLAGS=$CFLAGS
4937 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4939 if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4961 grep -v '^ *+' conftest.er1 >conftest.err
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4990 if test "$ac_test_CFLAGS" = set; then
4991 CFLAGS=$ac_save_CFLAGS
4992 elif test $ac_cv_prog_cc_g = yes; then
4993 if test "$GCC" = yes; then
4999 if test "$GCC" = yes; then
5005 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5006 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5007 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_prog_cc_stdc=no
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5020 #include <sys/types.h>
5021 #include <sys/stat.h>
5022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5023 struct buf { int x; };
5024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5025 static char *e (p, i)
5031 static char *f (char * (*g) (char **, int), char **p, ...)
5036 s = g (p, va_arg (v,int));
5041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5042 function prototypes and stuff, but not '\xHH' hex character constants.
5043 These don't provoke an error unfortunately, instead are silently treated
5044 as 'x'. The following induces an error, until -std1 is added to get
5045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5046 array size at least. It's necessary to write '\x00'==0 to get something
5047 that's true only with -std1. */
5048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5050 int test (int i, double x);
5051 struct s1 {int (*f) (int a);};
5052 struct s2 {int (*f) (double a);};
5053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5064 # Don't try gcc -ansi; that turns off useful extensions and
5065 # breaks some systems' header files.
5066 # AIX -qlanglvl=ansi
5067 # Ultrix and OSF/1 -std1
5068 # HP-UX 10.20 and later -Ae
5069 # HP-UX older versions -Aa -D_HPUX_SOURCE
5070 # SVR4 -Xc -D__EXTENSIONS__
5071 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5073 CC="$ac_save_CC $ac_arg"
5074 rm -f conftest.$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_prog_cc_stdc=$ac_arg
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f conftest.err conftest.$ac_objext
5105 rm -f conftest.$ac_ext conftest.$ac_objext
5110 case "x$ac_cv_prog_cc_stdc" in
5112 echo "$as_me:$LINENO: result: none needed" >&5
5113 echo "${ECHO_T}none needed" >&6 ;;
5115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5116 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5117 CC="$CC $ac_cv_prog_cc_stdc" ;;
5120 # Some people use a C++ compiler to compile C. Since we use `exit',
5121 # in C++ we need to declare it. In case someone uses the same compiler
5122 # for both compiling C and C++ we need to have the C++ compiler decide
5123 # the declaration of exit, since it's the most demanding environment.
5124 cat >conftest.$ac_ext <<_ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5133 grep -v '^ *+' conftest.er1 >conftest.err
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 for ac_declaration in \
5153 'extern "C" void std::exit (int) throw (); using std::exit;' \
5154 'extern "C" void std::exit (int); using std::exit;' \
5155 'extern "C" void exit (int) throw ();' \
5156 'extern "C" void exit (int);' \
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5175 rm -f conftest.$ac_objext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>conftest.er1
5179 grep -v '^ *+' conftest.er1 >conftest.err
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -z "$ac_c_werror_flag"
5185 || test ! -s conftest.err'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251 if test -n "$ac_declaration"; then
5252 echo '#ifdef __cplusplus' >>confdefs.h
5253 echo $ac_declaration >>confdefs.h
5254 echo '#endif' >>confdefs.h
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270 cat >>confdefs.h <<\_ACEOF
5271 #define _GNU_SOURCE 1
5276 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_RANLIB+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if test -n "$RANLIB"; then
5286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 RANLIB=$ac_cv_prog_RANLIB
5305 if test -n "$RANLIB"; then
5306 echo "$as_me:$LINENO: result: $RANLIB" >&5
5307 echo "${ECHO_T}$RANLIB" >&6
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_RANLIB"; then
5315 ac_ct_RANLIB=$RANLIB
5316 # Extract the first word of "ranlib", so it can be a program name with args.
5317 set dummy ranlib; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test -n "$ac_ct_RANLIB"; then
5324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_RANLIB="ranlib"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5344 if test -n "$ac_ct_RANLIB"; then
5345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5352 RANLIB=$ac_ct_RANLIB
5354 RANLIB="$ac_cv_prog_RANLIB"
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5364 # On Suns, sometimes $CPP names a directory.
5365 if test -n "$CPP" && test -d "$CPP"; then
5368 if test -z "$CPP"; then
5369 if test "${ac_cv_prog_CPP+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 # Double quotes because CPP needs to be expanded
5373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5376 for ac_c_preproc_warn_flag in '' yes
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat >conftest.$ac_ext <<_ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5391 # include <limits.h>
5393 # include <assert.h>
5397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5414 if test -z "$ac_cpp_err"; then
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 # Broken: fails on valid input.
5423 rm -f conftest.err conftest.$ac_ext
5425 # OK, works on sane cases. Now check whether non-existent headers
5426 # can be detected and how.
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <ac_nonexistent.h>
5435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452 if test -z "$ac_cpp_err"; then
5453 # Broken: success on invalid input.
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 # Passes both tests.
5463 rm -f conftest.err conftest.$ac_ext
5466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.err conftest.$ac_ext
5468 if $ac_preproc_ok; then
5480 echo "$as_me:$LINENO: result: $CPP" >&5
5481 echo "${ECHO_T}$CPP" >&6
5483 for ac_c_preproc_warn_flag in '' yes
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 # include <limits.h>
5500 # include <assert.h>
5504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } >/dev/null; then
5512 if test -s conftest.err; then
5513 ac_cpp_err=$ac_c_preproc_warn_flag
5514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5521 if test -z "$ac_cpp_err"; then
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 # Broken: fails on valid input.
5530 rm -f conftest.err conftest.$ac_ext
5532 # OK, works on sane cases. Now check whether non-existent headers
5533 # can be detected and how.
5534 cat >conftest.$ac_ext <<_ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 if test -z "$ac_cpp_err"; then
5560 # Broken: success on invalid input.
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 # Passes both tests.
5570 rm -f conftest.err conftest.$ac_ext
5573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574 rm -f conftest.err conftest.$ac_ext
5575 if $ac_preproc_ok; then
5578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5579 See \`config.log' for more details." >&5
5580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5581 See \`config.log' for more details." >&2;}
5582 { (exit 1); exit 1; }; }
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 echo "$as_me:$LINENO: checking for egrep" >&5
5593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5594 if test "${ac_cv_prog_egrep+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5598 then ac_cv_prog_egrep='grep -E'
5599 else ac_cv_prog_egrep='egrep'
5602 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5603 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5604 EGREP=$ac_cv_prog_egrep
5607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_header_stdc=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_cv_header_stdc=no
5660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662 if test $ac_cv_header_stdc = yes; then
5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "memchr" >/dev/null 2>&1; then
5677 ac_cv_header_stdc=no
5683 if test $ac_cv_header_stdc = yes; then
5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "free" >/dev/null 2>&1; then
5698 ac_cv_header_stdc=no
5704 if test $ac_cv_header_stdc = yes; then
5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5706 if test "$cross_compiling" = yes; then
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5716 #if ((' ' & 0x0FF) == 0x020)
5717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5720 # define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5739 rm -f conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5752 echo "$as_me: program exited with status $ac_status" >&5
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_header_stdc=no
5759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5765 if test $ac_cv_header_stdc = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define STDC_HEADERS 1
5773 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5774 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5775 if test "${ac_cv_c_const+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5788 /* FIXME: Include the comments suggested by Paul. */
5790 /* Ultrix mips cc rejects this. */
5791 typedef int charset[2];
5793 /* SunOS 4.1.1 cc rejects this. */
5794 char const *const *ccp;
5796 /* NEC SVR4.0.2 mips cc rejects this. */
5797 struct point {int x, y;};
5798 static struct point const zero = {0,0};
5799 /* AIX XL C 1.02.0.0 rejects this.
5800 It does not let you subtract one const X* pointer from another in
5801 an arm of an if-expression whose if-part is not a constant
5803 const char *g = "string";
5804 ccp = &g + (g ? g-g : 0);
5805 /* HPUX 7.0 cc rejects these. */
5808 ccp = (char const *const *) p;
5809 { /* SCO 3.2v4 cc rejects this. */
5811 char const *s = 0 ? (char *) 0 : (char const *) 0;
5815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5817 const int *foo = &x[0];
5820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5821 typedef const int *iptr;
5825 { /* AIX XL C 1.02.0.0 rejects this saying
5826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5827 struct s { int j; const int *ap[3]; };
5828 struct s *b; b->j = 5;
5830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_c_werror_flag"
5849 || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5871 echo "${ECHO_T}$ac_cv_c_const" >&6
5872 if test $ac_cv_c_const = no; then
5874 cat >>confdefs.h <<\_ACEOF
5880 echo "$as_me:$LINENO: checking for inline" >&5
5881 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5882 if test "${ac_cv_c_inline+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 for ac_kw in inline __inline__ __inline; do
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5895 static $ac_kw foo_t static_foo () {return 0; }
5896 $ac_kw foo_t foo () {return 0; }
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_c_inline=$ac_kw; break
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5933 echo "${ECHO_T}$ac_cv_c_inline" >&6
5936 case $ac_cv_c_inline in
5939 case $ac_cv_c_inline in
5941 *) ac_val=$ac_cv_c_inline;;
5943 cat >>confdefs.h <<_ACEOF
5945 #define inline $ac_val
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962 inttypes.h stdint.h unistd.h
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 #include <$ac_header>
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_Header=yes"
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 eval "$as_ac_Header=no"
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023 echo "$as_me:$LINENO: checking for off_t" >&5
6024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6025 if test "${ac_cv_type_off_t+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_off_t=yes
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6078 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6079 if test $ac_cv_type_off_t = yes; then
6083 cat >>confdefs.h <<_ACEOF
6089 echo "$as_me:$LINENO: checking for size_t" >&5
6090 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6091 if test "${ac_cv_type_size_t+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6106 if (sizeof (size_t))
6112 rm -f conftest.$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6116 grep -v '^ *+' conftest.er1 >conftest.err
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_type_size_t=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_cv_type_size_t=no
6141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6144 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6145 if test $ac_cv_type_size_t = yes; then
6149 cat >>confdefs.h <<_ACEOF
6150 #define size_t unsigned
6155 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6156 # for constant arguments. Useless!
6157 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6158 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6159 if test "${ac_cv_working_alloca_h+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6172 char *p = (char *) alloca (2 * sizeof (int));
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_working_alloca_h=yes
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_cv_working_alloca_h=no
6206 rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6210 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6211 if test $ac_cv_working_alloca_h = yes; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_ALLOCA_H 1
6219 echo "$as_me:$LINENO: checking for alloca" >&5
6220 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6221 if test "${ac_cv_func_alloca_works+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6231 # define alloca __builtin_alloca
6234 # include <malloc.h>
6235 # define alloca _alloca
6238 # include <alloca.h>
6243 # ifndef alloca /* predefined by HP cc +Olibcalls */
6254 char *p = (char *) alloca (1);
6259 rm -f conftest.$ac_objext conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>conftest.er1
6263 grep -v '^ *+' conftest.er1 >conftest.err
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_func_alloca_works=yes
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_cv_func_alloca_works=no
6288 rm -f conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6292 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6294 if test $ac_cv_func_alloca_works = yes; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define HAVE_ALLOCA 1
6301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6302 # that cause trouble. Some versions do not even contain alloca or
6303 # contain a buggy version. If you still want to use their alloca,
6304 # use ar to extract alloca.o from them instead of compiling alloca.c.
6306 ALLOCA=alloca.$ac_objext
6308 cat >>confdefs.h <<\_ACEOF
6313 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6314 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6315 if test "${ac_cv_os_cray+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #if defined(CRAY) && ! defined(CRAY2)
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "webecray" >/dev/null 2>&1; then
6340 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6341 echo "${ECHO_T}$ac_cv_os_cray" >&6
6342 if test $ac_cv_os_cray = yes; then
6343 for ac_func in _getb67 GETB67 getb67; do
6344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6345 echo "$as_me:$LINENO: checking for $ac_func" >&5
6346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6347 if eval "test \"\${$as_ac_var+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 cat >conftest.$ac_ext <<_ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6358 #define $ac_func innocuous_$ac_func
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func (); below.
6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6363 <limits.h> exists even on freestanding compilers. */
6366 # include <limits.h>
6368 # include <assert.h>
6373 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6381 /* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6387 char (*f) () = $ac_func;
6396 return f != $ac_func;
6401 rm -f conftest.$ac_objext conftest$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_var=yes"
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 eval "$as_ac_var=no"
6430 rm -f conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6435 if test `eval echo '${'$as_ac_var'}'` = yes; then
6437 cat >>confdefs.h <<_ACEOF
6438 #define CRAY_STACKSEG_END $ac_func
6447 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6448 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6449 if test "${ac_cv_c_stack_direction+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test "$cross_compiling" = yes; then
6453 ac_cv_c_stack_direction=0
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 find_stack_direction ()
6464 static char *addr = 0;
6469 return find_stack_direction ();
6472 return (&dummy > addr) ? 1 : -1;
6478 exit (find_stack_direction () < 0);
6481 rm -f conftest$ac_exeext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_c_stack_direction=1
6494 echo "$as_me: program exited with status $ac_status" >&5
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_cv_c_stack_direction=-1
6501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6505 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6507 cat >>confdefs.h <<_ACEOF
6508 #define STACK_DIRECTION $ac_cv_c_stack_direction
6516 for ac_header in stdlib.h unistd.h
6518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6528 # Is the header compilable?
6529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 #include <$ac_header>
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_header_compiler=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_header_compiler=no
6569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571 echo "${ECHO_T}$ac_header_compiler" >&6
6573 # Is the header present?
6574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <$ac_header>
6584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null; then
6592 if test -s conftest.err; then
6593 ac_cpp_err=$ac_c_preproc_warn_flag
6594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6601 if test -z "$ac_cpp_err"; then
6602 ac_header_preproc=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_header_preproc=no
6609 rm -f conftest.err conftest.$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611 echo "${ECHO_T}$ac_header_preproc" >&6
6613 # So? What about this header?
6614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc=yes
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6637 ## ------------------------------------------ ##
6638 ## Report this to the AC_PACKAGE_NAME lists. ##
6639 ## ------------------------------------------ ##
6642 sed "s/^/$as_me: WARNING: /" >&2
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 eval "$as_ac_Header=\$ac_header_preproc"
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666 for ac_func in getpagesize
6668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 cat >conftest.$ac_ext <<_ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6682 #define $ac_func innocuous_$ac_func
6684 /* System header to define __stub macros and hopefully few prototypes,
6685 which can conflict with char $ac_func (); below.
6686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6687 <limits.h> exists even on freestanding compilers. */
6690 # include <limits.h>
6692 # include <assert.h>
6697 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 char (*f) () = $ac_func;
6720 return f != $ac_func;
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 eval "$as_ac_var=yes"
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 eval "$as_ac_var=no"
6754 rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6759 if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h <<_ACEOF
6761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6767 echo "$as_me:$LINENO: checking for working mmap" >&5
6768 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6769 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 if test "$cross_compiling" = yes; then
6773 ac_cv_func_mmap_fixed_mapped=no
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 $ac_includes_default
6782 /* malloc might have been renamed as rpl_malloc. */
6785 /* Thanks to Mike Haertel and Jim Avera for this test.
6786 Here is a matrix of mmap possibilities:
6787 mmap private not fixed
6788 mmap private fixed at somewhere currently unmapped
6789 mmap private fixed at somewhere already mapped
6790 mmap shared not fixed
6791 mmap shared fixed at somewhere currently unmapped
6792 mmap shared fixed at somewhere already mapped
6793 For private mappings, we should verify that changes cannot be read()
6794 back from the file, nor mmap's back from the file at a different
6795 address. (There have been systems where private was not correctly
6796 implemented like the infamous i386 svr4.0, and systems where the
6797 VM page cache was not coherent with the file system buffer cache
6798 like early versions of FreeBSD and possibly contemporary NetBSD.)
6799 For shared mappings, we should conversely verify that changes get
6800 propagated back to all the places they're supposed to be.
6802 Grep wants private fixed already mapped.
6803 The main things grep needs to know about mmap are:
6804 * does it exist and is it safe to write into the mmap'd area
6805 * how to use it (BSD variants) */
6808 #include <sys/mman.h>
6810 #if !STDC_HEADERS && !HAVE_STDLIB_H
6814 /* This mess was copied from the GNU getpagesize.h. */
6815 #if !HAVE_GETPAGESIZE
6816 /* Assume that all systems that can run configure have sys/param.h. */
6817 # if !HAVE_SYS_PARAM_H
6818 # define HAVE_SYS_PARAM_H 1
6821 # ifdef _SC_PAGESIZE
6822 # define getpagesize() sysconf(_SC_PAGESIZE)
6823 # else /* no _SC_PAGESIZE */
6824 # if HAVE_SYS_PARAM_H
6825 # include <sys/param.h>
6826 # ifdef EXEC_PAGESIZE
6827 # define getpagesize() EXEC_PAGESIZE
6828 # else /* no EXEC_PAGESIZE */
6830 # define getpagesize() NBPG * CLSIZE
6833 # endif /* no CLSIZE */
6834 # else /* no NBPG */
6836 # define getpagesize() NBPC
6837 # else /* no NBPC */
6839 # define getpagesize() PAGESIZE
6840 # endif /* PAGESIZE */
6841 # endif /* no NBPC */
6842 # endif /* no NBPG */
6843 # endif /* no EXEC_PAGESIZE */
6844 # else /* no HAVE_SYS_PARAM_H */
6845 # define getpagesize() 8192 /* punt totally */
6846 # endif /* no HAVE_SYS_PARAM_H */
6847 # endif /* no _SC_PAGESIZE */
6849 #endif /* no HAVE_GETPAGESIZE */
6854 char *data, *data2, *data3;
6858 pagesize = getpagesize ();
6860 /* First, make a file with some known garbage in it. */
6861 data = (char *) malloc (pagesize);
6864 for (i = 0; i < pagesize; ++i)
6865 *(data + i) = rand ();
6867 fd = creat ("conftest.mmap", 0600);
6870 if (write (fd, data, pagesize) != pagesize)
6874 /* Next, try to mmap the file at a fixed address which already has
6875 something else allocated at it. If we can, also make sure that
6876 we see the same garbage. */
6877 fd = open ("conftest.mmap", O_RDWR);
6880 data2 = (char *) malloc (2 * pagesize);
6883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6887 for (i = 0; i < pagesize; ++i)
6888 if (*(data + i) != *(data2 + i))
6891 /* Finally, make sure that changes to the mapped area do not
6892 percolate back to the file as seen by read(). (This is a bug on
6893 some variants of i386 svr4.0.) */
6894 for (i = 0; i < pagesize; ++i)
6895 *(data2 + i) = *(data2 + i) + 1;
6896 data3 = (char *) malloc (pagesize);
6899 if (read (fd, data3, pagesize) != pagesize)
6901 for (i = 0; i < pagesize; ++i)
6902 if (*(data + i) != *(data3 + i))
6908 rm -f conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_mmap_fixed_mapped=yes
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_func_mmap_fixed_mapped=no
6928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6932 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6933 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6935 cat >>confdefs.h <<\_ACEOF
6952 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6953 unistd.h values.h sys/param.h
6955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6957 echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6965 # Is the header compilable?
6966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 #include <$ac_header>
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1 >conftest.err
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_header_compiler=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_header_compiler=no
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7008 echo "${ECHO_T}$ac_header_compiler" >&6
7010 # Is the header present?
7011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include <$ac_header>
7021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null; then
7029 if test -s conftest.err; then
7030 ac_cpp_err=$ac_c_preproc_warn_flag
7031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7038 if test -z "$ac_cpp_err"; then
7039 ac_header_preproc=yes
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_header_preproc=no
7046 rm -f conftest.err conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7048 echo "${ECHO_T}$ac_header_preproc" >&6
7050 # So? What about this header?
7051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7057 ac_header_preproc=yes
7060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7074 ## ------------------------------------------ ##
7075 ## Report this to the AC_PACKAGE_NAME lists. ##
7076 ## ------------------------------------------ ##
7079 sed "s/^/$as_me: WARNING: /" >&2
7082 echo "$as_me:$LINENO: checking for $ac_header" >&5
7083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 eval "$as_ac_Header=\$ac_header_preproc"
7089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7094 cat >>confdefs.h <<_ACEOF
7095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7113 __argz_count __argz_stringify __argz_next
7115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7116 echo "$as_me:$LINENO: checking for $ac_func" >&5
7117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_var+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 cat >conftest.$ac_ext <<_ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7129 #define $ac_func innocuous_$ac_func
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func (); below.
7133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7134 <limits.h> exists even on freestanding compilers. */
7137 # include <limits.h>
7139 # include <assert.h>
7144 /* Override any gcc2 internal prototype to avoid an error. */
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7158 char (*f) () = $ac_func;
7167 return f != $ac_func;
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 eval "$as_ac_var=no"
7201 rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7206 if test `eval echo '${'$as_ac_var'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7217 for ac_func in stpcpy
7219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220 echo "$as_me:$LINENO: checking for $ac_func" >&5
7221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_var+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7233 #define $ac_func innocuous_$ac_func
7235 /* System header to define __stub macros and hopefully few prototypes,
7236 which can conflict with char $ac_func (); below.
7237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7238 <limits.h> exists even on freestanding compilers. */
7241 # include <limits.h>
7243 # include <assert.h>
7248 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7256 /* The GNU C library defines this for functions which it implements
7257 to always fail with ENOSYS. Some functions are actually named
7258 something starting with __ and the normal name is an alias. */
7259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 char (*f) () = $ac_func;
7271 return f != $ac_func;
7276 rm -f conftest.$ac_objext conftest$ac_exeext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>conftest.er1
7280 grep -v '^ *+' conftest.er1 >conftest.err
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 eval "$as_ac_var=yes"
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 eval "$as_ac_var=no"
7305 rm -f conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7310 if test `eval echo '${'$as_ac_var'}'` = yes; then
7311 cat >>confdefs.h <<_ACEOF
7312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7319 if test "${ac_cv_func_stpcpy}" = "yes"; then
7321 cat >>confdefs.h <<\_ACEOF
7322 #define HAVE_STPCPY 1
7327 if test $ac_cv_header_locale_h = yes; then
7328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7329 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7330 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 cat >conftest.$ac_ext <<_ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -z "$ac_c_werror_flag"
7358 || test ! -s conftest.err'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; } &&
7364 { ac_try='test -s conftest$ac_exeext'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 am_cv_val_LC_MESSAGES=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 am_cv_val_LC_MESSAGES=no
7377 rm -f conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7380 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7381 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7382 if test $am_cv_val_LC_MESSAGES = yes; then
7384 cat >>confdefs.h <<\_ACEOF
7385 #define HAVE_LC_MESSAGES 1
7390 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7391 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7392 # Check whether --enable-nls or --disable-nls was given.
7393 if test "${enable_nls+set}" = set; then
7394 enableval="$enable_nls"
7399 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7400 echo "${ECHO_T}$USE_NLS" >&6
7403 USE_INCLUDED_LIBINTL=no
7405 if test "$USE_NLS" = "yes"; then
7406 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7407 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7409 # Check whether --with-included-gettext or --without-included-gettext was given.
7410 if test "${with_included_gettext+set}" = set; then
7411 withval="$with_included_gettext"
7412 nls_cv_force_use_gnu_gettext=$withval
7414 nls_cv_force_use_gnu_gettext=no
7416 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7417 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7419 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7420 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7422 nls_cv_header_libgt=
7425 if test "${ac_cv_header_libintl_h+set}" = set; then
7426 echo "$as_me:$LINENO: checking for libintl.h" >&5
7427 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7428 if test "${ac_cv_header_libintl_h+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7432 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7434 # Is the header compilable?
7435 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7436 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #include <libintl.h>
7446 rm -f conftest.$ac_objext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>conftest.er1
7450 grep -v '^ *+' conftest.er1 >conftest.err
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_header_compiler=yes
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 ac_header_compiler=no
7475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7477 echo "${ECHO_T}$ac_header_compiler" >&6
7479 # Is the header present?
7480 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7481 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7482 cat >conftest.$ac_ext <<_ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 #include <libintl.h>
7490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } >/dev/null; then
7498 if test -s conftest.err; then
7499 ac_cpp_err=$ac_c_preproc_warn_flag
7500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7507 if test -z "$ac_cpp_err"; then
7508 ac_header_preproc=yes
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_header_preproc=no
7515 rm -f conftest.err conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7517 echo "${ECHO_T}$ac_header_preproc" >&6
7519 # So? What about this header?
7520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7522 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7523 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7525 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7526 ac_header_preproc=yes
7529 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7530 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7532 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7534 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7536 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7538 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7540 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7543 ## ------------------------------------------ ##
7544 ## Report this to the AC_PACKAGE_NAME lists. ##
7545 ## ------------------------------------------ ##
7548 sed "s/^/$as_me: WARNING: /" >&2
7551 echo "$as_me:$LINENO: checking for libintl.h" >&5
7552 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7553 if test "${ac_cv_header_libintl_h+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_cv_header_libintl_h=$ac_header_preproc
7558 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7559 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7562 if test $ac_cv_header_libintl_h = yes; then
7563 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7564 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7565 if test "${gt_cv_func_gettext_libc+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 cat >conftest.$ac_ext <<_ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <libintl.h>
7578 return (int) gettext ("")
7583 rm -f conftest.$ac_objext conftest$ac_exeext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585 (eval $ac_link) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 gt_cv_func_gettext_libc=yes
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 gt_cv_func_gettext_libc=no
7612 rm -f conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
7615 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7616 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7618 if test "$gt_cv_func_gettext_libc" != "yes"; then
7619 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7620 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7621 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 ac_check_lib_save_LIBS=$LIBS
7626 cat >conftest.$ac_ext <<_ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7633 /* Override any gcc2 internal prototype to avoid an error. */
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7639 char bindtextdomain ();
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_lib_intl_bindtextdomain=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_lib_intl_bindtextdomain=no
7677 rm -f conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_check_lib_save_LIBS
7681 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7682 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7683 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7684 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7685 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7686 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7699 return (int) gettext ("")
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7708 grep -v '^ *+' conftest.er1 >conftest.err
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 gt_cv_func_gettext_libintl=yes
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 gt_cv_func_gettext_libintl=no
7733 rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7736 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7737 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7742 if test "$gt_cv_func_gettext_libc" = "yes" \
7743 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_GETTEXT 1
7749 # Extract the first word of "msgfmt", so it can be a program name with args.
7750 set dummy msgfmt; ac_word=$2
7751 echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753 if test "${ac_cv_path_MSGFMT+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7762 for ac_dir in $PATH; do
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/$ac_word; then
7765 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7766 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7772 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7776 MSGFMT="$ac_cv_path_MSGFMT"
7777 if test -n "$MSGFMT"; then
7778 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7779 echo "${ECHO_T}$MSGFMT" >&6
7781 echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6
7784 if test "$MSGFMT" != "no"; then
7786 for ac_func in dcgettext
7788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7789 echo "$as_me:$LINENO: checking for $ac_func" >&5
7790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7791 if eval "test \"\${$as_ac_var+set}\" = set"; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7802 #define $ac_func innocuous_$ac_func
7804 /* System header to define __stub macros and hopefully few prototypes,
7805 which can conflict with char $ac_func (); below.
7806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7807 <limits.h> exists even on freestanding compilers. */
7810 # include <limits.h>
7812 # include <assert.h>
7817 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7825 /* The GNU C library defines this for functions which it implements
7826 to always fail with ENOSYS. Some functions are actually named
7827 something starting with __ and the normal name is an alias. */
7828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7831 char (*f) () = $ac_func;
7840 return f != $ac_func;
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 eval "$as_ac_var=yes"
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 eval "$as_ac_var=no"
7874 rm -f conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7879 if test `eval echo '${'$as_ac_var'}'` = yes; then
7880 cat >>confdefs.h <<_ACEOF
7881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7888 set dummy gmsgfmt; ac_word=$2
7889 echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7917 GMSGFMT=$ac_cv_path_GMSGFMT
7919 if test -n "$GMSGFMT"; then
7920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7921 echo "${ECHO_T}$GMSGFMT" >&6
7923 echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7927 # Extract the first word of "xgettext", so it can be a program name with args.
7928 set dummy xgettext; ac_word=$2
7929 echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7931 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7940 for ac_dir in $PATH; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/$ac_word; then
7943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7954 XGETTEXT="$ac_cv_path_XGETTEXT"
7955 if test -n "$XGETTEXT"; then
7956 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7957 echo "${ECHO_T}$XGETTEXT" >&6
7959 echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7973 extern int _nl_msg_cat_cntr;
7974 return _nl_msg_cat_cntr
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8010 rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8021 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8022 # Neither gettext nor catgets in included in the C library.
8023 # Fall back on GNU gettext library (assuming it is present).
8024 nls_cv_use_gnu_gettext=yes
8028 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8029 INTLOBJS="\$(GETTOBJS)"
8030 # Extract the first word of "msgfmt", so it can be a program name with args.
8031 set dummy msgfmt; ac_word=$2
8032 echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8034 if test "${ac_cv_path_MSGFMT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8043 for ac_dir in $PATH; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8047 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8053 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8057 MSGFMT="$ac_cv_path_MSGFMT"
8058 if test -n "$MSGFMT"; then
8059 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8060 echo "${ECHO_T}$MSGFMT" >&6
8062 echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8066 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8067 set dummy gmsgfmt; ac_word=$2
8068 echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8096 GMSGFMT=$ac_cv_path_GMSGFMT
8098 if test -n "$GMSGFMT"; then
8099 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8100 echo "${ECHO_T}$GMSGFMT" >&6
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8106 # Extract the first word of "xgettext", so it can be a program name with args.
8107 set dummy xgettext; ac_word=$2
8108 echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8110 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8119 for ac_dir in $PATH; do
8120 test -z "$ac_dir" && ac_dir=.
8121 if test -f $ac_dir/$ac_word; then
8122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8133 XGETTEXT="$ac_cv_path_XGETTEXT"
8134 if test -n "$XGETTEXT"; then
8135 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8136 echo "${ECHO_T}$XGETTEXT" >&6
8138 echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8143 USE_INCLUDED_LIBINTL=yes
8147 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8149 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8150 nls_cv_header_intl=libintl.h
8151 nls_cv_header_libgt=libgettext.h
8154 if test "$XGETTEXT" != ":"; then
8155 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8158 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8159 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8164 # We need to process the po/ directory.
8168 nls_cv_header_intl=libintl.h
8169 nls_cv_header_libgt=libgettext.h
8172 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8173 # because some of the sources are only built for this goal.
8174 if test "$PACKAGE" = gettext; then
8176 USE_INCLUDED_LIBINTL=yes
8179 for lang in $ALL_LINGUAS; do
8180 GMOFILES="$GMOFILES $lang.gmo"
8181 POFILES="$POFILES $lang.po"
8195 if test "x$CATOBJEXT" != "x"; then
8197 cat >>confdefs.h <<\_ACEOF
8198 #define ENABLE_NLS 1
8204 if test "x$CATOBJEXT" != "x"; then
8205 if test "x$ALL_LINGUAS" = "x"; then
8208 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8209 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8211 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8212 case "$ALL_LINGUAS" in
8213 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8216 LINGUAS=$NEW_LINGUAS
8217 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8218 echo "${ECHO_T}$LINGUAS" >&6
8221 if test -n "$LINGUAS"; then
8222 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8226 if test $ac_cv_header_locale_h = yes; then
8227 INCLUDE_LOCALE_H="#include <locale.h>"
8230 /* The system does not provide the header <locale.h>. Take care yourself. */"
8234 if test -f $srcdir/po2tbl.sed.in; then
8235 if test "$CATOBJEXT" = ".cat"; then
8236 if test "${ac_cv_header_linux_version_h+set}" = set; then
8237 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8238 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8239 if test "${ac_cv_header_linux_version_h+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8243 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8245 # Is the header compilable?
8246 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8247 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8255 #include <linux/version.h>
8257 rm -f conftest.$ac_objext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag"
8267 || test ! -s conftest.err'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_header_compiler=yes
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_header_compiler=no
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288 echo "${ECHO_T}$ac_header_compiler" >&6
8290 # Is the header present?
8291 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8292 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <linux/version.h>
8301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } >/dev/null; then
8309 if test -s conftest.err; then
8310 ac_cpp_err=$ac_c_preproc_warn_flag
8311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8318 if test -z "$ac_cpp_err"; then
8319 ac_header_preproc=yes
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_header_preproc=no
8326 rm -f conftest.err conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328 echo "${ECHO_T}$ac_header_preproc" >&6
8330 # So? What about this header?
8331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8333 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8336 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8340 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8341 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8343 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8345 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8347 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8349 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8351 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8354 ## ------------------------------------------ ##
8355 ## Report this to the AC_PACKAGE_NAME lists. ##
8356 ## ------------------------------------------ ##
8359 sed "s/^/$as_me: WARNING: /" >&2
8362 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8363 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8364 if test "${ac_cv_header_linux_version_h+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 ac_cv_header_linux_version_h=$ac_header_preproc
8369 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8370 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8373 if test $ac_cv_header_linux_version_h = yes; then
8381 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8384 $srcdir/po2tbl.sed.in > po2tbl.sed
8387 if test "$PACKAGE" = "gettext"; then
8397 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8403 if test -f $srcdir/po/POTFILES.in; then
8404 test -d po || mkdir po
8405 if test "x$srcdir" != "x."; then
8406 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8407 posrcprefix="$srcdir/"
8409 posrcprefix="../$srcdir/"
8415 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8416 < $srcdir/po/POTFILES.in > po/POTFILES
8420 # Permit host specific settings.
8421 . ${srcdir}/configure.host
8424 # Find a good install program. We prefer a C program (faster),
8425 # so one script is as good as another. But avoid the broken or
8426 # incompatible versions:
8427 # SysV /etc/install, /usr/sbin/install
8428 # SunOS /usr/etc/install
8429 # IRIX /sbin/install
8431 # AmigaOS /C/install, which installs bootblocks on floppy discs
8432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8435 # OS/2's system install, which has a completely different semantic
8436 # ./install, which can be erroneously created by make from ./install.sh.
8437 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8438 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8439 if test -z "$INSTALL"; then
8440 if test "${ac_cv_path_install+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 test -z "$as_dir" && as_dir=.
8448 # Account for people who put trailing slashes in PATH elements.
8450 ./ | .// | /cC/* | \
8451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8455 # OSF1 and SCO ODT 3.0 have their own names for install.
8456 # Don't use installbsd from OSF since it installs stuff as root
8458 for ac_prog in ginstall scoinst install; do
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8461 if test $ac_prog = install &&
8462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8463 # AIX install. It has an incompatible calling convention.
8465 elif test $ac_prog = install &&
8466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467 # program-specific install script used by HP pwplus--don't use.
8470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8482 if test "${ac_cv_path_install+set}" = set; then
8483 INSTALL=$ac_cv_path_install
8485 # As a last resort, use the slow shell script. We don't cache a
8486 # path for INSTALL within a source directory, because that will
8487 # break other packages using the cache if that directory is
8488 # removed, or if the path is relative.
8489 INSTALL=$ac_install_sh
8492 echo "$as_me:$LINENO: result: $INSTALL" >&5
8493 echo "${ECHO_T}$INSTALL" >&6
8495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496 # It thinks the first close brace ends the variable substitution.
8497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8504 BFD_HOST_64BIT_LONG=0
8505 BFD_HOST_LONG_LONG=0
8506 BFD_HOST_64_BIT_DEFINED=0
8510 echo "$as_me:$LINENO: checking for long long" >&5
8511 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8512 if test "${bfd_cv_has_long_long+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8525 unsigned long long ll = 18446744073709551615ULL;
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 bfd_cv_has_long_long=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 bfd_cv_has_long_long=no
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8563 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8564 if test $bfd_cv_has_long_long = yes; then
8565 BFD_HOST_LONG_LONG=1
8566 echo "$as_me:$LINENO: checking for long long" >&5
8567 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8568 if test "${ac_cv_type_long_long+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 cat >conftest.$ac_ext <<_ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 $ac_includes_default
8581 if ((long long *) 0)
8583 if (sizeof (long long))
8589 rm -f conftest.$ac_objext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>conftest.er1
8593 grep -v '^ *+' conftest.er1 >conftest.err
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -z "$ac_c_werror_flag"
8599 || test ! -s conftest.err'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try='test -s conftest.$ac_objext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_type_long_long=yes
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 ac_cv_type_long_long=no
8618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8620 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8621 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8623 echo "$as_me:$LINENO: checking size of long long" >&5
8624 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8625 if test "${ac_cv_sizeof_long_long+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 if test "$ac_cv_type_long_long" = yes; then
8629 # The cast to unsigned long works around a bug in the HP C Compiler
8630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8632 # This bug is HP SR number 8606223364.
8633 if test "$cross_compiling" = yes; then
8634 # Depending upon the size, compute the lo and hi bounds.
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 $ac_includes_default
8645 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 $ac_includes_default
8686 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8693 rm -f conftest.$ac_objext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_hi=$ac_mid; break
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_lo=`expr $ac_mid + 1`
8721 if test $ac_lo -le $ac_mid; then
8725 ac_mid=`expr 2 '*' $ac_mid + 1`
8727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8743 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>conftest.er1
8754 grep -v '^ *+' conftest.er1 >conftest.err
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8784 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8791 rm -f conftest.$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>conftest.er1
8795 grep -v '^ *+' conftest.er1 >conftest.err
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest.$ac_objext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_lo=$ac_mid; break
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_hi=`expr '(' $ac_mid ')' - 1`
8819 if test $ac_mid -le $ac_hi; then
8823 ac_mid=`expr 2 '*' $ac_mid`
8825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836 # Binary search between lo and hi bounds.
8837 while test "x$ac_lo" != "x$ac_hi"; do
8838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest.$ac_objext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_lo=`expr '(' $ac_mid ')' + 1`
8885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8888 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8890 See \`config.log' for more details." >&5
8891 echo "$as_me: error: cannot compute sizeof (long long), 77
8892 See \`config.log' for more details." >&2;}
8893 { (exit 1); exit 1; }; } ;;
8896 if test "$cross_compiling" = yes; then
8897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8898 See \`config.log' for more details." >&5
8899 echo "$as_me: error: cannot run test program while cross compiling
8900 See \`config.log' for more details." >&2;}
8901 { (exit 1); exit 1; }; }
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 long longval () { return (long) (sizeof (long long)); }
8911 unsigned long ulongval () { return (long) (sizeof (long long)); }
8918 FILE *f = fopen ("conftest.val", "w");
8921 if (((long) (sizeof (long long))) < 0)
8923 long i = longval ();
8924 if (i != ((long) (sizeof (long long))))
8926 fprintf (f, "%ld\n", i);
8930 unsigned long i = ulongval ();
8931 if (i != ((long) (sizeof (long long))))
8933 fprintf (f, "%lu\n", i);
8935 exit (ferror (f) || fclose (f) != 0);
8941 rm -f conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_sizeof_long_long=`cat conftest.val`
8954 echo "$as_me: program exited with status $ac_status" >&5
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8960 See \`config.log' for more details." >&5
8961 echo "$as_me: error: cannot compute sizeof (long long), 77
8962 See \`config.log' for more details." >&2;}
8963 { (exit 1); exit 1; }; }
8965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8970 ac_cv_sizeof_long_long=0
8973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8974 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8975 cat >>confdefs.h <<_ACEOF
8976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8982 echo "$as_me:$LINENO: checking for long" >&5
8983 echo $ECHO_N "checking for long... $ECHO_C" >&6
8984 if test "${ac_cv_type_long+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 $ac_includes_default
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9037 echo "${ECHO_T}$ac_cv_type_long" >&6
9039 echo "$as_me:$LINENO: checking size of long" >&5
9040 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9041 if test "${ac_cv_sizeof_long+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 if test "$ac_cv_type_long" = yes; then
9045 # The cast to unsigned long works around a bug in the HP C Compiler
9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9048 # This bug is HP SR number 8606223364.
9049 if test "$cross_compiling" = yes; then
9050 # Depending upon the size, compute the lo and hi bounds.
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 $ac_includes_default
9061 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 (eval $ac_compile) 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag"
9078 || test ! -s conftest.err'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9102 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9109 rm -f conftest.$ac_objext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_hi=$ac_mid; break
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_lo=`expr $ac_mid + 1`
9137 if test $ac_lo -le $ac_mid; then
9141 ac_mid=`expr 2 '*' $ac_mid + 1`
9143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9159 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9166 rm -f conftest.$ac_objext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 $ac_includes_default
9200 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest.$ac_objext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_lo=$ac_mid; break
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_hi=`expr '(' $ac_mid ')' - 1`
9235 if test $ac_mid -le $ac_hi; then
9239 ac_mid=`expr 2 '*' $ac_mid`
9241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252 # Binary search between lo and hi bounds.
9253 while test "x$ac_lo" != "x$ac_hi"; do
9254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 $ac_includes_default
9265 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_lo=`expr '(' $ac_mid ')' + 1`
9301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9304 ?*) ac_cv_sizeof_long=$ac_lo;;
9305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9306 See \`config.log' for more details." >&5
9307 echo "$as_me: error: cannot compute sizeof (long), 77
9308 See \`config.log' for more details." >&2;}
9309 { (exit 1); exit 1; }; } ;;
9312 if test "$cross_compiling" = yes; then
9313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9314 See \`config.log' for more details." >&5
9315 echo "$as_me: error: cannot run test program while cross compiling
9316 See \`config.log' for more details." >&2;}
9317 { (exit 1); exit 1; }; }
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 $ac_includes_default
9326 long longval () { return (long) (sizeof (long)); }
9327 unsigned long ulongval () { return (long) (sizeof (long)); }
9334 FILE *f = fopen ("conftest.val", "w");
9337 if (((long) (sizeof (long))) < 0)
9339 long i = longval ();
9340 if (i != ((long) (sizeof (long))))
9342 fprintf (f, "%ld\n", i);
9346 unsigned long i = ulongval ();
9347 if (i != ((long) (sizeof (long))))
9349 fprintf (f, "%lu\n", i);
9351 exit (ferror (f) || fclose (f) != 0);
9357 rm -f conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_sizeof_long=`cat conftest.val`
9370 echo "$as_me: program exited with status $ac_status" >&5
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9376 See \`config.log' for more details." >&5
9377 echo "$as_me: error: cannot compute sizeof (long), 77
9378 See \`config.log' for more details." >&2;}
9379 { (exit 1); exit 1; }; }
9381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9390 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9391 cat >>confdefs.h <<_ACEOF
9392 #define SIZEOF_LONG $ac_cv_sizeof_long
9396 if test "x${ac_cv_sizeof_long}" = "x8"; then
9398 BFD_HOST_64BIT_LONG=1
9399 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9400 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9401 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9402 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9403 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9406 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9407 BFD_HOST_64_BIT_DEFINED=1
9408 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9409 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9418 # Put a plausible default for CC_FOR_BUILD in Makefile.
9419 if test -z "$CC_FOR_BUILD"; then
9420 if test "x$cross_compiling" = "xno"; then
9421 CC_FOR_BUILD='$(CC)'
9427 # Also set EXEEXT_FOR_BUILD.
9428 if test "x$cross_compiling" = "xno"; then
9429 EXEEXT_FOR_BUILD='$(EXEEXT)'
9431 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9432 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9433 if test "${bfd_cv_build_exeext+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 echo 'int main () { return 0; }' > conftest.c
9438 bfd_cv_build_exeext=
9439 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9440 for file in conftest.*; do
9442 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9443 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9447 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9449 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9450 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9452 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9462 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo "$as_me:$LINENO: checking for $ac_header" >&5
9467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9474 # Is the header compilable?
9475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 $ac_includes_default
9484 #include <$ac_header>
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_header_compiler=yes
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_header_compiler=no
9515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9517 echo "${ECHO_T}$ac_header_compiler" >&6
9519 # Is the header present?
9520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <$ac_header>
9530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9533 grep -v '^ *+' conftest.er1 >conftest.err
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9547 if test -z "$ac_cpp_err"; then
9548 ac_header_preproc=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_header_preproc=no
9555 rm -f conftest.err conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9557 echo "${ECHO_T}$ac_header_preproc" >&6
9559 # So? What about this header?
9560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9566 ac_header_preproc=yes
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583 ## ------------------------------------------ ##
9584 ## Report this to the AC_PACKAGE_NAME lists. ##
9585 ## ------------------------------------------ ##
9588 sed "s/^/$as_me: WARNING: /" >&2
9591 echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9614 for ac_header in fcntl.h sys/file.h sys/time.h
9616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9618 echo "$as_me:$LINENO: checking for $ac_header" >&5
9619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9626 # Is the header compilable?
9627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9636 #include <$ac_header>
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>conftest.er1
9642 grep -v '^ *+' conftest.er1 >conftest.err
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_header_compiler=yes
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_header_compiler=no
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9669 echo "${ECHO_T}$ac_header_compiler" >&6
9671 # Is the header present?
9672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <$ac_header>
9682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } >/dev/null; then
9690 if test -s conftest.err; then
9691 ac_cpp_err=$ac_c_preproc_warn_flag
9692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9699 if test -z "$ac_cpp_err"; then
9700 ac_header_preproc=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_header_preproc=no
9707 rm -f conftest.err conftest.$ac_ext
9708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9709 echo "${ECHO_T}$ac_header_preproc" >&6
9711 # So? What about this header?
9712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9718 ac_header_preproc=yes
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9735 ## ------------------------------------------ ##
9736 ## Report this to the AC_PACKAGE_NAME lists. ##
9737 ## ------------------------------------------ ##
9740 sed "s/^/$as_me: WARNING: /" >&2
9743 echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 eval "$as_ac_Header=\$ac_header_preproc"
9750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9755 cat >>confdefs.h <<_ACEOF
9756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9763 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9764 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9765 if test "${ac_cv_header_time+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 #include <sys/types.h>
9775 #include <sys/time.h>
9781 if ((struct tm *) 0)
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_header_time=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_header_time=no
9816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9819 echo "${ECHO_T}$ac_cv_header_time" >&6
9820 if test $ac_cv_header_time = yes; then
9822 cat >>confdefs.h <<\_ACEOF
9823 #define TIME_WITH_SYS_TIME 1
9834 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9835 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9836 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9837 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 #include <sys/types.h>
9859 rm -f conftest.$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 eval "$as_ac_Header=yes"
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 eval "$as_ac_Header=no"
9888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9897 ac_header_dirent=$ac_hdr; break
9901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9902 if test $ac_header_dirent = dirent.h; then
9903 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9905 if test "${ac_cv_search_opendir+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_func_search_save_LIBS=$LIBS
9909 ac_cv_search_opendir=no
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any gcc2 internal prototype to avoid an error. */
9921 /* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_search_opendir="none required"
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9960 rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "$ac_cv_search_opendir" = no; then
9963 for ac_lib in dir; do
9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_opendir="-l$ac_lib"
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_func_search_save_LIBS
10022 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10023 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10024 if test "$ac_cv_search_opendir" != no; then
10025 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10032 if test "${ac_cv_search_opendir+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 ac_func_search_save_LIBS=$LIBS
10036 ac_cv_search_opendir=no
10037 cat >conftest.$ac_ext <<_ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10044 /* Override any gcc2 internal prototype to avoid an error. */
10048 /* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061 (eval $ac_link) 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_search_opendir="none required"
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10087 rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089 if test "$ac_cv_search_opendir" = no; then
10090 for ac_lib in x; do
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10118 grep -v '^ *+' conftest.er1 >conftest.err
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_search_opendir="-l$ac_lib"
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10143 rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_func_search_save_LIBS
10149 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10150 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10151 if test "$ac_cv_search_opendir" != no; then
10152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10158 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10159 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10160 if test "${gcc_cv_header_string+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 #include <string.h>
10170 #include <strings.h>
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 gcc_cv_header_string=yes
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 gcc_cv_header_string=no
10208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10211 echo "${ECHO_T}$gcc_cv_header_string" >&6
10212 if test $gcc_cv_header_string = yes; then
10214 cat >>confdefs.h <<\_ACEOF
10215 #define STRING_WITH_STRINGS 1
10227 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230 echo "$as_me:$LINENO: checking for $ac_func" >&5
10231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10232 if eval "test \"\${$as_ac_var+set}\" = set"; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243 #define $ac_func innocuous_$ac_func
10245 /* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10251 # include <limits.h>
10253 # include <assert.h>
10258 /* Override any gcc2 internal prototype to avoid an error. */
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10266 /* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10272 char (*f) () = $ac_func;
10281 return f != $ac_func;
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>conftest.er1
10290 grep -v '^ *+' conftest.er1 >conftest.err
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 eval "$as_ac_var=yes"
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 eval "$as_ac_var=no"
10315 rm -f conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10320 if test `eval echo '${'$as_ac_var'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10329 for ac_func in strtoull
10331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10332 echo "$as_me:$LINENO: checking for $ac_func" >&5
10333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10334 if eval "test \"\${$as_ac_var+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10345 #define $ac_func innocuous_$ac_func
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char $ac_func (); below.
10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 <limits.h> exists even on freestanding compilers. */
10353 # include <limits.h>
10355 # include <assert.h>
10360 /* Override any gcc2 internal prototype to avoid an error. */
10365 /* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10368 /* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10374 char (*f) () = $ac_func;
10383 return f != $ac_func;
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10392 grep -v '^ *+' conftest.er1 >conftest.err
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "$as_ac_var=yes"
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 eval "$as_ac_var=no"
10417 rm -f conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10431 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10432 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10433 if test "${ac_cv_have_decl_basename+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10447 char *p = (char *) basename;
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_have_decl_basename=yes
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_have_decl_basename=no
10483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10485 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10486 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10487 if test $ac_cv_have_decl_basename = yes; then
10489 cat >>confdefs.h <<_ACEOF
10490 #define HAVE_DECL_BASENAME 1
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_DECL_BASENAME 0
10503 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10504 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10505 if test "${ac_cv_have_decl_ftello+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10519 char *p = (char *) ftello;
10526 rm -f conftest.$ac_objext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag"
10536 || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_have_decl_ftello=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_have_decl_ftello=no
10555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10558 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10559 if test $ac_cv_have_decl_ftello = yes; then
10561 cat >>confdefs.h <<_ACEOF
10562 #define HAVE_DECL_FTELLO 1
10567 cat >>confdefs.h <<_ACEOF
10568 #define HAVE_DECL_FTELLO 0
10575 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10576 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10577 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 $ac_includes_default
10591 char *p = (char *) ftello64;
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest.$ac_objext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_have_decl_ftello64=yes
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_cv_have_decl_ftello64=no
10627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10629 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10630 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10631 if test $ac_cv_have_decl_ftello64 = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_DECL_FTELLO64 1
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_DECL_FTELLO64 0
10647 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10648 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10649 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658 $ac_includes_default
10663 char *p = (char *) fseeko;
10670 rm -f conftest.$ac_objext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10672 (eval $ac_compile) 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_have_decl_fseeko=yes
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_have_decl_fseeko=no
10699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10702 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10703 if test $ac_cv_have_decl_fseeko = yes; then
10705 cat >>confdefs.h <<_ACEOF
10706 #define HAVE_DECL_FSEEKO 1
10711 cat >>confdefs.h <<_ACEOF
10712 #define HAVE_DECL_FSEEKO 0
10719 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10720 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10721 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 cat >conftest.$ac_ext <<_ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 $ac_includes_default
10735 char *p = (char *) fseeko64;
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -z "$ac_c_werror_flag"
10752 || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_cv_have_decl_fseeko64=yes
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ac_cv_have_decl_fseeko64=no
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10774 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10775 if test $ac_cv_have_decl_fseeko64 = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_DECL_FSEEKO64 1
10783 cat >>confdefs.h <<_ACEOF
10784 #define HAVE_DECL_FSEEKO64 0
10794 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10796 cat >>confdefs.h <<\_ACEOF
10797 #define USE_BINARY_FOPEN 1
10802 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10803 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10804 if test "${ac_cv_have_decl_ffs+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10818 char *p = (char *) ffs;
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_cv_have_decl_ffs=yes
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 ac_cv_have_decl_ffs=no
10854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10857 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10858 if test $ac_cv_have_decl_ffs = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_DECL_FFS 1
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_DECL_FFS 0
10874 echo "$as_me:$LINENO: checking whether free is declared" >&5
10875 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10876 if test "${ac_cv_have_decl_free+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10890 char *p = (char *) free;
10897 rm -f conftest.$ac_objext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899 (eval $ac_compile) 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag"
10907 || test ! -s conftest.err'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_have_decl_free=yes
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_cv_have_decl_free=no
10926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10928 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10929 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10930 if test $ac_cv_have_decl_free = yes; then
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_DECL_FREE 1
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_DECL_FREE 0
10946 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10947 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10948 if test "${ac_cv_have_decl_getenv+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 $ac_includes_default
10962 char *p = (char *) getenv;
10969 rm -f conftest.$ac_objext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>conftest.er1
10973 grep -v '^ *+' conftest.er1 >conftest.err
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest.$ac_objext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_have_decl_getenv=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_cv_have_decl_getenv=no
10998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11001 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11002 if test $ac_cv_have_decl_getenv = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define HAVE_DECL_GETENV 1
11010 cat >>confdefs.h <<_ACEOF
11011 #define HAVE_DECL_GETENV 0
11018 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11019 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11020 if test "${ac_cv_have_decl_malloc+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11034 char *p = (char *) malloc;
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_have_decl_malloc=yes
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_have_decl_malloc=no
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11073 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11074 if test $ac_cv_have_decl_malloc = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define HAVE_DECL_MALLOC 1
11082 cat >>confdefs.h <<_ACEOF
11083 #define HAVE_DECL_MALLOC 0
11090 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11091 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11092 if test "${ac_cv_have_decl_realloc+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11106 char *p = (char *) realloc;
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_have_decl_realloc=yes
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 ac_cv_have_decl_realloc=no
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11145 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11146 if test $ac_cv_have_decl_realloc = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_DECL_REALLOC 1
11154 cat >>confdefs.h <<_ACEOF
11155 #define HAVE_DECL_REALLOC 0
11162 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11163 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11164 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11178 char *p = (char *) stpcpy;
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11189 grep -v '^ *+' conftest.er1 >conftest.err
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_have_decl_stpcpy=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_have_decl_stpcpy=no
11214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11217 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11218 if test $ac_cv_have_decl_stpcpy = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_DECL_STPCPY 1
11226 cat >>confdefs.h <<_ACEOF
11227 #define HAVE_DECL_STPCPY 0
11234 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11235 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11236 if test "${ac_cv_have_decl_strstr+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11250 char *p = (char *) strstr;
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_have_decl_strstr=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_cv_have_decl_strstr=no
11286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11289 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11290 if test $ac_cv_have_decl_strstr = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define HAVE_DECL_STRSTR 1
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_DECL_STRSTR 0
11306 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11307 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11308 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11322 char *p = (char *) snprintf;
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_have_decl_snprintf=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_cv_have_decl_snprintf=no
11358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11361 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11362 if test $ac_cv_have_decl_snprintf = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define HAVE_DECL_SNPRINTF 1
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_DECL_SNPRINTF 0
11378 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11379 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11380 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11394 char *p = (char *) vsnprintf;
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest.$ac_objext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_have_decl_vsnprintf=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_have_decl_vsnprintf=no
11430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11433 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11434 if test $ac_cv_have_decl_vsnprintf = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define HAVE_DECL_VSNPRINTF 1
11442 cat >>confdefs.h <<_ACEOF
11443 #define HAVE_DECL_VSNPRINTF 0
11451 # If we are configured native, pick a core file support file.
11455 if test "${target}" = "${host}"; then
11457 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11461 COREFILE=trad-core.lo
11462 TRAD_HEADER='"hosts/alphalinux.h"'
11464 alpha*-*-netbsd* | alpha*-*-openbsd*)
11465 COREFILE=netbsd-core.lo
11467 alpha*-*-*) COREFILE=osf-core.lo ;;
11468 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11470 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11471 arm-*-riscix) COREFILE=trad-core.lo ;;
11472 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11473 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11474 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11475 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11476 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11477 hppa*-*-netbsd* | hppa*-*-openbsd*)
11478 COREFILE=netbsd-core.lo
11482 COREFILE=trad-core.lo
11483 TRAD_HEADER='"hosts/i370linux.h"'
11486 i[3-7]86-sequent-bsd*)
11487 COREFILE=trad-core.lo
11488 TRAD_HEADER='"hosts/symmetry.h"'
11490 i[3-7]86-sequent-sysv4*) ;;
11491 i[3-7]86-sequent-sysv*)
11492 COREFILE=trad-core.lo
11493 TRAD_HEADER='"hosts/symmetry.h"'
11498 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
11499 COREFILE=trad-core.lo
11500 TRAD_HEADER='"hosts/i386bsd.h"'
11502 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11504 TRAD_HEADER='"hosts/i386bsd.h"'
11506 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11507 COREFILE=netbsd-core.lo
11509 i[3-7]86-esix-sysv3*)
11510 COREFILE=trad-core.lo
11511 TRAD_HEADER='"hosts/esix.h"'
11513 i[3-7]86-*-sco3.2v5*)
11514 COREFILE=sco5-core.lo
11516 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11517 COREFILE=trad-core.lo
11518 TRAD_HEADER='"hosts/i386sco.h"'
11521 COREFILE=trad-core.lo
11522 TRAD_HEADER='"hosts/i386mach3.h"'
11524 i[3-7]86-*-linux-*)
11525 COREFILE=trad-core.lo
11526 TRAD_HEADER='"hosts/i386linux.h"'
11528 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11529 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11530 i860-*-mach3* | i860-*-osf1*)
11531 COREFILE=trad-core.lo
11532 TRAD_HEADER='"hosts/i860mach3.h"'
11534 mips-*-netbsd* | mips*-*-openbsd*)
11535 COREFILE=netbsd-core.lo
11538 COREFILE=trad-core.lo
11539 TRAD_HEADER='"hosts/decstation.h"'
11541 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11542 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11543 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11545 mips-*-sysv* | mips-*-riscos*)
11546 COREFILE=trad-core.lo
11547 TRAD_HEADER='"hosts/riscos.h"'
11550 COREFILE=trad-core.lo
11551 TRAD_HEADER='"hosts/news-mips.h"'
11554 COREFILE=trad-core.lo
11555 TRAD_HEADER='"hosts/dpx2.h"'
11557 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11559 COREFILE=trad-core.lo
11560 TRAD_HEADER='"hosts/hp300bsd.h"'
11563 COREFILE=trad-core.lo
11564 TRAD_HEADER='"hosts/m68klinux.h"'
11566 m68*-motorola-sysv*)
11567 COREFILE=trad-core.lo
11568 TRAD_HEADER='"hosts/delta68.h"'
11571 COREFILE=trad-core.lo
11572 TRAD_HEADER='"hosts/news.h"'
11574 m68*-*-netbsd* | m68*-*-openbsd*)
11575 COREFILE=netbsd-core.lo
11578 COREFILE=trad-core.lo
11579 TRAD_HEADER='"hosts/m68kaux.h"'
11583 m88*-motorola-sysv*)
11584 COREFILE=ptrace-core.lo
11587 COREFILE=trad-core.lo
11588 TRAD_HEADER='"hosts/m88kmach3.h"'
11591 COREFILE=netbsd-core.lo
11594 COREFILE=trad-core.lo
11595 TRAD_HEADER='"hosts/pc532mach.h"'
11597 ns32k-*-netbsd* | ns32k-*-openbsd*)
11598 COREFILE=netbsd-core.lo
11601 COREFILE=lynx-core.lo
11603 rs6000-*-aix5.* | powerpc-*-aix5.*)
11604 COREFILE=rs6000-core.lo
11605 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11607 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11608 COREFILE=rs6000-core.lo
11609 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11610 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11611 # have c_impl as a member of struct core_dumpx
11612 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11613 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11624 struct core_dumpx c; c.c_impl = 0;
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_ST_C_IMPL 1
11656 echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 echo "$as_me:$LINENO: result: no" >&5
11663 echo "${ECHO_T}no" >&6
11665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11668 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11669 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11670 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11671 powerpc-*-beos*) ;;
11672 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11674 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11675 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11676 s390*-*-*) COREFILE=trad-core.lo ;;
11677 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11678 sparc-*-netbsd* | sparc*-*-openbsd*)
11679 COREFILE=netbsd-core.lo
11682 COREFILE=trad-core.lo
11683 TRAD_HEADER='"hosts/tahoe.h"'
11685 vax-*-netbsd* | vax-*-openbsd*)
11686 COREFILE=netbsd-core.lo
11689 COREFILE=trad-core.lo
11690 TRAD_HEADER='"hosts/vaxult2.h"'
11693 COREFILE=trad-core.lo
11694 TRAD_HEADER='"hosts/vaxult2.h"'
11697 COREFILE=trad-core.lo
11698 TRAD_HEADER='"hosts/vaxlinux.h"'
11701 COREFILE=trad-core.lo
11702 TRAD_HEADER='"hosts/vaxbsd.h"'
11704 x86_64-*-netbsd* | x86_64-*-openbsd*)
11705 COREFILE=netbsd-core.lo
11709 case "$COREFILE" in
11710 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11711 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11712 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11713 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11714 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11715 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11716 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11717 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11718 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11719 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11720 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11723 # ELF corefile support has several flavors, but all of
11724 # them use something called <sys/procfs.h>
11726 for ac_header in sys/procfs.h
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11738 # Is the header compilable?
11739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 #include <$ac_header>
11750 rm -f conftest.$ac_objext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_header_compiler=no
11779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6
11783 # Is the header present?
11784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <$ac_header>
11794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11811 if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ac_header_preproc=no
11819 rm -f conftest.err conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11847 ## ------------------------------------------ ##
11848 ## Report this to the AC_PACKAGE_NAME lists. ##
11849 ## ------------------------------------------ ##
11852 sed "s/^/$as_me: WARNING: /" >&2
11855 echo "$as_me:$LINENO: checking for $ac_header" >&5
11856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 eval "$as_ac_Header=\$ac_header_preproc"
11862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875 if test "$ac_cv_header_sys_procfs_h" = yes; then
11876 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11877 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11878 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11889 #include <sys/procfs.h>
11898 rm -f conftest.$ac_objext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 bfd_cv_have_sys_procfs_type_prstatus_t=no
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11931 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11933 cat >>confdefs.h <<\_ACEOF
11934 #define HAVE_PRSTATUS_T 1
11938 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11939 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11941 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11942 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11943 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11954 #include <sys/procfs.h>
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 bfd_cv_have_sys_procfs_type_prstatus32_t=no
11993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11996 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_PRSTATUS32_T 1
12003 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12004 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12006 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12007 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12008 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12019 #include <sys/procfs.h>
12023 prstatus_t avar; void* aref = (void*) &avar.pr_who
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag"
12038 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12061 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_PRSTATUS_T_PR_WHO 1
12068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12069 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12071 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12072 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12073 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12084 #include <sys/procfs.h>
12088 prstatus32_t avar; void* aref = (void*) &avar.pr_who
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12126 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_PRSTATUS32_T_PR_WHO 1
12133 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12134 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12136 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12137 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12138 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12149 #include <sys/procfs.h>
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 bfd_cv_have_sys_procfs_type_pstatus_t=no
12188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12191 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12193 cat >>confdefs.h <<\_ACEOF
12194 #define HAVE_PSTATUS_T 1
12198 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12199 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12201 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12202 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12203 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12214 #include <sys/procfs.h>
12223 rm -f conftest.$ac_objext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>conftest.er1
12227 grep -v '^ *+' conftest.er1 >conftest.err
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12258 cat >>confdefs.h <<\_ACEOF
12259 #define HAVE_PXSTATUS_T 1
12263 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12264 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12266 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12267 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12268 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12279 #include <sys/procfs.h>
12288 rm -f conftest.$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12323 cat >>confdefs.h <<\_ACEOF
12324 #define HAVE_PSTATUS32_T 1
12328 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12329 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12331 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12332 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12333 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12344 #include <sys/procfs.h>
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12386 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12388 cat >>confdefs.h <<\_ACEOF
12389 #define HAVE_PRPSINFO_T 1
12393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12394 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12396 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12397 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12398 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12409 #include <sys/procfs.h>
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_PRPSINFO32_T 1
12458 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12459 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12461 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12462 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12463 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 cat >conftest.$ac_ext <<_ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12474 #include <sys/procfs.h>
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 bfd_cv_have_sys_procfs_type_psinfo_t=no
12513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_PSINFO_T 1
12523 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12524 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12526 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12527 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12528 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 cat >conftest.$ac_ext <<_ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12539 #include <sys/procfs.h>
12548 rm -f conftest.$ac_objext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest.$ac_objext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12583 cat >>confdefs.h <<\_ACEOF
12584 #define HAVE_PSINFO32_T 1
12588 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12589 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12591 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12592 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12593 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12604 #include <sys/procfs.h>
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12617 grep -v '^ *+' conftest.er1 >conftest.err
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -z "$ac_c_werror_flag"
12623 || test ! -s conftest.err'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_LWPSTATUS_T 1
12653 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12654 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12656 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12657 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12658 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12669 #include <sys/procfs.h>
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_LWPXSTATUS_T 1
12718 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12719 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12721 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12722 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12723 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 cat >conftest.$ac_ext <<_ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12734 #include <sys/procfs.h>
12738 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12778 cat >>confdefs.h <<\_ACEOF
12779 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12783 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12784 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12786 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12787 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12788 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12799 #include <sys/procfs.h>
12803 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag"
12818 || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12841 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_LWPSTATUS_T_PR_REG 1
12848 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12849 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12851 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12852 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12853 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 cat >conftest.$ac_ext <<_ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12864 #include <sys/procfs.h>
12868 win32_pstatus_t avar
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>conftest.er1
12877 grep -v '^ *+' conftest.er1 >conftest.err
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12906 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12908 cat >>confdefs.h <<\_ACEOF
12909 #define HAVE_WIN32_PSTATUS_T 1
12913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12914 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12920 if test -n "$TRAD_HEADER"; then
12922 cat >>confdefs.h <<_ACEOF
12923 #define TRAD_HEADER $TRAD_HEADER
12928 # Horrible hacks to build DLLs on Windows.
12933 if test "$enable_shared" = "yes"; then
12934 WIN32LDFLAGS="-no-undefined"
12935 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12939 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12943 # Linux/MIPS uses PIC by default.
12944 if test "$enable_shared" = "yes"; then
12945 WIN32LIBADD="-L../libiberty -liberty"
12949 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12950 if test -n "$x"; then
12951 WIN32LIBADD="-L../libiberty/pic -liberty"
12962 # Canonicalize the secondary target names.
12963 if test -n "$enable_targets" ; then
12964 for targ in `echo $enable_targets | sed 's/,/ /g'`
12966 result=`$ac_config_sub $targ 2>/dev/null`
12967 if test -n "$result" ; then
12968 canon_targets="$canon_targets $result"
12970 # Allow targets that config.sub doesn't recognize, like "all".
12971 canon_targets="$canon_targets $targ"
12982 for targ in $target $canon_targets
12984 if test "x$targ" = "xall"; then
12986 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12988 . $srcdir/config.bfd
12989 if test "x$targ" = "x$target"; then
12990 defvec=$targ_defvec
12992 selvecs="$selvecs $targ_defvec $targ_selvecs"
12993 selarchs="$selarchs $targ_archs"
12994 TDEFINES="$TDEFINES $targ_cflags"
12999 # This processing still needs to be done if we're to decide properly whether
13000 # 64-bit support needs to be compiled in. Currently, it will be included if
13001 # the default or any other explicitly requested target requires it; it
13002 # will not be included on a 32-bit host if no 64-bit target is requested, and
13003 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13006 # uniq the default and selected vectors in all the configured targets.
13008 for i in $selvecs ; do
13017 # uniq the associated vectors in all the configured targets.
13019 for i in $assocvecs ; do
13028 # uniq the architectures in all the configured targets.
13030 for i in $selarchs ; do
13038 # Target backend .o files.
13041 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13043 for vec in $selvecs
13047 # This list is alphabetized to make it easy to compare
13048 # with the two vector lists in targets.c. For the same reason,
13049 # use one entry per line, even though this leads to long lines.
13050 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13051 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13052 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13053 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13054 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13055 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13056 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13057 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13058 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13059 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13060 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13061 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13062 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13063 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13064 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13065 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13066 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13067 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13068 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13069 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13070 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13071 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13072 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13073 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13074 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13075 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13076 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13077 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13078 bfd_elf32_bigarm_symbian_vec)
13079 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13080 bfd_elf32_bigarm_vxworks_vec)
13081 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13082 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13083 bfd_elf32_bigmips_vxworks_vec)
13084 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13085 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13086 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13087 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13088 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13089 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13090 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13091 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13092 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13093 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13094 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13095 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13096 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13097 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13098 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13099 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13100 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13101 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13102 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13103 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13104 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13105 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13106 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13107 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13108 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13109 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13110 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13111 bfd_elf32_littlearm_symbian_vec)
13112 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13113 bfd_elf32_littlearm_vxworks_vec)
13114 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13115 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13116 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13117 bfd_elf32_littlemips_vxworks_vec)
13118 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13119 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13120 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13121 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13122 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13123 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13124 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13125 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13126 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13127 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13128 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13129 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13130 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13131 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13132 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13133 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13134 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13135 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13136 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13137 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13138 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13139 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13140 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13141 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13142 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13143 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13144 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13145 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13146 # FIXME: We include cofflink.lo not because it's needed for
13147 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13148 # which needs it but does not list it. Should be fixed in right place.
13149 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13150 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13151 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13152 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13153 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13154 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13155 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13156 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13157 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13158 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13159 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13160 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13161 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13162 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13163 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13164 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13165 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13166 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13167 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13168 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13169 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13170 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13171 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13172 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13173 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13174 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13175 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13176 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13177 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13178 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13179 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13180 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13181 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13182 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13183 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13184 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13185 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13186 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13187 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13188 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13189 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13190 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13191 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13192 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13193 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13194 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13195 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13196 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13197 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13198 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13199 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13200 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13201 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13202 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13203 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13204 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13205 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13206 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13207 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13208 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13209 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13210 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13211 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13212 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13213 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13214 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13215 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13216 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13217 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13218 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13219 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13220 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13221 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13222 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13223 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13224 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13225 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13226 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13227 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13228 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13229 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13230 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13231 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13232 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13233 ieee_vec) tb="$tb ieee.lo" ;;
13234 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13235 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13236 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13237 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13238 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13239 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13240 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13241 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13242 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13243 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13244 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13245 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13246 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13247 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13248 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13249 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13250 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13251 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13252 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13253 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13254 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13255 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13256 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13257 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13258 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13259 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13260 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13261 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13262 pef_vec) tb="$tb pef.lo" ;;
13263 pef_xlib_vec) tb="$tb pef.lo" ;;
13264 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13265 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13266 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13267 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13268 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13269 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13270 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13271 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13272 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13273 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13274 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13275 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13276 som_vec) tb="$tb som.lo" ;;
13277 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13278 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13279 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13280 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13281 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13282 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13283 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13284 sym_vec) tb="$tb xsym.lo" ;;
13285 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13286 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13287 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13288 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13289 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13290 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13291 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13292 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13293 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13294 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13295 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13296 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13297 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13298 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13299 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13300 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13301 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13302 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13303 versados_vec) tb="$tb versados.lo" ;;
13304 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13305 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13306 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13307 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13308 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13309 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13311 # These appear out of order in targets.c
13312 srec_vec) tb="$tb srec.lo" ;;
13313 symbolsrec_vec) tb="$tb srec.lo" ;;
13314 tekhex_vec) tb="$tb tekhex.lo" ;;
13315 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13316 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13319 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13320 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13321 { (exit 1); exit 1; }; } ;;
13324 if test ${target_size} = 64; then
13327 if test x"${vec}" = x"${defvec}"; then
13328 bfd_default_target_size=${target_size}
13332 # Target architecture .o files.
13333 # A couple of CPUs use shorter file names to avoid problems on DOS
13335 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13337 # Weed out duplicate .o files.
13359 if test x${all_targets} = xtrue ; then
13360 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13361 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13365 test -n "$assocvecs" &&
13366 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13367 else # all_targets is true
13368 # Only set these if they will be nonempty, for the clever echo.
13371 test -n "$selvecs" &&
13372 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13373 test -n "$selvecs" &&
13374 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13375 test -n "$selarchs" &&
13376 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13377 fi # all_targets is true
13379 case ${host64}-${target64}-${want64} in
13382 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13383 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13384 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13385 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13386 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13387 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13388 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13390 if test -n "$GCC" ; then
13392 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13393 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13394 # Add more tests for gcc versions with non-working 64-bit support here.
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 :__GNUC__:__GNUC_MINOR__:__i386__:
13403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13404 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13406 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13407 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13409 echo "$as_me:$LINENO: result: no" >&5
13410 echo "${ECHO_T}no" >&6
13414 if test $bad_64bit_gcc = yes ; then
13415 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13416 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13417 { (exit 1); exit 1; }; }
13423 bfd_libs='$(BFD32_LIBS)'
13424 all_backends='$(BFD32_BACKENDS)'
13435 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13436 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13437 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13438 # Hopefully a reasonable assumption since fseeko et.al. should be
13439 # upward compatible.
13445 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13448 echo "$as_me:$LINENO: checking for $ac_func" >&5
13449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13450 if eval "test \"\${$as_ac_var+set}\" = set"; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13461 #define $ac_func innocuous_$ac_func
13463 /* System header to define __stub macros and hopefully few prototypes,
13464 which can conflict with char $ac_func (); below.
13465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13466 <limits.h> exists even on freestanding compilers. */
13469 # include <limits.h>
13471 # include <assert.h>
13476 /* Override any gcc2 internal prototype to avoid an error. */
13481 /* We use char because int might match the return type of a gcc2
13482 builtin and then its argument prototype would still apply. */
13484 /* The GNU C library defines this for functions which it implements
13485 to always fail with ENOSYS. Some functions are actually named
13486 something starting with __ and the normal name is an alias. */
13487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13490 char (*f) () = $ac_func;
13499 return f != $ac_func;
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506 (eval $ac_link) 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 eval "$as_ac_var=yes"
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 eval "$as_ac_var=no"
13533 rm -f conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13538 if test `eval echo '${'$as_ac_var'}'` = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13546 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13547 echo "$as_me:$LINENO: checking for off_t" >&5
13548 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13549 if test "${ac_cv_type_off_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13564 if (sizeof (off_t))
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13574 grep -v '^ *+' conftest.er1 >conftest.err
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag"
13580 || test ! -s conftest.err'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_off_t=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_type_off_t=no
13599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13601 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13602 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13604 echo "$as_me:$LINENO: checking size of off_t" >&5
13605 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13606 if test "${ac_cv_sizeof_off_t+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 if test "$ac_cv_type_off_t" = yes; then
13610 # The cast to unsigned long works around a bug in the HP C Compiler
13611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13613 # This bug is HP SR number 8606223364.
13614 if test "$cross_compiling" = yes; then
13615 # Depending upon the size, compute the lo and hi bounds.
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 $ac_includes_default
13626 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13633 rm -f conftest.$ac_objext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13635 (eval $ac_compile) 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag"
13643 || test ! -s conftest.err'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13667 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13678 grep -v '^ *+' conftest.er1 >conftest.err
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_hi=$ac_mid; break
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_lo=`expr $ac_mid + 1`
13702 if test $ac_lo -le $ac_mid; then
13706 ac_mid=`expr 2 '*' $ac_mid + 1`
13708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13724 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13735 grep -v '^ *+' conftest.er1 >conftest.err
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13765 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13772 rm -f conftest.$ac_objext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_lo=$ac_mid; break
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_hi=`expr '(' $ac_mid ')' - 1`
13800 if test $ac_mid -le $ac_hi; then
13804 ac_mid=`expr 2 '*' $ac_mid`
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817 # Binary search between lo and hi bounds.
13818 while test "x$ac_lo" != "x$ac_hi"; do
13819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13820 cat >conftest.$ac_ext <<_ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 $ac_includes_default
13830 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13837 rm -f conftest.$ac_objext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>conftest.er1
13841 grep -v '^ *+' conftest.er1 >conftest.err
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13864 ac_lo=`expr '(' $ac_mid ')' + 1`
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13870 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13871 See \`config.log' for more details." >&5
13872 echo "$as_me: error: cannot compute sizeof (off_t), 77
13873 See \`config.log' for more details." >&2;}
13874 { (exit 1); exit 1; }; } ;;
13877 if test "$cross_compiling" = yes; then
13878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13879 See \`config.log' for more details." >&5
13880 echo "$as_me: error: cannot run test program while cross compiling
13881 See \`config.log' for more details." >&2;}
13882 { (exit 1); exit 1; }; }
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 long longval () { return (long) (sizeof (off_t)); }
13892 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13894 #include <stdlib.h>
13899 FILE *f = fopen ("conftest.val", "w");
13902 if (((long) (sizeof (off_t))) < 0)
13904 long i = longval ();
13905 if (i != ((long) (sizeof (off_t))))
13907 fprintf (f, "%ld\n", i);
13911 unsigned long i = ulongval ();
13912 if (i != ((long) (sizeof (off_t))))
13914 fprintf (f, "%lu\n", i);
13916 exit (ferror (f) || fclose (f) != 0);
13922 rm -f conftest$ac_exeext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_sizeof_off_t=`cat conftest.val`
13935 echo "$as_me: program exited with status $ac_status" >&5
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ( exit $ac_status )
13940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13941 See \`config.log' for more details." >&5
13942 echo "$as_me: error: cannot compute sizeof (off_t), 77
13943 See \`config.log' for more details." >&2;}
13944 { (exit 1); exit 1; }; }
13946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13951 ac_cv_sizeof_off_t=0
13954 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13955 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13956 cat >>confdefs.h <<_ACEOF
13957 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13962 echo "$as_me:$LINENO: checking file_ptr type" >&5
13963 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13964 bfd_file_ptr="long"
13965 bfd_ufile_ptr="unsigned long"
13966 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13967 -o x"${ac_cv_sizeof_off_t}" = x8; then
13968 bfd_file_ptr=BFD_HOST_64_BIT
13969 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13971 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13972 echo "${ECHO_T}$bfd_file_ptr" >&6
13978 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13979 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13980 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13981 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13982 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13987 for ac_header in stdlib.h unistd.h
13989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13999 # Is the header compilable?
14000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 #include <$ac_header>
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler=yes
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_header_compiler=no
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042 echo "${ECHO_T}$ac_header_compiler" >&6
14044 # Is the header present?
14045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047 cat >conftest.$ac_ext <<_ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <$ac_header>
14055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev/null; then
14063 if test -s conftest.err; then
14064 ac_cpp_err=$ac_c_preproc_warn_flag
14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14072 if test -z "$ac_cpp_err"; then
14073 ac_header_preproc=yes
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ac_header_preproc=no
14080 rm -f conftest.err conftest.$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14108 ## ------------------------------------------ ##
14109 ## Report this to the AC_PACKAGE_NAME lists. ##
14110 ## ------------------------------------------ ##
14113 sed "s/^/$as_me: WARNING: /" >&2
14116 echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 eval "$as_ac_Header=\$ac_header_preproc"
14123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14137 for ac_func in getpagesize
14139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_func" >&5
14141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153 #define $ac_func innocuous_$ac_func
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14161 # include <limits.h>
14163 # include <assert.h>
14168 /* Override any gcc2 internal prototype to avoid an error. */
14173 /* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14182 char (*f) () = $ac_func;
14191 return f != $ac_func;
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 eval "$as_ac_var=no"
14225 rm -f conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230 if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14238 echo "$as_me:$LINENO: checking for working mmap" >&5
14239 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14240 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 if test "$cross_compiling" = yes; then
14244 ac_cv_func_mmap_fixed_mapped=no
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14253 /* malloc might have been renamed as rpl_malloc. */
14256 /* Thanks to Mike Haertel and Jim Avera for this test.
14257 Here is a matrix of mmap possibilities:
14258 mmap private not fixed
14259 mmap private fixed at somewhere currently unmapped
14260 mmap private fixed at somewhere already mapped
14261 mmap shared not fixed
14262 mmap shared fixed at somewhere currently unmapped
14263 mmap shared fixed at somewhere already mapped
14264 For private mappings, we should verify that changes cannot be read()
14265 back from the file, nor mmap's back from the file at a different
14266 address. (There have been systems where private was not correctly
14267 implemented like the infamous i386 svr4.0, and systems where the
14268 VM page cache was not coherent with the file system buffer cache
14269 like early versions of FreeBSD and possibly contemporary NetBSD.)
14270 For shared mappings, we should conversely verify that changes get
14271 propagated back to all the places they're supposed to be.
14273 Grep wants private fixed already mapped.
14274 The main things grep needs to know about mmap are:
14275 * does it exist and is it safe to write into the mmap'd area
14276 * how to use it (BSD variants) */
14279 #include <sys/mman.h>
14281 #if !STDC_HEADERS && !HAVE_STDLIB_H
14285 /* This mess was copied from the GNU getpagesize.h. */
14286 #if !HAVE_GETPAGESIZE
14287 /* Assume that all systems that can run configure have sys/param.h. */
14288 # if !HAVE_SYS_PARAM_H
14289 # define HAVE_SYS_PARAM_H 1
14292 # ifdef _SC_PAGESIZE
14293 # define getpagesize() sysconf(_SC_PAGESIZE)
14294 # else /* no _SC_PAGESIZE */
14295 # if HAVE_SYS_PARAM_H
14296 # include <sys/param.h>
14297 # ifdef EXEC_PAGESIZE
14298 # define getpagesize() EXEC_PAGESIZE
14299 # else /* no EXEC_PAGESIZE */
14301 # define getpagesize() NBPG * CLSIZE
14304 # endif /* no CLSIZE */
14305 # else /* no NBPG */
14307 # define getpagesize() NBPC
14308 # else /* no NBPC */
14310 # define getpagesize() PAGESIZE
14311 # endif /* PAGESIZE */
14312 # endif /* no NBPC */
14313 # endif /* no NBPG */
14314 # endif /* no EXEC_PAGESIZE */
14315 # else /* no HAVE_SYS_PARAM_H */
14316 # define getpagesize() 8192 /* punt totally */
14317 # endif /* no HAVE_SYS_PARAM_H */
14318 # endif /* no _SC_PAGESIZE */
14320 #endif /* no HAVE_GETPAGESIZE */
14325 char *data, *data2, *data3;
14329 pagesize = getpagesize ();
14331 /* First, make a file with some known garbage in it. */
14332 data = (char *) malloc (pagesize);
14335 for (i = 0; i < pagesize; ++i)
14336 *(data + i) = rand ();
14338 fd = creat ("conftest.mmap", 0600);
14341 if (write (fd, data, pagesize) != pagesize)
14345 /* Next, try to mmap the file at a fixed address which already has
14346 something else allocated at it. If we can, also make sure that
14347 we see the same garbage. */
14348 fd = open ("conftest.mmap", O_RDWR);
14351 data2 = (char *) malloc (2 * pagesize);
14354 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14358 for (i = 0; i < pagesize; ++i)
14359 if (*(data + i) != *(data2 + i))
14362 /* Finally, make sure that changes to the mapped area do not
14363 percolate back to the file as seen by read(). (This is a bug on
14364 some variants of i386 svr4.0.) */
14365 for (i = 0; i < pagesize; ++i)
14366 *(data2 + i) = *(data2 + i) + 1;
14367 data3 = (char *) malloc (pagesize);
14370 if (read (fd, data3, pagesize) != pagesize)
14372 for (i = 0; i < pagesize; ++i)
14373 if (*(data + i) != *(data3 + i))
14379 rm -f conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_func_mmap_fixed_mapped=yes
14392 echo "$as_me: program exited with status $ac_status" >&5
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ( exit $ac_status )
14397 ac_cv_func_mmap_fixed_mapped=no
14399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14406 cat >>confdefs.h <<\_ACEOF
14407 #define HAVE_MMAP 1
14411 rm -f conftest.mmap
14415 for ac_func in madvise mprotect
14417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14418 echo "$as_me:$LINENO: checking for $ac_func" >&5
14419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14420 if eval "test \"\${$as_ac_var+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 cat >conftest.$ac_ext <<_ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14431 #define $ac_func innocuous_$ac_func
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func (); below.
14435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14436 <limits.h> exists even on freestanding compilers. */
14439 # include <limits.h>
14441 # include <assert.h>
14446 /* Override any gcc2 internal prototype to avoid an error. */
14451 /* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14454 /* The GNU C library defines this for functions which it implements
14455 to always fail with ENOSYS. Some functions are actually named
14456 something starting with __ and the normal name is an alias. */
14457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14460 char (*f) () = $ac_func;
14469 return f != $ac_func;
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest$ac_exeext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 eval "$as_ac_var=yes"
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 eval "$as_ac_var=no"
14503 rm -f conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14508 if test `eval echo '${'$as_ac_var'}'` = yes; then
14509 cat >>confdefs.h <<_ACEOF
14510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14516 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14518 cat >>confdefs.h <<\_ACEOF
14524 rm -f doc/config.status
14525 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14527 ac_config_commands="$ac_config_commands default"
14534 cat >confcache <<\_ACEOF
14535 # This file is a shell script that caches the results of configure
14536 # tests run on this system so they can be shared between configure
14537 # scripts and configure runs, see configure's option --config-cache.
14538 # It is not useful on other systems. If it contains results you don't
14539 # want to keep, you may remove or edit it.
14541 # config.status only pays attention to the cache file if you give it
14542 # the --recheck option to rerun configure.
14544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14546 # following values.
14550 # The following way of writing the cache mishandles newlines in values,
14551 # but we know of no workaround that is simple, portable, and efficient.
14552 # So, don't put newlines in cache variables' values.
14553 # Ultrix sh set writes to stderr and can't be redirected directly,
14554 # and sets the high bit in the cache file unless we assign to the vars.
14557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14559 # `set' does not quote correctly, so add quotes (double-quote
14560 # substitution turns \\\\ into \\, and sed turns \\ into \).
14563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14566 # `set' quotes correctly as required by POSIX, so do not add quotes.
14568 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14577 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14579 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14580 if test -w $cache_file; then
14581 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14582 cat confcache >$cache_file
14584 echo "not updating unwritable cache $cache_file"
14589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14590 # Let make expand exec_prefix.
14591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14595 # trailing colons and then remove the whole line if VPATH becomes empty
14596 # (actually we leave an empty line to preserve line numbers).
14597 if test "x$srcdir" = x.; then
14598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14599 s/:*\$(srcdir):*/:/;
14600 s/:*\${srcdir}:*/:/;
14602 s/^\([^=]*=[ ]*\):*/\1/;
14608 DEFS=-DHAVE_CONFIG_H
14612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14613 # 1. Remove the extension, and $U if already installed.
14614 ac_i=`echo "$ac_i" |
14615 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14617 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14618 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14620 LIBOBJS=$ac_libobjs
14622 LTLIBOBJS=$ac_ltlibobjs
14625 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14626 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14627 Usually this means the macro was only invoked conditionally." >&5
14628 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14629 Usually this means the macro was only invoked conditionally." >&2;}
14630 { (exit 1); exit 1; }; }
14632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14633 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14634 Usually this means the macro was only invoked conditionally." >&5
14635 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14636 Usually this means the macro was only invoked conditionally." >&2;}
14637 { (exit 1); exit 1; }; }
14639 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14640 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14641 Usually this means the macro was only invoked conditionally." >&5
14642 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14643 Usually this means the macro was only invoked conditionally." >&2;}
14644 { (exit 1); exit 1; }; }
14646 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14647 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14648 Usually this means the macro was only invoked conditionally." >&5
14649 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14650 Usually this means the macro was only invoked conditionally." >&2;}
14651 { (exit 1); exit 1; }; }
14654 : ${CONFIG_STATUS=./config.status}
14655 ac_clean_files_save=$ac_clean_files
14656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14657 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14658 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14659 cat >$CONFIG_STATUS <<_ACEOF
14661 # Generated by $as_me.
14662 # Run this file to recreate the current configuration.
14663 # Compiler output produced by configure, useful for debugging
14664 # configure, is in config.log if it exists.
14667 ac_cs_recheck=false
14669 SHELL=\${CONFIG_SHELL-$SHELL}
14672 cat >>$CONFIG_STATUS <<\_ACEOF
14673 ## --------------------- ##
14674 ## M4sh Initialization. ##
14675 ## --------------------- ##
14677 # Be Bourne compatible
14678 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14681 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14682 # is contrary to our usage. Disable this feature.
14683 alias -g '${1+"$@"}'='"$@"'
14684 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14687 DUALCASE=1; export DUALCASE # for MKS sh
14689 # Support unset when possible.
14690 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14697 # Work around bugs in pre-3.0 UWIN ksh.
14698 $as_unset ENV MAIL MAILPATH
14705 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14706 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14707 LC_TELEPHONE LC_TIME
14709 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14710 eval $as_var=C; export $as_var
14716 # Required to use basename.
14717 if expr a : '\(a\)' >/dev/null 2>&1; then
14723 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14724 as_basename=basename
14730 # Name of the executable.
14731 as_me=`$as_basename "$0" ||
14732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14733 X"$0" : 'X\(//\)$' \| \
14734 X"$0" : 'X\(/\)$' \| \
14735 . : '\(.\)' 2>/dev/null ||
14737 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14738 /^X\/\(\/\/\)$/{ s//\1/; q; }
14739 /^X\/\(\/\).*/{ s//\1/; q; }
14743 # PATH needs CR, and LINENO needs CR and PATH.
14744 # Avoid depending upon Character Ranges.
14745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14748 as_cr_digits='0123456789'
14749 as_cr_alnum=$as_cr_Letters$as_cr_digits
14751 # The user is always right.
14752 if test "${PATH_SEPARATOR+set}" != set; then
14753 echo "#! /bin/sh" >conf$$.sh
14754 echo "exit 0" >>conf$$.sh
14756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14765 as_lineno_1=$LINENO
14766 as_lineno_2=$LINENO
14767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14768 test "x$as_lineno_1" != "x$as_lineno_2" &&
14769 test "x$as_lineno_3" = "x$as_lineno_2" || {
14770 # Find who we are. Look in the path if we contain no path at all
14773 *[\\/]* ) as_myself=$0 ;;
14774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14778 test -z "$as_dir" && as_dir=.
14779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14784 # We did not find ourselves, most probably we were run as `sh COMMAND'
14785 # in which case we are not to be found in the path.
14786 if test "x$as_myself" = x; then
14789 if test ! -f "$as_myself"; then
14790 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14791 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14792 { (exit 1); exit 1; }; }
14794 case $CONFIG_SHELL in
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14800 test -z "$as_dir" && as_dir=.
14801 for as_base in sh bash ksh sh5; do
14804 if ("$as_dir/$as_base" -c '
14805 as_lineno_1=$LINENO
14806 as_lineno_2=$LINENO
14807 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14808 test "x$as_lineno_1" != "x$as_lineno_2" &&
14809 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14810 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14811 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14812 CONFIG_SHELL=$as_dir/$as_base
14813 export CONFIG_SHELL
14814 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14823 # uniformly replaced by the line number. The first 'sed' inserts a
14824 # line-number line before each line; the second 'sed' does the real
14825 # work. The second script uses 'N' to pair each line-number line
14826 # with the numbered line, and appends trailing '-' during
14827 # substitution so that $LINENO is not a special case at line end.
14828 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14829 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14830 sed '=' <$as_myself |
14835 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14838 s,^['$as_cr_digits']*\n,,
14839 ' >$as_me.lineno &&
14840 chmod +x $as_me.lineno ||
14841 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14842 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14843 { (exit 1); exit 1; }; }
14845 # Don't try to exec as it changes $[0], causing all sort of problems
14846 # (the dirname of $[0] is not the place where we might find the
14847 # original and so on. Autoconf is especially sensible to this).
14849 # Exit status is that of the last command.
14854 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14855 *c*,-n*) ECHO_N= ECHO_C='
14857 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14858 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14861 if expr a : '\(a\)' >/dev/null 2>&1; then
14867 rm -f conf$$ conf$$.exe conf$$.file
14869 if ln -s conf$$.file conf$$ 2>/dev/null; then
14870 # We could just check for DJGPP; but this test a) works b) is more generic
14871 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14872 if test -f conf$$.exe; then
14873 # Don't use ln at all; we don't have any links
14878 elif ln conf$$.file conf$$ 2>/dev/null; then
14883 rm -f conf$$ conf$$.exe conf$$.file
14885 if mkdir -p . 2>/dev/null; then
14888 test -d ./-p && rmdir ./-p
14892 as_executable_p="test -f"
14894 # Sed expression to map a string onto a valid CPP name.
14895 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14897 # Sed expression to map a string onto a valid variable name.
14898 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14902 # We need space, tab and new line, in precisely that order.
14912 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14913 # report actual input values of CONFIG_FILES etc. instead of their
14914 # values after options handling. Logging --version etc. is OK.
14918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14919 ## Running $as_me. ##
14924 This file was extended by $as_me, which was
14925 generated by GNU Autoconf 2.59. Invocation command line was
14927 CONFIG_FILES = $CONFIG_FILES
14928 CONFIG_HEADERS = $CONFIG_HEADERS
14929 CONFIG_LINKS = $CONFIG_LINKS
14930 CONFIG_COMMANDS = $CONFIG_COMMANDS
14934 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14938 # Files that config.status was made for.
14939 if test -n "$ac_config_files"; then
14940 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14943 if test -n "$ac_config_headers"; then
14944 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14947 if test -n "$ac_config_links"; then
14948 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14951 if test -n "$ac_config_commands"; then
14952 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14955 cat >>$CONFIG_STATUS <<\_ACEOF
14958 \`$as_me' instantiates files from templates according to the
14959 current configuration.
14961 Usage: $0 [OPTIONS] [FILE]...
14963 -h, --help print this help, then exit
14964 -V, --version print version number, then exit
14965 -q, --quiet do not print progress messages
14966 -d, --debug don't remove temporary files
14967 --recheck update $as_me by reconfiguring in the same conditions
14968 --file=FILE[:TEMPLATE]
14969 instantiate the configuration file FILE
14970 --header=FILE[:TEMPLATE]
14971 instantiate the configuration header FILE
14973 Configuration files:
14976 Configuration headers:
14979 Configuration commands:
14982 Report bugs to <bug-autoconf@gnu.org>."
14985 cat >>$CONFIG_STATUS <<_ACEOF
14988 configured by $0, generated by GNU Autoconf 2.59,
14989 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14991 Copyright (C) 2003 Free Software Foundation, Inc.
14992 This config.status script is free software; the Free Software Foundation
14993 gives unlimited permission to copy, distribute and modify it."
14998 cat >>$CONFIG_STATUS <<\_ACEOF
14999 # If no file are specified by the user, then we need to provide default
15000 # value. By we need to know if files were specified by the user.
15006 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15007 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15015 *) # This is not an option, so the user has probably given explicit
15018 ac_need_defaults=false;;
15022 # Handling of the options.
15024 cat >>$CONFIG_STATUS <<\_ACEOF
15025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15027 --version | --vers* | -V )
15028 echo "$ac_cs_version"; exit 0 ;;
15030 # Conflict between --help and --header
15031 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15032 Try \`$0 --help' for more information." >&5
15033 echo "$as_me: error: ambiguous option: $1
15034 Try \`$0 --help' for more information." >&2;}
15035 { (exit 1); exit 1; }; };;
15036 --help | --hel | -h )
15037 echo "$ac_cs_usage"; exit 0 ;;
15038 --debug | --d* | -d )
15040 --file | --fil | --fi | --f )
15042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15043 ac_need_defaults=false;;
15044 --header | --heade | --head | --hea )
15046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15047 ac_need_defaults=false;;
15048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15052 # This is an error.
15053 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15054 Try \`$0 --help' for more information." >&5
15055 echo "$as_me: error: unrecognized option: $1
15056 Try \`$0 --help' for more information." >&2;}
15057 { (exit 1); exit 1; }; } ;;
15059 *) ac_config_targets="$ac_config_targets $1" ;;
15065 ac_configure_extra_args=
15067 if $ac_cs_silent; then
15069 ac_configure_extra_args="$ac_configure_extra_args --silent"
15073 cat >>$CONFIG_STATUS <<_ACEOF
15074 if \$ac_cs_recheck; then
15075 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15076 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15081 cat >>$CONFIG_STATUS <<_ACEOF
15083 # INIT-COMMANDS section.
15086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15093 cat >>$CONFIG_STATUS <<\_ACEOF
15094 for ac_config_target in $ac_config_targets
15096 case "$ac_config_target" in
15097 # Handling of arguments.
15098 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15099 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15100 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15101 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15102 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15103 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15104 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15106 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15107 { (exit 1); exit 1; }; };;
15111 # If the user did not use the arguments to specify the items to instantiate,
15112 # then the envvar interface is used. Set only those that are not.
15113 # We use the long form for the default assignment because of an extremely
15114 # bizarre bug on SunOS 4.1.3.
15115 if $ac_need_defaults; then
15116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15121 # Have a temporary directory for convenience. Make it in the build tree
15122 # simply because there is no reason to put it here, and in addition,
15123 # creating and moving files from /tmp can sometimes cause problems.
15124 # Create a temporary directory, and hook for its removal unless debugging.
15127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15128 trap '{ (exit 1); exit 1; }' 1 2 13 15
15131 # Create a (secure) tmp directory for tmp files.
15134 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15135 test -n "$tmp" && test -d "$tmp"
15138 tmp=./confstat$$-$RANDOM
15139 (umask 077 && mkdir $tmp)
15142 echo "$me: cannot create a temporary directory in ." >&2
15143 { (exit 1); exit 1; }
15148 cat >>$CONFIG_STATUS <<_ACEOF
15151 # CONFIG_FILES section.
15154 # No need to generate the scripts if there are no CONFIG_FILES.
15155 # This happens for instance when ./config.status config.h
15156 if test -n "\$CONFIG_FILES"; then
15157 # Protect against being on the right side of a sed subst in config.status.
15158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15160 s,@SHELL@,$SHELL,;t t
15161 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15162 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15163 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15164 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15165 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15166 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15167 s,@exec_prefix@,$exec_prefix,;t t
15168 s,@prefix@,$prefix,;t t
15169 s,@program_transform_name@,$program_transform_name,;t t
15170 s,@bindir@,$bindir,;t t
15171 s,@sbindir@,$sbindir,;t t
15172 s,@libexecdir@,$libexecdir,;t t
15173 s,@datadir@,$datadir,;t t
15174 s,@sysconfdir@,$sysconfdir,;t t
15175 s,@sharedstatedir@,$sharedstatedir,;t t
15176 s,@localstatedir@,$localstatedir,;t t
15177 s,@libdir@,$libdir,;t t
15178 s,@includedir@,$includedir,;t t
15179 s,@oldincludedir@,$oldincludedir,;t t
15180 s,@infodir@,$infodir,;t t
15181 s,@mandir@,$mandir,;t t
15182 s,@build_alias@,$build_alias,;t t
15183 s,@host_alias@,$host_alias,;t t
15184 s,@target_alias@,$target_alias,;t t
15185 s,@DEFS@,$DEFS,;t t
15186 s,@ECHO_C@,$ECHO_C,;t t
15187 s,@ECHO_N@,$ECHO_N,;t t
15188 s,@ECHO_T@,$ECHO_T,;t t
15189 s,@LIBS@,$LIBS,;t t
15190 s,@build@,$build,;t t
15191 s,@build_cpu@,$build_cpu,;t t
15192 s,@build_vendor@,$build_vendor,;t t
15193 s,@build_os@,$build_os,;t t
15194 s,@host@,$host,;t t
15195 s,@host_cpu@,$host_cpu,;t t
15196 s,@host_vendor@,$host_vendor,;t t
15197 s,@host_os@,$host_os,;t t
15198 s,@target@,$target,;t t
15199 s,@target_cpu@,$target_cpu,;t t
15200 s,@target_vendor@,$target_vendor,;t t
15201 s,@target_os@,$target_os,;t t
15203 s,@CFLAGS@,$CFLAGS,;t t
15204 s,@LDFLAGS@,$LDFLAGS,;t t
15205 s,@CPPFLAGS@,$CPPFLAGS,;t t
15206 s,@ac_ct_CC@,$ac_ct_CC,;t t
15207 s,@EXEEXT@,$EXEEXT,;t t
15208 s,@OBJEXT@,$OBJEXT,;t t
15209 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15210 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15211 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15212 s,@CYGPATH_W@,$CYGPATH_W,;t t
15213 s,@PACKAGE@,$PACKAGE,;t t
15214 s,@VERSION@,$VERSION,;t t
15215 s,@ACLOCAL@,$ACLOCAL,;t t
15216 s,@AUTOCONF@,$AUTOCONF,;t t
15217 s,@AUTOMAKE@,$AUTOMAKE,;t t
15218 s,@AUTOHEADER@,$AUTOHEADER,;t t
15219 s,@MAKEINFO@,$MAKEINFO,;t t
15220 s,@install_sh@,$install_sh,;t t
15221 s,@STRIP@,$STRIP,;t t
15222 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15223 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15224 s,@mkdir_p@,$mkdir_p,;t t
15226 s,@SET_MAKE@,$SET_MAKE,;t t
15227 s,@am__leading_dot@,$am__leading_dot,;t t
15228 s,@AMTAR@,$AMTAR,;t t
15229 s,@am__tar@,$am__tar,;t t
15230 s,@am__untar@,$am__untar,;t t
15231 s,@DEPDIR@,$DEPDIR,;t t
15232 s,@am__include@,$am__include,;t t
15233 s,@am__quote@,$am__quote,;t t
15234 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15235 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15236 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15237 s,@CCDEPMODE@,$CCDEPMODE,;t t
15238 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15239 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15241 s,@ac_ct_AR@,$ac_ct_AR,;t t
15242 s,@RANLIB@,$RANLIB,;t t
15243 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15244 s,@LN_S@,$LN_S,;t t
15245 s,@LIBTOOL@,$LIBTOOL,;t t
15246 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15247 s,@NO_WERROR@,$NO_WERROR,;t t
15248 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15249 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15250 s,@MAINT@,$MAINT,;t t
15251 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15252 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15253 s,@host_noncanonical@,$host_noncanonical,;t t
15254 s,@target_noncanonical@,$target_noncanonical,;t t
15255 s,@bfdlibdir@,$bfdlibdir,;t t
15256 s,@bfdincludedir@,$bfdincludedir,;t t
15258 s,@EGREP@,$EGREP,;t t
15259 s,@ALLOCA@,$ALLOCA,;t t
15260 s,@USE_NLS@,$USE_NLS,;t t
15261 s,@MSGFMT@,$MSGFMT,;t t
15262 s,@GMSGFMT@,$GMSGFMT,;t t
15263 s,@XGETTEXT@,$XGETTEXT,;t t
15264 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15265 s,@CATALOGS@,$CATALOGS,;t t
15266 s,@CATOBJEXT@,$CATOBJEXT,;t t
15267 s,@DATADIRNAME@,$DATADIRNAME,;t t
15268 s,@GMOFILES@,$GMOFILES,;t t
15269 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15270 s,@INTLDEPS@,$INTLDEPS,;t t
15271 s,@INTLLIBS@,$INTLLIBS,;t t
15272 s,@INTLOBJS@,$INTLOBJS,;t t
15273 s,@POFILES@,$POFILES,;t t
15274 s,@POSUB@,$POSUB,;t t
15275 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15276 s,@GT_NO@,$GT_NO,;t t
15277 s,@GT_YES@,$GT_YES,;t t
15278 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15280 s,@HDEFINES@,$HDEFINES,;t t
15281 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15282 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15283 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15284 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15285 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15286 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15287 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15288 s,@COREFILE@,$COREFILE,;t t
15289 s,@COREFLAG@,$COREFLAG,;t t
15290 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15291 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15292 s,@TDEFINES@,$TDEFINES,;t t
15293 s,@wordsize@,$wordsize,;t t
15294 s,@bfd_libs@,$bfd_libs,;t t
15295 s,@all_backends@,$all_backends,;t t
15296 s,@bfd_backends@,$bfd_backends,;t t
15297 s,@bfd_machines@,$bfd_machines,;t t
15298 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15299 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15300 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15301 s,@tdefaults@,$tdefaults,;t t
15302 s,@datarootdir@,$datarootdir,;t t
15303 s,@docdir@,$docdir,;t t
15304 s,@htmldir@,$htmldir,;t t
15305 s,@LIBOBJS@,$LIBOBJS,;t t
15306 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15311 cat >>$CONFIG_STATUS <<\_ACEOF
15312 # Split the substitutions into bite-sized pieces for seds with
15313 # small command number limits, like on Digital OSF/1 and HP-UX.
15314 ac_max_sed_lines=48
15315 ac_sed_frag=1 # Number of current file.
15316 ac_beg=1 # First line for current file.
15317 ac_end=$ac_max_sed_lines # Line after last line for current file.
15320 while $ac_more_lines; do
15321 if test $ac_beg -gt 1; then
15322 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15324 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15326 if test ! -s $tmp/subs.frag; then
15327 ac_more_lines=false
15329 # The purpose of the label and of the branching condition is to
15330 # speed up the sed processing (if there are no `@' at all, there
15331 # is no need to browse any of the substitutions).
15332 # These are the two extra sed commands mentioned above.
15334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15335 if test -z "$ac_sed_cmds"; then
15336 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15338 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15340 ac_sed_frag=`expr $ac_sed_frag + 1`
15342 ac_end=`expr $ac_end + $ac_max_sed_lines`
15345 if test -z "$ac_sed_cmds"; then
15348 fi # test -n "$CONFIG_FILES"
15351 cat >>$CONFIG_STATUS <<\_ACEOF
15352 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15355 - | *:- | *:-:* ) # input from stdin
15357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15361 * ) ac_file_in=$ac_file.in ;;
15364 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15366 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15367 X"$ac_file" : 'X\(//\)[^/]' \| \
15368 X"$ac_file" : 'X\(//\)$' \| \
15369 X"$ac_file" : 'X\(/\)' \| \
15370 . : '\(.\)' 2>/dev/null ||
15372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15374 /^X\(\/\/\)$/{ s//\1/; q; }
15375 /^X\(\/\).*/{ s//\1/; q; }
15377 { if $as_mkdir_p; then
15382 while test ! -d "$as_dir"; do
15383 as_dirs="$as_dir $as_dirs"
15384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15386 X"$as_dir" : 'X\(//\)[^/]' \| \
15387 X"$as_dir" : 'X\(//\)$' \| \
15388 X"$as_dir" : 'X\(/\)' \| \
15389 . : '\(.\)' 2>/dev/null ||
15391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15393 /^X\(\/\/\)$/{ s//\1/; q; }
15394 /^X\(\/\).*/{ s//\1/; q; }
15397 test ! -n "$as_dirs" || mkdir $as_dirs
15398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15400 { (exit 1); exit 1; }; }; }
15404 if test "$ac_dir" != .; then
15405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15406 # A "../" for each directory in $ac_dir_suffix.
15407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15409 ac_dir_suffix= ac_top_builddir=
15413 .) # No --srcdir option. We are building in place.
15415 if test -z "$ac_top_builddir"; then
15418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15420 [\\/]* | ?:[\\/]* ) # Absolute path.
15421 ac_srcdir=$srcdir$ac_dir_suffix;
15422 ac_top_srcdir=$srcdir ;;
15423 *) # Relative path.
15424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15425 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15428 # Do not use `cd foo && pwd` to compute absolute paths, because
15429 # the directories may not exist.
15431 .) ac_abs_builddir="$ac_dir";;
15434 .) ac_abs_builddir=`pwd`;;
15435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15436 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15439 case $ac_abs_builddir in
15440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15442 case ${ac_top_builddir}. in
15443 .) ac_abs_top_builddir=$ac_abs_builddir;;
15444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15448 case $ac_abs_builddir in
15449 .) ac_abs_srcdir=$ac_srcdir;;
15452 .) ac_abs_srcdir=$ac_abs_builddir;;
15453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15457 case $ac_abs_builddir in
15458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15460 case $ac_top_srcdir in
15461 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15473 if test x"$ac_file" != x-; then
15474 { echo "$as_me:$LINENO: creating $ac_file" >&5
15475 echo "$as_me: creating $ac_file" >&6;}
15478 # Let's still pretend it is `configure' which instantiates (i.e., don't
15479 # use $as_me), people would be surprised to read:
15480 # /* config.h. Generated by config.status. */
15481 if test x"$ac_file" = x-; then
15484 configure_input="$ac_file. "
15486 configure_input=$configure_input"Generated from `echo $ac_file_in |
15487 sed 's,.*/,,'` by configure."
15489 # First look for the input files in the build tree, otherwise in the
15491 ac_file_inputs=`IFS=:
15492 for f in $ac_file_in; do
15494 -) echo $tmp/stdin ;;
15496 # Absolute (can't be DOS-style, as IFS=:)
15497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15498 echo "$as_me: error: cannot find input file: $f" >&2;}
15499 { (exit 1); exit 1; }; }
15502 if test -f "$f"; then
15505 elif test -f "$srcdir/$f"; then
15510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15511 echo "$as_me: error: cannot find input file: $f" >&2;}
15512 { (exit 1); exit 1; }; }
15515 done` || { (exit 1); exit 1; }
15517 cat >>$CONFIG_STATUS <<_ACEOF
15521 cat >>$CONFIG_STATUS <<\_ACEOF
15523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15524 s,@configure_input@,$configure_input,;t t
15525 s,@srcdir@,$ac_srcdir,;t t
15526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15527 s,@top_srcdir@,$ac_top_srcdir,;t t
15528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15529 s,@builddir@,$ac_builddir,;t t
15530 s,@abs_builddir@,$ac_abs_builddir,;t t
15531 s,@top_builddir@,$ac_top_builddir,;t t
15532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15533 s,@INSTALL@,$ac_INSTALL,;t t
15534 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15536 if test x"$ac_file" != x-; then
15537 mv $tmp/out $ac_file
15545 cat >>$CONFIG_STATUS <<\_ACEOF
15548 # CONFIG_HEADER section.
15551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15554 # ac_d sets the value in "#define NAME VALUE" lines.
15555 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15556 ac_dB='[ ].*$,\1#\2'
15559 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15560 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15561 ac_uB='$,\1#\2define\3'
15565 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15568 - | *:- | *:-:* ) # input from stdin
15570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15574 * ) ac_file_in=$ac_file.in ;;
15577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15578 echo "$as_me: creating $ac_file" >&6;}
15580 # First look for the input files in the build tree, otherwise in the
15582 ac_file_inputs=`IFS=:
15583 for f in $ac_file_in; do
15585 -) echo $tmp/stdin ;;
15587 # Absolute (can't be DOS-style, as IFS=:)
15588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15589 echo "$as_me: error: cannot find input file: $f" >&2;}
15590 { (exit 1); exit 1; }; }
15591 # Do quote $f, to prevent DOS paths from being IFS'd.
15594 if test -f "$f"; then
15597 elif test -f "$srcdir/$f"; then
15602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15603 echo "$as_me: error: cannot find input file: $f" >&2;}
15604 { (exit 1); exit 1; }; }
15607 done` || { (exit 1); exit 1; }
15608 # Remove the trailing spaces.
15609 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15613 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15614 # `conftest.undefs', that substitutes the proper values into
15615 # config.h.in to produce config.h. The first handles `#define'
15616 # templates, and the second `#undef' templates.
15617 # And first: Protect against being on the right side of a sed subst in
15618 # config.status. Protect against being in an unquoted here document
15619 # in config.status.
15620 rm -f conftest.defines conftest.undefs
15621 # Using a here document instead of a string reduces the quoting nightmare.
15622 # Putting comments in sed scripts is not portable.
15624 # `end' is used to avoid that the second main sed command (meant for
15625 # 0-ary CPP macros) applies to n-ary macro definitions.
15626 # See the Autoconf documentation for `clear'.
15627 cat >confdef2sed.sed <<\_ACEOF
15632 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15634 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15637 # If some macros were called several times there might be several times
15638 # the same #defines, which is useless. Nevertheless, we may not want to
15639 # sort them, since we want the *last* AC-DEFINE to be honored.
15640 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15641 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15642 rm -f confdef2sed.sed
15644 # This sed command replaces #undef with comments. This is necessary, for
15645 # example, in the case of _POSIX_SOURCE, which is predefined and required
15646 # on some systems where configure will not decide to define it.
15647 cat >>conftest.undefs <<\_ACEOF
15648 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15651 # Break up conftest.defines because some shells have a limit on the size
15652 # of here documents, and old seds have small limits too (100 cmds).
15653 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15654 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15655 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15656 echo ' :' >>$CONFIG_STATUS
15657 rm -f conftest.tail
15658 while grep . conftest.defines >/dev/null
15660 # Write a limited-size here document to $tmp/defines.sed.
15661 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15662 # Speed up: don't consider the non `#define' lines.
15663 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15664 # Work around the forget-to-reset-the-flag bug.
15665 echo 't clr' >>$CONFIG_STATUS
15666 echo ': clr' >>$CONFIG_STATUS
15667 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15669 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15671 mv $tmp/out $tmp/in
15673 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15674 rm -f conftest.defines
15675 mv conftest.tail conftest.defines
15677 rm -f conftest.defines
15678 echo ' fi # grep' >>$CONFIG_STATUS
15679 echo >>$CONFIG_STATUS
15681 # Break up conftest.undefs because some shells have a limit on the size
15682 # of here documents, and old seds have small limits too (100 cmds).
15683 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15684 rm -f conftest.tail
15685 while grep . conftest.undefs >/dev/null
15687 # Write a limited-size here document to $tmp/undefs.sed.
15688 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15689 # Speed up: don't consider the non `#undef'
15690 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15691 # Work around the forget-to-reset-the-flag bug.
15692 echo 't clr' >>$CONFIG_STATUS
15693 echo ': clr' >>$CONFIG_STATUS
15694 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15696 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15698 mv $tmp/out $tmp/in
15700 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15701 rm -f conftest.undefs
15702 mv conftest.tail conftest.undefs
15704 rm -f conftest.undefs
15706 cat >>$CONFIG_STATUS <<\_ACEOF
15707 # Let's still pretend it is `configure' which instantiates (i.e., don't
15708 # use $as_me), people would be surprised to read:
15709 # /* config.h. Generated by config.status. */
15710 if test x"$ac_file" = x-; then
15711 echo "/* Generated by configure. */" >$tmp/config.h
15713 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15715 cat $tmp/in >>$tmp/config.h
15717 if test x"$ac_file" != x-; then
15718 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15719 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15720 echo "$as_me: $ac_file is unchanged" >&6;}
15722 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15724 X"$ac_file" : 'X\(//\)[^/]' \| \
15725 X"$ac_file" : 'X\(//\)$' \| \
15726 X"$ac_file" : 'X\(/\)' \| \
15727 . : '\(.\)' 2>/dev/null ||
15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15731 /^X\(\/\/\)$/{ s//\1/; q; }
15732 /^X\(\/\).*/{ s//\1/; q; }
15734 { if $as_mkdir_p; then
15739 while test ! -d "$as_dir"; do
15740 as_dirs="$as_dir $as_dirs"
15741 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743 X"$as_dir" : 'X\(//\)[^/]' \| \
15744 X"$as_dir" : 'X\(//\)$' \| \
15745 X"$as_dir" : 'X\(/\)' \| \
15746 . : '\(.\)' 2>/dev/null ||
15748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15750 /^X\(\/\/\)$/{ s//\1/; q; }
15751 /^X\(\/\).*/{ s//\1/; q; }
15754 test ! -n "$as_dirs" || mkdir $as_dirs
15755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15756 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15757 { (exit 1); exit 1; }; }; }
15760 mv $tmp/config.h $ac_file
15764 rm -f $tmp/config.h
15766 # Compute $ac_file's index in $config_headers.
15768 for _am_header in $config_headers :; do
15769 case $_am_header in
15770 $ac_file | $ac_file:* )
15773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15776 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15777 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X$ac_file : 'X\(//\)[^/]' \| \
15779 X$ac_file : 'X\(//\)$' \| \
15780 X$ac_file : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15787 s/.*/./; q'`/stamp-h$_am_stamp_count
15790 cat >>$CONFIG_STATUS <<\_ACEOF
15793 # CONFIG_COMMANDS section.
15795 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15798 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800 X"$ac_dest" : 'X\(//\)[^/]' \| \
15801 X"$ac_dest" : 'X\(//\)$' \| \
15802 X"$ac_dest" : 'X\(/\)' \| \
15803 . : '\(.\)' 2>/dev/null ||
15805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15807 /^X\(\/\/\)$/{ s//\1/; q; }
15808 /^X\(\/\).*/{ s//\1/; q; }
15810 { if $as_mkdir_p; then
15815 while test ! -d "$as_dir"; do
15816 as_dirs="$as_dir $as_dirs"
15817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15819 X"$as_dir" : 'X\(//\)[^/]' \| \
15820 X"$as_dir" : 'X\(//\)$' \| \
15821 X"$as_dir" : 'X\(/\)' \| \
15822 . : '\(.\)' 2>/dev/null ||
15824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15826 /^X\(\/\/\)$/{ s//\1/; q; }
15827 /^X\(\/\).*/{ s//\1/; q; }
15830 test ! -n "$as_dirs" || mkdir $as_dirs
15831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15833 { (exit 1); exit 1; }; }; }
15837 if test "$ac_dir" != .; then
15838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15839 # A "../" for each directory in $ac_dir_suffix.
15840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15842 ac_dir_suffix= ac_top_builddir=
15846 .) # No --srcdir option. We are building in place.
15848 if test -z "$ac_top_builddir"; then
15851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15853 [\\/]* | ?:[\\/]* ) # Absolute path.
15854 ac_srcdir=$srcdir$ac_dir_suffix;
15855 ac_top_srcdir=$srcdir ;;
15856 *) # Relative path.
15857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15861 # Do not use `cd foo && pwd` to compute absolute paths, because
15862 # the directories may not exist.
15864 .) ac_abs_builddir="$ac_dir";;
15867 .) ac_abs_builddir=`pwd`;;
15868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15869 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15872 case $ac_abs_builddir in
15873 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15875 case ${ac_top_builddir}. in
15876 .) ac_abs_top_builddir=$ac_abs_builddir;;
15877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15881 case $ac_abs_builddir in
15882 .) ac_abs_srcdir=$ac_srcdir;;
15885 .) ac_abs_srcdir=$ac_abs_builddir;;
15886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15890 case $ac_abs_builddir in
15891 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15893 case $ac_top_srcdir in
15894 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15902 echo "$as_me: executing $ac_dest commands" >&6;}
15904 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15905 # Strip MF so we end up with the name of the file.
15906 mf=`echo "$mf" | sed -e 's/:.*$//'`
15907 # Check whether this is an Automake generated Makefile or not.
15908 # We used to match only the files named `Makefile.in', but
15909 # some people rename them; so instead we look at the file content.
15910 # Grep'ing the first line is not enough: some people post-process
15911 # each Makefile.in and add a new line on top of each file to say so.
15912 # So let's grep whole file.
15913 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15914 dirpart=`(dirname "$mf") 2>/dev/null ||
15915 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15916 X"$mf" : 'X\(//\)[^/]' \| \
15917 X"$mf" : 'X\(//\)$' \| \
15918 X"$mf" : 'X\(/\)' \| \
15919 . : '\(.\)' 2>/dev/null ||
15921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15923 /^X\(\/\/\)$/{ s//\1/; q; }
15924 /^X\(\/\).*/{ s//\1/; q; }
15929 # Extract the definition of DEPDIR, am__include, and am__quote
15930 # from the Makefile without running `make'.
15931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15932 test -z "$DEPDIR" && continue
15933 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15934 test -z "am__include" && continue
15935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15936 # When using ansi2knr, U may be empty or an underscore; expand it
15937 U=`sed -n 's/^U = //p' < "$mf"`
15938 # Find all dependency output files, they are included files with
15939 # $(DEPDIR) in their names. We invoke sed twice because it is the
15940 # simplest approach to changing $(DEPDIR) to its actual value in the
15942 for file in `sed -n "
15943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15945 # Make sure the directory exists.
15946 test -f "$dirpart/$file" && continue
15947 fdir=`(dirname "$file") 2>/dev/null ||
15948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15949 X"$file" : 'X\(//\)[^/]' \| \
15950 X"$file" : 'X\(//\)$' \| \
15951 X"$file" : 'X\(/\)' \| \
15952 . : '\(.\)' 2>/dev/null ||
15954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15956 /^X\(\/\/\)$/{ s//\1/; q; }
15957 /^X\(\/\).*/{ s//\1/; q; }
15959 { if $as_mkdir_p; then
15960 mkdir -p $dirpart/$fdir
15962 as_dir=$dirpart/$fdir
15964 while test ! -d "$as_dir"; do
15965 as_dirs="$as_dir $as_dirs"
15966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15968 X"$as_dir" : 'X\(//\)[^/]' \| \
15969 X"$as_dir" : 'X\(//\)$' \| \
15970 X"$as_dir" : 'X\(/\)' \| \
15971 . : '\(.\)' 2>/dev/null ||
15973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15975 /^X\(\/\/\)$/{ s//\1/; q; }
15976 /^X\(\/\).*/{ s//\1/; q; }
15979 test ! -n "$as_dirs" || mkdir $as_dirs
15980 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15981 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15982 { (exit 1); exit 1; }; }; }
15984 # echo "creating $dirpart/$file"
15985 echo '# dummy' > "$dirpart/$file"
15989 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15994 cat >>$CONFIG_STATUS <<\_ACEOF
15996 { (exit 0); exit 0; }
15998 chmod +x $CONFIG_STATUS
15999 ac_clean_files=$ac_clean_files_save
16002 # configure is writing to config.log, and then calls config.status.
16003 # config.status does its own redirection, appending to config.log.
16004 # Unfortunately, on DOS this fails, as config.log is still kept open
16005 # by configure, so config.status won't be able to write to it; its
16006 # output is simply discarded. So we exec the FD to /dev/null,
16007 # effectively closing config.log, so it can be properly (re)opened and
16008 # appended to by config.status. When coming back to configure, we
16009 # need to make the FD available again.
16010 if test "$no_create" != yes; then
16012 ac_config_status_args=
16013 test "$silent" = yes &&
16014 ac_config_status_args="$ac_config_status_args --quiet"
16016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16019 # would make configure fail if this is the last instruction.
16020 $ac_cs_success || { (exit 1); exit 1; }