bfd/
[binutils.git] / bfd / configure
blob92083027822268b64c7d8d77bb40bc021472c969
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
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`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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 VERSUFFIX REPORT_BUGS_TO 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'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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}
754 ac_env_CC_value=$CC
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.
780 cat <<_ACEOF
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.
790 Configuration:
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 \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
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]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
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
839 System types:
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]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
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
870 Optional Packages:
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-versuffix=SFX Append SFX to the version string
877 --with-bugurl=URL Direct users to URL to report a bug
878 --with-included-gettext use the GNU gettext library included here
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
892 _ACEOF
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 cd $ac_popdir
981 done
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 ac_aux_dir=
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1344 done
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1380 build=$ac_cv_build
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1402 host=$ac_cv_host
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking target system type" >&5
1409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410 if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 ac_cv_target_alias=$target_alias
1414 test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423 echo "${ECHO_T}$ac_cv_target" >&6
1424 target=$ac_cv_target
1425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 # The aliases save the names the user supplied, while $host etc.
1431 # will get canonicalized.
1432 test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1434 NONENONEs,x,x, &&
1435 program_prefix=${target_alias}-
1436 ac_ext=c
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1463 done
1464 done
1468 CC=$ac_cv_prog_CC
1469 if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1478 if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1501 done
1502 done
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1515 CC=$ac_ct_CC
1516 else
1517 CC="$ac_cv_prog_CC"
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1548 CC=$ac_cv_prog_CC
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1558 if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1581 done
1582 done
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 CC=$ac_ct_CC
1596 else
1597 CC="$ac_cv_prog_CC"
1601 if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 else
1612 ac_prog_rejected=no
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1628 done
1629 done
1631 if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1680 done
1681 done
1685 CC=$ac_cv_prog_CC
1686 if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688 echo "${ECHO_T}$CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$CC" && break
1695 done
1697 if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1722 done
1723 done
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 test -n "$ac_ct_CC" && break
1737 done
1739 CC=$ac_ct_CC
1745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&5
1747 echo "$as_me: error: no acceptable C compiler found in \$PATH
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1751 # Provide some information about the compiler.
1752 echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754 ac_compiler=`set X $ac_compile; echo $2`
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1771 cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h. */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1779 main ()
1783 return 0;
1785 _ACEOF
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1790 # of exeext.
1791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # resort.
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 ac_cv_exeext=
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1813 conftest.$ac_ext )
1814 # This is the source file.
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 # `rm'.
1897 for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906 done
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1915 rm -f conftest$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1919 rm -f conftest.$ac_ext
1920 EXEEXT=$ac_cv_exeext
1921 ac_exeext=$EXEEXT
1922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924 if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 cat >conftest.$ac_ext <<_ACEOF
1928 /* confdefs.h. */
1929 _ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1935 main ()
1939 return 0;
1941 _ACEOF
1942 rm -f conftest.o conftest.obj
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954 done
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969 echo "${ECHO_T}$ac_cv_objext" >&6
1970 OBJEXT=$ac_cv_objext
1971 ac_objext=$OBJEXT
1972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1985 main ()
1987 #ifndef __GNUC__
1988 choke me
1989 #endif
1992 return 0;
1994 _ACEOF
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_compiler_gnu=no
2024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030 GCC=`test $ac_compiler_gnu = yes && echo yes`
2031 ac_test_CFLAGS=${CFLAGS+set}
2032 ac_save_CFLAGS=$CFLAGS
2033 CFLAGS="-g"
2034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2047 main ()
2051 return 0;
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2081 ac_cv_prog_cc_g=no
2083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2095 else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_cv_prog_cc_stdc=no
2108 ac_save_CC=$CC
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h. */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2115 #include <stdarg.h>
2116 #include <stdio.h>
2117 #include <sys/types.h>
2118 #include <sys/stat.h>
2119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120 struct buf { int x; };
2121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122 static char *e (p, i)
2123 char **p;
2124 int i;
2126 return p[i];
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 int argc;
2152 char **argv;
2154 main ()
2156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2158 return 0;
2160 _ACEOF
2161 # Don't try gcc -ansi; that turns off useful extensions and
2162 # breaks some systems' header files.
2163 # AIX -qlanglvl=ansi
2164 # Ultrix and OSF/1 -std1
2165 # HP-UX 10.20 and later -Ae
2166 # HP-UX older versions -Aa -D_HPUX_SOURCE
2167 # SVR4 -Xc -D__EXTENSIONS__
2168 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194 break
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2200 rm -f conftest.err conftest.$ac_objext
2201 done
2202 rm -f conftest.$ac_ext conftest.$ac_objext
2203 CC=$ac_save_CC
2207 case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 esac
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223 choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 $ac_declaration
2263 #include <stdlib.h>
2265 main ()
2267 exit (42);
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 continue
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 $ac_declaration
2310 main ()
2312 exit (42);
2314 return 0;
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 rm -f conftest*
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369 if test "${ac_cv_search_strerror+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 ac_func_search_save_LIBS=$LIBS
2373 ac_cv_search_strerror=no
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 #ifdef __cplusplus
2383 extern "C"
2384 #endif
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387 char strerror ();
2389 main ()
2391 strerror ();
2393 return 0;
2395 _ACEOF
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_search_strerror="none required"
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426 if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 #ifdef __cplusplus
2438 extern "C"
2439 #endif
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442 char strerror ();
2444 main ()
2446 strerror ();
2448 return 0;
2450 _ACEOF
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474 break
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
2484 LIBS=$ac_func_search_save_LIBS
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2494 am__api_version="1.9"
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2510 if test -z "$INSTALL"; then
2511 if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520 case $as_dir/ in
2521 ./ | .// | /cC/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 /usr/ucb/* ) ;;
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2540 else
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2545 done
2546 done
2548 esac
2549 done
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. We don't cache a
2557 # path for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the path is relative.
2560 INSTALL=$ac_install_sh
2563 echo "$as_me:$LINENO: result: $INSTALL" >&5
2564 echo "${ECHO_T}$INSTALL" >&6
2566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567 # It thinks the first close brace ends the variable substitution.
2568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2576 # Just in case
2577 sleep 1
2578 echo timestamp > conftest.file
2579 # Do `set' in a subshell so we don't clobber the current shell's
2580 # arguments. Must try -L first in case configure is actually a
2581 # symlink; some systems play weird games with the mod time of symlinks
2582 # (eg FreeBSD returns the mod time of the symlink's containing
2583 # directory).
2584 if (
2585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2586 if test "$*" = "X"; then
2587 # -L didn't work.
2588 set X `ls -t $srcdir/configure conftest.file`
2590 rm -f conftest.file
2591 if test "$*" != "X $srcdir/configure conftest.file" \
2592 && test "$*" != "X conftest.file $srcdir/configure"; then
2594 # If neither matched, then we have a broken ls. This can happen
2595 # if, for instance, CONFIG_SHELL is bash and it inherits a
2596 # broken ls alias from the environment. This has actually
2597 # happened. Such a system could not be considered "sane".
2598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&5
2600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2601 alias in your environment" >&2;}
2602 { (exit 1); exit 1; }; }
2605 test "$2" = conftest.file
2607 then
2608 # Ok.
2610 else
2611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2612 Check your system clock" >&5
2613 echo "$as_me: error: newly created file is older than distributed files!
2614 Check your system clock" >&2;}
2615 { (exit 1); exit 1; }; }
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619 test "$program_prefix" != NONE &&
2620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2624 # Double any \ or $. echo might interpret backslashes.
2625 # By default was `s,x,x', remove it if useless.
2626 cat <<\_ACEOF >conftest.sed
2627 s/[\\$]/&&/g;s/;s,x,x,$//
2628 _ACEOF
2629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630 rm conftest.sed
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2636 # Use eval to expand $SHELL
2637 if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639 else
2640 am_missing_run=
2641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2646 # We used to keeping the `.' as first argument, in order to
2647 # allow $(mkdir_p) to be used without argument. As in
2648 # $(mkdir_p) $(somedir)
2649 # where $(somedir) is conditionally defined. However this is wrong
2650 # for two reasons:
2651 # 1. if the package is installed by a user who cannot write `.'
2652 # make install will fail,
2653 # 2. the above comment should most certainly read
2654 # $(mkdir_p) $(DESTDIR)$(somedir)
2655 # so it does not work when $(somedir) is undefined and
2656 # $(DESTDIR) is not.
2657 # To support the latter case, we have to write
2658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2659 # so the `.' trick is pointless.
2660 mkdir_p='mkdir -p --'
2661 else
2662 # On NextStep and OpenStep, the `mkdir' command does not
2663 # recognize any option. It will interpret all options as
2664 # directories to create, and then abort because `.' already
2665 # exists.
2666 for d in ./-p ./--version;
2668 test -d $d && rmdir $d
2669 done
2670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2671 if test -f "$ac_aux_dir/mkinstalldirs"; then
2672 mkdir_p='$(mkinstalldirs)'
2673 else
2674 mkdir_p='$(install_sh) -d'
2678 for ac_prog in gawk mawk nawk awk
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_AWK+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 echo "$as_me:$LINENO: result: $AWK" >&5
2709 echo "${ECHO_T}$AWK" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2715 test -n "$AWK" && break
2716 done
2718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 cat >conftest.make <<\_ACEOF
2725 all:
2726 @echo 'ac_maketemp="$(MAKE)"'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2730 if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_${ac_make}_set=yes
2732 else
2733 eval ac_cv_prog_make_${ac_make}_set=no
2735 rm -f conftest.make
2737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2740 SET_MAKE=
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744 SET_MAKE="MAKE=${MAKE-make}"
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750 am__leading_dot=.
2751 else
2752 am__leading_dot=_
2754 rmdir .tst 2>/dev/null
2756 DEPDIR="${am__leading_dot}deps"
2758 ac_config_commands="$ac_config_commands depfiles"
2761 am_make=${MAKE-make}
2762 cat > confinc << 'END'
2763 am__doit:
2764 @echo done
2765 .PHONY: am__doit
2767 # If we don't find an include directive, just comment out the code.
2768 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770 am__include="#"
2771 am__quote=
2772 _am_result=none
2773 # First try GNU make style include.
2774 echo "include confinc" > confmf
2775 # We grep out `Entering directory' and `Leaving directory'
2776 # messages which can occur if `w' ends up in MAKEFLAGS.
2777 # In particular we don't look at `^make:' because GNU make might
2778 # be invoked under some other name (usually "gmake"), in which
2779 # case it prints its new name instead of `make'.
2780 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 am__include=include
2782 am__quote=
2783 _am_result=GNU
2785 # Now try BSD make style include.
2786 if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789 am__include=.include
2790 am__quote="\""
2791 _am_result=BSD
2796 echo "$as_me:$LINENO: result: $_am_result" >&5
2797 echo "${ECHO_T}$_am_result" >&6
2798 rm -f confinc confmf
2800 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2801 if test "${enable_dependency_tracking+set}" = set; then
2802 enableval="$enable_dependency_tracking"
2805 if test "x$enable_dependency_tracking" != xno; then
2806 am_depcomp="$ac_aux_dir/depcomp"
2807 AMDEPBACKSLASH='\'
2811 if test "x$enable_dependency_tracking" != xno; then
2812 AMDEP_TRUE=
2813 AMDEP_FALSE='#'
2814 else
2815 AMDEP_TRUE='#'
2816 AMDEP_FALSE=
2821 # test to see if srcdir already configured
2822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2823 test -f $srcdir/config.status; then
2824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2826 { (exit 1); exit 1; }; }
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2839 # Define the identity of the package.
2840 PACKAGE=bfd
2841 VERSION=2.16.91
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2853 # Some tools Automake needs.
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2871 # Installed binaries are usually stripped using `strip' when the user
2872 # run `make install-strip'. However `strip' might not be the right
2873 # tool to use in cross-compilation environments, therefore Automake
2874 # will honor the `STRIP' environment variable to overrule this program.
2875 if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2879 echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_STRIP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2903 STRIP=$ac_cv_prog_STRIP
2904 if test -n "$STRIP"; then
2905 echo "$as_me:$LINENO: result: $STRIP" >&5
2906 echo "${ECHO_T}$STRIP" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2936 done
2937 done
2939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2945 echo "${ECHO_T}$ac_ct_STRIP" >&6
2946 else
2947 echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6
2951 STRIP=$ac_ct_STRIP
2952 else
2953 STRIP="$ac_cv_prog_STRIP"
2957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2959 # We need awk for the "check" target. The system "awk" is bad on
2960 # some platforms.
2961 # Always define AMTAR for backward compatibility.
2963 AMTAR=${AMTAR-"${am_missing_run}tar"}
2965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2970 depcc="$CC" am_compiler_list=
2972 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2973 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2978 # We make a subdir and do the tests there. Otherwise we can end up
2979 # making bogus files that we don't know about and never remove. For
2980 # instance it was reported that on HP-UX the gcc test will end up
2981 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # in D'.
2983 mkdir conftest.dir
2984 # Copy depcomp to subdir because otherwise we won't find it if we're
2985 # using a relative directory.
2986 cp "$am_depcomp" conftest.dir
2987 cd conftest.dir
2988 # We will build objects and dependencies in a subdirectory because
2989 # it helps to detect inapplicable dependency modes. For instance
2990 # both Tru64's cc and ICC support -MD to output dependencies as a
2991 # side effect of compilation, but ICC will put the dependencies in
2992 # the current directory while Tru64 will put them in the object
2993 # directory.
2994 mkdir sub
2996 am_cv_CC_dependencies_compiler_type=none
2997 if test "$am_compiler_list" = ""; then
2998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000 for depmode in $am_compiler_list; do
3001 # Setup a source with many dependencies, because some compilers
3002 # like to wrap large dependency lists on column 80 (with \), and
3003 # we should not choose a depcomp mode which is confused by this.
3005 # We need to recreate these files for each test, as the compiler may
3006 # overwrite some of them when testing with obscure command lines.
3007 # This happens at least with the AIX C compiler.
3008 : > sub/conftest.c
3009 for i in 1 2 3 4 5 6; do
3010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3012 # Solaris 8's {/usr,}/bin/sh.
3013 touch sub/conftst$i.h
3014 done
3015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3038 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3040 # icc doesn't choke on unknown options, it will just issue warnings
3041 # or remarks (even with -Werror). So we grep stderr for any message
3042 # that says an option was ignored or not supported.
3043 # When given -MP, icc 7.0 and 7.1 complain thusly:
3044 # icc: Command line warning: ignoring option '-M'; no argument required
3045 # The diagnosis changed in icc 8.0:
3046 # icc: Command line remark: option '-MP' not supported
3047 if (grep 'ignoring option' conftest.err ||
3048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3049 am_cv_CC_dependencies_compiler_type=$depmode
3050 break
3053 done
3055 cd ..
3056 rm -rf conftest.dir
3057 else
3058 am_cv_CC_dependencies_compiler_type=none
3062 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3063 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
3073 else
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ar; ac_word=$2
3084 echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_AR+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -n "$AR"; then
3090 ac_cv_prog_AR="$AR" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3108 AR=$ac_cv_prog_AR
3109 if test -n "$AR"; then
3110 echo "$as_me:$LINENO: result: $AR" >&5
3111 echo "${ECHO_T}$AR" >&6
3112 else
3113 echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3118 if test -z "$ac_cv_prog_AR"; then
3119 ac_ct_AR=$AR
3120 # Extract the first word of "ar", so it can be a program name with args.
3121 set dummy ar; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3141 done
3142 done
3146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3147 if test -n "$ac_ct_AR"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3149 echo "${ECHO_T}$ac_ct_AR" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3155 AR=$ac_ct_AR
3156 else
3157 AR="$ac_cv_prog_AR"
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198 ac_ct_RANLIB=$RANLIB
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 RANLIB=$ac_ct_RANLIB
3236 else
3237 RANLIB="$ac_cv_prog_RANLIB"
3241 # Check whether --enable-shared or --disable-shared was given.
3242 if test "${enable_shared+set}" = set; then
3243 enableval="$enable_shared"
3244 p=${PACKAGE-default}
3245 case $enableval in
3246 yes) enable_shared=yes ;;
3247 no) enable_shared=no ;;
3249 enable_shared=no
3250 # Look at the argument we got. We use all the common list separators.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3252 for pkg in $enableval; do
3253 if test "X$pkg" = "X$p"; then
3254 enable_shared=yes
3256 done
3257 IFS="$ac_save_ifs"
3259 esac
3260 else
3261 enable_shared=no
3264 # Check whether --enable-static or --disable-static was given.
3265 if test "${enable_static+set}" = set; then
3266 enableval="$enable_static"
3267 p=${PACKAGE-default}
3268 case $enableval in
3269 yes) enable_static=yes ;;
3270 no) enable_static=no ;;
3272 enable_static=no
3273 # Look at the argument we got. We use all the common list separators.
3274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3275 for pkg in $enableval; do
3276 if test "X$pkg" = "X$p"; then
3277 enable_static=yes
3279 done
3280 IFS="$ac_save_ifs"
3282 esac
3283 else
3284 enable_static=yes
3286 # Check whether --enable-fast-install or --disable-fast-install was given.
3287 if test "${enable_fast_install+set}" = set; then
3288 enableval="$enable_fast_install"
3289 p=${PACKAGE-default}
3290 case $enableval in
3291 yes) enable_fast_install=yes ;;
3292 no) enable_fast_install=no ;;
3294 enable_fast_install=no
3295 # Look at the argument we got. We use all the common list separators.
3296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3297 for pkg in $enableval; do
3298 if test "X$pkg" = "X$p"; then
3299 enable_fast_install=yes
3301 done
3302 IFS="$ac_save_ifs"
3304 esac
3305 else
3306 enable_fast_install=yes
3309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3310 if test "${with_gnu_ld+set}" = set; then
3311 withval="$with_gnu_ld"
3312 test "$withval" = no || with_gnu_ld=yes
3313 else
3314 with_gnu_ld=no
3316 ac_prog=ld
3317 if test "$GCC" = yes; then
3318 # Check if gcc -print-prog-name=ld gives a path.
3319 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3320 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3321 case $host in
3322 *-*-mingw*)
3323 # gcc leaves a trailing carriage return which upsets mingw
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3327 esac
3328 case $ac_prog in
3329 # Accept absolute paths.
3330 [\\/]* | [A-Za-z]:[\\/]*)
3331 re_direlt='/[^/][^/]*/\.\./'
3332 # Canonicalize the path of ld
3333 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3335 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3336 done
3337 test -z "$LD" && LD="$ac_prog"
3340 # If it fails, then pretend we aren't using GCC.
3341 ac_prog=ld
3344 # If it is relative, then search for the first ld in PATH.
3345 with_gnu_ld=unknown
3347 esac
3348 elif test "$with_gnu_ld" = yes; then
3349 echo "$as_me:$LINENO: checking for GNU ld" >&5
3350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3351 else
3352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3355 if test "${lt_cv_path_LD+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -z "$LD"; then
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3360 for ac_dir in $PATH; do
3361 test -z "$ac_dir" && ac_dir=.
3362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3363 lt_cv_path_LD="$ac_dir/$ac_prog"
3364 # Check to see if the program is GNU ld. I'd rather use --version,
3365 # but apparently some GNU ld's only accept -v.
3366 # Break only if it was the GNU/non-GNU ld that we prefer.
3367 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3368 test "$with_gnu_ld" != no && break
3369 else
3370 test "$with_gnu_ld" != yes && break
3373 done
3374 IFS="$ac_save_ifs"
3375 else
3376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3380 LD="$lt_cv_path_LD"
3381 if test -n "$LD"; then
3382 echo "$as_me:$LINENO: result: $LD" >&5
3383 echo "${ECHO_T}$LD" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3388 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3389 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3390 { (exit 1); exit 1; }; }
3391 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3392 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3393 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3397 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3398 lt_cv_prog_gnu_ld=yes
3399 else
3400 lt_cv_prog_gnu_ld=no
3403 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3405 with_gnu_ld=$lt_cv_prog_gnu_ld
3408 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3409 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3410 if test "${lt_cv_ld_reload_flag+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 lt_cv_ld_reload_flag='-r'
3415 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3416 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3417 reload_flag=$lt_cv_ld_reload_flag
3418 test -n "$reload_flag" && reload_flag=" $reload_flag"
3420 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3421 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3422 if test "${lt_cv_path_NM+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 if test -n "$NM"; then
3426 # Let the user override the test.
3427 lt_cv_path_NM="$NM"
3428 else
3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3430 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3431 test -z "$ac_dir" && ac_dir=.
3432 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3433 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3434 # Check to see if the nm accepts a BSD-compat flag.
3435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3436 # nm: unknown option "B" ignored
3437 # Tru64's nm complains that /dev/null is an invalid object file
3438 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3439 lt_cv_path_NM="$tmp_nm -B"
3440 break
3441 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3442 lt_cv_path_NM="$tmp_nm -p"
3443 break
3444 else
3445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3446 continue # so that we can try to find one that supports BSD flags
3449 done
3450 IFS="$ac_save_ifs"
3451 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3455 NM="$lt_cv_path_NM"
3456 echo "$as_me:$LINENO: result: $NM" >&5
3457 echo "${ECHO_T}$NM" >&6
3459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3461 LN_S=$as_ln_s
3462 if test "$LN_S" = "ln -s"; then
3463 echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6
3465 else
3466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3467 echo "${ECHO_T}no, using $LN_S" >&6
3470 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3471 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3472 if test "${lt_cv_deplibs_check_method+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475 lt_cv_file_magic_cmd='$MAGIC_CMD'
3476 lt_cv_file_magic_test_file=
3477 lt_cv_deplibs_check_method='unknown'
3478 # Need to set the preceding variable on all platforms that support
3479 # interlibrary dependencies.
3480 # 'none' -- dependencies not supported.
3481 # `unknown' -- same as none, but documents that we really don't know.
3482 # 'pass_all' -- all dependencies passed with no checks.
3483 # 'test_compile' -- check by making test program.
3484 # 'file_magic [regex]' -- check by looking for files in library path
3485 # which responds to the $file_magic_cmd with a given egrep regex.
3486 # If you have `file' or equivalent on your system and you're not sure
3487 # whether `pass_all' will *always* work, you probably want this one.
3489 case $host_os in
3490 aix*)
3491 lt_cv_deplibs_check_method=pass_all
3494 beos*)
3495 lt_cv_deplibs_check_method=pass_all
3498 bsdi4*)
3499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3500 lt_cv_file_magic_cmd='/usr/bin/file -L'
3501 lt_cv_file_magic_test_file=/shlib/libc.so
3504 cygwin* | mingw* |pw32*)
3505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3506 lt_cv_file_magic_cmd='$OBJDUMP -f'
3509 darwin* | rhapsody*)
3510 # this will be overwritten by pass_all, but leave it in just in case
3511 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 case "$host_os" in
3514 rhapsody* | darwin1.012)
3515 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3517 *) # Darwin 1.3 on
3518 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3520 esac
3521 lt_cv_deplibs_check_method=pass_all
3524 freebsd* | kfreebsd*-gnu)
3525 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526 case $host_cpu in
3527 i*86 )
3528 # Not sure whether the presence of OpenBSD here was a mistake.
3529 # Let's accept both of them until this is cleared up.
3530 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3531 lt_cv_file_magic_cmd=/usr/bin/file
3532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534 esac
3535 else
3536 lt_cv_deplibs_check_method=pass_all
3540 gnu*)
3541 lt_cv_deplibs_check_method=pass_all
3544 hpux10.20*|hpux11*)
3545 case $host_cpu in
3546 hppa*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3551 ia64*)
3552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3553 lt_cv_file_magic_cmd=/usr/bin/file
3554 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3556 esac
3559 irix5* | irix6*)
3560 case $host_os in
3561 irix5*)
3562 # this will be overridden with pass_all, but let us keep it just in case
3563 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3566 case $LD in
3567 *-32|*"-32 ") libmagic=32-bit;;
3568 *-n32|*"-n32 ") libmagic=N32;;
3569 *-64|*"-64 ") libmagic=64-bit;;
3570 *) libmagic=never-match;;
3571 esac
3572 # this will be overridden with pass_all, but let us keep it just in case
3573 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3575 esac
3576 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3577 lt_cv_deplibs_check_method=pass_all
3580 # This must be Linux ELF.
3581 linux-gnu*)
3582 lt_cv_deplibs_check_method=pass_all
3585 netbsd* | knetbsd*-gnu)
3586 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3588 else
3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3593 newsos6)
3594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3595 lt_cv_file_magic_cmd=/usr/bin/file
3596 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3599 osf3* | osf4* | osf5*)
3600 # this will be overridden with pass_all, but let us keep it just in case
3601 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3602 lt_cv_file_magic_test_file=/shlib/libc.so
3603 lt_cv_deplibs_check_method=pass_all
3606 sco3.2v5*)
3607 lt_cv_deplibs_check_method=pass_all
3610 solaris*)
3611 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_file_magic_test_file=/lib/libc.so
3615 sysv5uw[78]* | sysv4*uw2*)
3616 lt_cv_deplibs_check_method=pass_all
3619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3620 case $host_vendor in
3621 ncr)
3622 lt_cv_deplibs_check_method=pass_all
3624 motorola)
3625 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]'
3626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3628 esac
3630 esac
3633 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3634 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3635 file_magic_cmd=$lt_cv_file_magic_cmd
3636 deplibs_check_method=$lt_cv_deplibs_check_method
3641 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3643 # find the maximum length of command line arguments
3644 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3645 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3646 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3650 teststring="ABCD"
3652 case $build_os in
3653 msdosdjgpp*)
3654 # On DJGPP, this test can blow up pretty badly due to problems in libc
3655 # (any single argument exceeding 2000 bytes causes a buffer overrun
3656 # during glob expansion). Even if it were fixed, the result of this
3657 # check would be larger than it should be.
3658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3661 cygwin* | mingw*)
3662 # On Win9x/ME, this test blows up -- it succeeds, but takes
3663 # about 5 minutes as the teststring grows exponentially.
3664 # Worse, since 9x/ME are not pre-emptively multitasking,
3665 # you end up with a "frozen" computer, even though with patience
3666 # the test eventually succeeds (with a max line length of 256k).
3667 # Instead, let's just punt: use the minimum linelength reported by
3668 # all of the supported platforms: 8192 (on NT/2K/XP).
3669 lt_cv_sys_max_cmd_len=8192;
3672 amigaos*)
3673 # On AmigaOS with pdksh, this test takes hours, literally.
3674 # So we just punt and use a minimum line length of 8192.
3675 lt_cv_sys_max_cmd_len=8192;
3678 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3679 # This has been around since 386BSD, at least. Likely further.
3680 if test -x /sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3682 elif test -x /usr/sbin/sysctl; then
3683 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3684 else
3685 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3687 # And add a safety zone
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3691 esac
3695 if test -n "$lt_cv_sys_max_cmd_len" ; then
3696 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3697 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3698 else
3699 echo "$as_me:$LINENO: result: none" >&5
3700 echo "${ECHO_T}none" >&6
3704 # Only perform the check for file, if the check method requires it
3705 case $deplibs_check_method in
3706 file_magic*)
3707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3708 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3709 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 case $MAGIC_CMD in
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3717 ?:/*)
3718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3721 ac_save_MAGIC_CMD="$MAGIC_CMD"
3722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3723 ac_dummy="/usr/bin:$PATH"
3724 for ac_dir in $ac_dummy; do
3725 test -z "$ac_dir" && ac_dir=.
3726 if test -f $ac_dir/${ac_tool_prefix}file; then
3727 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3728 if test -n "$file_magic_test_file"; then
3729 case $deplibs_check_method in
3730 "file_magic "*)
3731 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3734 egrep "$file_magic_regex" > /dev/null; then
3736 else
3737 cat <<EOF 1>&2
3739 *** Warning: the command libtool uses to detect shared libraries,
3740 *** $file_magic_cmd, produces output that libtool cannot recognize.
3741 *** The result is that libtool may fail to recognize shared libraries
3742 *** as such. This will affect the creation of libtool libraries that
3743 *** depend on shared libraries, but programs linked with such libtool
3744 *** libraries will work regardless of this problem. Nevertheless, you
3745 *** may want to report the problem to your system manager and/or to
3746 *** bug-libtool@gnu.org
3749 fi ;;
3750 esac
3752 break
3754 done
3755 IFS="$ac_save_ifs"
3756 MAGIC_CMD="$ac_save_MAGIC_CMD"
3758 esac
3761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3762 if test -n "$MAGIC_CMD"; then
3763 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3764 echo "${ECHO_T}$MAGIC_CMD" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3770 if test -z "$lt_cv_path_MAGIC_CMD"; then
3771 if test -n "$ac_tool_prefix"; then
3772 echo "$as_me:$LINENO: checking for file" >&5
3773 echo $ECHO_N "checking for file... $ECHO_C" >&6
3774 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 case $MAGIC_CMD in
3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3781 ?:/*)
3782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3785 ac_save_MAGIC_CMD="$MAGIC_CMD"
3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3787 ac_dummy="/usr/bin:$PATH"
3788 for ac_dir in $ac_dummy; do
3789 test -z "$ac_dir" && ac_dir=.
3790 if test -f $ac_dir/file; then
3791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3792 if test -n "$file_magic_test_file"; then
3793 case $deplibs_check_method in
3794 "file_magic "*)
3795 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3798 egrep "$file_magic_regex" > /dev/null; then
3800 else
3801 cat <<EOF 1>&2
3803 *** Warning: the command libtool uses to detect shared libraries,
3804 *** $file_magic_cmd, produces output that libtool cannot recognize.
3805 *** The result is that libtool may fail to recognize shared libraries
3806 *** as such. This will affect the creation of libtool libraries that
3807 *** depend on shared libraries, but programs linked with such libtool
3808 *** libraries will work regardless of this problem. Nevertheless, you
3809 *** may want to report the problem to your system manager and/or to
3810 *** bug-libtool@gnu.org
3813 fi ;;
3814 esac
3816 break
3818 done
3819 IFS="$ac_save_ifs"
3820 MAGIC_CMD="$ac_save_MAGIC_CMD"
3822 esac
3825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3826 if test -n "$MAGIC_CMD"; then
3827 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3828 echo "${ECHO_T}$MAGIC_CMD" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 else
3835 MAGIC_CMD=:
3841 esac
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3846 echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3848 if test "${ac_cv_prog_RANLIB+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 if test -n "$RANLIB"; then
3852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3865 done
3866 done
3870 RANLIB=$ac_cv_prog_RANLIB
3871 if test -n "$RANLIB"; then
3872 echo "$as_me:$LINENO: result: $RANLIB" >&5
3873 echo "${ECHO_T}$RANLIB" >&6
3874 else
3875 echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6
3880 if test -z "$ac_cv_prog_RANLIB"; then
3881 ac_ct_RANLIB=$RANLIB
3882 # Extract the first word of "ranlib", so it can be a program name with args.
3883 set dummy ranlib; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$ac_ct_RANLIB"; then
3890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_RANLIB="ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3910 if test -n "$ac_ct_RANLIB"; then
3911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3913 else
3914 echo "$as_me:$LINENO: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3918 RANLIB=$ac_ct_RANLIB
3919 else
3920 RANLIB="$ac_cv_prog_RANLIB"
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}strip; ac_word=$2
3926 echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_STRIP+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 if test -n "$STRIP"; then
3932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3950 STRIP=$ac_cv_prog_STRIP
3951 if test -n "$STRIP"; then
3952 echo "$as_me:$LINENO: result: $STRIP" >&5
3953 echo "${ECHO_T}$STRIP" >&6
3954 else
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3960 if test -z "$ac_cv_prog_STRIP"; then
3961 ac_ct_STRIP=$STRIP
3962 # Extract the first word of "strip", so it can be a program name with args.
3963 set dummy strip; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 if test -n "$ac_ct_STRIP"; then
3970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_STRIP="strip"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3983 done
3984 done
3986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3990 if test -n "$ac_ct_STRIP"; then
3991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3992 echo "${ECHO_T}$ac_ct_STRIP" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3998 STRIP=$ac_ct_STRIP
3999 else
4000 STRIP="$ac_cv_prog_STRIP"
4004 # Check for any special flags to pass to ltconfig.
4005 libtool_flags="--cache-file=$cache_file"
4006 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4007 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4008 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4009 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4010 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4013 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014 if test "${enable_libtool_lock+set}" = set; then
4015 enableval="$enable_libtool_lock"
4018 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4019 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4022 # Check whether --with-pic or --without-pic was given.
4023 if test "${with_pic+set}" = set; then
4024 withval="$with_pic"
4025 pic_mode="$withval"
4026 else
4027 pic_mode=default
4029 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4030 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4032 # Some flags need to be propagated to the compiler or linker for good
4033 # libtool support.
4034 case $host in
4035 *-*-irix6*)
4036 # Find out which ABI we are using.
4037 echo '#line 4037 "configure"' > conftest.$ac_ext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; then
4043 if test "$lt_cv_prog_gnu_ld" = yes; then
4044 case `/usr/bin/file conftest.$ac_objext` in
4045 *32-bit*)
4046 LD="${LD-ld} -melf32bsmip"
4048 *N32*)
4049 LD="${LD-ld} -melf32bmipn32"
4051 *64-bit*)
4052 LD="${LD-ld} -melf64bmip"
4054 esac
4055 else
4056 case `/usr/bin/file conftest.$ac_objext` in
4057 *32-bit*)
4058 LD="${LD-ld} -32"
4060 *N32*)
4061 LD="${LD-ld} -n32"
4063 *64-bit*)
4064 LD="${LD-ld} -64"
4066 esac
4069 rm -rf conftest*
4072 ia64-*-hpux*)
4073 # Find out which ABI we are using.
4074 echo 'int i;' > conftest.$ac_ext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; then
4080 case "`/usr/bin/file conftest.o`" in
4081 *ELF-32*)
4082 HPUX_IA64_MODE="32"
4084 *ELF-64*)
4085 HPUX_IA64_MODE="64"
4087 esac
4089 rm -rf conftest*
4092 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4093 # Find out which ABI we are using.
4094 echo 'int i;' > conftest.$ac_ext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; then
4100 case "`/usr/bin/file conftest.o`" in
4101 *32-bit*)
4102 case $host in
4103 x86_64-*linux*)
4104 LD="${LD-ld} -m elf_i386"
4106 ppc64-*linux*|powerpc64-*linux*)
4107 LD="${LD-ld} -m elf32ppclinux"
4109 s390x-*linux*)
4110 LD="${LD-ld} -m elf_s390"
4112 sparc64-*linux*)
4113 LD="${LD-ld} -m elf32_sparc"
4115 esac
4117 *64-bit*)
4118 case $host in
4119 x86_64-*linux*)
4120 LD="${LD-ld} -m elf_x86_64"
4122 ppc*-*linux*|powerpc*-*linux*)
4123 LD="${LD-ld} -m elf64ppc"
4125 s390*-*linux*)
4126 LD="${LD-ld} -m elf64_s390"
4128 sparc*-*linux*)
4129 LD="${LD-ld} -m elf64_sparc"
4131 esac
4133 esac
4135 rm -rf conftest*
4138 *-*-sco3.2v5*)
4139 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4140 SAVE_CFLAGS="$CFLAGS"
4141 CFLAGS="$CFLAGS -belf"
4142 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4143 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4144 if test "${lt_cv_cc_needs_belf+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 rm -f conftest.$ac_objext conftest$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 lt_cv_cc_needs_belf=yes
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 lt_cv_cc_needs_belf=no
4199 rm -f conftest.err conftest.$ac_objext \
4200 conftest$ac_exeext conftest.$ac_ext
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4212 CFLAGS="$SAVE_CFLAGS"
4217 esac
4220 # Save cache, so that ltconfig can load it
4221 cat >confcache <<\_ACEOF
4222 # This file is a shell script that caches the results of configure
4223 # tests run on this system so they can be shared between configure
4224 # scripts and configure runs, see configure's option --config-cache.
4225 # It is not useful on other systems. If it contains results you don't
4226 # want to keep, you may remove or edit it.
4228 # config.status only pays attention to the cache file if you give it
4229 # the --recheck option to rerun configure.
4231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4233 # following values.
4235 _ACEOF
4237 # The following way of writing the cache mishandles newlines in values,
4238 # but we know of no workaround that is simple, portable, and efficient.
4239 # So, don't put newlines in cache variables' values.
4240 # Ultrix sh set writes to stderr and can't be redirected directly,
4241 # and sets the high bit in the cache file unless we assign to the vars.
4243 (set) 2>&1 |
4244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4245 *ac_space=\ *)
4246 # `set' does not quote correctly, so add quotes (double-quote
4247 # substitution turns \\\\ into \\, and sed turns \\ into \).
4248 sed -n \
4249 "s/'/'\\\\''/g;
4250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4253 # `set' quotes correctly as required by POSIX, so do not add quotes.
4254 sed -n \
4255 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4257 esac;
4259 sed '
4260 t clear
4261 : clear
4262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4263 t end
4264 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4265 : end' >>confcache
4266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4267 if test -w $cache_file; then
4268 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4269 cat confcache >$cache_file
4270 else
4271 echo "not updating unwritable cache $cache_file"
4274 rm -f confcache
4276 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4277 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4278 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4279 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4280 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4281 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4282 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4283 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4284 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4285 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4286 echo "$as_me: error: libtool configure failed" >&2;}
4287 { (exit 1); exit 1; }; }
4289 # Reload cache, that may have been modified by ltconfig
4290 if test -r "$cache_file"; then
4291 # Some versions of bash will fail to source /dev/null (special
4292 # files actually), so we avoid doing that.
4293 if test -f "$cache_file"; then
4294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4295 echo "$as_me: loading cache $cache_file" >&6;}
4296 case $cache_file in
4297 [\\/]* | ?:[\\/]* ) . $cache_file;;
4298 *) . ./$cache_file;;
4299 esac
4301 else
4302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4303 echo "$as_me: creating cache $cache_file" >&6;}
4304 >$cache_file
4308 # This can be used to rebuild libtool when needed
4309 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4311 # Always use our own libtool.
4312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4314 # Redirect the config.log output again, so that the ltconfig log is not
4315 # clobbered by the next message.
4316 exec 5>>./config.log
4324 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4325 if test "${enable_64_bit_bfd+set}" = set; then
4326 enableval="$enable_64_bit_bfd"
4327 case "${enableval}" in
4328 yes) want64=true ;;
4329 no) want64=false ;;
4330 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4331 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4332 { (exit 1); exit 1; }; } ;;
4333 esac
4334 else
4335 want64=false
4336 fi; # Check whether --enable-targets or --disable-targets was given.
4337 if test "${enable_targets+set}" = set; then
4338 enableval="$enable_targets"
4339 case "${enableval}" in
4340 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4341 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4342 { (exit 1); exit 1; }; }
4344 no) enable_targets= ;;
4345 *) enable_targets=$enableval ;;
4346 esac
4347 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4348 if test "${enable_commonbfdlib+set}" = set; then
4349 enableval="$enable_commonbfdlib"
4350 case "${enableval}" in
4351 yes) commonbfdlib=true ;;
4352 no) commonbfdlib=false ;;
4353 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4354 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4355 { (exit 1); exit 1; }; } ;;
4356 esac
4358 # Check whether --with-mmap or --without-mmap was given.
4359 if test "${with_mmap+set}" = set; then
4360 withval="$with_mmap"
4361 case "${withval}" in
4362 yes) want_mmap=true ;;
4363 no) want_mmap=false ;;
4364 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4365 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367 esac
4368 else
4369 want_mmap=false
4371 # Check whether --enable-secureplt or --disable-secureplt was given.
4372 if test "${enable_secureplt+set}" = set; then
4373 enableval="$enable_secureplt"
4374 case "${enableval}" in
4375 yes) use_secureplt=true ;;
4376 no) use_secureplt=false ;;
4377 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4378 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380 esac
4381 else
4382 use_secureplt=false
4383 fi; if test $use_secureplt = true; then
4385 cat >>confdefs.h <<\_ACEOF
4386 #define USE_SECUREPLT 1
4387 _ACEOF
4391 # The trailing component of the string reported as the version number
4392 # by gdb. For an official FSF release, it is empty.
4394 # Check whether --with-versuffix or --without-versuffix was given.
4395 if test "${with_versuffix+set}" = set; then
4396 withval="$with_versuffix"
4397 case "$withval" in
4398 yes) { { echo "$as_me:$LINENO: error: version suffix not specified" >&5
4399 echo "$as_me: error: version suffix not specified" >&2;}
4400 { (exit 1); exit 1; }; } ;;
4401 no) VERSUFFIX=" (CodeSourcery Unofficial)" ;;
4402 *) VERSUFFIX=" ($withval)" ;;
4403 esac
4404 else
4405 VERSUFFIX=
4410 # The location to which bugs should be reported.
4412 # Check whether --with-bugurl or --without-bugurl was given.
4413 if test "${with_bugurl+set}" = set; then
4414 withval="$with_bugurl"
4415 case "$withval" in
4416 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4417 echo "$as_me: error: bug URL not specified" >&2;}
4418 { (exit 1); exit 1; }; } ;;
4419 no) REPORT_BUGS_TO="" ;;
4420 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4421 esac
4422 else
4423 REPORT_BUGS_TO=""
4429 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4431 # Check whether --enable-werror or --disable-werror was given.
4432 if test "${enable_werror+set}" = set; then
4433 enableval="$enable_werror"
4434 case "${enableval}" in
4435 yes | y) ERROR_ON_WARNING="yes" ;;
4436 no | n) ERROR_ON_WARNING="no" ;;
4437 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4438 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4439 { (exit 1); exit 1; }; } ;;
4440 esac
4443 # Enable -Werror by default when using gcc
4444 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4445 ERROR_ON_WARNING=yes
4448 NO_WERROR=
4449 if test "${ERROR_ON_WARNING}" = yes ; then
4450 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4451 NO_WERROR="-Wno-error"
4454 if test "${GCC}" = yes ; then
4455 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4458 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4459 if test "${enable_build_warnings+set}" = set; then
4460 enableval="$enable_build_warnings"
4461 case "${enableval}" in
4462 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4463 no) if test "${GCC}" = yes ; then
4464 WARN_CFLAGS="-w"
4465 fi;;
4466 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4467 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4468 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4469 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4470 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4471 esac
4474 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4475 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4482 ac_config_headers="$ac_config_headers config.h:config.in"
4485 if test -z "$target" ; then
4486 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4487 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4488 { (exit 1); exit 1; }; }
4491 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4492 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4493 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4494 if test "${enable_maintainer_mode+set}" = set; then
4495 enableval="$enable_maintainer_mode"
4496 USE_MAINTAINER_MODE=$enableval
4497 else
4498 USE_MAINTAINER_MODE=no
4500 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4501 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4504 if test $USE_MAINTAINER_MODE = yes; then
4505 MAINTAINER_MODE_TRUE=
4506 MAINTAINER_MODE_FALSE='#'
4507 else
4508 MAINTAINER_MODE_TRUE='#'
4509 MAINTAINER_MODE_FALSE=
4512 MAINT=$MAINTAINER_MODE_TRUE
4515 case ${build_alias} in
4516 "") build_noncanonical=${build} ;;
4517 *) build_noncanonical=${build_alias} ;;
4518 esac
4520 case ${host_alias} in
4521 "") host_noncanonical=${build_noncanonical} ;;
4522 *) host_noncanonical=${host_alias} ;;
4523 esac
4525 case ${target_alias} in
4526 "") target_noncanonical=${host_noncanonical} ;;
4527 *) target_noncanonical=${target_alias} ;;
4528 esac
4530 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4531 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4532 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4533 if test "${enable_install_libbfd+set}" = set; then
4534 enableval="$enable_install_libbfd"
4535 install_libbfd_p=$enableval
4536 else
4537 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4538 install_libbfd_p=yes
4539 else
4540 install_libbfd_p=no
4543 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4544 echo "${ECHO_T}$install_libbfd_p" >&6
4547 if test $install_libbfd_p = yes; then
4548 INSTALL_LIBBFD_TRUE=
4549 INSTALL_LIBBFD_FALSE='#'
4550 else
4551 INSTALL_LIBBFD_TRUE='#'
4552 INSTALL_LIBBFD_FALSE=
4555 # Need _noncanonical variables for this.
4560 # libbfd.a is a host library containing target dependent code
4561 bfdlibdir='$(libdir)'
4562 bfdincludedir='$(includedir)'
4563 if test "${host}" != "${target}"; then
4564 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4565 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4573 host64=false
4574 target64=false
4575 bfd_default_target_size=32
4577 # host stuff:
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584 if test -n "$ac_tool_prefix"; then
4585 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4586 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4587 echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4589 if test "${ac_cv_prog_CC+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592 if test -n "$CC"; then
4593 ac_cv_prog_CC="$CC" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4606 done
4607 done
4611 CC=$ac_cv_prog_CC
4612 if test -n "$CC"; then
4613 echo "$as_me:$LINENO: result: $CC" >&5
4614 echo "${ECHO_T}$CC" >&6
4615 else
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4621 if test -z "$ac_cv_prog_CC"; then
4622 ac_ct_CC=$CC
4623 # Extract the first word of "gcc", so it can be a program name with args.
4624 set dummy gcc; ac_word=$2
4625 echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 if test -n "$ac_ct_CC"; then
4631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_prog_ac_ct_CC="gcc"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4650 if test -n "$ac_ct_CC"; then
4651 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4652 echo "${ECHO_T}$ac_ct_CC" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4658 CC=$ac_ct_CC
4659 else
4660 CC="$ac_cv_prog_CC"
4663 if test -z "$CC"; then
4664 if test -n "$ac_tool_prefix"; then
4665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4666 set dummy ${ac_tool_prefix}cc; ac_word=$2
4667 echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669 if test "${ac_cv_prog_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 if test -n "$CC"; then
4673 ac_cv_prog_CC="$CC" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_CC="${ac_tool_prefix}cc"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4691 CC=$ac_cv_prog_CC
4692 if test -n "$CC"; then
4693 echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4701 if test -z "$ac_cv_prog_CC"; then
4702 ac_ct_CC=$CC
4703 # Extract the first word of "cc", so it can be a program name with args.
4704 set dummy cc; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$ac_ct_CC"; then
4711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_CC="cc"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 echo "${ECHO_T}$ac_ct_CC" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 CC=$ac_ct_CC
4739 else
4740 CC="$ac_cv_prog_CC"
4744 if test -z "$CC"; then
4745 # Extract the first word of "cc", so it can be a program name with args.
4746 set dummy cc; ac_word=$2
4747 echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749 if test "${ac_cv_prog_CC+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754 else
4755 ac_prog_rejected=no
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4764 ac_prog_rejected=yes
4765 continue
4767 ac_cv_prog_CC="cc"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4771 done
4772 done
4774 if test $ac_prog_rejected = yes; then
4775 # We found a bogon in the path, so make sure we never use it.
4776 set dummy $ac_cv_prog_CC
4777 shift
4778 if test $# != 0; then
4779 # We chose a different compiler from the bogus one.
4780 # However, it has the same basename, so the bogon will be chosen
4781 # first if we set CC to just the basename; use the full file name.
4782 shift
4783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4788 CC=$ac_cv_prog_CC
4789 if test -n "$CC"; then
4790 echo "$as_me:$LINENO: result: $CC" >&5
4791 echo "${ECHO_T}$CC" >&6
4792 else
4793 echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4798 if test -z "$CC"; then
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in cl
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_prog_CC+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 if test -n "$CC"; then
4810 ac_cv_prog_CC="$CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4828 CC=$ac_cv_prog_CC
4829 if test -n "$CC"; then
4830 echo "$as_me:$LINENO: result: $CC" >&5
4831 echo "${ECHO_T}$CC" >&6
4832 else
4833 echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6
4837 test -n "$CC" && break
4838 done
4840 if test -z "$CC"; then
4841 ac_ct_CC=$CC
4842 for ac_prog in cl
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 if test -n "$ac_ct_CC"; then
4852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_prog_ac_ct_CC="$ac_prog"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4865 done
4866 done
4870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4871 if test -n "$ac_ct_CC"; then
4872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4873 echo "${ECHO_T}$ac_ct_CC" >&6
4874 else
4875 echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4879 test -n "$ac_ct_CC" && break
4880 done
4882 CC=$ac_ct_CC
4888 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: no acceptable C compiler found in \$PATH
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4894 # Provide some information about the compiler.
4895 echo "$as_me:$LINENO:" \
4896 "checking for C compiler version" >&5
4897 ac_compiler=`set X $ac_compile; echo $2`
4898 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4899 (eval $ac_compiler --version </dev/null >&5) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4903 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4904 (eval $ac_compiler -v </dev/null >&5) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }
4908 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4909 (eval $ac_compiler -V </dev/null >&5) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }
4914 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4915 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4927 main ()
4929 #ifndef __GNUC__
4930 choke me
4931 #endif
4934 return 0;
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_compiler_gnu=yes
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 ac_compiler_gnu=no
4966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4970 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4972 GCC=`test $ac_compiler_gnu = yes && echo yes`
4973 ac_test_CFLAGS=${CFLAGS+set}
4974 ac_save_CFLAGS=$CFLAGS
4975 CFLAGS="-g"
4976 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4978 if test "${ac_cv_prog_cc_g+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4989 main ()
4993 return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_c_werror_flag"
5006 || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_prog_cc_g=yes
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_cv_prog_cc_g=no
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5029 if test "$ac_test_CFLAGS" = set; then
5030 CFLAGS=$ac_save_CFLAGS
5031 elif test $ac_cv_prog_cc_g = yes; then
5032 if test "$GCC" = yes; then
5033 CFLAGS="-g -O2"
5034 else
5035 CFLAGS="-g"
5037 else
5038 if test "$GCC" = yes; then
5039 CFLAGS="-O2"
5040 else
5041 CFLAGS=
5044 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5045 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5046 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 ac_cv_prog_cc_stdc=no
5050 ac_save_CC=$CC
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <stdarg.h>
5058 #include <stdio.h>
5059 #include <sys/types.h>
5060 #include <sys/stat.h>
5061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5062 struct buf { int x; };
5063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5064 static char *e (p, i)
5065 char **p;
5066 int i;
5068 return p[i];
5070 static char *f (char * (*g) (char **, int), char **p, ...)
5072 char *s;
5073 va_list v;
5074 va_start (v,p);
5075 s = g (p, va_arg (v,int));
5076 va_end (v);
5077 return s;
5080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5081 function prototypes and stuff, but not '\xHH' hex character constants.
5082 These don't provoke an error unfortunately, instead are silently treated
5083 as 'x'. The following induces an error, until -std1 is added to get
5084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5085 array size at least. It's necessary to write '\x00'==0 to get something
5086 that's true only with -std1. */
5087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5089 int test (int i, double x);
5090 struct s1 {int (*f) (int a);};
5091 struct s2 {int (*f) (double a);};
5092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5093 int argc;
5094 char **argv;
5096 main ()
5098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5100 return 0;
5102 _ACEOF
5103 # Don't try gcc -ansi; that turns off useful extensions and
5104 # breaks some systems' header files.
5105 # AIX -qlanglvl=ansi
5106 # Ultrix and OSF/1 -std1
5107 # HP-UX 10.20 and later -Ae
5108 # HP-UX older versions -Aa -D_HPUX_SOURCE
5109 # SVR4 -Xc -D__EXTENSIONS__
5110 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5112 CC="$ac_save_CC $ac_arg"
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -z "$ac_c_werror_flag"
5123 || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_prog_cc_stdc=$ac_arg
5136 break
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5142 rm -f conftest.err conftest.$ac_objext
5143 done
5144 rm -f conftest.$ac_ext conftest.$ac_objext
5145 CC=$ac_save_CC
5149 case "x$ac_cv_prog_cc_stdc" in
5150 x|xno)
5151 echo "$as_me:$LINENO: result: none needed" >&5
5152 echo "${ECHO_T}none needed" >&6 ;;
5154 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5155 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5156 CC="$CC $ac_cv_prog_cc_stdc" ;;
5157 esac
5159 # Some people use a C++ compiler to compile C. Since we use `exit',
5160 # in C++ we need to declare it. In case someone uses the same compiler
5161 # for both compiling C and C++ we need to have the C++ compiler decide
5162 # the declaration of exit, since it's the most demanding environment.
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #ifndef __cplusplus
5165 choke me
5166 #endif
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 for ac_declaration in \
5191 '' \
5192 'extern "C" void std::exit (int) throw (); using std::exit;' \
5193 'extern "C" void std::exit (int); using std::exit;' \
5194 'extern "C" void exit (int) throw ();' \
5195 'extern "C" void exit (int);' \
5196 'void exit (int);'
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_declaration
5205 #include <stdlib.h>
5207 main ()
5209 exit (42);
5211 return 0;
5213 _ACEOF
5214 rm -f conftest.$ac_objext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216 (eval $ac_compile) 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -z "$ac_c_werror_flag"
5224 || test ! -s conftest.err'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; } &&
5230 { ac_try='test -s conftest.$ac_objext'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5237 else
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 continue
5243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 $ac_declaration
5252 main ()
5254 exit (42);
5256 return 0;
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 break
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5288 done
5289 rm -f conftest*
5290 if test -n "$ac_declaration"; then
5291 echo '#ifdef __cplusplus' >>confdefs.h
5292 echo $ac_declaration >>confdefs.h
5293 echo '#endif' >>confdefs.h
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 cat >>confdefs.h <<\_ACEOF
5310 #define _GNU_SOURCE 1
5311 _ACEOF
5315 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_RANLIB+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$RANLIB"; then
5325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5343 RANLIB=$ac_cv_prog_RANLIB
5344 if test -n "$RANLIB"; then
5345 echo "$as_me:$LINENO: result: $RANLIB" >&5
5346 echo "${ECHO_T}$RANLIB" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5353 if test -z "$ac_cv_prog_RANLIB"; then
5354 ac_ct_RANLIB=$RANLIB
5355 # Extract the first word of "ranlib", so it can be a program name with args.
5356 set dummy ranlib; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$ac_ct_RANLIB"; then
5363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_RANLIB="ranlib"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5379 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5383 if test -n "$ac_ct_RANLIB"; then
5384 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5385 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5391 RANLIB=$ac_ct_RANLIB
5392 else
5393 RANLIB="$ac_cv_prog_RANLIB"
5396 ac_ext=c
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5402 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5403 # On Suns, sometimes $CPP names a directory.
5404 if test -n "$CPP" && test -d "$CPP"; then
5405 CPP=
5407 if test -z "$CPP"; then
5408 if test "${ac_cv_prog_CPP+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 # Double quotes because CPP needs to be expanded
5412 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5414 ac_preproc_ok=false
5415 for ac_c_preproc_warn_flag in '' yes
5417 # Use a header file that comes with gcc, so configuring glibc
5418 # with a fresh cross-compiler works.
5419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420 # <limits.h> exists even on freestanding compilers.
5421 # On the NeXT, cc -E runs the code through the compiler's parser,
5422 # not just through cpp. "Syntax error" is here to catch this case.
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434 Syntax error
5435 _ACEOF
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null; then
5444 if test -s conftest.err; then
5445 ac_cpp_err=$ac_c_preproc_warn_flag
5446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5447 else
5448 ac_cpp_err=
5450 else
5451 ac_cpp_err=yes
5453 if test -z "$ac_cpp_err"; then
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 # Broken: fails on valid input.
5460 continue
5462 rm -f conftest.err conftest.$ac_ext
5464 # OK, works on sane cases. Now check whether non-existent headers
5465 # can be detected and how.
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5473 _ACEOF
5474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485 else
5486 ac_cpp_err=
5488 else
5489 ac_cpp_err=yes
5491 if test -z "$ac_cpp_err"; then
5492 # Broken: success on invalid input.
5493 continue
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 # Passes both tests.
5499 ac_preproc_ok=:
5500 break
5502 rm -f conftest.err conftest.$ac_ext
5504 done
5505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506 rm -f conftest.err conftest.$ac_ext
5507 if $ac_preproc_ok; then
5508 break
5511 done
5512 ac_cv_prog_CPP=$CPP
5515 CPP=$ac_cv_prog_CPP
5516 else
5517 ac_cv_prog_CPP=$CPP
5519 echo "$as_me:$LINENO: result: $CPP" >&5
5520 echo "${ECHO_T}$CPP" >&6
5521 ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541 Syntax error
5542 _ACEOF
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_c_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5554 else
5555 ac_cpp_err=
5557 else
5558 ac_cpp_err=yes
5560 if test -z "$ac_cpp_err"; then
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 # Broken: fails on valid input.
5567 continue
5569 rm -f conftest.err conftest.$ac_ext
5571 # OK, works on sane cases. Now check whether non-existent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null; then
5589 if test -s conftest.err; then
5590 ac_cpp_err=$ac_c_preproc_warn_flag
5591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5592 else
5593 ac_cpp_err=
5595 else
5596 ac_cpp_err=yes
5598 if test -z "$ac_cpp_err"; then
5599 # Broken: success on invalid input.
5600 continue
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5609 rm -f conftest.err conftest.$ac_ext
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then
5616 else
5617 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5620 See \`config.log' for more details." >&2;}
5621 { (exit 1); exit 1; }; }
5624 ac_ext=c
5625 ac_cpp='$CPP $CPPFLAGS'
5626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 echo "$as_me:$LINENO: checking for egrep" >&5
5632 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5633 if test "${ac_cv_prog_egrep+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5637 then ac_cv_prog_egrep='grep -E'
5638 else ac_cv_prog_egrep='egrep'
5641 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5642 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5643 EGREP=$ac_cv_prog_egrep
5646 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5648 if test "${ac_cv_header_stdc+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <stdlib.h>
5658 #include <stdarg.h>
5659 #include <string.h>
5660 #include <float.h>
5663 main ()
5667 return 0;
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_header_stdc=yes
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_header_stdc=no
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5701 if test $ac_cv_header_stdc = yes; then
5702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <string.h>
5711 _ACEOF
5712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5713 $EGREP "memchr" >/dev/null 2>&1; then
5715 else
5716 ac_cv_header_stdc=no
5718 rm -f conftest*
5722 if test $ac_cv_header_stdc = yes; then
5723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #include <stdlib.h>
5732 _ACEOF
5733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5734 $EGREP "free" >/dev/null 2>&1; then
5736 else
5737 ac_cv_header_stdc=no
5739 rm -f conftest*
5743 if test $ac_cv_header_stdc = yes; then
5744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5745 if test "$cross_compiling" = yes; then
5747 else
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <ctype.h>
5755 #if ((' ' & 0x0FF) == 0x020)
5756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5758 #else
5759 # define ISLOWER(c) \
5760 (('a' <= (c) && (c) <= 'i') \
5761 || ('j' <= (c) && (c) <= 'r') \
5762 || ('s' <= (c) && (c) <= 'z'))
5763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5764 #endif
5766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5768 main ()
5770 int i;
5771 for (i = 0; i < 256; i++)
5772 if (XOR (islower (i), ISLOWER (i))
5773 || toupper (i) != TOUPPER (i))
5774 exit(2);
5775 exit (0);
5777 _ACEOF
5778 rm -f conftest$ac_exeext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780 (eval $ac_link) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5790 else
5791 echo "$as_me: program exited with status $ac_status" >&5
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 ( exit $ac_status )
5796 ac_cv_header_stdc=no
5798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5802 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5803 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5804 if test $ac_cv_header_stdc = yes; then
5806 cat >>confdefs.h <<\_ACEOF
5807 #define STDC_HEADERS 1
5808 _ACEOF
5812 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5813 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5814 if test "${ac_cv_c_const+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h. */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5825 main ()
5827 /* FIXME: Include the comments suggested by Paul. */
5828 #ifndef __cplusplus
5829 /* Ultrix mips cc rejects this. */
5830 typedef int charset[2];
5831 const charset x;
5832 /* SunOS 4.1.1 cc rejects this. */
5833 char const *const *ccp;
5834 char **p;
5835 /* NEC SVR4.0.2 mips cc rejects this. */
5836 struct point {int x, y;};
5837 static struct point const zero = {0,0};
5838 /* AIX XL C 1.02.0.0 rejects this.
5839 It does not let you subtract one const X* pointer from another in
5840 an arm of an if-expression whose if-part is not a constant
5841 expression */
5842 const char *g = "string";
5843 ccp = &g + (g ? g-g : 0);
5844 /* HPUX 7.0 cc rejects these. */
5845 ++ccp;
5846 p = (char**) ccp;
5847 ccp = (char const *const *) p;
5848 { /* SCO 3.2v4 cc rejects this. */
5849 char *t;
5850 char const *s = 0 ? (char *) 0 : (char const *) 0;
5852 *t++ = 0;
5854 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5855 int x[] = {25, 17};
5856 const int *foo = &x[0];
5857 ++foo;
5859 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5860 typedef const int *iptr;
5861 iptr p = 0;
5862 ++p;
5864 { /* AIX XL C 1.02.0.0 rejects this saying
5865 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5866 struct s { int j; const int *ap[3]; };
5867 struct s *b; b->j = 5;
5869 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5870 const int foo = 10;
5872 #endif
5875 return 0;
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -z "$ac_c_werror_flag"
5888 || test ! -s conftest.err'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest.$ac_objext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_cv_c_const=yes
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5905 ac_cv_c_const=no
5907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5910 echo "${ECHO_T}$ac_cv_c_const" >&6
5911 if test $ac_cv_c_const = no; then
5913 cat >>confdefs.h <<\_ACEOF
5914 #define const
5915 _ACEOF
5919 echo "$as_me:$LINENO: checking for inline" >&5
5920 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5921 if test "${ac_cv_c_inline+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924 ac_cv_c_inline=no
5925 for ac_kw in inline __inline__ __inline; do
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #ifndef __cplusplus
5933 typedef int foo_t;
5934 static $ac_kw foo_t static_foo () {return 0; }
5935 $ac_kw foo_t foo () {return 0; }
5936 #endif
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag"
5949 || test ! -s conftest.err'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; } &&
5955 { ac_try='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_c_inline=$ac_kw; break
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5968 done
5971 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5972 echo "${ECHO_T}$ac_cv_c_inline" >&6
5975 case $ac_cv_c_inline in
5976 inline | yes) ;;
5978 case $ac_cv_c_inline in
5979 no) ac_val=;;
5980 *) ac_val=$ac_cv_c_inline;;
5981 esac
5982 cat >>confdefs.h <<_ACEOF
5983 #ifndef __cplusplus
5984 #define inline $ac_val
5985 #endif
5986 _ACEOF
5988 esac
5990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6001 inttypes.h stdint.h unistd.h
6003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6004 echo "$as_me:$LINENO: checking for $ac_header" >&5
6005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6017 #include <$ac_header>
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest.$ac_objext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 eval "$as_ac_Header=yes"
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 eval "$as_ac_Header=no"
6048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6059 done
6062 echo "$as_me:$LINENO: checking for off_t" >&5
6063 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6064 if test "${ac_cv_type_off_t+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 $ac_includes_default
6075 main ()
6077 if ((off_t *) 0)
6078 return 0;
6079 if (sizeof (off_t))
6080 return 0;
6082 return 0;
6084 _ACEOF
6085 rm -f conftest.$ac_objext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6087 (eval $ac_compile) 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -z "$ac_c_werror_flag"
6095 || test ! -s conftest.err'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 ac_cv_type_off_t=yes
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_type_off_t=no
6114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6117 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6118 if test $ac_cv_type_off_t = yes; then
6120 else
6122 cat >>confdefs.h <<_ACEOF
6123 #define off_t long
6124 _ACEOF
6128 echo "$as_me:$LINENO: checking for size_t" >&5
6129 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6130 if test "${ac_cv_type_size_t+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6141 main ()
6143 if ((size_t *) 0)
6144 return 0;
6145 if (sizeof (size_t))
6146 return 0;
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_type_size_t=yes
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_type_size_t=no
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6183 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6184 if test $ac_cv_type_size_t = yes; then
6186 else
6188 cat >>confdefs.h <<_ACEOF
6189 #define size_t unsigned
6190 _ACEOF
6194 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6195 # for constant arguments. Useless!
6196 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6197 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6198 if test "${ac_cv_working_alloca_h+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <alloca.h>
6209 main ()
6211 char *p = (char *) alloca (2 * sizeof (int));
6213 return 0;
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_working_alloca_h=yes
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_cv_working_alloca_h=no
6245 rm -f conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6248 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6249 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6250 if test $ac_cv_working_alloca_h = yes; then
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_ALLOCA_H 1
6254 _ACEOF
6258 echo "$as_me:$LINENO: checking for alloca" >&5
6259 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6260 if test "${ac_cv_func_alloca_works+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 #ifdef __GNUC__
6270 # define alloca __builtin_alloca
6271 #else
6272 # ifdef _MSC_VER
6273 # include <malloc.h>
6274 # define alloca _alloca
6275 # else
6276 # if HAVE_ALLOCA_H
6277 # include <alloca.h>
6278 # else
6279 # ifdef _AIX
6280 #pragma alloca
6281 # else
6282 # ifndef alloca /* predefined by HP cc +Olibcalls */
6283 char *alloca ();
6284 # endif
6285 # endif
6286 # endif
6287 # endif
6288 #endif
6291 main ()
6293 char *p = (char *) alloca (1);
6295 return 0;
6297 _ACEOF
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6300 (eval $ac_link) 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag"
6308 || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest$ac_exeext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_cv_func_alloca_works=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_cv_func_alloca_works=no
6327 rm -f conftest.err conftest.$ac_objext \
6328 conftest$ac_exeext conftest.$ac_ext
6330 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6331 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6333 if test $ac_cv_func_alloca_works = yes; then
6335 cat >>confdefs.h <<\_ACEOF
6336 #define HAVE_ALLOCA 1
6337 _ACEOF
6339 else
6340 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6341 # that cause trouble. Some versions do not even contain alloca or
6342 # contain a buggy version. If you still want to use their alloca,
6343 # use ar to extract alloca.o from them instead of compiling alloca.c.
6345 ALLOCA=alloca.$ac_objext
6347 cat >>confdefs.h <<\_ACEOF
6348 #define C_ALLOCA 1
6349 _ACEOF
6352 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6353 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6354 if test "${ac_cv_os_cray+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 #if defined(CRAY) && ! defined(CRAY2)
6364 webecray
6365 #else
6366 wenotbecray
6367 #endif
6369 _ACEOF
6370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371 $EGREP "webecray" >/dev/null 2>&1; then
6372 ac_cv_os_cray=yes
6373 else
6374 ac_cv_os_cray=no
6376 rm -f conftest*
6379 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6380 echo "${ECHO_T}$ac_cv_os_cray" >&6
6381 if test $ac_cv_os_cray = yes; then
6382 for ac_func in _getb67 GETB67 getb67; do
6383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6384 echo "$as_me:$LINENO: checking for $ac_func" >&5
6385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6386 if eval "test \"\${$as_ac_var+set}\" = set"; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6397 #define $ac_func innocuous_$ac_func
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char $ac_func (); below.
6401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402 <limits.h> exists even on freestanding compilers. */
6404 #ifdef __STDC__
6405 # include <limits.h>
6406 #else
6407 # include <assert.h>
6408 #endif
6410 #undef $ac_func
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 #ifdef __cplusplus
6414 extern "C"
6416 #endif
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6419 char $ac_func ();
6420 /* The GNU C library defines this for functions which it implements
6421 to always fail with ENOSYS. Some functions are actually named
6422 something starting with __ and the normal name is an alias. */
6423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6424 choke me
6425 #else
6426 char (*f) () = $ac_func;
6427 #endif
6428 #ifdef __cplusplus
6430 #endif
6433 main ()
6435 return f != $ac_func;
6437 return 0;
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 eval "$as_ac_var=yes"
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 eval "$as_ac_var=no"
6469 rm -f conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6474 if test `eval echo '${'$as_ac_var'}'` = yes; then
6476 cat >>confdefs.h <<_ACEOF
6477 #define CRAY_STACKSEG_END $ac_func
6478 _ACEOF
6480 break
6483 done
6486 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6487 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6488 if test "${ac_cv_c_stack_direction+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 if test "$cross_compiling" = yes; then
6492 ac_cv_c_stack_direction=0
6493 else
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6501 find_stack_direction ()
6503 static char *addr = 0;
6504 auto char dummy;
6505 if (addr == 0)
6507 addr = &dummy;
6508 return find_stack_direction ();
6510 else
6511 return (&dummy > addr) ? 1 : -1;
6515 main ()
6517 exit (find_stack_direction () < 0);
6519 _ACEOF
6520 rm -f conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_c_stack_direction=1
6532 else
6533 echo "$as_me: program exited with status $ac_status" >&5
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ( exit $ac_status )
6538 ac_cv_c_stack_direction=-1
6540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6544 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6546 cat >>confdefs.h <<_ACEOF
6547 #define STACK_DIRECTION $ac_cv_c_stack_direction
6548 _ACEOF
6555 for ac_header in stdlib.h unistd.h
6557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 else
6567 # Is the header compilable?
6568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 $ac_includes_default
6577 #include <$ac_header>
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest.$ac_objext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_header_compiler=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_header_compiler=no
6608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6610 echo "${ECHO_T}$ac_header_compiler" >&6
6612 # Is the header present?
6613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <$ac_header>
6622 _ACEOF
6623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } >/dev/null; then
6631 if test -s conftest.err; then
6632 ac_cpp_err=$ac_c_preproc_warn_flag
6633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6634 else
6635 ac_cpp_err=
6637 else
6638 ac_cpp_err=yes
6640 if test -z "$ac_cpp_err"; then
6641 ac_header_preproc=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_header_preproc=no
6648 rm -f conftest.err conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 yes:no: )
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6661 no:yes:* )
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6675 cat <<\_ASBOX
6676 ## ------------------------------------------ ##
6677 ## Report this to the AC_PACKAGE_NAME lists. ##
6678 ## ------------------------------------------ ##
6679 _ASBOX
6681 sed "s/^/$as_me: WARNING: /" >&2
6683 esac
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 eval "$as_ac_Header=\$ac_header_preproc"
6691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 _ACEOF
6702 done
6705 for ac_func in getpagesize
6707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6708 echo "$as_me:$LINENO: checking for $ac_func" >&5
6709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6710 if eval "test \"\${$as_ac_var+set}\" = set"; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6721 #define $ac_func innocuous_$ac_func
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char $ac_func (); below.
6725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6726 <limits.h> exists even on freestanding compilers. */
6728 #ifdef __STDC__
6729 # include <limits.h>
6730 #else
6731 # include <assert.h>
6732 #endif
6734 #undef $ac_func
6736 /* Override any gcc2 internal prototype to avoid an error. */
6737 #ifdef __cplusplus
6738 extern "C"
6740 #endif
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6743 char $ac_func ();
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6748 choke me
6749 #else
6750 char (*f) () = $ac_func;
6751 #endif
6752 #ifdef __cplusplus
6754 #endif
6757 main ()
6759 return f != $ac_func;
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag"
6774 || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 eval "$as_ac_var=yes"
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 eval "$as_ac_var=no"
6793 rm -f conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6798 if test `eval echo '${'$as_ac_var'}'` = yes; then
6799 cat >>confdefs.h <<_ACEOF
6800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6801 _ACEOF
6804 done
6806 echo "$as_me:$LINENO: checking for working mmap" >&5
6807 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6808 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 if test "$cross_compiling" = yes; then
6812 ac_cv_func_mmap_fixed_mapped=no
6813 else
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6821 /* malloc might have been renamed as rpl_malloc. */
6822 #undef malloc
6824 /* Thanks to Mike Haertel and Jim Avera for this test.
6825 Here is a matrix of mmap possibilities:
6826 mmap private not fixed
6827 mmap private fixed at somewhere currently unmapped
6828 mmap private fixed at somewhere already mapped
6829 mmap shared not fixed
6830 mmap shared fixed at somewhere currently unmapped
6831 mmap shared fixed at somewhere already mapped
6832 For private mappings, we should verify that changes cannot be read()
6833 back from the file, nor mmap's back from the file at a different
6834 address. (There have been systems where private was not correctly
6835 implemented like the infamous i386 svr4.0, and systems where the
6836 VM page cache was not coherent with the file system buffer cache
6837 like early versions of FreeBSD and possibly contemporary NetBSD.)
6838 For shared mappings, we should conversely verify that changes get
6839 propagated back to all the places they're supposed to be.
6841 Grep wants private fixed already mapped.
6842 The main things grep needs to know about mmap are:
6843 * does it exist and is it safe to write into the mmap'd area
6844 * how to use it (BSD variants) */
6846 #include <fcntl.h>
6847 #include <sys/mman.h>
6849 #if !STDC_HEADERS && !HAVE_STDLIB_H
6850 char *malloc ();
6851 #endif
6853 /* This mess was copied from the GNU getpagesize.h. */
6854 #if !HAVE_GETPAGESIZE
6855 /* Assume that all systems that can run configure have sys/param.h. */
6856 # if !HAVE_SYS_PARAM_H
6857 # define HAVE_SYS_PARAM_H 1
6858 # endif
6860 # ifdef _SC_PAGESIZE
6861 # define getpagesize() sysconf(_SC_PAGESIZE)
6862 # else /* no _SC_PAGESIZE */
6863 # if HAVE_SYS_PARAM_H
6864 # include <sys/param.h>
6865 # ifdef EXEC_PAGESIZE
6866 # define getpagesize() EXEC_PAGESIZE
6867 # else /* no EXEC_PAGESIZE */
6868 # ifdef NBPG
6869 # define getpagesize() NBPG * CLSIZE
6870 # ifndef CLSIZE
6871 # define CLSIZE 1
6872 # endif /* no CLSIZE */
6873 # else /* no NBPG */
6874 # ifdef NBPC
6875 # define getpagesize() NBPC
6876 # else /* no NBPC */
6877 # ifdef PAGESIZE
6878 # define getpagesize() PAGESIZE
6879 # endif /* PAGESIZE */
6880 # endif /* no NBPC */
6881 # endif /* no NBPG */
6882 # endif /* no EXEC_PAGESIZE */
6883 # else /* no HAVE_SYS_PARAM_H */
6884 # define getpagesize() 8192 /* punt totally */
6885 # endif /* no HAVE_SYS_PARAM_H */
6886 # endif /* no _SC_PAGESIZE */
6888 #endif /* no HAVE_GETPAGESIZE */
6891 main ()
6893 char *data, *data2, *data3;
6894 int i, pagesize;
6895 int fd;
6897 pagesize = getpagesize ();
6899 /* First, make a file with some known garbage in it. */
6900 data = (char *) malloc (pagesize);
6901 if (!data)
6902 exit (1);
6903 for (i = 0; i < pagesize; ++i)
6904 *(data + i) = rand ();
6905 umask (0);
6906 fd = creat ("conftest.mmap", 0600);
6907 if (fd < 0)
6908 exit (1);
6909 if (write (fd, data, pagesize) != pagesize)
6910 exit (1);
6911 close (fd);
6913 /* Next, try to mmap the file at a fixed address which already has
6914 something else allocated at it. If we can, also make sure that
6915 we see the same garbage. */
6916 fd = open ("conftest.mmap", O_RDWR);
6917 if (fd < 0)
6918 exit (1);
6919 data2 = (char *) malloc (2 * pagesize);
6920 if (!data2)
6921 exit (1);
6922 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6923 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6924 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6925 exit (1);
6926 for (i = 0; i < pagesize; ++i)
6927 if (*(data + i) != *(data2 + i))
6928 exit (1);
6930 /* Finally, make sure that changes to the mapped area do not
6931 percolate back to the file as seen by read(). (This is a bug on
6932 some variants of i386 svr4.0.) */
6933 for (i = 0; i < pagesize; ++i)
6934 *(data2 + i) = *(data2 + i) + 1;
6935 data3 = (char *) malloc (pagesize);
6936 if (!data3)
6937 exit (1);
6938 if (read (fd, data3, pagesize) != pagesize)
6939 exit (1);
6940 for (i = 0; i < pagesize; ++i)
6941 if (*(data + i) != *(data3 + i))
6942 exit (1);
6943 close (fd);
6944 exit (0);
6946 _ACEOF
6947 rm -f conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_func_mmap_fixed_mapped=yes
6959 else
6960 echo "$as_me: program exited with status $ac_status" >&5
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6964 ( exit $ac_status )
6965 ac_cv_func_mmap_fixed_mapped=no
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6971 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6972 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE_MMAP 1
6976 _ACEOF
6979 rm -f conftest.mmap
6991 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6992 unistd.h values.h sys/param.h
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo "$as_me:$LINENO: checking for $ac_header" >&5
6997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7003 else
7004 # Is the header compilable?
7005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 #include <$ac_header>
7015 _ACEOF
7016 rm -f conftest.$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_header_compiler=yes
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 ac_header_compiler=no
7045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7047 echo "${ECHO_T}$ac_header_compiler" >&6
7049 # Is the header present?
7050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <$ac_header>
7059 _ACEOF
7060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } >/dev/null; then
7068 if test -s conftest.err; then
7069 ac_cpp_err=$ac_c_preproc_warn_flag
7070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7071 else
7072 ac_cpp_err=
7074 else
7075 ac_cpp_err=yes
7077 if test -z "$ac_cpp_err"; then
7078 ac_header_preproc=yes
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 ac_header_preproc=no
7085 rm -f conftest.err conftest.$ac_ext
7086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7087 echo "${ECHO_T}$ac_header_preproc" >&6
7089 # So? What about this header?
7090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7091 yes:no: )
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7096 ac_header_preproc=yes
7098 no:yes:* )
7099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7112 cat <<\_ASBOX
7113 ## ------------------------------------------ ##
7114 ## Report this to the AC_PACKAGE_NAME lists. ##
7115 ## ------------------------------------------ ##
7116 _ASBOX
7118 sed "s/^/$as_me: WARNING: /" >&2
7120 esac
7121 echo "$as_me:$LINENO: checking for $ac_header" >&5
7122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 eval "$as_ac_Header=\$ac_header_preproc"
7128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7133 cat >>confdefs.h <<_ACEOF
7134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135 _ACEOF
7139 done
7151 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7152 __argz_count __argz_stringify __argz_next
7154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7155 echo "$as_me:$LINENO: checking for $ac_func" >&5
7156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7157 if eval "test \"\${$as_ac_var+set}\" = set"; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 cat >conftest.$ac_ext <<_ACEOF
7161 /* confdefs.h. */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7168 #define $ac_func innocuous_$ac_func
7170 /* System header to define __stub macros and hopefully few prototypes,
7171 which can conflict with char $ac_func (); below.
7172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7173 <limits.h> exists even on freestanding compilers. */
7175 #ifdef __STDC__
7176 # include <limits.h>
7177 #else
7178 # include <assert.h>
7179 #endif
7181 #undef $ac_func
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 #ifdef __cplusplus
7185 extern "C"
7187 #endif
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190 char $ac_func ();
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7195 choke me
7196 #else
7197 char (*f) () = $ac_func;
7198 #endif
7199 #ifdef __cplusplus
7201 #endif
7204 main ()
7206 return f != $ac_func;
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest$ac_exeext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 eval "$as_ac_var=yes"
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 eval "$as_ac_var=no"
7240 rm -f conftest.err conftest.$ac_objext \
7241 conftest$ac_exeext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7245 if test `eval echo '${'$as_ac_var'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7248 _ACEOF
7251 done
7254 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7256 for ac_func in stpcpy
7258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7259 echo "$as_me:$LINENO: checking for $ac_func" >&5
7260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7261 if eval "test \"\${$as_ac_var+set}\" = set"; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7272 #define $ac_func innocuous_$ac_func
7274 /* System header to define __stub macros and hopefully few prototypes,
7275 which can conflict with char $ac_func (); below.
7276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 <limits.h> exists even on freestanding compilers. */
7279 #ifdef __STDC__
7280 # include <limits.h>
7281 #else
7282 # include <assert.h>
7283 #endif
7285 #undef $ac_func
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 #ifdef __cplusplus
7289 extern "C"
7291 #endif
7292 /* We use char because int might match the return type of a gcc2
7293 builtin and then its argument prototype would still apply. */
7294 char $ac_func ();
7295 /* The GNU C library defines this for functions which it implements
7296 to always fail with ENOSYS. Some functions are actually named
7297 something starting with __ and the normal name is an alias. */
7298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7299 choke me
7300 #else
7301 char (*f) () = $ac_func;
7302 #endif
7303 #ifdef __cplusplus
7305 #endif
7308 main ()
7310 return f != $ac_func;
7312 return 0;
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7317 (eval $ac_link) 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -z "$ac_c_werror_flag"
7325 || test ! -s conftest.err'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest$ac_exeext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 eval "$as_ac_var=yes"
7338 else
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 eval "$as_ac_var=no"
7344 rm -f conftest.err conftest.$ac_objext \
7345 conftest$ac_exeext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7349 if test `eval echo '${'$as_ac_var'}'` = yes; then
7350 cat >>confdefs.h <<_ACEOF
7351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7352 _ACEOF
7355 done
7358 if test "${ac_cv_func_stpcpy}" = "yes"; then
7360 cat >>confdefs.h <<\_ACEOF
7361 #define HAVE_STPCPY 1
7362 _ACEOF
7366 if test $ac_cv_header_locale_h = yes; then
7367 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7368 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7369 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 #include <locale.h>
7380 main ()
7382 return LC_MESSAGES
7384 return 0;
7386 _ACEOF
7387 rm -f conftest.$ac_objext conftest$ac_exeext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7389 (eval $ac_link) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_c_werror_flag"
7397 || test ! -s conftest.err'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 am_cv_val_LC_MESSAGES=yes
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 am_cv_val_LC_MESSAGES=no
7416 rm -f conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7420 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7421 if test $am_cv_val_LC_MESSAGES = yes; then
7423 cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_LC_MESSAGES 1
7425 _ACEOF
7429 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7430 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7431 # Check whether --enable-nls or --disable-nls was given.
7432 if test "${enable_nls+set}" = set; then
7433 enableval="$enable_nls"
7434 USE_NLS=$enableval
7435 else
7436 USE_NLS=yes
7438 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7439 echo "${ECHO_T}$USE_NLS" >&6
7442 USE_INCLUDED_LIBINTL=no
7444 if test "$USE_NLS" = "yes"; then
7445 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7446 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7448 # Check whether --with-included-gettext or --without-included-gettext was given.
7449 if test "${with_included_gettext+set}" = set; then
7450 withval="$with_included_gettext"
7451 nls_cv_force_use_gnu_gettext=$withval
7452 else
7453 nls_cv_force_use_gnu_gettext=no
7455 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7456 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7458 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7459 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7460 nls_cv_header_intl=
7461 nls_cv_header_libgt=
7462 CATOBJEXT=
7464 if test "${ac_cv_header_libintl_h+set}" = set; then
7465 echo "$as_me:$LINENO: checking for libintl.h" >&5
7466 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7467 if test "${ac_cv_header_libintl_h+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7471 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7472 else
7473 # Is the header compilable?
7474 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7475 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h. */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 $ac_includes_default
7483 #include <libintl.h>
7484 _ACEOF
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487 (eval $ac_compile) 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -z "$ac_c_werror_flag"
7495 || test ! -s conftest.err'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_header_compiler=yes
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_header_compiler=no
7514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7516 echo "${ECHO_T}$ac_header_compiler" >&6
7518 # Is the header present?
7519 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7520 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <libintl.h>
7528 _ACEOF
7529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } >/dev/null; then
7537 if test -s conftest.err; then
7538 ac_cpp_err=$ac_c_preproc_warn_flag
7539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7540 else
7541 ac_cpp_err=
7543 else
7544 ac_cpp_err=yes
7546 if test -z "$ac_cpp_err"; then
7547 ac_header_preproc=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_header_preproc=no
7554 rm -f conftest.err conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7556 echo "${ECHO_T}$ac_header_preproc" >&6
7558 # So? What about this header?
7559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7560 yes:no: )
7561 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7562 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7564 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7565 ac_header_preproc=yes
7567 no:yes:* )
7568 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7569 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7571 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7573 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7575 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7577 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7579 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7581 cat <<\_ASBOX
7582 ## ------------------------------------------ ##
7583 ## Report this to the AC_PACKAGE_NAME lists. ##
7584 ## ------------------------------------------ ##
7585 _ASBOX
7587 sed "s/^/$as_me: WARNING: /" >&2
7589 esac
7590 echo "$as_me:$LINENO: checking for libintl.h" >&5
7591 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7592 if test "${ac_cv_header_libintl_h+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 ac_cv_header_libintl_h=$ac_header_preproc
7597 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7598 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7601 if test $ac_cv_header_libintl_h = yes; then
7602 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7603 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7604 if test "${gt_cv_func_gettext_libc+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 #include <libintl.h>
7615 main ()
7617 return (int) gettext ("")
7619 return 0;
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -z "$ac_c_werror_flag"
7632 || test ! -s conftest.err'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 gt_cv_func_gettext_libc=yes
7645 else
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 gt_cv_func_gettext_libc=no
7651 rm -f conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7654 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7655 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7657 if test "$gt_cv_func_gettext_libc" != "yes"; then
7658 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7659 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7660 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 ac_check_lib_save_LIBS=$LIBS
7664 LIBS="-lintl $LIBS"
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7672 /* Override any gcc2 internal prototype to avoid an error. */
7673 #ifdef __cplusplus
7674 extern "C"
7675 #endif
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7678 char bindtextdomain ();
7680 main ()
7682 bindtextdomain ();
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_lib_intl_bindtextdomain=yes
7710 else
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_cv_lib_intl_bindtextdomain=no
7716 rm -f conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7720 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7721 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7722 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7723 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7724 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7725 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7736 main ()
7738 return (int) gettext ("")
7740 return 0;
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -z "$ac_c_werror_flag"
7753 || test ! -s conftest.err'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; } &&
7759 { ac_try='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 gt_cv_func_gettext_libintl=yes
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 gt_cv_func_gettext_libintl=no
7772 rm -f conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7775 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7776 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7781 if test "$gt_cv_func_gettext_libc" = "yes" \
7782 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_GETTEXT 1
7786 _ACEOF
7788 # Extract the first word of "msgfmt", so it can be a program name with args.
7789 set dummy msgfmt; ac_word=$2
7790 echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792 if test "${ac_cv_path_MSGFMT+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795 case "$MSGFMT" in
7797 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7801 for ac_dir in $PATH; do
7802 test -z "$ac_dir" && ac_dir=.
7803 if test -f $ac_dir/$ac_word; then
7804 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7805 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7806 break
7809 done
7810 IFS="$ac_save_ifs"
7811 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7813 esac
7815 MSGFMT="$ac_cv_path_MSGFMT"
7816 if test -n "$MSGFMT"; then
7817 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7818 echo "${ECHO_T}$MSGFMT" >&6
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6
7823 if test "$MSGFMT" != "no"; then
7825 for ac_func in dcgettext
7827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7828 echo "$as_me:$LINENO: checking for $ac_func" >&5
7829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7830 if eval "test \"\${$as_ac_var+set}\" = set"; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7841 #define $ac_func innocuous_$ac_func
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char $ac_func (); below.
7845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846 <limits.h> exists even on freestanding compilers. */
7848 #ifdef __STDC__
7849 # include <limits.h>
7850 #else
7851 # include <assert.h>
7852 #endif
7854 #undef $ac_func
7856 /* Override any gcc2 internal prototype to avoid an error. */
7857 #ifdef __cplusplus
7858 extern "C"
7860 #endif
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char $ac_func ();
7864 /* The GNU C library defines this for functions which it implements
7865 to always fail with ENOSYS. Some functions are actually named
7866 something starting with __ and the normal name is an alias. */
7867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7868 choke me
7869 #else
7870 char (*f) () = $ac_func;
7871 #endif
7872 #ifdef __cplusplus
7874 #endif
7877 main ()
7879 return f != $ac_func;
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag"
7894 || test ! -s conftest.err'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; } &&
7900 { ac_try='test -s conftest$ac_exeext'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 eval "$as_ac_var=yes"
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 eval "$as_ac_var=no"
7913 rm -f conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7918 if test `eval echo '${'$as_ac_var'}'` = yes; then
7919 cat >>confdefs.h <<_ACEOF
7920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7921 _ACEOF
7924 done
7926 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7927 set dummy gmsgfmt; ac_word=$2
7928 echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7930 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 case $GMSGFMT in
7934 [\\/]* | ?:[\\/]*)
7935 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7952 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7954 esac
7956 GMSGFMT=$ac_cv_path_GMSGFMT
7958 if test -n "$GMSGFMT"; then
7959 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7960 echo "${ECHO_T}$GMSGFMT" >&6
7961 else
7962 echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6
7966 # Extract the first word of "xgettext", so it can be a program name with args.
7967 set dummy xgettext; ac_word=$2
7968 echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7970 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 case "$XGETTEXT" in
7975 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7979 for ac_dir in $PATH; do
7980 test -z "$ac_dir" && ac_dir=.
7981 if test -f $ac_dir/$ac_word; then
7982 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7983 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7984 break
7987 done
7988 IFS="$ac_save_ifs"
7989 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7991 esac
7993 XGETTEXT="$ac_cv_path_XGETTEXT"
7994 if test -n "$XGETTEXT"; then
7995 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7996 echo "${ECHO_T}$XGETTEXT" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8010 main ()
8012 extern int _nl_msg_cat_cntr;
8013 return _nl_msg_cat_cntr
8015 return 0;
8017 _ACEOF
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020 (eval $ac_link) 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag"
8028 || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 CATOBJEXT=.gmo
8041 DATADIRNAME=share
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 CATOBJEXT=.mo
8047 DATADIRNAME=lib
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 INSTOBJEXT=.mo
8060 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8061 # Neither gettext nor catgets in included in the C library.
8062 # Fall back on GNU gettext library (assuming it is present).
8063 nls_cv_use_gnu_gettext=yes
8067 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8068 INTLOBJS="\$(GETTOBJS)"
8069 # Extract the first word of "msgfmt", so it can be a program name with args.
8070 set dummy msgfmt; ac_word=$2
8071 echo "$as_me:$LINENO: checking for $ac_word" >&5
8072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8073 if test "${ac_cv_path_MSGFMT+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076 case "$MSGFMT" in
8078 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8082 for ac_dir in $PATH; do
8083 test -z "$ac_dir" && ac_dir=.
8084 if test -f $ac_dir/$ac_word; then
8085 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8086 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8087 break
8090 done
8091 IFS="$ac_save_ifs"
8092 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8094 esac
8096 MSGFMT="$ac_cv_path_MSGFMT"
8097 if test -n "$MSGFMT"; then
8098 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8099 echo "${ECHO_T}$MSGFMT" >&6
8100 else
8101 echo "$as_me:$LINENO: result: no" >&5
8102 echo "${ECHO_T}no" >&6
8105 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8106 set dummy gmsgfmt; ac_word=$2
8107 echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112 case $GMSGFMT in
8113 [\\/]* | ?:[\\/]*)
8114 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8133 esac
8135 GMSGFMT=$ac_cv_path_GMSGFMT
8137 if test -n "$GMSGFMT"; then
8138 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8139 echo "${ECHO_T}$GMSGFMT" >&6
8140 else
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8145 # Extract the first word of "xgettext", so it can be a program name with args.
8146 set dummy xgettext; ac_word=$2
8147 echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8149 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 case "$XGETTEXT" in
8154 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8158 for ac_dir in $PATH; do
8159 test -z "$ac_dir" && ac_dir=.
8160 if test -f $ac_dir/$ac_word; then
8161 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8162 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8163 break
8166 done
8167 IFS="$ac_save_ifs"
8168 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8170 esac
8172 XGETTEXT="$ac_cv_path_XGETTEXT"
8173 if test -n "$XGETTEXT"; then
8174 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8175 echo "${ECHO_T}$XGETTEXT" >&6
8176 else
8177 echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8182 USE_INCLUDED_LIBINTL=yes
8183 CATOBJEXT=.gmo
8184 INSTOBJEXT=.mo
8185 DATADIRNAME=share
8186 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8187 INTLLIBS=$INTLDEPS
8188 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8189 nls_cv_header_intl=libintl.h
8190 nls_cv_header_libgt=libgettext.h
8193 if test "$XGETTEXT" != ":"; then
8194 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8196 else
8197 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8198 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8199 XGETTEXT=":"
8203 # We need to process the po/ directory.
8204 POSUB=po
8205 else
8206 DATADIRNAME=share
8207 nls_cv_header_intl=libintl.h
8208 nls_cv_header_libgt=libgettext.h
8211 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8212 # because some of the sources are only built for this goal.
8213 if test "$PACKAGE" = gettext; then
8214 USE_NLS=yes
8215 USE_INCLUDED_LIBINTL=yes
8218 for lang in $ALL_LINGUAS; do
8219 GMOFILES="$GMOFILES $lang.gmo"
8220 POFILES="$POFILES $lang.po"
8221 done
8234 if test "x$CATOBJEXT" != "x"; then
8236 cat >>confdefs.h <<\_ACEOF
8237 #define ENABLE_NLS 1
8238 _ACEOF
8243 if test "x$CATOBJEXT" != "x"; then
8244 if test "x$ALL_LINGUAS" = "x"; then
8245 LINGUAS=
8246 else
8247 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8248 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8249 NEW_LINGUAS=
8250 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8251 case "$ALL_LINGUAS" in
8252 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8253 esac
8254 done
8255 LINGUAS=$NEW_LINGUAS
8256 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8257 echo "${ECHO_T}$LINGUAS" >&6
8260 if test -n "$LINGUAS"; then
8261 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8265 if test $ac_cv_header_locale_h = yes; then
8266 INCLUDE_LOCALE_H="#include <locale.h>"
8267 else
8268 INCLUDE_LOCALE_H="\
8269 /* The system does not provide the header <locale.h>. Take care yourself. */"
8273 if test -f $srcdir/po2tbl.sed.in; then
8274 if test "$CATOBJEXT" = ".cat"; then
8275 if test "${ac_cv_header_linux_version_h+set}" = set; then
8276 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8277 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8278 if test "${ac_cv_header_linux_version_h+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8282 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8283 else
8284 # Is the header compilable?
8285 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8286 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 $ac_includes_default
8294 #include <linux/version.h>
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_header_compiler=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_header_compiler=no
8325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8327 echo "${ECHO_T}$ac_header_compiler" >&6
8329 # Is the header present?
8330 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8331 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 #include <linux/version.h>
8339 _ACEOF
8340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } >/dev/null; then
8348 if test -s conftest.err; then
8349 ac_cpp_err=$ac_c_preproc_warn_flag
8350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8351 else
8352 ac_cpp_err=
8354 else
8355 ac_cpp_err=yes
8357 if test -z "$ac_cpp_err"; then
8358 ac_header_preproc=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_header_preproc=no
8365 rm -f conftest.err conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367 echo "${ECHO_T}$ac_header_preproc" >&6
8369 # So? What about this header?
8370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8371 yes:no: )
8372 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8373 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8375 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8376 ac_header_preproc=yes
8378 no:yes:* )
8379 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8380 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8382 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8384 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8386 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8388 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8390 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8392 cat <<\_ASBOX
8393 ## ------------------------------------------ ##
8394 ## Report this to the AC_PACKAGE_NAME lists. ##
8395 ## ------------------------------------------ ##
8396 _ASBOX
8398 sed "s/^/$as_me: WARNING: /" >&2
8400 esac
8401 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8402 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8403 if test "${ac_cv_header_linux_version_h+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 ac_cv_header_linux_version_h=$ac_header_preproc
8408 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8409 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8412 if test $ac_cv_header_linux_version_h = yes; then
8413 msgformat=linux
8414 else
8415 msgformat=xopen
8420 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8422 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8423 $srcdir/po2tbl.sed.in > po2tbl.sed
8426 if test "$PACKAGE" = "gettext"; then
8427 GT_NO="#NO#"
8428 GT_YES=
8429 else
8430 GT_NO=
8431 GT_YES="#YES#"
8436 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8442 if test -f $srcdir/po/POTFILES.in; then
8443 test -d po || mkdir po
8444 if test "x$srcdir" != "x."; then
8445 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8446 posrcprefix="$srcdir/"
8447 else
8448 posrcprefix="../$srcdir/"
8450 else
8451 posrcprefix="../"
8453 rm -f po/POTFILES
8454 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8455 < $srcdir/po/POTFILES.in > po/POTFILES
8459 # Permit host specific settings.
8460 . ${srcdir}/configure.host
8463 # Find a good install program. We prefer a C program (faster),
8464 # so one script is as good as another. But avoid the broken or
8465 # incompatible versions:
8466 # SysV /etc/install, /usr/sbin/install
8467 # SunOS /usr/etc/install
8468 # IRIX /sbin/install
8469 # AIX /bin/install
8470 # AmigaOS /C/install, which installs bootblocks on floppy discs
8471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8474 # OS/2's system install, which has a completely different semantic
8475 # ./install, which can be erroneously created by make from ./install.sh.
8476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8478 if test -z "$INSTALL"; then
8479 if test "${ac_cv_path_install+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 # Account for people who put trailing slashes in PATH elements.
8488 case $as_dir/ in
8489 ./ | .// | /cC/* | \
8490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8492 /usr/ucb/* ) ;;
8494 # OSF1 and SCO ODT 3.0 have their own names for install.
8495 # Don't use installbsd from OSF since it installs stuff as root
8496 # by default.
8497 for ac_prog in ginstall scoinst install; do
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8500 if test $ac_prog = install &&
8501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8502 # AIX install. It has an incompatible calling convention.
8504 elif test $ac_prog = install &&
8505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8506 # program-specific install script used by HP pwplus--don't use.
8508 else
8509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8510 break 3
8513 done
8514 done
8516 esac
8517 done
8521 if test "${ac_cv_path_install+set}" = set; then
8522 INSTALL=$ac_cv_path_install
8523 else
8524 # As a last resort, use the slow shell script. We don't cache a
8525 # path for INSTALL within a source directory, because that will
8526 # break other packages using the cache if that directory is
8527 # removed, or if the path is relative.
8528 INSTALL=$ac_install_sh
8531 echo "$as_me:$LINENO: result: $INSTALL" >&5
8532 echo "${ECHO_T}$INSTALL" >&6
8534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8535 # It thinks the first close brace ends the variable substitution.
8536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8543 BFD_HOST_64BIT_LONG=0
8544 BFD_HOST_LONG_LONG=0
8545 BFD_HOST_64_BIT_DEFINED=0
8546 BFD_HOST_64_BIT=
8547 BFD_HOST_U_64_BIT=
8549 echo "$as_me:$LINENO: checking for long long" >&5
8550 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8551 if test "${bfd_cv_has_long_long+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8562 main ()
8564 unsigned long long ll = 18446744073709551615ULL;
8566 return 0;
8568 _ACEOF
8569 rm -f conftest.$ac_objext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571 (eval $ac_compile) 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag"
8579 || test ! -s conftest.err'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; } &&
8585 { ac_try='test -s conftest.$ac_objext'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
8591 bfd_cv_has_long_long=yes
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 bfd_cv_has_long_long=no
8598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8602 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8603 if test $bfd_cv_has_long_long = yes; then
8604 BFD_HOST_LONG_LONG=1
8605 echo "$as_me:$LINENO: checking for long long" >&5
8606 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8607 if test "${ac_cv_type_long_long+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8618 main ()
8620 if ((long long *) 0)
8621 return 0;
8622 if (sizeof (long long))
8623 return 0;
8625 return 0;
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_c_werror_flag"
8638 || test ! -s conftest.err'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_cv_type_long_long=yes
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 ac_cv_type_long_long=no
8657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8659 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8660 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8662 echo "$as_me:$LINENO: checking size of long long" >&5
8663 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8664 if test "${ac_cv_sizeof_long_long+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667 if test "$ac_cv_type_long_long" = yes; then
8668 # The cast to unsigned long works around a bug in the HP C Compiler
8669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8671 # This bug is HP SR number 8606223364.
8672 if test "$cross_compiling" = yes; then
8673 # Depending upon the size, compute the lo and hi bounds.
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 $ac_includes_default
8682 main ()
8684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8685 test_array [0] = 0
8688 return 0;
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8693 (eval $ac_compile) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag"
8701 || test ! -s conftest.err'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_lo=0 ac_mid=0
8714 while :; do
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8723 main ()
8725 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8726 test_array [0] = 0
8729 return 0;
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8734 (eval $ac_compile) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest.$ac_objext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_hi=$ac_mid; break
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 ac_lo=`expr $ac_mid + 1`
8760 if test $ac_lo -le $ac_mid; then
8761 ac_lo= ac_hi=
8762 break
8764 ac_mid=`expr 2 '*' $ac_mid + 1`
8766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8767 done
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 $ac_includes_default
8780 main ()
8782 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8783 test_array [0] = 0
8786 return 0;
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_hi=-1 ac_mid=-1
8812 while :; do
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 $ac_includes_default
8821 main ()
8823 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8824 test_array [0] = 0
8827 return 0;
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_lo=$ac_mid; break
8853 else
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_hi=`expr '(' $ac_mid ')' - 1`
8858 if test $ac_mid -le $ac_hi; then
8859 ac_lo= ac_hi=
8860 break
8862 ac_mid=`expr 2 '*' $ac_mid`
8864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8865 done
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_lo= ac_hi=
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875 # Binary search between lo and hi bounds.
8876 while test "x$ac_lo" != "x$ac_hi"; do
8877 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 $ac_includes_default
8886 main ()
8888 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8889 test_array [0] = 0
8892 return 0;
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_hi=$ac_mid
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_lo=`expr '(' $ac_mid ')' + 1`
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925 done
8926 case $ac_lo in
8927 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8928 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8929 See \`config.log' for more details." >&5
8930 echo "$as_me: error: cannot compute sizeof (long long), 77
8931 See \`config.log' for more details." >&2;}
8932 { (exit 1); exit 1; }; } ;;
8933 esac
8934 else
8935 if test "$cross_compiling" = yes; then
8936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8937 See \`config.log' for more details." >&5
8938 echo "$as_me: error: cannot run test program while cross compiling
8939 See \`config.log' for more details." >&2;}
8940 { (exit 1); exit 1; }; }
8941 else
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 $ac_includes_default
8949 long longval () { return (long) (sizeof (long long)); }
8950 unsigned long ulongval () { return (long) (sizeof (long long)); }
8951 #include <stdio.h>
8952 #include <stdlib.h>
8954 main ()
8957 FILE *f = fopen ("conftest.val", "w");
8958 if (! f)
8959 exit (1);
8960 if (((long) (sizeof (long long))) < 0)
8962 long i = longval ();
8963 if (i != ((long) (sizeof (long long))))
8964 exit (1);
8965 fprintf (f, "%ld\n", i);
8967 else
8969 unsigned long i = ulongval ();
8970 if (i != ((long) (sizeof (long long))))
8971 exit (1);
8972 fprintf (f, "%lu\n", i);
8974 exit (ferror (f) || fclose (f) != 0);
8977 return 0;
8979 _ACEOF
8980 rm -f conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_cv_sizeof_long_long=`cat conftest.val`
8992 else
8993 echo "$as_me: program exited with status $ac_status" >&5
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ( exit $ac_status )
8998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8999 See \`config.log' for more details." >&5
9000 echo "$as_me: error: cannot compute sizeof (long long), 77
9001 See \`config.log' for more details." >&2;}
9002 { (exit 1); exit 1; }; }
9004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9007 rm -f conftest.val
9008 else
9009 ac_cv_sizeof_long_long=0
9012 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9013 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9014 cat >>confdefs.h <<_ACEOF
9015 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9016 _ACEOF
9021 echo "$as_me:$LINENO: checking for long" >&5
9022 echo $ECHO_N "checking for long... $ECHO_C" >&6
9023 if test "${ac_cv_type_long+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 $ac_includes_default
9034 main ()
9036 if ((long *) 0)
9037 return 0;
9038 if (sizeof (long))
9039 return 0;
9041 return 0;
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_type_long=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_type_long=no
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_long" >&6
9078 echo "$as_me:$LINENO: checking size of long" >&5
9079 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9080 if test "${ac_cv_sizeof_long+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083 if test "$ac_cv_type_long" = yes; then
9084 # The cast to unsigned long works around a bug in the HP C Compiler
9085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9087 # This bug is HP SR number 8606223364.
9088 if test "$cross_compiling" = yes; then
9089 # Depending upon the size, compute the lo and hi bounds.
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h. */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 $ac_includes_default
9098 main ()
9100 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9101 test_array [0] = 0
9104 return 0;
9106 _ACEOF
9107 rm -f conftest.$ac_objext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_lo=0 ac_mid=0
9130 while :; do
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 $ac_includes_default
9139 main ()
9141 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9142 test_array [0] = 0
9145 return 0;
9147 _ACEOF
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150 (eval $ac_compile) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest.$ac_objext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_hi=$ac_mid; break
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_lo=`expr $ac_mid + 1`
9176 if test $ac_lo -le $ac_mid; then
9177 ac_lo= ac_hi=
9178 break
9180 ac_mid=`expr 2 '*' $ac_mid + 1`
9182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9183 done
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h. */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9194 $ac_includes_default
9196 main ()
9198 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9199 test_array [0] = 0
9202 return 0;
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag"
9215 || test ! -s conftest.err'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; } &&
9221 { ac_try='test -s conftest.$ac_objext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_hi=-1 ac_mid=-1
9228 while :; do
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9237 main ()
9239 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9240 test_array [0] = 0
9243 return 0;
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9248 (eval $ac_compile) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_lo=$ac_mid; break
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_hi=`expr '(' $ac_mid ')' - 1`
9274 if test $ac_mid -le $ac_hi; then
9275 ac_lo= ac_hi=
9276 break
9278 ac_mid=`expr 2 '*' $ac_mid`
9280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9281 done
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_lo= ac_hi=
9288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9291 # Binary search between lo and hi bounds.
9292 while test "x$ac_lo" != "x$ac_hi"; do
9293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 $ac_includes_default
9302 main ()
9304 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9305 test_array [0] = 0
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest.$ac_objext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_hi=$ac_mid
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_lo=`expr '(' $ac_mid ')' + 1`
9340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9341 done
9342 case $ac_lo in
9343 ?*) ac_cv_sizeof_long=$ac_lo;;
9344 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9345 See \`config.log' for more details." >&5
9346 echo "$as_me: error: cannot compute sizeof (long), 77
9347 See \`config.log' for more details." >&2;}
9348 { (exit 1); exit 1; }; } ;;
9349 esac
9350 else
9351 if test "$cross_compiling" = yes; then
9352 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9353 See \`config.log' for more details." >&5
9354 echo "$as_me: error: cannot run test program while cross compiling
9355 See \`config.log' for more details." >&2;}
9356 { (exit 1); exit 1; }; }
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 $ac_includes_default
9365 long longval () { return (long) (sizeof (long)); }
9366 unsigned long ulongval () { return (long) (sizeof (long)); }
9367 #include <stdio.h>
9368 #include <stdlib.h>
9370 main ()
9373 FILE *f = fopen ("conftest.val", "w");
9374 if (! f)
9375 exit (1);
9376 if (((long) (sizeof (long))) < 0)
9378 long i = longval ();
9379 if (i != ((long) (sizeof (long))))
9380 exit (1);
9381 fprintf (f, "%ld\n", i);
9383 else
9385 unsigned long i = ulongval ();
9386 if (i != ((long) (sizeof (long))))
9387 exit (1);
9388 fprintf (f, "%lu\n", i);
9390 exit (ferror (f) || fclose (f) != 0);
9393 return 0;
9395 _ACEOF
9396 rm -f conftest$ac_exeext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398 (eval $ac_link) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_sizeof_long=`cat conftest.val`
9408 else
9409 echo "$as_me: program exited with status $ac_status" >&5
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ( exit $ac_status )
9414 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9415 See \`config.log' for more details." >&5
9416 echo "$as_me: error: cannot compute sizeof (long), 77
9417 See \`config.log' for more details." >&2;}
9418 { (exit 1); exit 1; }; }
9420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9423 rm -f conftest.val
9424 else
9425 ac_cv_sizeof_long=0
9428 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9429 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9430 cat >>confdefs.h <<_ACEOF
9431 #define SIZEOF_LONG $ac_cv_sizeof_long
9432 _ACEOF
9435 if test "x${ac_cv_sizeof_long}" = "x8"; then
9436 host64=true
9437 BFD_HOST_64BIT_LONG=1
9438 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9439 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9440 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9441 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9442 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9445 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9446 BFD_HOST_64_BIT_DEFINED=1
9447 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9448 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9457 # Put a plausible default for CC_FOR_BUILD in Makefile.
9458 if test -z "$CC_FOR_BUILD"; then
9459 if test "x$cross_compiling" = "xno"; then
9460 CC_FOR_BUILD='$(CC)'
9461 else
9462 CC_FOR_BUILD=gcc
9466 # Also set EXEEXT_FOR_BUILD.
9467 if test "x$cross_compiling" = "xno"; then
9468 EXEEXT_FOR_BUILD='$(EXEEXT)'
9469 else
9470 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9471 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9472 if test "${bfd_cv_build_exeext+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 rm -f conftest*
9476 echo 'int main () { return 0; }' > conftest.c
9477 bfd_cv_build_exeext=
9478 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9479 for file in conftest.*; do
9480 case $file in
9481 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9482 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9483 esac
9484 done
9485 rm -f conftest*
9486 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9488 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9489 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9490 EXEEXT_FOR_BUILD=""
9491 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9501 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505 echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9512 else
9513 # Is the header compilable?
9514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 $ac_includes_default
9523 #include <$ac_header>
9524 _ACEOF
9525 rm -f conftest.$ac_objext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9527 (eval $ac_compile) 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -z "$ac_c_werror_flag"
9535 || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest.$ac_objext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_header_compiler=yes
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_header_compiler=no
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 echo "${ECHO_T}$ac_header_compiler" >&6
9558 # Is the header present?
9559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <$ac_header>
9568 _ACEOF
9569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } >/dev/null; then
9577 if test -s conftest.err; then
9578 ac_cpp_err=$ac_c_preproc_warn_flag
9579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9580 else
9581 ac_cpp_err=
9583 else
9584 ac_cpp_err=yes
9586 if test -z "$ac_cpp_err"; then
9587 ac_header_preproc=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_preproc=no
9594 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9600 yes:no: )
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9607 no:yes:* )
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9621 cat <<\_ASBOX
9622 ## ------------------------------------------ ##
9623 ## Report this to the AC_PACKAGE_NAME lists. ##
9624 ## ------------------------------------------ ##
9625 _ASBOX
9627 sed "s/^/$as_me: WARNING: /" >&2
9629 esac
9630 echo "$as_me:$LINENO: checking for $ac_header" >&5
9631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635 eval "$as_ac_Header=\$ac_header_preproc"
9637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9644 _ACEOF
9648 done
9653 for ac_header in fcntl.h sys/file.h sys/time.h
9655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9657 echo "$as_me:$LINENO: checking for $ac_header" >&5
9658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9664 else
9665 # Is the header compilable?
9666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 #include <$ac_header>
9676 _ACEOF
9677 rm -f conftest.$ac_objext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679 (eval $ac_compile) 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag"
9687 || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_header_compiler=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_header_compiler=no
9706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9708 echo "${ECHO_T}$ac_header_compiler" >&6
9710 # Is the header present?
9711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 #include <$ac_header>
9720 _ACEOF
9721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } >/dev/null; then
9729 if test -s conftest.err; then
9730 ac_cpp_err=$ac_c_preproc_warn_flag
9731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9732 else
9733 ac_cpp_err=
9735 else
9736 ac_cpp_err=yes
9738 if test -z "$ac_cpp_err"; then
9739 ac_header_preproc=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_header_preproc=no
9746 rm -f conftest.err conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9748 echo "${ECHO_T}$ac_header_preproc" >&6
9750 # So? What about this header?
9751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9752 yes:no: )
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9757 ac_header_preproc=yes
9759 no:yes:* )
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9773 cat <<\_ASBOX
9774 ## ------------------------------------------ ##
9775 ## Report this to the AC_PACKAGE_NAME lists. ##
9776 ## ------------------------------------------ ##
9777 _ASBOX
9779 sed "s/^/$as_me: WARNING: /" >&2
9781 esac
9782 echo "$as_me:$LINENO: checking for $ac_header" >&5
9783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 eval "$as_ac_Header=\$ac_header_preproc"
9789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9794 cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796 _ACEOF
9800 done
9802 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9803 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9804 if test "${ac_cv_header_time+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 #include <sys/types.h>
9814 #include <sys/time.h>
9815 #include <time.h>
9818 main ()
9820 if ((struct tm *) 0)
9821 return 0;
9823 return 0;
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 (eval $ac_try) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_header_time=yes
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_cv_header_time=no
9855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9858 echo "${ECHO_T}$ac_cv_header_time" >&6
9859 if test $ac_cv_header_time = yes; then
9861 cat >>confdefs.h <<\_ACEOF
9862 #define TIME_WITH_SYS_TIME 1
9863 _ACEOF
9872 ac_header_dirent=no
9873 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9874 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9875 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9876 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 #include <sys/types.h>
9887 #include <$ac_hdr>
9890 main ()
9892 if ((DIR *) 0)
9893 return 0;
9895 return 0;
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 eval "$as_ac_Header=yes"
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 eval "$as_ac_Header=no"
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9932 cat >>confdefs.h <<_ACEOF
9933 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9934 _ACEOF
9936 ac_header_dirent=$ac_hdr; break
9939 done
9940 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9941 if test $ac_header_dirent = dirent.h; then
9942 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9944 if test "${ac_cv_search_opendir+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 ac_func_search_save_LIBS=$LIBS
9948 ac_cv_search_opendir=no
9949 cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h. */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9956 /* Override any gcc2 internal prototype to avoid an error. */
9957 #ifdef __cplusplus
9958 extern "C"
9959 #endif
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9962 char opendir ();
9964 main ()
9966 opendir ();
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag"
9981 || test ! -s conftest.err'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_search_opendir="none required"
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9999 rm -f conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 if test "$ac_cv_search_opendir" = no; then
10002 for ac_lib in dir; do
10003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any gcc2 internal prototype to avoid an error. */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10017 char opendir ();
10019 main ()
10021 opendir ();
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest$ac_exeext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_cv_search_opendir="-l$ac_lib"
10049 break
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10055 rm -f conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 done
10059 LIBS=$ac_func_search_save_LIBS
10061 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10062 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10063 if test "$ac_cv_search_opendir" != no; then
10064 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10068 else
10069 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10070 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10071 if test "${ac_cv_search_opendir+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 ac_func_search_save_LIBS=$LIBS
10075 ac_cv_search_opendir=no
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any gcc2 internal prototype to avoid an error. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 /* We use char because int might match the return type of a gcc2
10088 builtin and then its argument prototype would still apply. */
10089 char opendir ();
10091 main ()
10093 opendir ();
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag"
10108 || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_search_opendir="none required"
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10126 rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 if test "$ac_cv_search_opendir" = no; then
10129 for ac_lib in x; do
10130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10131 cat >conftest.$ac_ext <<_ACEOF
10132 /* confdefs.h. */
10133 _ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10138 /* Override any gcc2 internal prototype to avoid an error. */
10139 #ifdef __cplusplus
10140 extern "C"
10141 #endif
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144 char opendir ();
10146 main ()
10148 opendir ();
10150 return 0;
10152 _ACEOF
10153 rm -f conftest.$ac_objext conftest$ac_exeext
10154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155 (eval $ac_link) 2>conftest.er1
10156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag"
10163 || test ! -s conftest.err'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_search_opendir="-l$ac_lib"
10176 break
10177 else
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10182 rm -f conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 done
10186 LIBS=$ac_func_search_save_LIBS
10188 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10189 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10190 if test "$ac_cv_search_opendir" != no; then
10191 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10197 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10198 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10199 if test "${gcc_cv_header_string+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 #include <string.h>
10209 #include <strings.h>
10211 main ()
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 gcc_cv_header_string=yes
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 gcc_cv_header_string=no
10247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10250 echo "${ECHO_T}$gcc_cv_header_string" >&6
10251 if test $gcc_cv_header_string = yes; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define STRING_WITH_STRINGS 1
10255 _ACEOF
10266 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269 echo "$as_me:$LINENO: checking for $ac_func" >&5
10270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10271 if eval "test \"\${$as_ac_var+set}\" = set"; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10282 #define $ac_func innocuous_$ac_func
10284 /* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char $ac_func (); below.
10286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10287 <limits.h> exists even on freestanding compilers. */
10289 #ifdef __STDC__
10290 # include <limits.h>
10291 #else
10292 # include <assert.h>
10293 #endif
10295 #undef $ac_func
10297 /* Override any gcc2 internal prototype to avoid an error. */
10298 #ifdef __cplusplus
10299 extern "C"
10301 #endif
10302 /* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10304 char $ac_func ();
10305 /* The GNU C library defines this for functions which it implements
10306 to always fail with ENOSYS. Some functions are actually named
10307 something starting with __ and the normal name is an alias. */
10308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10309 choke me
10310 #else
10311 char (*f) () = $ac_func;
10312 #endif
10313 #ifdef __cplusplus
10315 #endif
10318 main ()
10320 return f != $ac_func;
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 eval "$as_ac_var=yes"
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 eval "$as_ac_var=no"
10354 rm -f conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10359 if test `eval echo '${'$as_ac_var'}'` = yes; then
10360 cat >>confdefs.h <<_ACEOF
10361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10362 _ACEOF
10365 done
10368 for ac_func in strtoull
10370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10371 echo "$as_me:$LINENO: checking for $ac_func" >&5
10372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10373 if eval "test \"\${$as_ac_var+set}\" = set"; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h. */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10384 #define $ac_func innocuous_$ac_func
10386 /* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char $ac_func (); below.
10388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389 <limits.h> exists even on freestanding compilers. */
10391 #ifdef __STDC__
10392 # include <limits.h>
10393 #else
10394 # include <assert.h>
10395 #endif
10397 #undef $ac_func
10399 /* Override any gcc2 internal prototype to avoid an error. */
10400 #ifdef __cplusplus
10401 extern "C"
10403 #endif
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char $ac_func ();
10407 /* The GNU C library defines this for functions which it implements
10408 to always fail with ENOSYS. Some functions are actually named
10409 something starting with __ and the normal name is an alias. */
10410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10411 choke me
10412 #else
10413 char (*f) () = $ac_func;
10414 #endif
10415 #ifdef __cplusplus
10417 #endif
10420 main ()
10422 return f != $ac_func;
10424 return 0;
10426 _ACEOF
10427 rm -f conftest.$ac_objext conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag"
10437 || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 eval "$as_ac_var=yes"
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 eval "$as_ac_var=no"
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10461 if test `eval echo '${'$as_ac_var'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10464 _ACEOF
10467 done
10470 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10471 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10472 if test "${ac_cv_have_decl_basename+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10483 main ()
10485 #ifndef basename
10486 char *p = (char *) basename;
10487 #endif
10490 return 0;
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag"
10503 || test ! -s conftest.err'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_have_decl_basename=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_have_decl_basename=no
10522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10525 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10526 if test $ac_cv_have_decl_basename = yes; then
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_DECL_BASENAME 1
10530 _ACEOF
10533 else
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_DECL_BASENAME 0
10536 _ACEOF
10542 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10543 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10544 if test "${ac_cv_have_decl_ftello+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10555 main ()
10557 #ifndef ftello
10558 char *p = (char *) ftello;
10559 #endif
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_have_decl_ftello=yes
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_have_decl_ftello=no
10594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10597 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10598 if test $ac_cv_have_decl_ftello = yes; then
10600 cat >>confdefs.h <<_ACEOF
10601 #define HAVE_DECL_FTELLO 1
10602 _ACEOF
10605 else
10606 cat >>confdefs.h <<_ACEOF
10607 #define HAVE_DECL_FTELLO 0
10608 _ACEOF
10614 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10615 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10616 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 $ac_includes_default
10627 main ()
10629 #ifndef ftello64
10630 char *p = (char *) ftello64;
10631 #endif
10634 return 0;
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag"
10647 || test ! -s conftest.err'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_cv_have_decl_ftello64=yes
10660 else
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_cv_have_decl_ftello64=no
10666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10668 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10669 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10670 if test $ac_cv_have_decl_ftello64 = yes; then
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_DECL_FTELLO64 1
10674 _ACEOF
10677 else
10678 cat >>confdefs.h <<_ACEOF
10679 #define HAVE_DECL_FTELLO64 0
10680 _ACEOF
10686 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10687 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10688 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 $ac_includes_default
10699 main ()
10701 #ifndef fseeko
10702 char *p = (char *) fseeko;
10703 #endif
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext
10710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest.$ac_objext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_have_decl_fseeko=yes
10732 else
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_have_decl_fseeko=no
10738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10741 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10742 if test $ac_cv_have_decl_fseeko = yes; then
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE_DECL_FSEEKO 1
10746 _ACEOF
10749 else
10750 cat >>confdefs.h <<_ACEOF
10751 #define HAVE_DECL_FSEEKO 0
10752 _ACEOF
10758 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10759 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10760 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10771 main ()
10773 #ifndef fseeko64
10774 char *p = (char *) fseeko64;
10775 #endif
10778 return 0;
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_have_decl_fseeko64=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_have_decl_fseeko64=no
10810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10813 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10814 if test $ac_cv_have_decl_fseeko64 = yes; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define HAVE_DECL_FSEEKO64 1
10818 _ACEOF
10821 else
10822 cat >>confdefs.h <<_ACEOF
10823 #define HAVE_DECL_FSEEKO64 0
10824 _ACEOF
10832 case "${host}" in
10833 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10835 cat >>confdefs.h <<\_ACEOF
10836 #define USE_BINARY_FOPEN 1
10837 _ACEOF
10839 esac
10841 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10842 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10843 if test "${ac_cv_have_decl_ffs+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10854 main ()
10856 #ifndef ffs
10857 char *p = (char *) ffs;
10858 #endif
10861 return 0;
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866 (eval $ac_compile) 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag"
10874 || test ! -s conftest.err'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest.$ac_objext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_have_decl_ffs=yes
10887 else
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_cv_have_decl_ffs=no
10893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10895 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10896 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10897 if test $ac_cv_have_decl_ffs = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define HAVE_DECL_FFS 1
10901 _ACEOF
10904 else
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_DECL_FFS 0
10907 _ACEOF
10913 echo "$as_me:$LINENO: checking whether free is declared" >&5
10914 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10915 if test "${ac_cv_have_decl_free+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10926 main ()
10928 #ifndef free
10929 char *p = (char *) free;
10930 #endif
10933 return 0;
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_cv_have_decl_free=yes
10959 else
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_cv_have_decl_free=no
10965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10967 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10968 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10969 if test $ac_cv_have_decl_free = yes; then
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_DECL_FREE 1
10973 _ACEOF
10976 else
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_DECL_FREE 0
10979 _ACEOF
10985 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10986 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10987 if test "${ac_cv_have_decl_getenv+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 $ac_includes_default
10998 main ()
11000 #ifndef getenv
11001 char *p = (char *) getenv;
11002 #endif
11005 return 0;
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11010 (eval $ac_compile) 2>conftest.er1
11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -z "$ac_c_werror_flag"
11018 || test ! -s conftest.err'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_have_decl_getenv=yes
11031 else
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_cv_have_decl_getenv=no
11037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11040 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11041 if test $ac_cv_have_decl_getenv = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_DECL_GETENV 1
11045 _ACEOF
11048 else
11049 cat >>confdefs.h <<_ACEOF
11050 #define HAVE_DECL_GETENV 0
11051 _ACEOF
11057 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11058 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl_malloc+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h. */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 $ac_includes_default
11070 main ()
11072 #ifndef malloc
11073 char *p = (char *) malloc;
11074 #endif
11077 return 0;
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11082 (eval $ac_compile) 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -z "$ac_c_werror_flag"
11090 || test ! -s conftest.err'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_have_decl_malloc=yes
11103 else
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ac_cv_have_decl_malloc=no
11109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11111 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11112 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11113 if test $ac_cv_have_decl_malloc = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define HAVE_DECL_MALLOC 1
11117 _ACEOF
11120 else
11121 cat >>confdefs.h <<_ACEOF
11122 #define HAVE_DECL_MALLOC 0
11123 _ACEOF
11129 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11130 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11131 if test "${ac_cv_have_decl_realloc+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 $ac_includes_default
11142 main ()
11144 #ifndef realloc
11145 char *p = (char *) realloc;
11146 #endif
11149 return 0;
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_cv_have_decl_realloc=yes
11175 else
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_cv_have_decl_realloc=no
11181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11183 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11184 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11185 if test $ac_cv_have_decl_realloc = yes; then
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_DECL_REALLOC 1
11189 _ACEOF
11192 else
11193 cat >>confdefs.h <<_ACEOF
11194 #define HAVE_DECL_REALLOC 0
11195 _ACEOF
11201 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11202 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11203 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 $ac_includes_default
11214 main ()
11216 #ifndef stpcpy
11217 char *p = (char *) stpcpy;
11218 #endif
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_have_decl_stpcpy=yes
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 ac_cv_have_decl_stpcpy=no
11253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11255 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11256 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11257 if test $ac_cv_have_decl_stpcpy = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_STPCPY 1
11261 _ACEOF
11264 else
11265 cat >>confdefs.h <<_ACEOF
11266 #define HAVE_DECL_STPCPY 0
11267 _ACEOF
11273 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11274 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11275 if test "${ac_cv_have_decl_strstr+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11286 main ()
11288 #ifndef strstr
11289 char *p = (char *) strstr;
11290 #endif
11293 return 0;
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_have_decl_strstr=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_cv_have_decl_strstr=no
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11328 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11329 if test $ac_cv_have_decl_strstr = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define HAVE_DECL_STRSTR 1
11333 _ACEOF
11336 else
11337 cat >>confdefs.h <<_ACEOF
11338 #define HAVE_DECL_STRSTR 0
11339 _ACEOF
11345 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11346 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11347 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 $ac_includes_default
11358 main ()
11360 #ifndef snprintf
11361 char *p = (char *) snprintf;
11362 #endif
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_cv_have_decl_snprintf=yes
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_cv_have_decl_snprintf=no
11397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11400 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11401 if test $ac_cv_have_decl_snprintf = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404 #define HAVE_DECL_SNPRINTF 1
11405 _ACEOF
11408 else
11409 cat >>confdefs.h <<_ACEOF
11410 #define HAVE_DECL_SNPRINTF 0
11411 _ACEOF
11417 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11418 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11419 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422 cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11430 main ()
11432 #ifndef vsnprintf
11433 char *p = (char *) vsnprintf;
11434 #endif
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag"
11450 || test ! -s conftest.err'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_have_decl_vsnprintf=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_cv_have_decl_vsnprintf=no
11469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11472 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11473 if test $ac_cv_have_decl_vsnprintf = yes; then
11475 cat >>confdefs.h <<_ACEOF
11476 #define HAVE_DECL_VSNPRINTF 1
11477 _ACEOF
11480 else
11481 cat >>confdefs.h <<_ACEOF
11482 #define HAVE_DECL_VSNPRINTF 0
11483 _ACEOF
11490 # If we are configured native, pick a core file support file.
11491 COREFILE=
11492 COREFLAG=
11493 TRAD_HEADER=
11494 if test "${target}" = "${host}"; then
11495 case "${host}" in
11496 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11497 COREFILE=''
11499 alpha*-*-linux-*)
11500 COREFILE=trad-core.lo
11501 TRAD_HEADER='"hosts/alphalinux.h"'
11503 alpha*-*-netbsd* | alpha*-*-openbsd*)
11504 COREFILE=netbsd-core.lo
11506 alpha*-*-*) COREFILE=osf-core.lo ;;
11507 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11508 COREFILE='' ;;
11509 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11510 arm-*-riscix) COREFILE=trad-core.lo ;;
11511 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11512 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11513 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11514 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11515 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11516 hppa*-*-netbsd* | hppa*-*-openbsd*)
11517 COREFILE=netbsd-core.lo
11520 i370-*-*)
11521 COREFILE=trad-core.lo
11522 TRAD_HEADER='"hosts/i370linux.h"'
11525 i[3-7]86-sequent-bsd*)
11526 COREFILE=trad-core.lo
11527 TRAD_HEADER='"hosts/symmetry.h"'
11529 i[3-7]86-sequent-sysv4*) ;;
11530 i[3-7]86-sequent-sysv*)
11531 COREFILE=trad-core.lo
11532 TRAD_HEADER='"hosts/symmetry.h"'
11534 i[3-7]86-*-bsdi)
11535 COREFILE=
11537 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*)
11538 COREFILE=trad-core.lo
11539 TRAD_HEADER='"hosts/i386bsd.h"'
11541 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11542 COREFILE=''
11543 TRAD_HEADER='"hosts/i386bsd.h"'
11545 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11546 COREFILE=netbsd-core.lo
11548 i[3-7]86-esix-sysv3*)
11549 COREFILE=trad-core.lo
11550 TRAD_HEADER='"hosts/esix.h"'
11552 i[3-7]86-*-sco3.2v5*)
11553 COREFILE=sco5-core.lo
11555 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11556 COREFILE=trad-core.lo
11557 TRAD_HEADER='"hosts/i386sco.h"'
11559 i[3-7]86-*-mach3*)
11560 COREFILE=trad-core.lo
11561 TRAD_HEADER='"hosts/i386mach3.h"'
11563 i[3-7]86-*-linux-*)
11564 COREFILE=trad-core.lo
11565 TRAD_HEADER='"hosts/i386linux.h"'
11567 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11568 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11569 i860-*-mach3* | i860-*-osf1*)
11570 COREFILE=trad-core.lo
11571 TRAD_HEADER='"hosts/i860mach3.h"'
11573 mips-*-netbsd* | mips*-*-openbsd*)
11574 COREFILE=netbsd-core.lo
11576 mips-dec-*)
11577 COREFILE=trad-core.lo
11578 TRAD_HEADER='"hosts/decstation.h"'
11580 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11581 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11582 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11583 mips-*-sysv4*) ;;
11584 mips-*-sysv* | mips-*-riscos*)
11585 COREFILE=trad-core.lo
11586 TRAD_HEADER='"hosts/riscos.h"'
11588 mips-sony-bsd*)
11589 COREFILE=trad-core.lo
11590 TRAD_HEADER='"hosts/news-mips.h"'
11592 m68*-bull*-sysv*)
11593 COREFILE=trad-core.lo
11594 TRAD_HEADER='"hosts/dpx2.h"'
11596 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11597 m68*-hp-bsd*)
11598 COREFILE=trad-core.lo
11599 TRAD_HEADER='"hosts/hp300bsd.h"'
11601 m68*-*-linux-*)
11602 COREFILE=trad-core.lo
11603 TRAD_HEADER='"hosts/m68klinux.h"'
11605 m68*-motorola-sysv*)
11606 COREFILE=trad-core.lo
11607 TRAD_HEADER='"hosts/delta68.h"'
11609 m68*-sony-*)
11610 COREFILE=trad-core.lo
11611 TRAD_HEADER='"hosts/news.h"'
11613 m68*-*-netbsd* | m68*-*-openbsd*)
11614 COREFILE=netbsd-core.lo
11616 m68*-apple-aux*)
11617 COREFILE=trad-core.lo
11618 TRAD_HEADER='"hosts/m68kaux.h"'
11620 m88*-*-sysv4*)
11622 m88*-motorola-sysv*)
11623 COREFILE=ptrace-core.lo
11625 m88*-*-mach3*)
11626 COREFILE=trad-core.lo
11627 TRAD_HEADER='"hosts/m88kmach3.h"'
11629 m88*-*-openbsd*)
11630 COREFILE=netbsd-core.lo
11632 ns32k-pc532-mach)
11633 COREFILE=trad-core.lo
11634 TRAD_HEADER='"hosts/pc532mach.h"'
11636 ns32k-*-netbsd* | ns32k-*-openbsd*)
11637 COREFILE=netbsd-core.lo
11639 rs6000-*-lynx*)
11640 COREFILE=lynx-core.lo
11642 rs6000-*-aix5.* | powerpc-*-aix5.*)
11643 COREFILE=rs6000-core.lo
11644 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11646 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11647 COREFILE=rs6000-core.lo
11648 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11649 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11650 # have c_impl as a member of struct core_dumpx
11651 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11652 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h. */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <core.h>
11661 main ()
11663 struct core_dumpx c; c.c_impl = 0;
11665 return 0;
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670 (eval $ac_compile) 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_c_werror_flag"
11678 || test ! -s conftest.err'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE_ST_C_IMPL 1
11693 _ACEOF
11695 echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11697 else
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11706 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11707 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11708 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11709 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11710 powerpc-*-beos*) ;;
11711 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11712 COREFILE='' ;;
11713 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11714 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11715 s390*-*-*) COREFILE=trad-core.lo ;;
11716 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11717 sparc-*-netbsd* | sparc*-*-openbsd*)
11718 COREFILE=netbsd-core.lo
11720 tahoe-*-*)
11721 COREFILE=trad-core.lo
11722 TRAD_HEADER='"hosts/tahoe.h"'
11724 vax-*-netbsd* | vax-*-openbsd*)
11725 COREFILE=netbsd-core.lo
11727 vax-*-ultrix2*)
11728 COREFILE=trad-core.lo
11729 TRAD_HEADER='"hosts/vaxult2.h"'
11731 vax-*-ultrix*)
11732 COREFILE=trad-core.lo
11733 TRAD_HEADER='"hosts/vaxult2.h"'
11735 vax-*-linux-*)
11736 COREFILE=trad-core.lo
11737 TRAD_HEADER='"hosts/vaxlinux.h"'
11739 vax-*-*)
11740 COREFILE=trad-core.lo
11741 TRAD_HEADER='"hosts/vaxbsd.h"'
11743 x86_64-*-netbsd* | x86_64-*-openbsd*)
11744 COREFILE=netbsd-core.lo
11746 esac
11748 case "$COREFILE" in
11749 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11750 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11751 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11752 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11753 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11754 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11755 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11756 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11757 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11758 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11759 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11760 esac
11762 # ELF corefile support has several flavors, but all of
11763 # them use something called <sys/procfs.h>
11765 for ac_header in sys/procfs.h
11767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11769 echo "$as_me:$LINENO: checking for $ac_header" >&5
11770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11776 else
11777 # Is the header compilable?
11778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11780 cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h. */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11786 $ac_includes_default
11787 #include <$ac_header>
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_header_compiler=yes
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ac_header_compiler=no
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820 echo "${ECHO_T}$ac_header_compiler" >&6
11822 # Is the header present?
11823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #include <$ac_header>
11832 _ACEOF
11833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } >/dev/null; then
11841 if test -s conftest.err; then
11842 ac_cpp_err=$ac_c_preproc_warn_flag
11843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11844 else
11845 ac_cpp_err=
11847 else
11848 ac_cpp_err=yes
11850 if test -z "$ac_cpp_err"; then
11851 ac_header_preproc=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_header_preproc=no
11858 rm -f conftest.err conftest.$ac_ext
11859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 echo "${ECHO_T}$ac_header_preproc" >&6
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 yes:no: )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11871 no:yes:* )
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11885 cat <<\_ASBOX
11886 ## ------------------------------------------ ##
11887 ## Report this to the AC_PACKAGE_NAME lists. ##
11888 ## ------------------------------------------ ##
11889 _ASBOX
11891 sed "s/^/$as_me: WARNING: /" >&2
11893 esac
11894 echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899 eval "$as_ac_Header=\$ac_header_preproc"
11901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11908 _ACEOF
11912 done
11914 if test "$ac_cv_header_sys_procfs_h" = yes; then
11915 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11916 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11917 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h. */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11927 #define _SYSCALL32
11928 #include <sys/procfs.h>
11930 main ()
11932 prstatus_t avar
11934 return 0;
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 bfd_cv_have_sys_procfs_type_prstatus_t=no
11967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11970 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11972 cat >>confdefs.h <<\_ACEOF
11973 #define HAVE_PRSTATUS_T 1
11974 _ACEOF
11977 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11978 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11980 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11981 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11982 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h. */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11992 #define _SYSCALL32
11993 #include <sys/procfs.h>
11995 main ()
11997 prstatus32_t avar
11999 return 0;
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12025 else
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 bfd_cv_have_sys_procfs_type_prstatus32_t=no
12032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12035 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_PRSTATUS32_T 1
12039 _ACEOF
12042 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12043 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12045 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12046 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12047 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12057 #define _SYSCALL32
12058 #include <sys/procfs.h>
12060 main ()
12062 prstatus_t avar; void* aref = (void*) &avar.pr_who
12064 return 0;
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12090 else
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_PRSTATUS_T_PR_WHO 1
12104 _ACEOF
12107 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12108 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12110 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12111 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12112 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h. */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12122 #define _SYSCALL32
12123 #include <sys/procfs.h>
12125 main ()
12127 prstatus32_t avar; void* aref = (void*) &avar.pr_who
12129 return 0;
12131 _ACEOF
12132 rm -f conftest.$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12165 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_PRSTATUS32_T_PR_WHO 1
12169 _ACEOF
12172 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12173 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12175 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12176 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12177 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12187 #define _SYSCALL32
12188 #include <sys/procfs.h>
12190 main ()
12192 pstatus_t avar
12194 return 0;
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199 (eval $ac_compile) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag"
12207 || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 bfd_cv_have_sys_procfs_type_pstatus_t=no
12227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_PSTATUS_T 1
12234 _ACEOF
12237 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12238 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12240 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12241 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12242 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 #define _SYSCALL32
12253 #include <sys/procfs.h>
12255 main ()
12257 pxstatus_t avar
12259 return 0;
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define HAVE_PXSTATUS_T 1
12299 _ACEOF
12302 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12303 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12305 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12306 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12307 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 #define _SYSCALL32
12318 #include <sys/procfs.h>
12320 main ()
12322 pstatus32_t avar
12324 return 0;
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -z "$ac_c_werror_flag"
12337 || test ! -s conftest.err'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12360 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12362 cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_PSTATUS32_T 1
12364 _ACEOF
12367 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12368 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12370 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12371 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12372 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 #define _SYSCALL32
12383 #include <sys/procfs.h>
12385 main ()
12387 prpsinfo_t avar
12389 return 0;
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394 (eval $ac_compile) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12425 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_PRPSINFO_T 1
12429 _ACEOF
12432 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12433 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12435 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12436 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12437 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12447 #define _SYSCALL32
12448 #include <sys/procfs.h>
12450 main ()
12452 prpsinfo32_t avar
12454 return 0;
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12480 else
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12490 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_PRPSINFO32_T 1
12494 _ACEOF
12497 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12498 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12500 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12501 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12502 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 #define _SYSCALL32
12513 #include <sys/procfs.h>
12515 main ()
12517 psinfo_t avar
12519 return 0;
12521 _ACEOF
12522 rm -f conftest.$ac_objext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag"
12532 || test ! -s conftest.err'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12545 else
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 bfd_cv_have_sys_procfs_type_psinfo_t=no
12552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12555 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_PSINFO_T 1
12559 _ACEOF
12562 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12563 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12565 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12566 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12567 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h. */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12577 #define _SYSCALL32
12578 #include <sys/procfs.h>
12580 main ()
12582 psinfo32_t avar
12584 return 0;
12586 _ACEOF
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12610 else
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12620 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12622 cat >>confdefs.h <<\_ACEOF
12623 #define HAVE_PSINFO32_T 1
12624 _ACEOF
12627 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12628 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12630 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12631 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12632 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 #define _SYSCALL32
12643 #include <sys/procfs.h>
12645 main ()
12647 lwpstatus_t avar
12649 return 0;
12651 _ACEOF
12652 rm -f conftest.$ac_objext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -z "$ac_c_werror_flag"
12662 || test ! -s conftest.err'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } &&
12668 { ac_try='test -s conftest.$ac_objext'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12675 else
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_LWPSTATUS_T 1
12689 _ACEOF
12692 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12693 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12695 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12696 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12697 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 #define _SYSCALL32
12708 #include <sys/procfs.h>
12710 main ()
12712 lwpxstatus_t avar
12714 return 0;
12716 _ACEOF
12717 rm -f conftest.$ac_objext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>conftest.er1
12720 ac_status=$?
12721 grep -v '^ *+' conftest.er1 >conftest.err
12722 rm -f conftest.er1
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } &&
12726 { ac_try='test -z "$ac_c_werror_flag"
12727 || test ! -s conftest.err'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; } &&
12733 { ac_try='test -s conftest.$ac_objext'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12744 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12750 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_LWPXSTATUS_T 1
12754 _ACEOF
12757 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12758 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12760 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12761 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12762 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12772 #define _SYSCALL32
12773 #include <sys/procfs.h>
12775 main ()
12777 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12779 return 0;
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784 (eval $ac_compile) 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag"
12792 || test ! -s conftest.err'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest.$ac_objext'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; }; then
12804 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12805 else
12806 echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12815 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12817 cat >>confdefs.h <<\_ACEOF
12818 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12819 _ACEOF
12822 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12823 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12825 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12826 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12827 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12837 #define _SYSCALL32
12838 #include <sys/procfs.h>
12840 main ()
12842 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12844 return 0;
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag"
12857 || test ! -s conftest.err'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12870 else
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12880 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12882 cat >>confdefs.h <<\_ACEOF
12883 #define HAVE_LWPSTATUS_T_PR_REG 1
12884 _ACEOF
12887 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12888 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12890 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12891 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12892 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895 cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h. */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12902 #define _SYSCALL32
12903 #include <sys/procfs.h>
12905 main ()
12907 win32_pstatus_t avar
12909 return 0;
12911 _ACEOF
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12935 else
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12945 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12947 cat >>confdefs.h <<\_ACEOF
12948 #define HAVE_WIN32_PSTATUS_T 1
12949 _ACEOF
12952 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12953 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12959 if test -n "$TRAD_HEADER"; then
12961 cat >>confdefs.h <<_ACEOF
12962 #define TRAD_HEADER $TRAD_HEADER
12963 _ACEOF
12967 # Horrible hacks to build DLLs on Windows.
12968 WIN32LDFLAGS=
12969 WIN32LIBADD=
12970 case "${host}" in
12971 *-*-cygwin*)
12972 if test "$enable_shared" = "yes"; then
12973 WIN32LDFLAGS="-no-undefined"
12974 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12977 *-*-linux*)
12978 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12979 # libiberty.a.
12980 case "${host}" in
12981 mips*-*-linux*)
12982 # Linux/MIPS uses PIC by default.
12983 if test "$enable_shared" = "yes"; then
12984 WIN32LIBADD="-L../libiberty -liberty"
12988 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12989 if test -n "$x"; then
12990 WIN32LIBADD="-L../libiberty/pic -liberty"
12993 esac
12995 esac
12999 # target stuff:
13001 # Canonicalize the secondary target names.
13002 if test -n "$enable_targets" ; then
13003 for targ in `echo $enable_targets | sed 's/,/ /g'`
13005 result=`$ac_config_sub $targ 2>/dev/null`
13006 if test -n "$result" ; then
13007 canon_targets="$canon_targets $result"
13008 else
13009 # Allow targets that config.sub doesn't recognize, like "all".
13010 canon_targets="$canon_targets $targ"
13012 done
13015 all_targets=false
13016 defvec=
13017 selvecs=
13018 assocvecs=
13019 selarchs=
13020 TDEFINES=
13021 for targ in $target $canon_targets
13023 if test "x$targ" = "xall"; then
13024 all_targets=true
13025 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
13026 else
13027 . $srcdir/config.bfd
13028 if test "x$targ" = "x$target"; then
13029 defvec=$targ_defvec
13031 selvecs="$selvecs $targ_defvec $targ_selvecs"
13032 selarchs="$selarchs $targ_archs"
13033 TDEFINES="$TDEFINES $targ_cflags"
13035 done
13038 # This processing still needs to be done if we're to decide properly whether
13039 # 64-bit support needs to be compiled in. Currently, it will be included if
13040 # the default or any other explicitly requested target requires it; it
13041 # will not be included on a 32-bit host if no 64-bit target is requested, and
13042 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13043 # used.
13045 # uniq the default and selected vectors in all the configured targets.
13046 f=""
13047 for i in $selvecs ; do
13048 case " $f " in
13049 *" $i "*) ;;
13050 *) f="$f $i" ;;
13051 esac
13052 done
13053 selvecs="$f"
13056 # uniq the associated vectors in all the configured targets.
13057 f=""
13058 for i in $assocvecs ; do
13059 case " $f " in
13060 *" $i "*) ;;
13061 *) f="$f $i" ;;
13062 esac
13063 done
13064 assocvecs="$f"
13067 # uniq the architectures in all the configured targets.
13068 f=""
13069 for i in $selarchs ; do
13070 case " $f " in
13071 *" $i "*) ;;
13072 *) f="$f $i" ;;
13073 esac
13074 done
13075 selarchs="$f"
13077 # Target backend .o files.
13080 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13082 for vec in $selvecs
13084 target_size=32
13085 case "$vec" in
13086 # This list is alphabetized to make it easy to compare
13087 # with the two vector lists in targets.c. For the same reason,
13088 # use one entry per line, even though this leads to long lines.
13089 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13090 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13091 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13092 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13093 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13094 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13095 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13096 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13097 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13098 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13099 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13100 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13101 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13102 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13103 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13104 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13105 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13106 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13107 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13108 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13109 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13110 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13111 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13112 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13113 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13114 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13115 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13116 bfd_elf32_bigarm_symbian_vec)
13117 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13118 bfd_elf32_bigarm_vxworks_vec)
13119 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13120 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13121 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13122 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13123 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13124 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13125 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13126 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13127 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13128 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13129 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13130 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13131 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13132 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13133 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13134 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13135 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13136 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13137 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13138 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13139 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13140 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13141 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13142 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13143 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13144 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13145 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13146 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13147 bfd_elf32_littlearm_symbian_vec)
13148 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13149 bfd_elf32_littlearm_vxworks_vec)
13150 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13151 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13152 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13153 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13154 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13155 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13156 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13157 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13158 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13159 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13160 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13161 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13162 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13163 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13164 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13165 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13166 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13167 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13168 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13169 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13170 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13171 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13172 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13173 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13174 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13175 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13176 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13177 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13178 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13179 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13180 # FIXME: We include cofflink.lo not because it's needed for
13181 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13182 # which needs it but does not list it. Should be fixed in right place.
13183 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13184 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13185 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13186 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13187 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13188 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13189 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13190 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13191 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13192 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13193 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13194 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13195 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13196 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
13197 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13198 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13199 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13200 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13201 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13202 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13203 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13204 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13205 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13206 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13207 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13208 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13209 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13210 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13211 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13212 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13213 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13214 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13215 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13216 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13217 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13218 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13219 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13220 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13221 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13222 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13223 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13224 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13225 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13226 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13227 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
13228 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13229 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13230 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13231 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13232 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13233 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13234 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13235 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13236 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13237 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13238 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13239 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13240 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13241 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13242 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13243 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13244 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13245 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13246 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13247 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13248 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13249 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13250 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13251 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13252 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13253 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13254 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13255 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13256 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13257 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13258 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13259 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13260 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13261 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13262 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13263 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13264 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13265 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13266 ieee_vec) tb="$tb ieee.lo" ;;
13267 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13268 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13269 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13270 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13271 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13272 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13273 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13274 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13275 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13276 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13277 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13278 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13279 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13280 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13281 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13282 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13283 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13284 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13285 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13286 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13287 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13288 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13289 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13290 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13291 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13292 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13293 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13294 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13295 pef_vec) tb="$tb pef.lo" ;;
13296 pef_xlib_vec) tb="$tb pef.lo" ;;
13297 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13298 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13299 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13300 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13301 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13302 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13303 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13304 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13305 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13306 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13307 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13308 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13309 som_vec) tb="$tb som.lo" ;;
13310 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13311 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13312 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13313 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13314 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13315 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13316 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13317 sym_vec) tb="$tb xsym.lo" ;;
13318 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13319 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13320 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13321 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13322 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13323 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13324 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13325 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13326 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13327 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13328 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13329 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13330 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13331 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13332 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13333 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13334 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13335 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13336 versados_vec) tb="$tb versados.lo" ;;
13337 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13338 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13339 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13340 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13341 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13342 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13344 # These appear out of order in targets.c
13345 srec_vec) tb="$tb srec.lo" ;;
13346 symbolsrec_vec) tb="$tb srec.lo" ;;
13347 tekhex_vec) tb="$tb tekhex.lo" ;;
13348 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13349 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13351 "") ;;
13352 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13353 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13354 { (exit 1); exit 1; }; } ;;
13355 esac
13357 if test ${target_size} = 64; then
13358 target64=true
13360 if test x"${vec}" = x"${defvec}"; then
13361 bfd_default_target_size=${target_size}
13363 done
13365 # Target architecture .o files.
13366 # A couple of CPUs use shorter file names to avoid problems on DOS
13367 # filesystems.
13368 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13370 # Weed out duplicate .o files.
13371 f=""
13372 for i in $tb ; do
13373 case " $f " in
13374 *" $i "*) ;;
13375 *) f="$f $i" ;;
13376 esac
13377 done
13378 tb="$f"
13380 f=""
13381 for i in $ta ; do
13382 case " $f " in
13383 *" $i "*) ;;
13384 *) f="$f $i" ;;
13385 esac
13386 done
13387 ta="$f"
13389 bfd_backends="$tb"
13390 bfd_machines="$ta"
13392 if test x${all_targets} = xtrue ; then
13393 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13394 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13395 selvecs=
13396 havevecs=
13397 selarchs=
13398 test -n "$assocvecs" &&
13399 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13400 else # all_targets is true
13401 # Only set these if they will be nonempty, for the clever echo.
13402 havevecs=
13403 assocvecs=
13404 test -n "$selvecs" &&
13405 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13406 test -n "$selvecs" &&
13407 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13408 test -n "$selarchs" &&
13409 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13410 fi # all_targets is true
13412 case ${host64}-${target64}-${want64} in
13413 *true*)
13414 wordsize=64
13415 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13416 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13417 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13418 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13419 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13421 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13423 if test -n "$GCC" ; then
13424 bad_64bit_gcc=no;
13425 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13426 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13427 # Add more tests for gcc versions with non-working 64-bit support here.
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 :__GNUC__:__GNUC_MINOR__:__i386__:
13435 _ACEOF
13436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13437 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13438 bad_64bit_gcc=yes;
13439 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13440 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13441 else
13442 echo "$as_me:$LINENO: result: no" >&5
13443 echo "${ECHO_T}no" >&6
13445 rm -f conftest*
13447 if test $bad_64bit_gcc = yes ; then
13448 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13449 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13450 { (exit 1); exit 1; }; }
13454 false-false-false)
13455 wordsize=32
13456 bfd_libs='$(BFD32_LIBS)'
13457 all_backends='$(BFD32_BACKENDS)'
13459 esac
13468 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13469 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13470 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13471 # Hopefully a reasonable assumption since fseeko et.al. should be
13472 # upward compatible.
13478 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13481 echo "$as_me:$LINENO: checking for $ac_func" >&5
13482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13483 if eval "test \"\${$as_ac_var+set}\" = set"; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13494 #define $ac_func innocuous_$ac_func
13496 /* System header to define __stub macros and hopefully few prototypes,
13497 which can conflict with char $ac_func (); below.
13498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13499 <limits.h> exists even on freestanding compilers. */
13501 #ifdef __STDC__
13502 # include <limits.h>
13503 #else
13504 # include <assert.h>
13505 #endif
13507 #undef $ac_func
13509 /* Override any gcc2 internal prototype to avoid an error. */
13510 #ifdef __cplusplus
13511 extern "C"
13513 #endif
13514 /* We use char because int might match the return type of a gcc2
13515 builtin and then its argument prototype would still apply. */
13516 char $ac_func ();
13517 /* The GNU C library defines this for functions which it implements
13518 to always fail with ENOSYS. Some functions are actually named
13519 something starting with __ and the normal name is an alias. */
13520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13521 choke me
13522 #else
13523 char (*f) () = $ac_func;
13524 #endif
13525 #ifdef __cplusplus
13527 #endif
13530 main ()
13532 return f != $ac_func;
13534 return 0;
13536 _ACEOF
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>conftest.er1
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag"
13547 || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest$ac_exeext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 eval "$as_ac_var=yes"
13560 else
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 eval "$as_ac_var=no"
13566 rm -f conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13571 if test `eval echo '${'$as_ac_var'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13574 _ACEOF
13577 done
13579 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13580 echo "$as_me:$LINENO: checking for off_t" >&5
13581 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13582 if test "${ac_cv_type_off_t+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13593 main ()
13595 if ((off_t *) 0)
13596 return 0;
13597 if (sizeof (off_t))
13598 return 0;
13600 return 0;
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_type_off_t=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_type_off_t=no
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13635 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13637 echo "$as_me:$LINENO: checking size of off_t" >&5
13638 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13639 if test "${ac_cv_sizeof_off_t+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 if test "$ac_cv_type_off_t" = yes; then
13643 # The cast to unsigned long works around a bug in the HP C Compiler
13644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13646 # This bug is HP SR number 8606223364.
13647 if test "$cross_compiling" = yes; then
13648 # Depending upon the size, compute the lo and hi bounds.
13649 cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h. */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13657 main ()
13659 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13660 test_array [0] = 0
13663 return 0;
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_lo=0 ac_mid=0
13689 while :; do
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696 $ac_includes_default
13698 main ()
13700 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13701 test_array [0] = 0
13704 return 0;
13706 _ACEOF
13707 rm -f conftest.$ac_objext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709 (eval $ac_compile) 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest.$ac_objext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_hi=$ac_mid; break
13730 else
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_lo=`expr $ac_mid + 1`
13735 if test $ac_lo -le $ac_mid; then
13736 ac_lo= ac_hi=
13737 break
13739 ac_mid=`expr 2 '*' $ac_mid + 1`
13741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742 done
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 $ac_includes_default
13755 main ()
13757 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13758 test_array [0] = 0
13761 return 0;
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_hi=-1 ac_mid=-1
13787 while :; do
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 $ac_includes_default
13796 main ()
13798 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13799 test_array [0] = 0
13802 return 0;
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_lo=$ac_mid; break
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_hi=`expr '(' $ac_mid ')' - 1`
13833 if test $ac_mid -le $ac_hi; then
13834 ac_lo= ac_hi=
13835 break
13837 ac_mid=`expr 2 '*' $ac_mid`
13839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13840 done
13841 else
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13845 ac_lo= ac_hi=
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850 # Binary search between lo and hi bounds.
13851 while test "x$ac_lo" != "x$ac_hi"; do
13852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h. */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 $ac_includes_default
13861 main ()
13863 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13864 test_array [0] = 0
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest.$ac_objext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_hi=$ac_mid
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_lo=`expr '(' $ac_mid ')' + 1`
13899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13900 done
13901 case $ac_lo in
13902 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13904 See \`config.log' for more details." >&5
13905 echo "$as_me: error: cannot compute sizeof (off_t), 77
13906 See \`config.log' for more details." >&2;}
13907 { (exit 1); exit 1; }; } ;;
13908 esac
13909 else
13910 if test "$cross_compiling" = yes; then
13911 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13912 See \`config.log' for more details." >&5
13913 echo "$as_me: error: cannot run test program while cross compiling
13914 See \`config.log' for more details." >&2;}
13915 { (exit 1); exit 1; }; }
13916 else
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 $ac_includes_default
13924 long longval () { return (long) (sizeof (off_t)); }
13925 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13926 #include <stdio.h>
13927 #include <stdlib.h>
13929 main ()
13932 FILE *f = fopen ("conftest.val", "w");
13933 if (! f)
13934 exit (1);
13935 if (((long) (sizeof (off_t))) < 0)
13937 long i = longval ();
13938 if (i != ((long) (sizeof (off_t))))
13939 exit (1);
13940 fprintf (f, "%ld\n", i);
13942 else
13944 unsigned long i = ulongval ();
13945 if (i != ((long) (sizeof (off_t))))
13946 exit (1);
13947 fprintf (f, "%lu\n", i);
13949 exit (ferror (f) || fclose (f) != 0);
13952 return 0;
13954 _ACEOF
13955 rm -f conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957 (eval $ac_link) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_sizeof_off_t=`cat conftest.val`
13967 else
13968 echo "$as_me: program exited with status $ac_status" >&5
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ( exit $ac_status )
13973 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13974 See \`config.log' for more details." >&5
13975 echo "$as_me: error: cannot compute sizeof (off_t), 77
13976 See \`config.log' for more details." >&2;}
13977 { (exit 1); exit 1; }; }
13979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13982 rm -f conftest.val
13983 else
13984 ac_cv_sizeof_off_t=0
13987 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13988 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13989 cat >>confdefs.h <<_ACEOF
13990 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13991 _ACEOF
13995 echo "$as_me:$LINENO: checking file_ptr type" >&5
13996 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13997 bfd_file_ptr="long"
13998 bfd_ufile_ptr="unsigned long"
13999 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14000 -o x"${ac_cv_sizeof_off_t}" = x8; then
14001 bfd_file_ptr=BFD_HOST_64_BIT
14002 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14004 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14005 echo "${ECHO_T}$bfd_file_ptr" >&6
14010 tdefaults=""
14011 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14012 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14013 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14014 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14015 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
14020 for ac_header in stdlib.h unistd.h
14022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14024 echo "$as_me:$LINENO: checking for $ac_header" >&5
14025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031 else
14032 # Is the header compilable?
14033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 $ac_includes_default
14042 #include <$ac_header>
14043 _ACEOF
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>conftest.er1
14047 ac_status=$?
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_header_compiler=yes
14067 else
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_header_compiler=no
14073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14075 echo "${ECHO_T}$ac_header_compiler" >&6
14077 # Is the header present?
14078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h. */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 #include <$ac_header>
14087 _ACEOF
14088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } >/dev/null; then
14096 if test -s conftest.err; then
14097 ac_cpp_err=$ac_c_preproc_warn_flag
14098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14099 else
14100 ac_cpp_err=
14102 else
14103 ac_cpp_err=yes
14105 if test -z "$ac_cpp_err"; then
14106 ac_header_preproc=yes
14107 else
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_header_preproc=no
14113 rm -f conftest.err conftest.$ac_ext
14114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14115 echo "${ECHO_T}$ac_header_preproc" >&6
14117 # So? What about this header?
14118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14119 yes:no: )
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14124 ac_header_preproc=yes
14126 no:yes:* )
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14140 cat <<\_ASBOX
14141 ## ------------------------------------------ ##
14142 ## Report this to the AC_PACKAGE_NAME lists. ##
14143 ## ------------------------------------------ ##
14144 _ASBOX
14146 sed "s/^/$as_me: WARNING: /" >&2
14148 esac
14149 echo "$as_me:$LINENO: checking for $ac_header" >&5
14150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154 eval "$as_ac_Header=\$ac_header_preproc"
14156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14161 cat >>confdefs.h <<_ACEOF
14162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14163 _ACEOF
14167 done
14170 for ac_func in getpagesize
14172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14173 echo "$as_me:$LINENO: checking for $ac_func" >&5
14174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14175 if eval "test \"\${$as_ac_var+set}\" = set"; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14186 #define $ac_func innocuous_$ac_func
14188 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char $ac_func (); below.
14190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14191 <limits.h> exists even on freestanding compilers. */
14193 #ifdef __STDC__
14194 # include <limits.h>
14195 #else
14196 # include <assert.h>
14197 #endif
14199 #undef $ac_func
14201 /* Override any gcc2 internal prototype to avoid an error. */
14202 #ifdef __cplusplus
14203 extern "C"
14205 #endif
14206 /* We use char because int might match the return type of a gcc2
14207 builtin and then its argument prototype would still apply. */
14208 char $ac_func ();
14209 /* The GNU C library defines this for functions which it implements
14210 to always fail with ENOSYS. Some functions are actually named
14211 something starting with __ and the normal name is an alias. */
14212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14213 choke me
14214 #else
14215 char (*f) () = $ac_func;
14216 #endif
14217 #ifdef __cplusplus
14219 #endif
14222 main ()
14224 return f != $ac_func;
14226 return 0;
14228 _ACEOF
14229 rm -f conftest.$ac_objext conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest$ac_exeext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 eval "$as_ac_var=yes"
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 eval "$as_ac_var=no"
14258 rm -f conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14263 if test `eval echo '${'$as_ac_var'}'` = yes; then
14264 cat >>confdefs.h <<_ACEOF
14265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14266 _ACEOF
14269 done
14271 echo "$as_me:$LINENO: checking for working mmap" >&5
14272 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14273 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 if test "$cross_compiling" = yes; then
14277 ac_cv_func_mmap_fixed_mapped=no
14278 else
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 $ac_includes_default
14286 /* malloc might have been renamed as rpl_malloc. */
14287 #undef malloc
14289 /* Thanks to Mike Haertel and Jim Avera for this test.
14290 Here is a matrix of mmap possibilities:
14291 mmap private not fixed
14292 mmap private fixed at somewhere currently unmapped
14293 mmap private fixed at somewhere already mapped
14294 mmap shared not fixed
14295 mmap shared fixed at somewhere currently unmapped
14296 mmap shared fixed at somewhere already mapped
14297 For private mappings, we should verify that changes cannot be read()
14298 back from the file, nor mmap's back from the file at a different
14299 address. (There have been systems where private was not correctly
14300 implemented like the infamous i386 svr4.0, and systems where the
14301 VM page cache was not coherent with the file system buffer cache
14302 like early versions of FreeBSD and possibly contemporary NetBSD.)
14303 For shared mappings, we should conversely verify that changes get
14304 propagated back to all the places they're supposed to be.
14306 Grep wants private fixed already mapped.
14307 The main things grep needs to know about mmap are:
14308 * does it exist and is it safe to write into the mmap'd area
14309 * how to use it (BSD variants) */
14311 #include <fcntl.h>
14312 #include <sys/mman.h>
14314 #if !STDC_HEADERS && !HAVE_STDLIB_H
14315 char *malloc ();
14316 #endif
14318 /* This mess was copied from the GNU getpagesize.h. */
14319 #if !HAVE_GETPAGESIZE
14320 /* Assume that all systems that can run configure have sys/param.h. */
14321 # if !HAVE_SYS_PARAM_H
14322 # define HAVE_SYS_PARAM_H 1
14323 # endif
14325 # ifdef _SC_PAGESIZE
14326 # define getpagesize() sysconf(_SC_PAGESIZE)
14327 # else /* no _SC_PAGESIZE */
14328 # if HAVE_SYS_PARAM_H
14329 # include <sys/param.h>
14330 # ifdef EXEC_PAGESIZE
14331 # define getpagesize() EXEC_PAGESIZE
14332 # else /* no EXEC_PAGESIZE */
14333 # ifdef NBPG
14334 # define getpagesize() NBPG * CLSIZE
14335 # ifndef CLSIZE
14336 # define CLSIZE 1
14337 # endif /* no CLSIZE */
14338 # else /* no NBPG */
14339 # ifdef NBPC
14340 # define getpagesize() NBPC
14341 # else /* no NBPC */
14342 # ifdef PAGESIZE
14343 # define getpagesize() PAGESIZE
14344 # endif /* PAGESIZE */
14345 # endif /* no NBPC */
14346 # endif /* no NBPG */
14347 # endif /* no EXEC_PAGESIZE */
14348 # else /* no HAVE_SYS_PARAM_H */
14349 # define getpagesize() 8192 /* punt totally */
14350 # endif /* no HAVE_SYS_PARAM_H */
14351 # endif /* no _SC_PAGESIZE */
14353 #endif /* no HAVE_GETPAGESIZE */
14356 main ()
14358 char *data, *data2, *data3;
14359 int i, pagesize;
14360 int fd;
14362 pagesize = getpagesize ();
14364 /* First, make a file with some known garbage in it. */
14365 data = (char *) malloc (pagesize);
14366 if (!data)
14367 exit (1);
14368 for (i = 0; i < pagesize; ++i)
14369 *(data + i) = rand ();
14370 umask (0);
14371 fd = creat ("conftest.mmap", 0600);
14372 if (fd < 0)
14373 exit (1);
14374 if (write (fd, data, pagesize) != pagesize)
14375 exit (1);
14376 close (fd);
14378 /* Next, try to mmap the file at a fixed address which already has
14379 something else allocated at it. If we can, also make sure that
14380 we see the same garbage. */
14381 fd = open ("conftest.mmap", O_RDWR);
14382 if (fd < 0)
14383 exit (1);
14384 data2 = (char *) malloc (2 * pagesize);
14385 if (!data2)
14386 exit (1);
14387 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14388 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14389 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14390 exit (1);
14391 for (i = 0; i < pagesize; ++i)
14392 if (*(data + i) != *(data2 + i))
14393 exit (1);
14395 /* Finally, make sure that changes to the mapped area do not
14396 percolate back to the file as seen by read(). (This is a bug on
14397 some variants of i386 svr4.0.) */
14398 for (i = 0; i < pagesize; ++i)
14399 *(data2 + i) = *(data2 + i) + 1;
14400 data3 = (char *) malloc (pagesize);
14401 if (!data3)
14402 exit (1);
14403 if (read (fd, data3, pagesize) != pagesize)
14404 exit (1);
14405 for (i = 0; i < pagesize; ++i)
14406 if (*(data + i) != *(data3 + i))
14407 exit (1);
14408 close (fd);
14409 exit (0);
14411 _ACEOF
14412 rm -f conftest$ac_exeext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14414 (eval $ac_link) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_cv_func_mmap_fixed_mapped=yes
14424 else
14425 echo "$as_me: program exited with status $ac_status" >&5
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ( exit $ac_status )
14430 ac_cv_func_mmap_fixed_mapped=no
14432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14435 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14436 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14437 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_MMAP 1
14441 _ACEOF
14444 rm -f conftest.mmap
14448 for ac_func in madvise mprotect
14450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14451 echo "$as_me:$LINENO: checking for $ac_func" >&5
14452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14453 if eval "test \"\${$as_ac_var+set}\" = set"; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 else
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h. */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14464 #define $ac_func innocuous_$ac_func
14466 /* System header to define __stub macros and hopefully few prototypes,
14467 which can conflict with char $ac_func (); below.
14468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14469 <limits.h> exists even on freestanding compilers. */
14471 #ifdef __STDC__
14472 # include <limits.h>
14473 #else
14474 # include <assert.h>
14475 #endif
14477 #undef $ac_func
14479 /* Override any gcc2 internal prototype to avoid an error. */
14480 #ifdef __cplusplus
14481 extern "C"
14483 #endif
14484 /* We use char because int might match the return type of a gcc2
14485 builtin and then its argument prototype would still apply. */
14486 char $ac_func ();
14487 /* The GNU C library defines this for functions which it implements
14488 to always fail with ENOSYS. Some functions are actually named
14489 something starting with __ and the normal name is an alias. */
14490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14491 choke me
14492 #else
14493 char (*f) () = $ac_func;
14494 #endif
14495 #ifdef __cplusplus
14497 #endif
14500 main ()
14502 return f != $ac_func;
14504 return 0;
14506 _ACEOF
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 eval "$as_ac_var=yes"
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 eval "$as_ac_var=no"
14536 rm -f conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14541 if test `eval echo '${'$as_ac_var'}'` = yes; then
14542 cat >>confdefs.h <<_ACEOF
14543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14544 _ACEOF
14547 done
14549 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14550 true+yes )
14551 cat >>confdefs.h <<\_ACEOF
14552 #define USE_MMAP 1
14553 _ACEOF
14555 esac
14557 rm -f doc/config.status
14558 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14560 ac_config_commands="$ac_config_commands default"
14567 cat >confcache <<\_ACEOF
14568 # This file is a shell script that caches the results of configure
14569 # tests run on this system so they can be shared between configure
14570 # scripts and configure runs, see configure's option --config-cache.
14571 # It is not useful on other systems. If it contains results you don't
14572 # want to keep, you may remove or edit it.
14574 # config.status only pays attention to the cache file if you give it
14575 # the --recheck option to rerun configure.
14577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14579 # following values.
14581 _ACEOF
14583 # The following way of writing the cache mishandles newlines in values,
14584 # but we know of no workaround that is simple, portable, and efficient.
14585 # So, don't put newlines in cache variables' values.
14586 # Ultrix sh set writes to stderr and can't be redirected directly,
14587 # and sets the high bit in the cache file unless we assign to the vars.
14589 (set) 2>&1 |
14590 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14591 *ac_space=\ *)
14592 # `set' does not quote correctly, so add quotes (double-quote
14593 # substitution turns \\\\ into \\, and sed turns \\ into \).
14594 sed -n \
14595 "s/'/'\\\\''/g;
14596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14599 # `set' quotes correctly as required by POSIX, so do not add quotes.
14600 sed -n \
14601 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14603 esac;
14605 sed '
14606 t clear
14607 : clear
14608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14609 t end
14610 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14611 : end' >>confcache
14612 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14613 if test -w $cache_file; then
14614 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14615 cat confcache >$cache_file
14616 else
14617 echo "not updating unwritable cache $cache_file"
14620 rm -f confcache
14622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14623 # Let make expand exec_prefix.
14624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14628 # trailing colons and then remove the whole line if VPATH becomes empty
14629 # (actually we leave an empty line to preserve line numbers).
14630 if test "x$srcdir" = x.; then
14631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14632 s/:*\$(srcdir):*/:/;
14633 s/:*\${srcdir}:*/:/;
14634 s/:*@srcdir@:*/:/;
14635 s/^\([^=]*=[ ]*\):*/\1/;
14636 s/:*$//;
14637 s/^[^=]*=[ ]*$//;
14641 DEFS=-DHAVE_CONFIG_H
14643 ac_libobjs=
14644 ac_ltlibobjs=
14645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14646 # 1. Remove the extension, and $U if already installed.
14647 ac_i=`echo "$ac_i" |
14648 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14649 # 2. Add them.
14650 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14651 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14652 done
14653 LIBOBJS=$ac_libobjs
14655 LTLIBOBJS=$ac_ltlibobjs
14658 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14659 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14660 Usually this means the macro was only invoked conditionally." >&5
14661 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14662 Usually this means the macro was only invoked conditionally." >&2;}
14663 { (exit 1); exit 1; }; }
14665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14666 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14667 Usually this means the macro was only invoked conditionally." >&5
14668 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14669 Usually this means the macro was only invoked conditionally." >&2;}
14670 { (exit 1); exit 1; }; }
14672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14673 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14674 Usually this means the macro was only invoked conditionally." >&5
14675 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14676 Usually this means the macro was only invoked conditionally." >&2;}
14677 { (exit 1); exit 1; }; }
14679 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14680 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14681 Usually this means the macro was only invoked conditionally." >&5
14682 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14683 Usually this means the macro was only invoked conditionally." >&2;}
14684 { (exit 1); exit 1; }; }
14687 : ${CONFIG_STATUS=./config.status}
14688 ac_clean_files_save=$ac_clean_files
14689 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14690 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14691 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14692 cat >$CONFIG_STATUS <<_ACEOF
14693 #! $SHELL
14694 # Generated by $as_me.
14695 # Run this file to recreate the current configuration.
14696 # Compiler output produced by configure, useful for debugging
14697 # configure, is in config.log if it exists.
14699 debug=false
14700 ac_cs_recheck=false
14701 ac_cs_silent=false
14702 SHELL=\${CONFIG_SHELL-$SHELL}
14703 _ACEOF
14705 cat >>$CONFIG_STATUS <<\_ACEOF
14706 ## --------------------- ##
14707 ## M4sh Initialization. ##
14708 ## --------------------- ##
14710 # Be Bourne compatible
14711 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14712 emulate sh
14713 NULLCMD=:
14714 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14715 # is contrary to our usage. Disable this feature.
14716 alias -g '${1+"$@"}'='"$@"'
14717 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14718 set -o posix
14720 DUALCASE=1; export DUALCASE # for MKS sh
14722 # Support unset when possible.
14723 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14724 as_unset=unset
14725 else
14726 as_unset=false
14730 # Work around bugs in pre-3.0 UWIN ksh.
14731 $as_unset ENV MAIL MAILPATH
14732 PS1='$ '
14733 PS2='> '
14734 PS4='+ '
14736 # NLS nuisances.
14737 for as_var in \
14738 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14739 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14740 LC_TELEPHONE LC_TIME
14742 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14743 eval $as_var=C; export $as_var
14744 else
14745 $as_unset $as_var
14747 done
14749 # Required to use basename.
14750 if expr a : '\(a\)' >/dev/null 2>&1; then
14751 as_expr=expr
14752 else
14753 as_expr=false
14756 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14757 as_basename=basename
14758 else
14759 as_basename=false
14763 # Name of the executable.
14764 as_me=`$as_basename "$0" ||
14765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14766 X"$0" : 'X\(//\)$' \| \
14767 X"$0" : 'X\(/\)$' \| \
14768 . : '\(.\)' 2>/dev/null ||
14769 echo X/"$0" |
14770 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14771 /^X\/\(\/\/\)$/{ s//\1/; q; }
14772 /^X\/\(\/\).*/{ s//\1/; q; }
14773 s/.*/./; q'`
14776 # PATH needs CR, and LINENO needs CR and PATH.
14777 # Avoid depending upon Character Ranges.
14778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14781 as_cr_digits='0123456789'
14782 as_cr_alnum=$as_cr_Letters$as_cr_digits
14784 # The user is always right.
14785 if test "${PATH_SEPARATOR+set}" != set; then
14786 echo "#! /bin/sh" >conf$$.sh
14787 echo "exit 0" >>conf$$.sh
14788 chmod +x conf$$.sh
14789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14790 PATH_SEPARATOR=';'
14791 else
14792 PATH_SEPARATOR=:
14794 rm -f conf$$.sh
14798 as_lineno_1=$LINENO
14799 as_lineno_2=$LINENO
14800 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14801 test "x$as_lineno_1" != "x$as_lineno_2" &&
14802 test "x$as_lineno_3" = "x$as_lineno_2" || {
14803 # Find who we are. Look in the path if we contain no path at all
14804 # relative or not.
14805 case $0 in
14806 *[\\/]* ) as_myself=$0 ;;
14807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14810 IFS=$as_save_IFS
14811 test -z "$as_dir" && as_dir=.
14812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14813 done
14816 esac
14817 # We did not find ourselves, most probably we were run as `sh COMMAND'
14818 # in which case we are not to be found in the path.
14819 if test "x$as_myself" = x; then
14820 as_myself=$0
14822 if test ! -f "$as_myself"; then
14823 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14824 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14825 { (exit 1); exit 1; }; }
14827 case $CONFIG_SHELL in
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14832 IFS=$as_save_IFS
14833 test -z "$as_dir" && as_dir=.
14834 for as_base in sh bash ksh sh5; do
14835 case $as_dir in
14837 if ("$as_dir/$as_base" -c '
14838 as_lineno_1=$LINENO
14839 as_lineno_2=$LINENO
14840 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14841 test "x$as_lineno_1" != "x$as_lineno_2" &&
14842 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14843 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14844 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14845 CONFIG_SHELL=$as_dir/$as_base
14846 export CONFIG_SHELL
14847 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14848 fi;;
14849 esac
14850 done
14851 done
14853 esac
14855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14856 # uniformly replaced by the line number. The first 'sed' inserts a
14857 # line-number line before each line; the second 'sed' does the real
14858 # work. The second script uses 'N' to pair each line-number line
14859 # with the numbered line, and appends trailing '-' during
14860 # substitution so that $LINENO is not a special case at line end.
14861 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14862 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14863 sed '=' <$as_myself |
14864 sed '
14866 s,$,-,
14867 : loop
14868 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14869 t loop
14870 s,-$,,
14871 s,^['$as_cr_digits']*\n,,
14872 ' >$as_me.lineno &&
14873 chmod +x $as_me.lineno ||
14874 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14875 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14876 { (exit 1); exit 1; }; }
14878 # Don't try to exec as it changes $[0], causing all sort of problems
14879 # (the dirname of $[0] is not the place where we might find the
14880 # original and so on. Autoconf is especially sensible to this).
14881 . ./$as_me.lineno
14882 # Exit status is that of the last command.
14883 exit
14887 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14888 *c*,-n*) ECHO_N= ECHO_C='
14889 ' ECHO_T=' ' ;;
14890 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14891 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14892 esac
14894 if expr a : '\(a\)' >/dev/null 2>&1; then
14895 as_expr=expr
14896 else
14897 as_expr=false
14900 rm -f conf$$ conf$$.exe conf$$.file
14901 echo >conf$$.file
14902 if ln -s conf$$.file conf$$ 2>/dev/null; then
14903 # We could just check for DJGPP; but this test a) works b) is more generic
14904 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14905 if test -f conf$$.exe; then
14906 # Don't use ln at all; we don't have any links
14907 as_ln_s='cp -p'
14908 else
14909 as_ln_s='ln -s'
14911 elif ln conf$$.file conf$$ 2>/dev/null; then
14912 as_ln_s=ln
14913 else
14914 as_ln_s='cp -p'
14916 rm -f conf$$ conf$$.exe conf$$.file
14918 if mkdir -p . 2>/dev/null; then
14919 as_mkdir_p=:
14920 else
14921 test -d ./-p && rmdir ./-p
14922 as_mkdir_p=false
14925 as_executable_p="test -f"
14927 # Sed expression to map a string onto a valid CPP name.
14928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14930 # Sed expression to map a string onto a valid variable name.
14931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14934 # IFS
14935 # We need space, tab and new line, in precisely that order.
14936 as_nl='
14938 IFS=" $as_nl"
14940 # CDPATH.
14941 $as_unset CDPATH
14943 exec 6>&1
14945 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14946 # report actual input values of CONFIG_FILES etc. instead of their
14947 # values after options handling. Logging --version etc. is OK.
14948 exec 5>>config.log
14950 echo
14951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14952 ## Running $as_me. ##
14953 _ASBOX
14954 } >&5
14955 cat >&5 <<_CSEOF
14957 This file was extended by $as_me, which was
14958 generated by GNU Autoconf 2.59. Invocation command line was
14960 CONFIG_FILES = $CONFIG_FILES
14961 CONFIG_HEADERS = $CONFIG_HEADERS
14962 CONFIG_LINKS = $CONFIG_LINKS
14963 CONFIG_COMMANDS = $CONFIG_COMMANDS
14964 $ $0 $@
14966 _CSEOF
14967 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14968 echo >&5
14969 _ACEOF
14971 # Files that config.status was made for.
14972 if test -n "$ac_config_files"; then
14973 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14976 if test -n "$ac_config_headers"; then
14977 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14980 if test -n "$ac_config_links"; then
14981 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14984 if test -n "$ac_config_commands"; then
14985 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14988 cat >>$CONFIG_STATUS <<\_ACEOF
14990 ac_cs_usage="\
14991 \`$as_me' instantiates files from templates according to the
14992 current configuration.
14994 Usage: $0 [OPTIONS] [FILE]...
14996 -h, --help print this help, then exit
14997 -V, --version print version number, then exit
14998 -q, --quiet do not print progress messages
14999 -d, --debug don't remove temporary files
15000 --recheck update $as_me by reconfiguring in the same conditions
15001 --file=FILE[:TEMPLATE]
15002 instantiate the configuration file FILE
15003 --header=FILE[:TEMPLATE]
15004 instantiate the configuration header FILE
15006 Configuration files:
15007 $config_files
15009 Configuration headers:
15010 $config_headers
15012 Configuration commands:
15013 $config_commands
15015 Report bugs to <bug-autoconf@gnu.org>."
15016 _ACEOF
15018 cat >>$CONFIG_STATUS <<_ACEOF
15019 ac_cs_version="\\
15020 config.status
15021 configured by $0, generated by GNU Autoconf 2.59,
15022 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15024 Copyright (C) 2003 Free Software Foundation, Inc.
15025 This config.status script is free software; the Free Software Foundation
15026 gives unlimited permission to copy, distribute and modify it."
15027 srcdir=$srcdir
15028 INSTALL="$INSTALL"
15029 _ACEOF
15031 cat >>$CONFIG_STATUS <<\_ACEOF
15032 # If no file are specified by the user, then we need to provide default
15033 # value. By we need to know if files were specified by the user.
15034 ac_need_defaults=:
15035 while test $# != 0
15037 case $1 in
15038 --*=*)
15039 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15040 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15041 ac_shift=:
15044 ac_option=$1
15045 ac_optarg=$2
15046 ac_shift=shift
15048 *) # This is not an option, so the user has probably given explicit
15049 # arguments.
15050 ac_option=$1
15051 ac_need_defaults=false;;
15052 esac
15054 case $ac_option in
15055 # Handling of the options.
15056 _ACEOF
15057 cat >>$CONFIG_STATUS <<\_ACEOF
15058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15059 ac_cs_recheck=: ;;
15060 --version | --vers* | -V )
15061 echo "$ac_cs_version"; exit 0 ;;
15062 --he | --h)
15063 # Conflict between --help and --header
15064 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15065 Try \`$0 --help' for more information." >&5
15066 echo "$as_me: error: ambiguous option: $1
15067 Try \`$0 --help' for more information." >&2;}
15068 { (exit 1); exit 1; }; };;
15069 --help | --hel | -h )
15070 echo "$ac_cs_usage"; exit 0 ;;
15071 --debug | --d* | -d )
15072 debug=: ;;
15073 --file | --fil | --fi | --f )
15074 $ac_shift
15075 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15076 ac_need_defaults=false;;
15077 --header | --heade | --head | --hea )
15078 $ac_shift
15079 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15080 ac_need_defaults=false;;
15081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15082 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15083 ac_cs_silent=: ;;
15085 # This is an error.
15086 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15087 Try \`$0 --help' for more information." >&5
15088 echo "$as_me: error: unrecognized option: $1
15089 Try \`$0 --help' for more information." >&2;}
15090 { (exit 1); exit 1; }; } ;;
15092 *) ac_config_targets="$ac_config_targets $1" ;;
15094 esac
15095 shift
15096 done
15098 ac_configure_extra_args=
15100 if $ac_cs_silent; then
15101 exec 6>/dev/null
15102 ac_configure_extra_args="$ac_configure_extra_args --silent"
15105 _ACEOF
15106 cat >>$CONFIG_STATUS <<_ACEOF
15107 if \$ac_cs_recheck; then
15108 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15109 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15112 _ACEOF
15114 cat >>$CONFIG_STATUS <<_ACEOF
15116 # INIT-COMMANDS section.
15119 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15122 _ACEOF
15126 cat >>$CONFIG_STATUS <<\_ACEOF
15127 for ac_config_target in $ac_config_targets
15129 case "$ac_config_target" in
15130 # Handling of arguments.
15131 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15132 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15133 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15134 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15135 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15136 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15137 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15140 { (exit 1); exit 1; }; };;
15141 esac
15142 done
15144 # If the user did not use the arguments to specify the items to instantiate,
15145 # then the envvar interface is used. Set only those that are not.
15146 # We use the long form for the default assignment because of an extremely
15147 # bizarre bug on SunOS 4.1.3.
15148 if $ac_need_defaults; then
15149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15154 # Have a temporary directory for convenience. Make it in the build tree
15155 # simply because there is no reason to put it here, and in addition,
15156 # creating and moving files from /tmp can sometimes cause problems.
15157 # Create a temporary directory, and hook for its removal unless debugging.
15158 $debug ||
15160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15161 trap '{ (exit 1); exit 1; }' 1 2 13 15
15164 # Create a (secure) tmp directory for tmp files.
15167 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15168 test -n "$tmp" && test -d "$tmp"
15169 } ||
15171 tmp=./confstat$$-$RANDOM
15172 (umask 077 && mkdir $tmp)
15173 } ||
15175 echo "$me: cannot create a temporary directory in ." >&2
15176 { (exit 1); exit 1; }
15179 _ACEOF
15181 cat >>$CONFIG_STATUS <<_ACEOF
15184 # CONFIG_FILES section.
15187 # No need to generate the scripts if there are no CONFIG_FILES.
15188 # This happens for instance when ./config.status config.h
15189 if test -n "\$CONFIG_FILES"; then
15190 # Protect against being on the right side of a sed subst in config.status.
15191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15193 s,@SHELL@,$SHELL,;t t
15194 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15195 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15196 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15197 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15198 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15199 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15200 s,@exec_prefix@,$exec_prefix,;t t
15201 s,@prefix@,$prefix,;t t
15202 s,@program_transform_name@,$program_transform_name,;t t
15203 s,@bindir@,$bindir,;t t
15204 s,@sbindir@,$sbindir,;t t
15205 s,@libexecdir@,$libexecdir,;t t
15206 s,@datadir@,$datadir,;t t
15207 s,@sysconfdir@,$sysconfdir,;t t
15208 s,@sharedstatedir@,$sharedstatedir,;t t
15209 s,@localstatedir@,$localstatedir,;t t
15210 s,@libdir@,$libdir,;t t
15211 s,@includedir@,$includedir,;t t
15212 s,@oldincludedir@,$oldincludedir,;t t
15213 s,@infodir@,$infodir,;t t
15214 s,@mandir@,$mandir,;t t
15215 s,@build_alias@,$build_alias,;t t
15216 s,@host_alias@,$host_alias,;t t
15217 s,@target_alias@,$target_alias,;t t
15218 s,@DEFS@,$DEFS,;t t
15219 s,@ECHO_C@,$ECHO_C,;t t
15220 s,@ECHO_N@,$ECHO_N,;t t
15221 s,@ECHO_T@,$ECHO_T,;t t
15222 s,@LIBS@,$LIBS,;t t
15223 s,@build@,$build,;t t
15224 s,@build_cpu@,$build_cpu,;t t
15225 s,@build_vendor@,$build_vendor,;t t
15226 s,@build_os@,$build_os,;t t
15227 s,@host@,$host,;t t
15228 s,@host_cpu@,$host_cpu,;t t
15229 s,@host_vendor@,$host_vendor,;t t
15230 s,@host_os@,$host_os,;t t
15231 s,@target@,$target,;t t
15232 s,@target_cpu@,$target_cpu,;t t
15233 s,@target_vendor@,$target_vendor,;t t
15234 s,@target_os@,$target_os,;t t
15235 s,@CC@,$CC,;t t
15236 s,@CFLAGS@,$CFLAGS,;t t
15237 s,@LDFLAGS@,$LDFLAGS,;t t
15238 s,@CPPFLAGS@,$CPPFLAGS,;t t
15239 s,@ac_ct_CC@,$ac_ct_CC,;t t
15240 s,@EXEEXT@,$EXEEXT,;t t
15241 s,@OBJEXT@,$OBJEXT,;t t
15242 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15243 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15244 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15245 s,@CYGPATH_W@,$CYGPATH_W,;t t
15246 s,@PACKAGE@,$PACKAGE,;t t
15247 s,@VERSION@,$VERSION,;t t
15248 s,@ACLOCAL@,$ACLOCAL,;t t
15249 s,@AUTOCONF@,$AUTOCONF,;t t
15250 s,@AUTOMAKE@,$AUTOMAKE,;t t
15251 s,@AUTOHEADER@,$AUTOHEADER,;t t
15252 s,@MAKEINFO@,$MAKEINFO,;t t
15253 s,@install_sh@,$install_sh,;t t
15254 s,@STRIP@,$STRIP,;t t
15255 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15256 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15257 s,@mkdir_p@,$mkdir_p,;t t
15258 s,@AWK@,$AWK,;t t
15259 s,@SET_MAKE@,$SET_MAKE,;t t
15260 s,@am__leading_dot@,$am__leading_dot,;t t
15261 s,@AMTAR@,$AMTAR,;t t
15262 s,@am__tar@,$am__tar,;t t
15263 s,@am__untar@,$am__untar,;t t
15264 s,@DEPDIR@,$DEPDIR,;t t
15265 s,@am__include@,$am__include,;t t
15266 s,@am__quote@,$am__quote,;t t
15267 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15268 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15269 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15270 s,@CCDEPMODE@,$CCDEPMODE,;t t
15271 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15272 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15273 s,@AR@,$AR,;t t
15274 s,@ac_ct_AR@,$ac_ct_AR,;t t
15275 s,@RANLIB@,$RANLIB,;t t
15276 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15277 s,@LN_S@,$LN_S,;t t
15278 s,@LIBTOOL@,$LIBTOOL,;t t
15279 s,@VERSUFFIX@,$VERSUFFIX,;t t
15280 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
15281 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15282 s,@NO_WERROR@,$NO_WERROR,;t t
15283 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15284 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15285 s,@MAINT@,$MAINT,;t t
15286 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15287 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15288 s,@host_noncanonical@,$host_noncanonical,;t t
15289 s,@target_noncanonical@,$target_noncanonical,;t t
15290 s,@bfdlibdir@,$bfdlibdir,;t t
15291 s,@bfdincludedir@,$bfdincludedir,;t t
15292 s,@CPP@,$CPP,;t t
15293 s,@EGREP@,$EGREP,;t t
15294 s,@ALLOCA@,$ALLOCA,;t t
15295 s,@USE_NLS@,$USE_NLS,;t t
15296 s,@MSGFMT@,$MSGFMT,;t t
15297 s,@GMSGFMT@,$GMSGFMT,;t t
15298 s,@XGETTEXT@,$XGETTEXT,;t t
15299 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15300 s,@CATALOGS@,$CATALOGS,;t t
15301 s,@CATOBJEXT@,$CATOBJEXT,;t t
15302 s,@DATADIRNAME@,$DATADIRNAME,;t t
15303 s,@GMOFILES@,$GMOFILES,;t t
15304 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15305 s,@INTLDEPS@,$INTLDEPS,;t t
15306 s,@INTLLIBS@,$INTLLIBS,;t t
15307 s,@INTLOBJS@,$INTLOBJS,;t t
15308 s,@POFILES@,$POFILES,;t t
15309 s,@POSUB@,$POSUB,;t t
15310 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15311 s,@GT_NO@,$GT_NO,;t t
15312 s,@GT_YES@,$GT_YES,;t t
15313 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15314 s,@l@,$l,;t t
15315 s,@HDEFINES@,$HDEFINES,;t t
15316 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15317 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15318 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15319 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15320 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15321 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15322 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15323 s,@COREFILE@,$COREFILE,;t t
15324 s,@COREFLAG@,$COREFLAG,;t t
15325 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15326 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15327 s,@TDEFINES@,$TDEFINES,;t t
15328 s,@wordsize@,$wordsize,;t t
15329 s,@bfd_libs@,$bfd_libs,;t t
15330 s,@all_backends@,$all_backends,;t t
15331 s,@bfd_backends@,$bfd_backends,;t t
15332 s,@bfd_machines@,$bfd_machines,;t t
15333 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15334 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15335 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15336 s,@tdefaults@,$tdefaults,;t t
15337 s,@datarootdir@,$datarootdir,;t t
15338 s,@docdir@,$docdir,;t t
15339 s,@htmldir@,$htmldir,;t t
15340 s,@LIBOBJS@,$LIBOBJS,;t t
15341 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15342 CEOF
15344 _ACEOF
15346 cat >>$CONFIG_STATUS <<\_ACEOF
15347 # Split the substitutions into bite-sized pieces for seds with
15348 # small command number limits, like on Digital OSF/1 and HP-UX.
15349 ac_max_sed_lines=48
15350 ac_sed_frag=1 # Number of current file.
15351 ac_beg=1 # First line for current file.
15352 ac_end=$ac_max_sed_lines # Line after last line for current file.
15353 ac_more_lines=:
15354 ac_sed_cmds=
15355 while $ac_more_lines; do
15356 if test $ac_beg -gt 1; then
15357 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15358 else
15359 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15361 if test ! -s $tmp/subs.frag; then
15362 ac_more_lines=false
15363 else
15364 # The purpose of the label and of the branching condition is to
15365 # speed up the sed processing (if there are no `@' at all, there
15366 # is no need to browse any of the substitutions).
15367 # These are the two extra sed commands mentioned above.
15368 (echo ':t
15369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15370 if test -z "$ac_sed_cmds"; then
15371 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15372 else
15373 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15375 ac_sed_frag=`expr $ac_sed_frag + 1`
15376 ac_beg=$ac_end
15377 ac_end=`expr $ac_end + $ac_max_sed_lines`
15379 done
15380 if test -z "$ac_sed_cmds"; then
15381 ac_sed_cmds=cat
15383 fi # test -n "$CONFIG_FILES"
15385 _ACEOF
15386 cat >>$CONFIG_STATUS <<\_ACEOF
15387 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15389 case $ac_file in
15390 - | *:- | *:-:* ) # input from stdin
15391 cat >$tmp/stdin
15392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15396 * ) ac_file_in=$ac_file.in ;;
15397 esac
15399 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15402 X"$ac_file" : 'X\(//\)[^/]' \| \
15403 X"$ac_file" : 'X\(//\)$' \| \
15404 X"$ac_file" : 'X\(/\)' \| \
15405 . : '\(.\)' 2>/dev/null ||
15406 echo X"$ac_file" |
15407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15409 /^X\(\/\/\)$/{ s//\1/; q; }
15410 /^X\(\/\).*/{ s//\1/; q; }
15411 s/.*/./; q'`
15412 { if $as_mkdir_p; then
15413 mkdir -p "$ac_dir"
15414 else
15415 as_dir="$ac_dir"
15416 as_dirs=
15417 while test ! -d "$as_dir"; do
15418 as_dirs="$as_dir $as_dirs"
15419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15421 X"$as_dir" : 'X\(//\)[^/]' \| \
15422 X"$as_dir" : 'X\(//\)$' \| \
15423 X"$as_dir" : 'X\(/\)' \| \
15424 . : '\(.\)' 2>/dev/null ||
15425 echo X"$as_dir" |
15426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15428 /^X\(\/\/\)$/{ s//\1/; q; }
15429 /^X\(\/\).*/{ s//\1/; q; }
15430 s/.*/./; q'`
15431 done
15432 test ! -n "$as_dirs" || mkdir $as_dirs
15433 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15434 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15435 { (exit 1); exit 1; }; }; }
15437 ac_builddir=.
15439 if test "$ac_dir" != .; then
15440 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15441 # A "../" for each directory in $ac_dir_suffix.
15442 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15443 else
15444 ac_dir_suffix= ac_top_builddir=
15447 case $srcdir in
15448 .) # No --srcdir option. We are building in place.
15449 ac_srcdir=.
15450 if test -z "$ac_top_builddir"; then
15451 ac_top_srcdir=.
15452 else
15453 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15454 fi ;;
15455 [\\/]* | ?:[\\/]* ) # Absolute path.
15456 ac_srcdir=$srcdir$ac_dir_suffix;
15457 ac_top_srcdir=$srcdir ;;
15458 *) # Relative path.
15459 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15460 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15461 esac
15463 # Do not use `cd foo && pwd` to compute absolute paths, because
15464 # the directories may not exist.
15465 case `pwd` in
15466 .) ac_abs_builddir="$ac_dir";;
15468 case "$ac_dir" in
15469 .) ac_abs_builddir=`pwd`;;
15470 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15471 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15472 esac;;
15473 esac
15474 case $ac_abs_builddir in
15475 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15477 case ${ac_top_builddir}. in
15478 .) ac_abs_top_builddir=$ac_abs_builddir;;
15479 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15480 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15481 esac;;
15482 esac
15483 case $ac_abs_builddir in
15484 .) ac_abs_srcdir=$ac_srcdir;;
15486 case $ac_srcdir in
15487 .) ac_abs_srcdir=$ac_abs_builddir;;
15488 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15489 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15490 esac;;
15491 esac
15492 case $ac_abs_builddir in
15493 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15495 case $ac_top_srcdir in
15496 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15497 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15498 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15499 esac;;
15500 esac
15503 case $INSTALL in
15504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15505 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15506 esac
15508 if test x"$ac_file" != x-; then
15509 { echo "$as_me:$LINENO: creating $ac_file" >&5
15510 echo "$as_me: creating $ac_file" >&6;}
15511 rm -f "$ac_file"
15513 # Let's still pretend it is `configure' which instantiates (i.e., don't
15514 # use $as_me), people would be surprised to read:
15515 # /* config.h. Generated by config.status. */
15516 if test x"$ac_file" = x-; then
15517 configure_input=
15518 else
15519 configure_input="$ac_file. "
15521 configure_input=$configure_input"Generated from `echo $ac_file_in |
15522 sed 's,.*/,,'` by configure."
15524 # First look for the input files in the build tree, otherwise in the
15525 # src tree.
15526 ac_file_inputs=`IFS=:
15527 for f in $ac_file_in; do
15528 case $f in
15529 -) echo $tmp/stdin ;;
15530 [\\/$]*)
15531 # Absolute (can't be DOS-style, as IFS=:)
15532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15533 echo "$as_me: error: cannot find input file: $f" >&2;}
15534 { (exit 1); exit 1; }; }
15535 echo "$f";;
15536 *) # Relative
15537 if test -f "$f"; then
15538 # Build tree
15539 echo "$f"
15540 elif test -f "$srcdir/$f"; then
15541 # Source tree
15542 echo "$srcdir/$f"
15543 else
15544 # /dev/null tree
15545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15546 echo "$as_me: error: cannot find input file: $f" >&2;}
15547 { (exit 1); exit 1; }; }
15548 fi;;
15549 esac
15550 done` || { (exit 1); exit 1; }
15551 _ACEOF
15552 cat >>$CONFIG_STATUS <<_ACEOF
15553 sed "$ac_vpsub
15554 $extrasub
15555 _ACEOF
15556 cat >>$CONFIG_STATUS <<\_ACEOF
15558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15559 s,@configure_input@,$configure_input,;t t
15560 s,@srcdir@,$ac_srcdir,;t t
15561 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15562 s,@top_srcdir@,$ac_top_srcdir,;t t
15563 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15564 s,@builddir@,$ac_builddir,;t t
15565 s,@abs_builddir@,$ac_abs_builddir,;t t
15566 s,@top_builddir@,$ac_top_builddir,;t t
15567 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15568 s,@INSTALL@,$ac_INSTALL,;t t
15569 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15570 rm -f $tmp/stdin
15571 if test x"$ac_file" != x-; then
15572 mv $tmp/out $ac_file
15573 else
15574 cat $tmp/out
15575 rm -f $tmp/out
15578 done
15579 _ACEOF
15580 cat >>$CONFIG_STATUS <<\_ACEOF
15583 # CONFIG_HEADER section.
15586 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15587 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15589 # ac_d sets the value in "#define NAME VALUE" lines.
15590 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15591 ac_dB='[ ].*$,\1#\2'
15592 ac_dC=' '
15593 ac_dD=',;t'
15594 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15595 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15596 ac_uB='$,\1#\2define\3'
15597 ac_uC=' '
15598 ac_uD=',;t'
15600 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15602 case $ac_file in
15603 - | *:- | *:-:* ) # input from stdin
15604 cat >$tmp/stdin
15605 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15607 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15609 * ) ac_file_in=$ac_file.in ;;
15610 esac
15612 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15613 echo "$as_me: creating $ac_file" >&6;}
15615 # First look for the input files in the build tree, otherwise in the
15616 # src tree.
15617 ac_file_inputs=`IFS=:
15618 for f in $ac_file_in; do
15619 case $f in
15620 -) echo $tmp/stdin ;;
15621 [\\/$]*)
15622 # Absolute (can't be DOS-style, as IFS=:)
15623 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15624 echo "$as_me: error: cannot find input file: $f" >&2;}
15625 { (exit 1); exit 1; }; }
15626 # Do quote $f, to prevent DOS paths from being IFS'd.
15627 echo "$f";;
15628 *) # Relative
15629 if test -f "$f"; then
15630 # Build tree
15631 echo "$f"
15632 elif test -f "$srcdir/$f"; then
15633 # Source tree
15634 echo "$srcdir/$f"
15635 else
15636 # /dev/null tree
15637 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15638 echo "$as_me: error: cannot find input file: $f" >&2;}
15639 { (exit 1); exit 1; }; }
15640 fi;;
15641 esac
15642 done` || { (exit 1); exit 1; }
15643 # Remove the trailing spaces.
15644 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15646 _ACEOF
15648 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15649 # `conftest.undefs', that substitutes the proper values into
15650 # config.h.in to produce config.h. The first handles `#define'
15651 # templates, and the second `#undef' templates.
15652 # And first: Protect against being on the right side of a sed subst in
15653 # config.status. Protect against being in an unquoted here document
15654 # in config.status.
15655 rm -f conftest.defines conftest.undefs
15656 # Using a here document instead of a string reduces the quoting nightmare.
15657 # Putting comments in sed scripts is not portable.
15659 # `end' is used to avoid that the second main sed command (meant for
15660 # 0-ary CPP macros) applies to n-ary macro definitions.
15661 # See the Autoconf documentation for `clear'.
15662 cat >confdef2sed.sed <<\_ACEOF
15663 s/[\\&,]/\\&/g
15664 s,[\\$`],\\&,g
15665 t clear
15666 : clear
15667 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15668 t end
15669 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15670 : end
15671 _ACEOF
15672 # If some macros were called several times there might be several times
15673 # the same #defines, which is useless. Nevertheless, we may not want to
15674 # sort them, since we want the *last* AC-DEFINE to be honored.
15675 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15676 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15677 rm -f confdef2sed.sed
15679 # This sed command replaces #undef with comments. This is necessary, for
15680 # example, in the case of _POSIX_SOURCE, which is predefined and required
15681 # on some systems where configure will not decide to define it.
15682 cat >>conftest.undefs <<\_ACEOF
15683 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15684 _ACEOF
15686 # Break up conftest.defines because some shells have a limit on the size
15687 # of here documents, and old seds have small limits too (100 cmds).
15688 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15689 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15690 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15691 echo ' :' >>$CONFIG_STATUS
15692 rm -f conftest.tail
15693 while grep . conftest.defines >/dev/null
15695 # Write a limited-size here document to $tmp/defines.sed.
15696 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15697 # Speed up: don't consider the non `#define' lines.
15698 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15699 # Work around the forget-to-reset-the-flag bug.
15700 echo 't clr' >>$CONFIG_STATUS
15701 echo ': clr' >>$CONFIG_STATUS
15702 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15703 echo 'CEOF
15704 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15705 rm -f $tmp/in
15706 mv $tmp/out $tmp/in
15707 ' >>$CONFIG_STATUS
15708 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15709 rm -f conftest.defines
15710 mv conftest.tail conftest.defines
15711 done
15712 rm -f conftest.defines
15713 echo ' fi # grep' >>$CONFIG_STATUS
15714 echo >>$CONFIG_STATUS
15716 # Break up conftest.undefs because some shells have a limit on the size
15717 # of here documents, and old seds have small limits too (100 cmds).
15718 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15719 rm -f conftest.tail
15720 while grep . conftest.undefs >/dev/null
15722 # Write a limited-size here document to $tmp/undefs.sed.
15723 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15724 # Speed up: don't consider the non `#undef'
15725 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15726 # Work around the forget-to-reset-the-flag bug.
15727 echo 't clr' >>$CONFIG_STATUS
15728 echo ': clr' >>$CONFIG_STATUS
15729 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15730 echo 'CEOF
15731 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15732 rm -f $tmp/in
15733 mv $tmp/out $tmp/in
15734 ' >>$CONFIG_STATUS
15735 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15736 rm -f conftest.undefs
15737 mv conftest.tail conftest.undefs
15738 done
15739 rm -f conftest.undefs
15741 cat >>$CONFIG_STATUS <<\_ACEOF
15742 # Let's still pretend it is `configure' which instantiates (i.e., don't
15743 # use $as_me), people would be surprised to read:
15744 # /* config.h. Generated by config.status. */
15745 if test x"$ac_file" = x-; then
15746 echo "/* Generated by configure. */" >$tmp/config.h
15747 else
15748 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15750 cat $tmp/in >>$tmp/config.h
15751 rm -f $tmp/in
15752 if test x"$ac_file" != x-; then
15753 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15754 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15755 echo "$as_me: $ac_file is unchanged" >&6;}
15756 else
15757 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15759 X"$ac_file" : 'X\(//\)[^/]' \| \
15760 X"$ac_file" : 'X\(//\)$' \| \
15761 X"$ac_file" : 'X\(/\)' \| \
15762 . : '\(.\)' 2>/dev/null ||
15763 echo X"$ac_file" |
15764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15766 /^X\(\/\/\)$/{ s//\1/; q; }
15767 /^X\(\/\).*/{ s//\1/; q; }
15768 s/.*/./; q'`
15769 { if $as_mkdir_p; then
15770 mkdir -p "$ac_dir"
15771 else
15772 as_dir="$ac_dir"
15773 as_dirs=
15774 while test ! -d "$as_dir"; do
15775 as_dirs="$as_dir $as_dirs"
15776 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X"$as_dir" : 'X\(//\)[^/]' \| \
15779 X"$as_dir" : 'X\(//\)$' \| \
15780 X"$as_dir" : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15782 echo X"$as_dir" |
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15787 s/.*/./; q'`
15788 done
15789 test ! -n "$as_dirs" || mkdir $as_dirs
15790 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15791 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15792 { (exit 1); exit 1; }; }; }
15794 rm -f $ac_file
15795 mv $tmp/config.h $ac_file
15797 else
15798 cat $tmp/config.h
15799 rm -f $tmp/config.h
15801 # Compute $ac_file's index in $config_headers.
15802 _am_stamp_count=1
15803 for _am_header in $config_headers :; do
15804 case $_am_header in
15805 $ac_file | $ac_file:* )
15806 break ;;
15808 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15809 esac
15810 done
15811 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15812 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15813 X$ac_file : 'X\(//\)[^/]' \| \
15814 X$ac_file : 'X\(//\)$' \| \
15815 X$ac_file : 'X\(/\)' \| \
15816 . : '\(.\)' 2>/dev/null ||
15817 echo X$ac_file |
15818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15820 /^X\(\/\/\)$/{ s//\1/; q; }
15821 /^X\(\/\).*/{ s//\1/; q; }
15822 s/.*/./; q'`/stamp-h$_am_stamp_count
15823 done
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15828 # CONFIG_COMMANDS section.
15830 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15831 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15832 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15833 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15834 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15835 X"$ac_dest" : 'X\(//\)[^/]' \| \
15836 X"$ac_dest" : 'X\(//\)$' \| \
15837 X"$ac_dest" : 'X\(/\)' \| \
15838 . : '\(.\)' 2>/dev/null ||
15839 echo X"$ac_dest" |
15840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15842 /^X\(\/\/\)$/{ s//\1/; q; }
15843 /^X\(\/\).*/{ s//\1/; q; }
15844 s/.*/./; q'`
15845 { if $as_mkdir_p; then
15846 mkdir -p "$ac_dir"
15847 else
15848 as_dir="$ac_dir"
15849 as_dirs=
15850 while test ! -d "$as_dir"; do
15851 as_dirs="$as_dir $as_dirs"
15852 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15854 X"$as_dir" : 'X\(//\)[^/]' \| \
15855 X"$as_dir" : 'X\(//\)$' \| \
15856 X"$as_dir" : 'X\(/\)' \| \
15857 . : '\(.\)' 2>/dev/null ||
15858 echo X"$as_dir" |
15859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15861 /^X\(\/\/\)$/{ s//\1/; q; }
15862 /^X\(\/\).*/{ s//\1/; q; }
15863 s/.*/./; q'`
15864 done
15865 test ! -n "$as_dirs" || mkdir $as_dirs
15866 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15867 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15868 { (exit 1); exit 1; }; }; }
15870 ac_builddir=.
15872 if test "$ac_dir" != .; then
15873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15874 # A "../" for each directory in $ac_dir_suffix.
15875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15876 else
15877 ac_dir_suffix= ac_top_builddir=
15880 case $srcdir in
15881 .) # No --srcdir option. We are building in place.
15882 ac_srcdir=.
15883 if test -z "$ac_top_builddir"; then
15884 ac_top_srcdir=.
15885 else
15886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15887 fi ;;
15888 [\\/]* | ?:[\\/]* ) # Absolute path.
15889 ac_srcdir=$srcdir$ac_dir_suffix;
15890 ac_top_srcdir=$srcdir ;;
15891 *) # Relative path.
15892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15894 esac
15896 # Do not use `cd foo && pwd` to compute absolute paths, because
15897 # the directories may not exist.
15898 case `pwd` in
15899 .) ac_abs_builddir="$ac_dir";;
15901 case "$ac_dir" in
15902 .) ac_abs_builddir=`pwd`;;
15903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15905 esac;;
15906 esac
15907 case $ac_abs_builddir in
15908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15910 case ${ac_top_builddir}. in
15911 .) ac_abs_top_builddir=$ac_abs_builddir;;
15912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15914 esac;;
15915 esac
15916 case $ac_abs_builddir in
15917 .) ac_abs_srcdir=$ac_srcdir;;
15919 case $ac_srcdir in
15920 .) ac_abs_srcdir=$ac_abs_builddir;;
15921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15923 esac;;
15924 esac
15925 case $ac_abs_builddir in
15926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15928 case $ac_top_srcdir in
15929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15932 esac;;
15933 esac
15936 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15937 echo "$as_me: executing $ac_dest commands" >&6;}
15938 case $ac_dest in
15939 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15940 # Strip MF so we end up with the name of the file.
15941 mf=`echo "$mf" | sed -e 's/:.*$//'`
15942 # Check whether this is an Automake generated Makefile or not.
15943 # We used to match only the files named `Makefile.in', but
15944 # some people rename them; so instead we look at the file content.
15945 # Grep'ing the first line is not enough: some people post-process
15946 # each Makefile.in and add a new line on top of each file to say so.
15947 # So let's grep whole file.
15948 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15949 dirpart=`(dirname "$mf") 2>/dev/null ||
15950 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15951 X"$mf" : 'X\(//\)[^/]' \| \
15952 X"$mf" : 'X\(//\)$' \| \
15953 X"$mf" : 'X\(/\)' \| \
15954 . : '\(.\)' 2>/dev/null ||
15955 echo X"$mf" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15958 /^X\(\/\/\)$/{ s//\1/; q; }
15959 /^X\(\/\).*/{ s//\1/; q; }
15960 s/.*/./; q'`
15961 else
15962 continue
15964 # Extract the definition of DEPDIR, am__include, and am__quote
15965 # from the Makefile without running `make'.
15966 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15967 test -z "$DEPDIR" && continue
15968 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15969 test -z "am__include" && continue
15970 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15971 # When using ansi2knr, U may be empty or an underscore; expand it
15972 U=`sed -n 's/^U = //p' < "$mf"`
15973 # Find all dependency output files, they are included files with
15974 # $(DEPDIR) in their names. We invoke sed twice because it is the
15975 # simplest approach to changing $(DEPDIR) to its actual value in the
15976 # expansion.
15977 for file in `sed -n "
15978 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15979 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15980 # Make sure the directory exists.
15981 test -f "$dirpart/$file" && continue
15982 fdir=`(dirname "$file") 2>/dev/null ||
15983 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$file" : 'X\(//\)[^/]' \| \
15985 X"$file" : 'X\(//\)$' \| \
15986 X"$file" : 'X\(/\)' \| \
15987 . : '\(.\)' 2>/dev/null ||
15988 echo X"$file" |
15989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15991 /^X\(\/\/\)$/{ s//\1/; q; }
15992 /^X\(\/\).*/{ s//\1/; q; }
15993 s/.*/./; q'`
15994 { if $as_mkdir_p; then
15995 mkdir -p $dirpart/$fdir
15996 else
15997 as_dir=$dirpart/$fdir
15998 as_dirs=
15999 while test ! -d "$as_dir"; do
16000 as_dirs="$as_dir $as_dirs"
16001 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16003 X"$as_dir" : 'X\(//\)[^/]' \| \
16004 X"$as_dir" : 'X\(//\)$' \| \
16005 X"$as_dir" : 'X\(/\)' \| \
16006 . : '\(.\)' 2>/dev/null ||
16007 echo X"$as_dir" |
16008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16010 /^X\(\/\/\)$/{ s//\1/; q; }
16011 /^X\(\/\).*/{ s//\1/; q; }
16012 s/.*/./; q'`
16013 done
16014 test ! -n "$as_dirs" || mkdir $as_dirs
16015 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16016 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16017 { (exit 1); exit 1; }; }; }
16019 # echo "creating $dirpart/$file"
16020 echo '# dummy' > "$dirpart/$file"
16021 done
16022 done
16024 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
16025 esac
16026 done
16027 _ACEOF
16029 cat >>$CONFIG_STATUS <<\_ACEOF
16031 { (exit 0); exit 0; }
16032 _ACEOF
16033 chmod +x $CONFIG_STATUS
16034 ac_clean_files=$ac_clean_files_save
16037 # configure is writing to config.log, and then calls config.status.
16038 # config.status does its own redirection, appending to config.log.
16039 # Unfortunately, on DOS this fails, as config.log is still kept open
16040 # by configure, so config.status won't be able to write to it; its
16041 # output is simply discarded. So we exec the FD to /dev/null,
16042 # effectively closing config.log, so it can be properly (re)opened and
16043 # appended to by config.status. When coming back to configure, we
16044 # need to make the FD available again.
16045 if test "$no_create" != yes; then
16046 ac_cs_success=:
16047 ac_config_status_args=
16048 test "$silent" = yes &&
16049 ac_config_status_args="$ac_config_status_args --quiet"
16050 exec 5>/dev/null
16051 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16052 exec 5>>config.log
16053 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16054 # would make configure fail if this is the last instruction.
16055 $ac_cs_success || { (exit 1); exit 1; }