bfd/
[binutils.git] / bfd / configure
blobffe255695405325049da727c39e1ce8da7730420
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 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-included-gettext use the GNU gettext library included here
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd $ac_popdir
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990 exit 0
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
997 It was created by $as_me, which was
998 generated by GNU Autoconf 2.59. Invocation command line was
1000 $ $0 $@
1002 _ACEOF
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 _ASUNAME
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034 done
1036 } >&5
1038 cat >&5 <<_ACEOF
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1045 _ACEOF
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1060 for ac_arg
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1093 esac
1094 done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1107 echo
1109 cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 esac;
1130 echo
1132 cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1188 # Predefined preprocessor variables.
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1231 done
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1244 else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1292 done
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1342 done
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking target system type" >&5
1407 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408 if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_target_alias=$target_alias
1412 test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421 echo "${ECHO_T}$ac_cv_target" >&6
1422 target=$ac_cv_target
1423 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 # The aliases save the names the user supplied, while $host etc.
1429 # will get canonicalized.
1430 test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434 ac_ext=c
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1461 done
1462 done
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1476 if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1499 done
1500 done
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1513 CC=$ac_ct_CC
1514 else
1515 CC="$ac_cv_prog_CC"
1518 if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1541 done
1542 done
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1556 if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1579 done
1580 done
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1593 CC=$ac_ct_CC
1594 else
1595 CC="$ac_cv_prog_CC"
1599 if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else
1610 ac_prog_rejected=no
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1626 done
1627 done
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1653 if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1678 done
1679 done
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$CC" && break
1693 done
1695 if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1720 done
1721 done
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1734 test -n "$ac_ct_CC" && break
1735 done
1737 CC=$ac_ct_CC
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1749 # Provide some information about the compiler.
1750 echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752 ac_compiler=`set X $ac_compile; echo $2`
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1769 cat >conftest.$ac_ext <<_ACEOF
1770 /* confdefs.h. */
1771 _ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h. */
1777 main ()
1781 return 0;
1783 _ACEOF
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1788 # of exeext.
1789 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 # resort.
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 ac_cv_exeext=
1804 # b.out is created by i960 compilers.
1805 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1811 conftest.$ac_ext )
1812 # This is the source file.
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1826 break;;
1827 esac
1828 done
1829 else
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1840 ac_exeext=$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_file" >&5
1842 echo "${ECHO_T}$ac_file" >&6
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849 # If not cross compiling, check that we can run a simple program.
1850 if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot run C compiled programs.
1866 If you meant to cross compile, use \`--host'.
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1872 echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6
1875 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876 ac_clean_files=$ac_clean_files_save
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882 echo "${ECHO_T}$cross_compiling" >&6
1884 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 # `rm'.
1895 for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904 done
1905 else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1913 rm -f conftest$ac_cv_exeext
1914 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915 echo "${ECHO_T}$ac_cv_exeext" >&6
1917 rm -f conftest.$ac_ext
1918 EXEEXT=$ac_cv_exeext
1919 ac_exeext=$EXEEXT
1920 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922 if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1933 main ()
1937 return 0;
1939 _ACEOF
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952 done
1953 else
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1969 ac_objext=$OBJEXT
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1983 main ()
1985 #ifndef __GNUC__
1986 choke me
1987 #endif
1990 return 0;
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 ac_compiler_gnu=yes
2016 else
2017 echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2020 ac_compiler_gnu=no
2022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028 GCC=`test $ac_compiler_gnu = yes && echo yes`
2029 ac_test_CFLAGS=${CFLAGS+set}
2030 ac_save_CFLAGS=$CFLAGS
2031 CFLAGS="-g"
2032 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2045 main ()
2049 return 0;
2051 _ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075 else
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_cv_prog_cc_g=no
2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2093 else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2100 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_cv_prog_cc_stdc=no
2106 ac_save_CC=$CC
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2113 #include <stdarg.h>
2114 #include <stdio.h>
2115 #include <sys/types.h>
2116 #include <sys/stat.h>
2117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118 struct buf { int x; };
2119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120 static char *e (p, i)
2121 char **p;
2122 int i;
2124 return p[i];
2126 static char *f (char * (*g) (char **, int), char **p, ...)
2128 char *s;
2129 va_list v;
2130 va_start (v,p);
2131 s = g (p, va_arg (v,int));
2132 va_end (v);
2133 return s;
2136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2145 int test (int i, double x);
2146 struct s1 {int (*f) (int a);};
2147 struct s2 {int (*f) (double a);};
2148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 int argc;
2150 char **argv;
2152 main ()
2154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2156 return 0;
2158 _ACEOF
2159 # Don't try gcc -ansi; that turns off useful extensions and
2160 # breaks some systems' header files.
2161 # AIX -qlanglvl=ansi
2162 # Ultrix and OSF/1 -std1
2163 # HP-UX 10.20 and later -Ae
2164 # HP-UX older versions -Aa -D_HPUX_SOURCE
2165 # SVR4 -Xc -D__EXTENSIONS__
2166 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2192 break
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.err conftest.$ac_objext
2199 done
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2201 CC=$ac_save_CC
2205 case "x$ac_cv_prog_cc_stdc" in
2206 x|xno)
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 esac
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #ifndef __cplusplus
2221 choke me
2222 #endif
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260 $ac_declaration
2261 #include <stdlib.h>
2263 main ()
2265 exit (42);
2267 return 0;
2269 _ACEOF
2270 rm -f conftest.$ac_objext
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2293 else
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 continue
2299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h. */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2306 $ac_declaration
2308 main ()
2310 exit (42);
2312 return 0;
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 break
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2344 done
2345 rm -f conftest*
2346 if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367 if test "${ac_cv_search_strerror+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 ac_func_search_save_LIBS=$LIBS
2371 ac_cv_search_strerror=no
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 #ifdef __cplusplus
2381 extern "C"
2382 #endif
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385 char strerror ();
2387 main ()
2389 strerror ();
2391 return 0;
2393 _ACEOF
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_search_strerror="none required"
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2422 rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424 if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2434 /* Override any gcc2 internal prototype to avoid an error. */
2435 #ifdef __cplusplus
2436 extern "C"
2437 #endif
2438 /* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2440 char strerror ();
2442 main ()
2444 strerror ();
2446 return 0;
2448 _ACEOF
2449 rm -f conftest.$ac_objext conftest$ac_exeext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2472 break
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2480 done
2482 LIBS=$ac_func_search_save_LIBS
2484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486 if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2492 am__api_version="1.9"
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2508 if test -z "$INSTALL"; then
2509 if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 /usr/ucb/* ) ;;
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2538 else
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
2543 done
2544 done
2546 esac
2547 done
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL=$ac_cv_path_install
2553 else
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
2558 INSTALL=$ac_install_sh
2561 echo "$as_me:$LINENO: result: $INSTALL" >&5
2562 echo "${ECHO_T}$INSTALL" >&6
2564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565 # It thinks the first close brace ends the variable substitution.
2566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2572 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2574 # Just in case
2575 sleep 1
2576 echo timestamp > conftest.file
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments. Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2581 # directory).
2582 if (
2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t $srcdir/configure conftest.file`
2588 rm -f conftest.file
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" >&5
2598 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
2603 test "$2" = conftest.file
2605 then
2606 # Ok.
2608 else
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610 Check your system clock" >&5
2611 echo "$as_me: error: newly created file is older than distributed files!
2612 Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
2615 echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622 # Double any \ or $. echo might interpret backslashes.
2623 # By default was `s,x,x', remove it if useless.
2624 cat <<\_ACEOF >conftest.sed
2625 s/[\\$]/&&/g;s/;s,x,x,$//
2626 _ACEOF
2627 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628 rm conftest.sed
2630 # expand $ac_aux_dir to an absolute path
2631 am_aux_dir=`cd $ac_aux_dir && pwd`
2633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634 # Use eval to expand $SHELL
2635 if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2637 else
2638 am_missing_run=
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2648 # for two reasons:
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2659 else
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2663 # exists.
2664 for d in ./-p ./--version;
2666 test -d $d && rmdir $d
2667 done
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2671 else
2672 mkdir_p='$(install_sh) -d'
2676 for ac_prog in gawk mawk nawk awk
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2704 AWK=$ac_cv_prog_AWK
2705 if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707 echo "${ECHO_T}$AWK" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2713 test -n "$AWK" && break
2714 done
2716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.make <<\_ACEOF
2723 all:
2724 @echo 'ac_maketemp="$(MAKE)"'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728 if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2730 else
2731 eval ac_cv_prog_make_${ac_make}_set=no
2733 rm -f conftest.make
2735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 SET_MAKE=
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 SET_MAKE="MAKE=${MAKE-make}"
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2752 rmdir .tst 2>/dev/null
2754 DEPDIR="${am__leading_dot}deps"
2756 ac_config_commands="$ac_config_commands depfiles"
2759 am_make=${MAKE-make}
2760 cat > confinc << 'END'
2761 am__doit:
2762 @echo done
2763 .PHONY: am__doit
2765 # If we don't find an include directive, just comment out the code.
2766 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768 am__include="#"
2769 am__quote=
2770 _am_result=none
2771 # First try GNU make style include.
2772 echo "include confinc" > confmf
2773 # We grep out `Entering directory' and `Leaving directory'
2774 # messages which can occur if `w' ends up in MAKEFLAGS.
2775 # In particular we don't look at `^make:' because GNU make might
2776 # be invoked under some other name (usually "gmake"), in which
2777 # case it prints its new name instead of `make'.
2778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779 am__include=include
2780 am__quote=
2781 _am_result=GNU
2783 # Now try BSD make style include.
2784 if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2788 am__quote="\""
2789 _am_result=BSD
2794 echo "$as_me:$LINENO: result: $_am_result" >&5
2795 echo "${ECHO_T}$_am_result" >&6
2796 rm -f confinc confmf
2798 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799 if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2803 if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2805 AMDEPBACKSLASH='\'
2809 if test "x$enable_dependency_tracking" != xno; then
2810 AMDEP_TRUE=
2811 AMDEP_FALSE='#'
2812 else
2813 AMDEP_TRUE='#'
2814 AMDEP_FALSE=
2819 # test to see if srcdir already configured
2820 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2837 # Define the identity of the package.
2838 PACKAGE=bfd
2839 VERSION=2.17.50
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE "$PACKAGE"
2844 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define VERSION "$VERSION"
2849 _ACEOF
2851 # Some tools Automake needs.
2853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2869 # Installed binaries are usually stripped using `strip' when the user
2870 # run `make install-strip'. However `strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the `STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2901 STRIP=$ac_cv_prog_STRIP
2902 if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904 echo "${ECHO_T}$STRIP" >&6
2905 else
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2911 if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914 set dummy strip; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941 if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943 echo "${ECHO_T}$ac_ct_STRIP" >&6
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 STRIP=$ac_ct_STRIP
2950 else
2951 STRIP="$ac_cv_prog_STRIP"
2955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2957 # We need awk for the "check" target. The system "awk" is bad on
2958 # some platforms.
2959 # Always define AMTAR for backward compatibility.
2961 AMTAR=${AMTAR-"${am_missing_run}tar"}
2963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2968 depcc="$CC" am_compiler_list=
2970 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2980 # in D'.
2981 mkdir conftest.dir
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2985 cd conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2991 # directory.
2992 mkdir sub
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3006 : > sub/conftest.c
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3012 done
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3015 case $depmode in
3016 nosideeffect)
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3020 continue
3021 else
3022 break
3025 none) break ;;
3026 esac
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3048 break
3051 done
3053 cd ..
3054 rm -rf conftest.dir
3055 else
3056 am_cv_CC_dependencies_compiler_type=none
3060 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_TRUE=
3070 am__fastdepCC_FALSE='#'
3071 else
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}ar; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3101 done
3102 done
3106 AR=$ac_cv_prog_AR
3107 if test -n "$AR"; then
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109 echo "${ECHO_T}$AR" >&6
3110 else
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3116 if test -z "$ac_cv_prog_AR"; then
3117 ac_ct_AR=$AR
3118 # Extract the first word of "ar", so it can be a program name with args.
3119 set dummy ar; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3139 done
3140 done
3144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145 if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147 echo "${ECHO_T}$ac_ct_AR" >&6
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3153 AR=$ac_ct_AR
3154 else
3155 AR="$ac_cv_prog_AR"
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3185 RANLIB=$ac_cv_prog_RANLIB
3186 if test -n "$RANLIB"; then
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188 echo "${ECHO_T}$RANLIB" >&6
3189 else
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3195 if test -z "$ac_cv_prog_RANLIB"; then
3196 ac_ct_RANLIB=$RANLIB
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198 set dummy ranlib; ac_word=$2
3199 echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3218 done
3219 done
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225 if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3228 else
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 RANLIB=$ac_ct_RANLIB
3234 else
3235 RANLIB="$ac_cv_prog_RANLIB"
3239 # Check whether --enable-shared or --disable-shared was given.
3240 if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
3243 case $enableval in
3244 yes) enable_shared=yes ;;
3245 no) enable_shared=no ;;
3247 enable_shared=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_shared=yes
3254 done
3255 IFS="$ac_save_ifs"
3257 esac
3258 else
3259 enable_shared=no
3262 # Check whether --enable-static or --disable-static was given.
3263 if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
3266 case $enableval in
3267 yes) enable_static=yes ;;
3268 no) enable_static=no ;;
3270 enable_static=no
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3277 done
3278 IFS="$ac_save_ifs"
3280 esac
3281 else
3282 enable_static=yes
3284 # Check whether --enable-fast-install or --disable-fast-install was given.
3285 if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
3288 case $enableval in
3289 yes) enable_fast_install=yes ;;
3290 no) enable_fast_install=no ;;
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3299 done
3300 IFS="$ac_save_ifs"
3302 esac
3303 else
3304 enable_fast_install=yes
3307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3308 if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311 else
3312 with_gnu_ld=no
3314 ac_prog=ld
3315 if test "$GCC" = yes; then
3316 # Check if gcc -print-prog-name=ld gives a path.
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
3326 case $ac_prog in
3327 # Accept absolute paths.
3328 [\\/]* | [A-Za-z]:[\\/]*)
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3345 esac
3346 elif test "$with_gnu_ld" = yes; then
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349 else
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3353 if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if test -z "$LD"; then
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3361 lt_cv_path_LD="$ac_dir/$ac_prog"
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3366 test "$with_gnu_ld" != no && break
3367 else
3368 test "$with_gnu_ld" != yes && break
3371 done
3372 IFS="$ac_save_ifs"
3373 else
3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3378 LD="$lt_cv_path_LD"
3379 if test -n "$LD"; then
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381 echo "${ECHO_T}$LD" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3396 lt_cv_prog_gnu_ld=yes
3397 else
3398 lt_cv_prog_gnu_ld=no
3401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3403 with_gnu_ld=$lt_cv_prog_gnu_ld
3406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408 if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 lt_cv_ld_reload_flag='-r'
3413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3415 reload_flag=$lt_cv_ld_reload_flag
3416 test -n "$reload_flag" && reload_flag=" $reload_flag"
3418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420 if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
3425 lt_cv_path_NM="$NM"
3426 else
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3429 test -z "$ac_dir" && ac_dir=.
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3437 lt_cv_path_NM="$tmp_nm -B"
3438 break
3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -p"
3441 break
3442 else
3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3444 continue # so that we can try to find one that supports BSD flags
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3453 NM="$lt_cv_path_NM"
3454 echo "$as_me:$LINENO: result: $NM" >&5
3455 echo "${ECHO_T}$NM" >&6
3457 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459 LN_S=$as_ln_s
3460 if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465 echo "${ECHO_T}no, using $LN_S" >&6
3468 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470 if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
3474 lt_cv_file_magic_test_file=
3475 lt_cv_deplibs_check_method='unknown'
3476 # Need to set the preceding variable on all platforms that support
3477 # interlibrary dependencies.
3478 # 'none' -- dependencies not supported.
3479 # `unknown' -- same as none, but documents that we really don't know.
3480 # 'pass_all' -- all dependencies passed with no checks.
3481 # 'test_compile' -- check by making test program.
3482 # 'file_magic [regex]' -- check by looking for files in library path
3483 # which responds to the $file_magic_cmd with a given egrep regex.
3484 # If you have `file' or equivalent on your system and you're not sure
3485 # whether `pass_all' will *always* work, you probably want this one.
3487 case $host_os in
3488 aix*)
3489 lt_cv_deplibs_check_method=pass_all
3492 beos*)
3493 lt_cv_deplibs_check_method=pass_all
3496 bsdi4*)
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3502 cygwin* | mingw* |pw32*)
3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
3507 darwin* | rhapsody*)
3508 # this will be overwritten by pass_all, but leave it in just in case
3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3510 lt_cv_file_magic_cmd='/usr/bin/file -L'
3511 case "$host_os" in
3512 rhapsody* | darwin1.012)
3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3515 *) # Darwin 1.3 on
3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3518 esac
3519 lt_cv_deplibs_check_method=pass_all
3522 freebsd* | kfreebsd*-gnu)
3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3524 case $host_cpu in
3525 i*86 )
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3532 esac
3533 else
3534 lt_cv_deplibs_check_method=pass_all
3538 gnu*)
3539 lt_cv_deplibs_check_method=pass_all
3542 hpux10.20*|hpux11*)
3543 case $host_cpu in
3544 hppa*)
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546 lt_cv_file_magic_cmd=/usr/bin/file
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ia64*)
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554 esac
3557 irix5* | irix6*)
3558 case $host_os in
3559 irix5*)
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3564 case $LD in
3565 *-32|*"-32 ") libmagic=32-bit;;
3566 *-n32|*"-n32 ") libmagic=N32;;
3567 *-64|*"-64 ") libmagic=64-bit;;
3568 *) libmagic=never-match;;
3569 esac
3570 # this will be overridden with pass_all, but let us keep it just in case
3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3573 esac
3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3575 lt_cv_deplibs_check_method=pass_all
3578 # This must be Linux ELF.
3579 linux-gnu*)
3580 lt_cv_deplibs_check_method=pass_all
3583 netbsd* | knetbsd*-gnu)
3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3586 else
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3591 newsos6)
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3597 osf3* | osf4* | osf5*)
3598 # this will be overridden with pass_all, but let us keep it just in case
3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 lt_cv_deplibs_check_method=pass_all
3604 sco3.2v5*)
3605 lt_cv_deplibs_check_method=pass_all
3608 solaris*)
3609 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_file_magic_test_file=/lib/libc.so
3613 sysv5uw[78]* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3617 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3618 case $host_vendor in
3619 ncr)
3620 lt_cv_deplibs_check_method=pass_all
3622 motorola)
3623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3626 esac
3628 esac
3631 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3632 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3633 file_magic_cmd=$lt_cv_file_magic_cmd
3634 deplibs_check_method=$lt_cv_deplibs_check_method
3639 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3641 # find the maximum length of command line arguments
3642 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3643 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3644 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3648 teststring="ABCD"
3650 case $build_os in
3651 msdosdjgpp*)
3652 # On DJGPP, this test can blow up pretty badly due to problems in libc
3653 # (any single argument exceeding 2000 bytes causes a buffer overrun
3654 # during glob expansion). Even if it were fixed, the result of this
3655 # check would be larger than it should be.
3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3659 cygwin* | mingw*)
3660 # On Win9x/ME, this test blows up -- it succeeds, but takes
3661 # about 5 minutes as the teststring grows exponentially.
3662 # Worse, since 9x/ME are not pre-emptively multitasking,
3663 # you end up with a "frozen" computer, even though with patience
3664 # the test eventually succeeds (with a max line length of 256k).
3665 # Instead, let's just punt: use the minimum linelength reported by
3666 # all of the supported platforms: 8192 (on NT/2K/XP).
3667 lt_cv_sys_max_cmd_len=8192;
3670 amigaos*)
3671 # On AmigaOS with pdksh, this test takes hours, literally.
3672 # So we just punt and use a minimum line length of 8192.
3673 lt_cv_sys_max_cmd_len=8192;
3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3677 # This has been around since 386BSD, at least. Likely further.
3678 if test -x /sbin/sysctl; then
3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3680 elif test -x /usr/sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3682 else
3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3685 # And add a safety zone
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3689 esac
3693 if test -n "$lt_cv_sys_max_cmd_len" ; then
3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3695 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3696 else
3697 echo "$as_me:$LINENO: result: none" >&5
3698 echo "${ECHO_T}none" >&6
3702 # Only perform the check for file, if the check method requires it
3703 case $deplibs_check_method in
3704 file_magic*)
3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3707 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 case $MAGIC_CMD in
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3715 ?:/*)
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/${ac_tool_prefix}file; then
3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3726 if test -n "$file_magic_test_file"; then
3727 case $deplibs_check_method in
3728 "file_magic "*)
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3734 else
3735 cat <<EOF 1>&2
3737 *** Warning: the command libtool uses to detect shared libraries,
3738 *** $file_magic_cmd, produces output that libtool cannot recognize.
3739 *** The result is that libtool may fail to recognize shared libraries
3740 *** as such. This will affect the creation of libtool libraries that
3741 *** depend on shared libraries, but programs linked with such libtool
3742 *** libraries will work regardless of this problem. Nevertheless, you
3743 *** may want to report the problem to your system manager and/or to
3744 *** bug-libtool@gnu.org
3747 fi ;;
3748 esac
3750 break
3752 done
3753 IFS="$ac_save_ifs"
3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
3756 esac
3759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760 if test -n "$MAGIC_CMD"; then
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762 echo "${ECHO_T}$MAGIC_CMD" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 if test -z "$lt_cv_path_MAGIC_CMD"; then
3769 if test -n "$ac_tool_prefix"; then
3770 echo "$as_me:$LINENO: checking for file" >&5
3771 echo $ECHO_N "checking for file... $ECHO_C" >&6
3772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 case $MAGIC_CMD in
3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3779 ?:/*)
3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3783 ac_save_MAGIC_CMD="$MAGIC_CMD"
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 ac_dummy="/usr/bin:$PATH"
3786 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/file; then
3789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3790 if test -n "$file_magic_test_file"; then
3791 case $deplibs_check_method in
3792 "file_magic "*)
3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3796 egrep "$file_magic_regex" > /dev/null; then
3798 else
3799 cat <<EOF 1>&2
3801 *** Warning: the command libtool uses to detect shared libraries,
3802 *** $file_magic_cmd, produces output that libtool cannot recognize.
3803 *** The result is that libtool may fail to recognize shared libraries
3804 *** as such. This will affect the creation of libtool libraries that
3805 *** depend on shared libraries, but programs linked with such libtool
3806 *** libraries will work regardless of this problem. Nevertheless, you
3807 *** may want to report the problem to your system manager and/or to
3808 *** bug-libtool@gnu.org
3811 fi ;;
3812 esac
3814 break
3816 done
3817 IFS="$ac_save_ifs"
3818 MAGIC_CMD="$ac_save_MAGIC_CMD"
3820 esac
3823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824 if test -n "$MAGIC_CMD"; then
3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3826 echo "${ECHO_T}$MAGIC_CMD" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 else
3833 MAGIC_CMD=:
3839 esac
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3863 done
3864 done
3868 RANLIB=$ac_cv_prog_RANLIB
3869 if test -n "$RANLIB"; then
3870 echo "$as_me:$LINENO: result: $RANLIB" >&5
3871 echo "${ECHO_T}$RANLIB" >&6
3872 else
3873 echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3878 if test -z "$ac_cv_prog_RANLIB"; then
3879 ac_ct_RANLIB=$RANLIB
3880 # Extract the first word of "ranlib", so it can be a program name with args.
3881 set dummy ranlib; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 if test -n "$ac_ct_RANLIB"; then
3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_RANLIB="ranlib"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3901 done
3902 done
3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3908 if test -n "$ac_ct_RANLIB"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3910 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 RANLIB=$ac_ct_RANLIB
3917 else
3918 RANLIB="$ac_cv_prog_RANLIB"
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}strip; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_STRIP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3948 STRIP=$ac_cv_prog_STRIP
3949 if test -n "$STRIP"; then
3950 echo "$as_me:$LINENO: result: $STRIP" >&5
3951 echo "${ECHO_T}$STRIP" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_STRIP"; then
3959 ac_ct_STRIP=$STRIP
3960 # Extract the first word of "strip", so it can be a program name with args.
3961 set dummy strip; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_STRIP="strip"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988 if test -n "$ac_ct_STRIP"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3990 echo "${ECHO_T}$ac_ct_STRIP" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 STRIP=$ac_ct_STRIP
3997 else
3998 STRIP="$ac_cv_prog_STRIP"
4002 # Check for any special flags to pass to ltconfig.
4003 libtool_flags="--cache-file=$cache_file"
4004 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4005 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4006 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4007 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4008 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4011 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4012 if test "${enable_libtool_lock+set}" = set; then
4013 enableval="$enable_libtool_lock"
4016 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4017 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4020 # Check whether --with-pic or --without-pic was given.
4021 if test "${with_pic+set}" = set; then
4022 withval="$with_pic"
4023 pic_mode="$withval"
4024 else
4025 pic_mode=default
4027 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4028 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4030 # Some flags need to be propagated to the compiler or linker for good
4031 # libtool support.
4032 case $host in
4033 *-*-irix6*)
4034 # Find out which ABI we are using.
4035 echo '#line 4035 "configure"' > conftest.$ac_ext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; then
4041 if test "$lt_cv_prog_gnu_ld" = yes; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4043 *32-bit*)
4044 LD="${LD-ld} -melf32bsmip"
4046 *N32*)
4047 LD="${LD-ld} -melf32bmipn32"
4049 *64-bit*)
4050 LD="${LD-ld} -melf64bmip"
4052 esac
4053 else
4054 case `/usr/bin/file conftest.$ac_objext` in
4055 *32-bit*)
4056 LD="${LD-ld} -32"
4058 *N32*)
4059 LD="${LD-ld} -n32"
4061 *64-bit*)
4062 LD="${LD-ld} -64"
4064 esac
4067 rm -rf conftest*
4070 ia64-*-hpux*)
4071 # Find out which ABI we are using.
4072 echo 'int i;' > conftest.$ac_ext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; then
4078 case "`/usr/bin/file conftest.o`" in
4079 *ELF-32*)
4080 HPUX_IA64_MODE="32"
4082 *ELF-64*)
4083 HPUX_IA64_MODE="64"
4085 esac
4087 rm -rf conftest*
4090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_i386"
4104 ppc64-*linux*|powerpc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4113 esac
4115 *64-bit*)
4116 case $host in
4117 x86_64-*linux*)
4118 LD="${LD-ld} -m elf_x86_64"
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4129 esac
4131 esac
4133 rm -rf conftest*
4136 *-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142 if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.$ac_objext conftest$ac_exeext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 lt_cv_cc_needs_belf=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 lt_cv_cc_needs_belf=no
4197 rm -f conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 ac_ext=c
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4207 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210 CFLAGS="$SAVE_CFLAGS"
4215 esac
4218 # Save cache, so that ltconfig can load it
4219 cat >confcache <<\_ACEOF
4220 # This file is a shell script that caches the results of configure
4221 # tests run on this system so they can be shared between configure
4222 # scripts and configure runs, see configure's option --config-cache.
4223 # It is not useful on other systems. If it contains results you don't
4224 # want to keep, you may remove or edit it.
4226 # config.status only pays attention to the cache file if you give it
4227 # the --recheck option to rerun configure.
4229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4231 # following values.
4233 _ACEOF
4235 # The following way of writing the cache mishandles newlines in values,
4236 # but we know of no workaround that is simple, portable, and efficient.
4237 # So, don't put newlines in cache variables' values.
4238 # Ultrix sh set writes to stderr and can't be redirected directly,
4239 # and sets the high bit in the cache file unless we assign to the vars.
4241 (set) 2>&1 |
4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4243 *ac_space=\ *)
4244 # `set' does not quote correctly, so add quotes (double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \).
4246 sed -n \
4247 "s/'/'\\\\''/g;
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4252 sed -n \
4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4255 esac;
4257 sed '
4258 t clear
4259 : clear
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4261 t end
4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4263 : end' >>confcache
4264 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4265 if test -w $cache_file; then
4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4267 cat confcache >$cache_file
4268 else
4269 echo "not updating unwritable cache $cache_file"
4272 rm -f confcache
4274 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4275 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4276 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4277 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4278 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4279 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4280 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4281 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4282 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4283 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4284 echo "$as_me: error: libtool configure failed" >&2;}
4285 { (exit 1); exit 1; }; }
4287 # Reload cache, that may have been modified by ltconfig
4288 if test -r "$cache_file"; then
4289 # Some versions of bash will fail to source /dev/null (special
4290 # files actually), so we avoid doing that.
4291 if test -f "$cache_file"; then
4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4293 echo "$as_me: loading cache $cache_file" >&6;}
4294 case $cache_file in
4295 [\\/]* | ?:[\\/]* ) . $cache_file;;
4296 *) . ./$cache_file;;
4297 esac
4299 else
4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4301 echo "$as_me: creating cache $cache_file" >&6;}
4302 >$cache_file
4306 # This can be used to rebuild libtool when needed
4307 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4309 # Always use our own libtool.
4310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4312 # Redirect the config.log output again, so that the ltconfig log is not
4313 # clobbered by the next message.
4314 exec 5>>./config.log
4322 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4323 if test "${enable_64_bit_bfd+set}" = set; then
4324 enableval="$enable_64_bit_bfd"
4325 case "${enableval}" in
4326 yes) want64=true ;;
4327 no) want64=false ;;
4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4329 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4330 { (exit 1); exit 1; }; } ;;
4331 esac
4332 else
4333 want64=false
4334 fi; # Check whether --enable-targets or --disable-targets was given.
4335 if test "${enable_targets+set}" = set; then
4336 enableval="$enable_targets"
4337 case "${enableval}" in
4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4339 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4340 { (exit 1); exit 1; }; }
4342 no) enable_targets= ;;
4343 *) enable_targets=$enableval ;;
4344 esac
4345 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4346 if test "${enable_commonbfdlib+set}" = set; then
4347 enableval="$enable_commonbfdlib"
4348 case "${enableval}" in
4349 yes) commonbfdlib=true ;;
4350 no) commonbfdlib=false ;;
4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4352 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4353 { (exit 1); exit 1; }; } ;;
4354 esac
4356 # Check whether --with-mmap or --without-mmap was given.
4357 if test "${with_mmap+set}" = set; then
4358 withval="$with_mmap"
4359 case "${withval}" in
4360 yes) want_mmap=true ;;
4361 no) want_mmap=false ;;
4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4363 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4364 { (exit 1); exit 1; }; } ;;
4365 esac
4366 else
4367 want_mmap=false
4369 # Check whether --enable-secureplt or --disable-secureplt was given.
4370 if test "${enable_secureplt+set}" = set; then
4371 enableval="$enable_secureplt"
4372 case "${enableval}" in
4373 yes) use_secureplt=true ;;
4374 no) use_secureplt=false ;;
4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4376 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4378 esac
4379 else
4380 use_secureplt=false
4381 fi; if test $use_secureplt = true; then
4383 cat >>confdefs.h <<\_ACEOF
4384 #define USE_SECUREPLT 1
4385 _ACEOF
4390 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4392 # Check whether --enable-werror or --disable-werror was given.
4393 if test "${enable_werror+set}" = set; then
4394 enableval="$enable_werror"
4395 case "${enableval}" in
4396 yes | y) ERROR_ON_WARNING="yes" ;;
4397 no | n) ERROR_ON_WARNING="no" ;;
4398 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4399 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4400 { (exit 1); exit 1; }; } ;;
4401 esac
4404 # Enable -Werror by default when using gcc
4405 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4406 ERROR_ON_WARNING=yes
4409 NO_WERROR=
4410 if test "${ERROR_ON_WARNING}" = yes ; then
4411 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4412 NO_WERROR="-Wno-error"
4415 if test "${GCC}" = yes ; then
4416 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4419 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4420 if test "${enable_build_warnings+set}" = set; then
4421 enableval="$enable_build_warnings"
4422 case "${enableval}" in
4423 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4424 no) if test "${GCC}" = yes ; then
4425 WARN_CFLAGS="-w"
4426 fi;;
4427 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4428 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4429 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4430 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4432 esac
4435 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4436 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4443 ac_config_headers="$ac_config_headers config.h:config.in"
4446 if test -z "$target" ; then
4447 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4448 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4449 { (exit 1); exit 1; }; }
4452 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4453 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4454 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4455 if test "${enable_maintainer_mode+set}" = set; then
4456 enableval="$enable_maintainer_mode"
4457 USE_MAINTAINER_MODE=$enableval
4458 else
4459 USE_MAINTAINER_MODE=no
4461 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4462 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4465 if test $USE_MAINTAINER_MODE = yes; then
4466 MAINTAINER_MODE_TRUE=
4467 MAINTAINER_MODE_FALSE='#'
4468 else
4469 MAINTAINER_MODE_TRUE='#'
4470 MAINTAINER_MODE_FALSE=
4473 MAINT=$MAINTAINER_MODE_TRUE
4476 case ${build_alias} in
4477 "") build_noncanonical=${build} ;;
4478 *) build_noncanonical=${build_alias} ;;
4479 esac
4481 case ${host_alias} in
4482 "") host_noncanonical=${build_noncanonical} ;;
4483 *) host_noncanonical=${host_alias} ;;
4484 esac
4486 case ${target_alias} in
4487 "") target_noncanonical=${host_noncanonical} ;;
4488 *) target_noncanonical=${target_alias} ;;
4489 esac
4491 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4492 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4493 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4494 if test "${enable_install_libbfd+set}" = set; then
4495 enableval="$enable_install_libbfd"
4496 install_libbfd_p=$enableval
4497 else
4498 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4499 install_libbfd_p=yes
4500 else
4501 install_libbfd_p=no
4504 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4505 echo "${ECHO_T}$install_libbfd_p" >&6
4508 if test $install_libbfd_p = yes; then
4509 INSTALL_LIBBFD_TRUE=
4510 INSTALL_LIBBFD_FALSE='#'
4511 else
4512 INSTALL_LIBBFD_TRUE='#'
4513 INSTALL_LIBBFD_FALSE=
4516 # Need _noncanonical variables for this.
4521 # libbfd.a is a host library containing target dependent code
4522 bfdlibdir='$(libdir)'
4523 bfdincludedir='$(includedir)'
4524 if test "${host}" != "${target}"; then
4525 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4526 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4534 host64=false
4535 target64=false
4536 bfd_default_target_size=32
4538 # host stuff:
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4572 CC=$ac_cv_prog_CC
4573 if test -n "$CC"; then
4574 echo "$as_me:$LINENO: result: $CC" >&5
4575 echo "${ECHO_T}$CC" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4582 if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585 set dummy gcc; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4613 echo "${ECHO_T}$ac_ct_CC" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4619 CC=$ac_ct_CC
4620 else
4621 CC="$ac_cv_prog_CC"
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}cc; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4647 done
4648 done
4652 CC=$ac_cv_prog_CC
4653 if test -n "$CC"; then
4654 echo "$as_me:$LINENO: result: $CC" >&5
4655 echo "${ECHO_T}$CC" >&6
4656 else
4657 echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4662 if test -z "$ac_cv_prog_CC"; then
4663 ac_ct_CC=$CC
4664 # Extract the first word of "cc", so it can be a program name with args.
4665 set dummy cc; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691 if test -n "$ac_ct_CC"; then
4692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4693 echo "${ECHO_T}$ac_ct_CC" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4699 CC=$ac_ct_CC
4700 else
4701 CC="$ac_cv_prog_CC"
4705 if test -z "$CC"; then
4706 # Extract the first word of "cc", so it can be a program name with args.
4707 set dummy cc; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715 else
4716 ac_prog_rejected=no
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725 ac_prog_rejected=yes
4726 continue
4728 ac_cv_prog_CC="cc"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4735 if test $ac_prog_rejected = yes; then
4736 # We found a bogon in the path, so make sure we never use it.
4737 set dummy $ac_cv_prog_CC
4738 shift
4739 if test $# != 0; then
4740 # We chose a different compiler from the bogus one.
4741 # However, it has the same basename, so the bogon will be chosen
4742 # first if we set CC to just the basename; use the full file name.
4743 shift
4744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4749 CC=$ac_cv_prog_CC
4750 if test -n "$CC"; then
4751 echo "$as_me:$LINENO: result: $CC" >&5
4752 echo "${ECHO_T}$CC" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4759 if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4761 for ac_prog in cl
4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4765 echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767 if test "${ac_cv_prog_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4789 CC=$ac_cv_prog_CC
4790 if test -n "$CC"; then
4791 echo "$as_me:$LINENO: result: $CC" >&5
4792 echo "${ECHO_T}$CC" >&6
4793 else
4794 echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4798 test -n "$CC" && break
4799 done
4801 if test -z "$CC"; then
4802 ac_ct_CC=$CC
4803 for ac_prog in cl
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806 set dummy $ac_prog; ac_word=$2
4807 echo "$as_me:$LINENO: checking for $ac_word" >&5
4808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 if test -n "$ac_ct_CC"; then
4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_ac_ct_CC="$ac_prog"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832 if test -n "$ac_ct_CC"; then
4833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4834 echo "${ECHO_T}$ac_ct_CC" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6
4840 test -n "$ac_ct_CC" && break
4841 done
4843 CC=$ac_ct_CC
4849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4850 See \`config.log' for more details." >&5
4851 echo "$as_me: error: no acceptable C compiler found in \$PATH
4852 See \`config.log' for more details." >&2;}
4853 { (exit 1); exit 1; }; }
4855 # Provide some information about the compiler.
4856 echo "$as_me:$LINENO:" \
4857 "checking for C compiler version" >&5
4858 ac_compiler=`set X $ac_compile; echo $2`
4859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4860 (eval $ac_compiler --version </dev/null >&5) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }
4864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4865 (eval $ac_compiler -v </dev/null >&5) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }
4869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4870 (eval $ac_compiler -V </dev/null >&5) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }
4875 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4888 main ()
4890 #ifndef __GNUC__
4891 choke me
4892 #endif
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_compiler_gnu=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 ac_compiler_gnu=no
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4931 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4933 GCC=`test $ac_compiler_gnu = yes && echo yes`
4934 ac_test_CFLAGS=${CFLAGS+set}
4935 ac_save_CFLAGS=$CFLAGS
4936 CFLAGS="-g"
4937 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4939 if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4950 main ()
4954 return 0;
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_cv_prog_cc_g=yes
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 ac_cv_prog_cc_g=no
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4990 if test "$ac_test_CFLAGS" = set; then
4991 CFLAGS=$ac_save_CFLAGS
4992 elif test $ac_cv_prog_cc_g = yes; then
4993 if test "$GCC" = yes; then
4994 CFLAGS="-g -O2"
4995 else
4996 CFLAGS="-g"
4998 else
4999 if test "$GCC" = yes; then
5000 CFLAGS="-O2"
5001 else
5002 CFLAGS=
5005 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5006 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5007 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 ac_cv_prog_cc_stdc=no
5011 ac_save_CC=$CC
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <stdarg.h>
5019 #include <stdio.h>
5020 #include <sys/types.h>
5021 #include <sys/stat.h>
5022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5023 struct buf { int x; };
5024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5025 static char *e (p, i)
5026 char **p;
5027 int i;
5029 return p[i];
5031 static char *f (char * (*g) (char **, int), char **p, ...)
5033 char *s;
5034 va_list v;
5035 va_start (v,p);
5036 s = g (p, va_arg (v,int));
5037 va_end (v);
5038 return s;
5041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5042 function prototypes and stuff, but not '\xHH' hex character constants.
5043 These don't provoke an error unfortunately, instead are silently treated
5044 as 'x'. The following induces an error, until -std1 is added to get
5045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5046 array size at least. It's necessary to write '\x00'==0 to get something
5047 that's true only with -std1. */
5048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5050 int test (int i, double x);
5051 struct s1 {int (*f) (int a);};
5052 struct s2 {int (*f) (double a);};
5053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5054 int argc;
5055 char **argv;
5057 main ()
5059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5061 return 0;
5063 _ACEOF
5064 # Don't try gcc -ansi; that turns off useful extensions and
5065 # breaks some systems' header files.
5066 # AIX -qlanglvl=ansi
5067 # Ultrix and OSF/1 -std1
5068 # HP-UX 10.20 and later -Ae
5069 # HP-UX older versions -Aa -D_HPUX_SOURCE
5070 # SVR4 -Xc -D__EXTENSIONS__
5071 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5073 CC="$ac_save_CC $ac_arg"
5074 rm -f conftest.$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_prog_cc_stdc=$ac_arg
5097 break
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f conftest.err conftest.$ac_objext
5104 done
5105 rm -f conftest.$ac_ext conftest.$ac_objext
5106 CC=$ac_save_CC
5110 case "x$ac_cv_prog_cc_stdc" in
5111 x|xno)
5112 echo "$as_me:$LINENO: result: none needed" >&5
5113 echo "${ECHO_T}none needed" >&6 ;;
5115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5116 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5117 CC="$CC $ac_cv_prog_cc_stdc" ;;
5118 esac
5120 # Some people use a C++ compiler to compile C. Since we use `exit',
5121 # in C++ we need to declare it. In case someone uses the same compiler
5122 # for both compiling C and C++ we need to have the C++ compiler decide
5123 # the declaration of exit, since it's the most demanding environment.
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #ifndef __cplusplus
5126 choke me
5127 #endif
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 for ac_declaration in \
5152 '' \
5153 'extern "C" void std::exit (int) throw (); using std::exit;' \
5154 'extern "C" void std::exit (int); using std::exit;' \
5155 'extern "C" void exit (int) throw ();' \
5156 'extern "C" void exit (int);' \
5157 'void exit (int);'
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_declaration
5166 #include <stdlib.h>
5168 main ()
5170 exit (42);
5172 return 0;
5174 _ACEOF
5175 rm -f conftest.$ac_objext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -z "$ac_c_werror_flag"
5185 || test ! -s conftest.err'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 continue
5204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 $ac_declaration
5213 main ()
5215 exit (42);
5217 return 0;
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 break
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249 done
5250 rm -f conftest*
5251 if test -n "$ac_declaration"; then
5252 echo '#ifdef __cplusplus' >>confdefs.h
5253 echo $ac_declaration >>confdefs.h
5254 echo '#endif' >>confdefs.h
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_ext=c
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270 cat >>confdefs.h <<\_ACEOF
5271 #define _GNU_SOURCE 1
5272 _ACEOF
5276 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_RANLIB+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 if test -n "$RANLIB"; then
5286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5304 RANLIB=$ac_cv_prog_RANLIB
5305 if test -n "$RANLIB"; then
5306 echo "$as_me:$LINENO: result: $RANLIB" >&5
5307 echo "${ECHO_T}$RANLIB" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_RANLIB"; then
5315 ac_ct_RANLIB=$RANLIB
5316 # Extract the first word of "ranlib", so it can be a program name with args.
5317 set dummy ranlib; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$ac_ct_RANLIB"; then
5324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_RANLIB="ranlib"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5344 if test -n "$ac_ct_RANLIB"; then
5345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5352 RANLIB=$ac_ct_RANLIB
5353 else
5354 RANLIB="$ac_cv_prog_RANLIB"
5357 ac_ext=c
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5364 # On Suns, sometimes $CPP names a directory.
5365 if test -n "$CPP" && test -d "$CPP"; then
5366 CPP=
5368 if test -z "$CPP"; then
5369 if test "${ac_cv_prog_CPP+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 # Double quotes because CPP needs to be expanded
5373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5375 ac_preproc_ok=false
5376 for ac_c_preproc_warn_flag in '' yes
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #ifdef __STDC__
5391 # include <limits.h>
5392 #else
5393 # include <assert.h>
5394 #endif
5395 Syntax error
5396 _ACEOF
5397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408 else
5409 ac_cpp_err=
5411 else
5412 ac_cpp_err=yes
5414 if test -z "$ac_cpp_err"; then
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 # Broken: fails on valid input.
5421 continue
5423 rm -f conftest.err conftest.$ac_ext
5425 # OK, works on sane cases. Now check whether non-existent headers
5426 # can be detected and how.
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <ac_nonexistent.h>
5434 _ACEOF
5435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5449 else
5450 ac_cpp_err=yes
5452 if test -z "$ac_cpp_err"; then
5453 # Broken: success on invalid input.
5454 continue
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 # Passes both tests.
5460 ac_preproc_ok=:
5461 break
5463 rm -f conftest.err conftest.$ac_ext
5465 done
5466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.err conftest.$ac_ext
5468 if $ac_preproc_ok; then
5469 break
5472 done
5473 ac_cv_prog_CPP=$CPP
5476 CPP=$ac_cv_prog_CPP
5477 else
5478 ac_cv_prog_CPP=$CPP
5480 echo "$as_me:$LINENO: result: $CPP" >&5
5481 echo "${ECHO_T}$CPP" >&6
5482 ac_preproc_ok=false
5483 for ac_c_preproc_warn_flag in '' yes
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 #ifdef __STDC__
5498 # include <limits.h>
5499 #else
5500 # include <assert.h>
5501 #endif
5502 Syntax error
5503 _ACEOF
5504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } >/dev/null; then
5512 if test -s conftest.err; then
5513 ac_cpp_err=$ac_c_preproc_warn_flag
5514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5515 else
5516 ac_cpp_err=
5518 else
5519 ac_cpp_err=yes
5521 if test -z "$ac_cpp_err"; then
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 # Broken: fails on valid input.
5528 continue
5530 rm -f conftest.err conftest.$ac_ext
5532 # OK, works on sane cases. Now check whether non-existent headers
5533 # can be detected and how.
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5541 _ACEOF
5542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5553 else
5554 ac_cpp_err=
5556 else
5557 ac_cpp_err=yes
5559 if test -z "$ac_cpp_err"; then
5560 # Broken: success on invalid input.
5561 continue
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 # Passes both tests.
5567 ac_preproc_ok=:
5568 break
5570 rm -f conftest.err conftest.$ac_ext
5572 done
5573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574 rm -f conftest.err conftest.$ac_ext
5575 if $ac_preproc_ok; then
5577 else
5578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5579 See \`config.log' for more details." >&5
5580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5581 See \`config.log' for more details." >&2;}
5582 { (exit 1); exit 1; }; }
5585 ac_ext=c
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 echo "$as_me:$LINENO: checking for egrep" >&5
5593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5594 if test "${ac_cv_prog_egrep+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5598 then ac_cv_prog_egrep='grep -E'
5599 else ac_cv_prog_egrep='egrep'
5602 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5603 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5604 EGREP=$ac_cv_prog_egrep
5607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <stdlib.h>
5619 #include <stdarg.h>
5620 #include <string.h>
5621 #include <float.h>
5624 main ()
5628 return 0;
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_header_stdc=yes
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_cv_header_stdc=no
5660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662 if test $ac_cv_header_stdc = yes; then
5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <string.h>
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "memchr" >/dev/null 2>&1; then
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f conftest*
5683 if test $ac_cv_header_stdc = yes; then
5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5685 cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 #include <stdlib.h>
5693 _ACEOF
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "free" >/dev/null 2>&1; then
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f conftest*
5704 if test $ac_cv_header_stdc = yes; then
5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5706 if test "$cross_compiling" = yes; then
5708 else
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <ctype.h>
5716 #if ((' ' & 0x0FF) == 0x020)
5717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719 #else
5720 # define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5725 #endif
5727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5729 main ()
5731 int i;
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5735 exit(2);
5736 exit (0);
5738 _ACEOF
5739 rm -f conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5751 else
5752 echo "$as_me: program exited with status $ac_status" >&5
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ( exit $ac_status )
5757 ac_cv_header_stdc=no
5759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5765 if test $ac_cv_header_stdc = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define STDC_HEADERS 1
5769 _ACEOF
5773 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5774 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5775 if test "${ac_cv_c_const+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5786 main ()
5788 /* FIXME: Include the comments suggested by Paul. */
5789 #ifndef __cplusplus
5790 /* Ultrix mips cc rejects this. */
5791 typedef int charset[2];
5792 const charset x;
5793 /* SunOS 4.1.1 cc rejects this. */
5794 char const *const *ccp;
5795 char **p;
5796 /* NEC SVR4.0.2 mips cc rejects this. */
5797 struct point {int x, y;};
5798 static struct point const zero = {0,0};
5799 /* AIX XL C 1.02.0.0 rejects this.
5800 It does not let you subtract one const X* pointer from another in
5801 an arm of an if-expression whose if-part is not a constant
5802 expression */
5803 const char *g = "string";
5804 ccp = &g + (g ? g-g : 0);
5805 /* HPUX 7.0 cc rejects these. */
5806 ++ccp;
5807 p = (char**) ccp;
5808 ccp = (char const *const *) p;
5809 { /* SCO 3.2v4 cc rejects this. */
5810 char *t;
5811 char const *s = 0 ? (char *) 0 : (char const *) 0;
5813 *t++ = 0;
5815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5816 int x[] = {25, 17};
5817 const int *foo = &x[0];
5818 ++foo;
5820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5821 typedef const int *iptr;
5822 iptr p = 0;
5823 ++p;
5825 { /* AIX XL C 1.02.0.0 rejects this saying
5826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5827 struct s { int j; const int *ap[3]; };
5828 struct s *b; b->j = 5;
5830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5831 const int foo = 10;
5833 #endif
5836 return 0;
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_c_werror_flag"
5849 || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_c_const=yes
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 ac_cv_c_const=no
5868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5871 echo "${ECHO_T}$ac_cv_c_const" >&6
5872 if test $ac_cv_c_const = no; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define const
5876 _ACEOF
5880 echo "$as_me:$LINENO: checking for inline" >&5
5881 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5882 if test "${ac_cv_c_inline+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 ac_cv_c_inline=no
5886 for ac_kw in inline __inline__ __inline; do
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #ifndef __cplusplus
5894 typedef int foo_t;
5895 static $ac_kw foo_t static_foo () {return 0; }
5896 $ac_kw foo_t foo () {return 0; }
5897 #endif
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_c_inline=$ac_kw; break
5923 else
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929 done
5932 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5933 echo "${ECHO_T}$ac_cv_c_inline" >&6
5936 case $ac_cv_c_inline in
5937 inline | yes) ;;
5939 case $ac_cv_c_inline in
5940 no) ac_val=;;
5941 *) ac_val=$ac_cv_c_inline;;
5942 esac
5943 cat >>confdefs.h <<_ACEOF
5944 #ifndef __cplusplus
5945 #define inline $ac_val
5946 #endif
5947 _ACEOF
5949 esac
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962 inttypes.h stdint.h unistd.h
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 #include <$ac_header>
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_Header=yes"
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 eval "$as_ac_Header=no"
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016 _ACEOF
6020 done
6023 echo "$as_me:$LINENO: checking for off_t" >&5
6024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6025 if test "${ac_cv_type_off_t+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6036 main ()
6038 if ((off_t *) 0)
6039 return 0;
6040 if (sizeof (off_t))
6041 return 0;
6043 return 0;
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_off_t=yes
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_type_off_t=no
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6078 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6079 if test $ac_cv_type_off_t = yes; then
6081 else
6083 cat >>confdefs.h <<_ACEOF
6084 #define off_t long
6085 _ACEOF
6089 echo "$as_me:$LINENO: checking for size_t" >&5
6090 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6091 if test "${ac_cv_type_size_t+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6102 main ()
6104 if ((size_t *) 0)
6105 return 0;
6106 if (sizeof (size_t))
6107 return 0;
6109 return 0;
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_type_size_t=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_cv_type_size_t=no
6141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6144 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6145 if test $ac_cv_type_size_t = yes; then
6147 else
6149 cat >>confdefs.h <<_ACEOF
6150 #define size_t unsigned
6151 _ACEOF
6155 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6156 # for constant arguments. Useless!
6157 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6158 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6159 if test "${ac_cv_working_alloca_h+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <alloca.h>
6170 main ()
6172 char *p = (char *) alloca (2 * sizeof (int));
6174 return 0;
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_working_alloca_h=yes
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_cv_working_alloca_h=no
6206 rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6210 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6211 if test $ac_cv_working_alloca_h = yes; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_ALLOCA_H 1
6215 _ACEOF
6219 echo "$as_me:$LINENO: checking for alloca" >&5
6220 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6221 if test "${ac_cv_func_alloca_works+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #ifdef __GNUC__
6231 # define alloca __builtin_alloca
6232 #else
6233 # ifdef _MSC_VER
6234 # include <malloc.h>
6235 # define alloca _alloca
6236 # else
6237 # if HAVE_ALLOCA_H
6238 # include <alloca.h>
6239 # else
6240 # ifdef _AIX
6241 #pragma alloca
6242 # else
6243 # ifndef alloca /* predefined by HP cc +Olibcalls */
6244 char *alloca ();
6245 # endif
6246 # endif
6247 # endif
6248 # endif
6249 #endif
6252 main ()
6254 char *p = (char *) alloca (1);
6256 return 0;
6258 _ACEOF
6259 rm -f conftest.$ac_objext conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_func_alloca_works=yes
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_cv_func_alloca_works=no
6288 rm -f conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6292 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6294 if test $ac_cv_func_alloca_works = yes; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define HAVE_ALLOCA 1
6298 _ACEOF
6300 else
6301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6302 # that cause trouble. Some versions do not even contain alloca or
6303 # contain a buggy version. If you still want to use their alloca,
6304 # use ar to extract alloca.o from them instead of compiling alloca.c.
6306 ALLOCA=alloca.$ac_objext
6308 cat >>confdefs.h <<\_ACEOF
6309 #define C_ALLOCA 1
6310 _ACEOF
6313 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6314 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6315 if test "${ac_cv_os_cray+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #if defined(CRAY) && ! defined(CRAY2)
6325 webecray
6326 #else
6327 wenotbecray
6328 #endif
6330 _ACEOF
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "webecray" >/dev/null 2>&1; then
6333 ac_cv_os_cray=yes
6334 else
6335 ac_cv_os_cray=no
6337 rm -f conftest*
6340 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6341 echo "${ECHO_T}$ac_cv_os_cray" >&6
6342 if test $ac_cv_os_cray = yes; then
6343 for ac_func in _getb67 GETB67 getb67; do
6344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6345 echo "$as_me:$LINENO: checking for $ac_func" >&5
6346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6347 if eval "test \"\${$as_ac_var+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h. */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6358 #define $ac_func innocuous_$ac_func
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func (); below.
6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6363 <limits.h> exists even on freestanding compilers. */
6365 #ifdef __STDC__
6366 # include <limits.h>
6367 #else
6368 # include <assert.h>
6369 #endif
6371 #undef $ac_func
6373 /* Override any gcc2 internal prototype to avoid an error. */
6374 #ifdef __cplusplus
6375 extern "C"
6377 #endif
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380 char $ac_func ();
6381 /* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6385 choke me
6386 #else
6387 char (*f) () = $ac_func;
6388 #endif
6389 #ifdef __cplusplus
6391 #endif
6394 main ()
6396 return f != $ac_func;
6398 return 0;
6400 _ACEOF
6401 rm -f conftest.$ac_objext conftest$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_var=yes"
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 eval "$as_ac_var=no"
6430 rm -f conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6435 if test `eval echo '${'$as_ac_var'}'` = yes; then
6437 cat >>confdefs.h <<_ACEOF
6438 #define CRAY_STACKSEG_END $ac_func
6439 _ACEOF
6441 break
6444 done
6447 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6448 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6449 if test "${ac_cv_c_stack_direction+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 if test "$cross_compiling" = yes; then
6453 ac_cv_c_stack_direction=0
6454 else
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 find_stack_direction ()
6464 static char *addr = 0;
6465 auto char dummy;
6466 if (addr == 0)
6468 addr = &dummy;
6469 return find_stack_direction ();
6471 else
6472 return (&dummy > addr) ? 1 : -1;
6476 main ()
6478 exit (find_stack_direction () < 0);
6480 _ACEOF
6481 rm -f conftest$ac_exeext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_c_stack_direction=1
6493 else
6494 echo "$as_me: program exited with status $ac_status" >&5
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 ( exit $ac_status )
6499 ac_cv_c_stack_direction=-1
6501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6505 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6507 cat >>confdefs.h <<_ACEOF
6508 #define STACK_DIRECTION $ac_cv_c_stack_direction
6509 _ACEOF
6516 for ac_header in stdlib.h unistd.h
6518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527 else
6528 # Is the header compilable?
6529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 #include <$ac_header>
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_header_compiler=yes
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_header_compiler=no
6569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571 echo "${ECHO_T}$ac_header_compiler" >&6
6573 # Is the header present?
6574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <$ac_header>
6583 _ACEOF
6584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null; then
6592 if test -s conftest.err; then
6593 ac_cpp_err=$ac_c_preproc_warn_flag
6594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6595 else
6596 ac_cpp_err=
6598 else
6599 ac_cpp_err=yes
6601 if test -z "$ac_cpp_err"; then
6602 ac_header_preproc=yes
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_header_preproc=no
6609 rm -f conftest.err conftest.$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611 echo "${ECHO_T}$ac_header_preproc" >&6
6613 # So? What about this header?
6614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6615 yes:no: )
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc=yes
6622 no:yes:* )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6636 cat <<\_ASBOX
6637 ## ------------------------------------------ ##
6638 ## Report this to the AC_PACKAGE_NAME lists. ##
6639 ## ------------------------------------------ ##
6640 _ASBOX
6642 sed "s/^/$as_me: WARNING: /" >&2
6644 esac
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 eval "$as_ac_Header=\$ac_header_preproc"
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 _ACEOF
6663 done
6666 for ac_func in getpagesize
6668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6682 #define $ac_func innocuous_$ac_func
6684 /* System header to define __stub macros and hopefully few prototypes,
6685 which can conflict with char $ac_func (); below.
6686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6687 <limits.h> exists even on freestanding compilers. */
6689 #ifdef __STDC__
6690 # include <limits.h>
6691 #else
6692 # include <assert.h>
6693 #endif
6695 #undef $ac_func
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 #ifdef __cplusplus
6699 extern "C"
6701 #endif
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6704 char $ac_func ();
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709 choke me
6710 #else
6711 char (*f) () = $ac_func;
6712 #endif
6713 #ifdef __cplusplus
6715 #endif
6718 main ()
6720 return f != $ac_func;
6722 return 0;
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 eval "$as_ac_var=yes"
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 eval "$as_ac_var=no"
6754 rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6759 if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h <<_ACEOF
6761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762 _ACEOF
6765 done
6767 echo "$as_me:$LINENO: checking for working mmap" >&5
6768 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6769 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 if test "$cross_compiling" = yes; then
6773 ac_cv_func_mmap_fixed_mapped=no
6774 else
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 $ac_includes_default
6782 /* malloc might have been renamed as rpl_malloc. */
6783 #undef malloc
6785 /* Thanks to Mike Haertel and Jim Avera for this test.
6786 Here is a matrix of mmap possibilities:
6787 mmap private not fixed
6788 mmap private fixed at somewhere currently unmapped
6789 mmap private fixed at somewhere already mapped
6790 mmap shared not fixed
6791 mmap shared fixed at somewhere currently unmapped
6792 mmap shared fixed at somewhere already mapped
6793 For private mappings, we should verify that changes cannot be read()
6794 back from the file, nor mmap's back from the file at a different
6795 address. (There have been systems where private was not correctly
6796 implemented like the infamous i386 svr4.0, and systems where the
6797 VM page cache was not coherent with the file system buffer cache
6798 like early versions of FreeBSD and possibly contemporary NetBSD.)
6799 For shared mappings, we should conversely verify that changes get
6800 propagated back to all the places they're supposed to be.
6802 Grep wants private fixed already mapped.
6803 The main things grep needs to know about mmap are:
6804 * does it exist and is it safe to write into the mmap'd area
6805 * how to use it (BSD variants) */
6807 #include <fcntl.h>
6808 #include <sys/mman.h>
6810 #if !STDC_HEADERS && !HAVE_STDLIB_H
6811 char *malloc ();
6812 #endif
6814 /* This mess was copied from the GNU getpagesize.h. */
6815 #if !HAVE_GETPAGESIZE
6816 /* Assume that all systems that can run configure have sys/param.h. */
6817 # if !HAVE_SYS_PARAM_H
6818 # define HAVE_SYS_PARAM_H 1
6819 # endif
6821 # ifdef _SC_PAGESIZE
6822 # define getpagesize() sysconf(_SC_PAGESIZE)
6823 # else /* no _SC_PAGESIZE */
6824 # if HAVE_SYS_PARAM_H
6825 # include <sys/param.h>
6826 # ifdef EXEC_PAGESIZE
6827 # define getpagesize() EXEC_PAGESIZE
6828 # else /* no EXEC_PAGESIZE */
6829 # ifdef NBPG
6830 # define getpagesize() NBPG * CLSIZE
6831 # ifndef CLSIZE
6832 # define CLSIZE 1
6833 # endif /* no CLSIZE */
6834 # else /* no NBPG */
6835 # ifdef NBPC
6836 # define getpagesize() NBPC
6837 # else /* no NBPC */
6838 # ifdef PAGESIZE
6839 # define getpagesize() PAGESIZE
6840 # endif /* PAGESIZE */
6841 # endif /* no NBPC */
6842 # endif /* no NBPG */
6843 # endif /* no EXEC_PAGESIZE */
6844 # else /* no HAVE_SYS_PARAM_H */
6845 # define getpagesize() 8192 /* punt totally */
6846 # endif /* no HAVE_SYS_PARAM_H */
6847 # endif /* no _SC_PAGESIZE */
6849 #endif /* no HAVE_GETPAGESIZE */
6852 main ()
6854 char *data, *data2, *data3;
6855 int i, pagesize;
6856 int fd;
6858 pagesize = getpagesize ();
6860 /* First, make a file with some known garbage in it. */
6861 data = (char *) malloc (pagesize);
6862 if (!data)
6863 exit (1);
6864 for (i = 0; i < pagesize; ++i)
6865 *(data + i) = rand ();
6866 umask (0);
6867 fd = creat ("conftest.mmap", 0600);
6868 if (fd < 0)
6869 exit (1);
6870 if (write (fd, data, pagesize) != pagesize)
6871 exit (1);
6872 close (fd);
6874 /* Next, try to mmap the file at a fixed address which already has
6875 something else allocated at it. If we can, also make sure that
6876 we see the same garbage. */
6877 fd = open ("conftest.mmap", O_RDWR);
6878 if (fd < 0)
6879 exit (1);
6880 data2 = (char *) malloc (2 * pagesize);
6881 if (!data2)
6882 exit (1);
6883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6886 exit (1);
6887 for (i = 0; i < pagesize; ++i)
6888 if (*(data + i) != *(data2 + i))
6889 exit (1);
6891 /* Finally, make sure that changes to the mapped area do not
6892 percolate back to the file as seen by read(). (This is a bug on
6893 some variants of i386 svr4.0.) */
6894 for (i = 0; i < pagesize; ++i)
6895 *(data2 + i) = *(data2 + i) + 1;
6896 data3 = (char *) malloc (pagesize);
6897 if (!data3)
6898 exit (1);
6899 if (read (fd, data3, pagesize) != pagesize)
6900 exit (1);
6901 for (i = 0; i < pagesize; ++i)
6902 if (*(data + i) != *(data3 + i))
6903 exit (1);
6904 close (fd);
6905 exit (0);
6907 _ACEOF
6908 rm -f conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_mmap_fixed_mapped=yes
6920 else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ( exit $ac_status )
6926 ac_cv_func_mmap_fixed_mapped=no
6928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6932 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6933 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_MMAP 1
6937 _ACEOF
6940 rm -f conftest.mmap
6952 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6953 unistd.h values.h sys/param.h
6955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6957 echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6964 else
6965 # Is the header compilable?
6966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 #include <$ac_header>
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_header_compiler=yes
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_header_compiler=no
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7008 echo "${ECHO_T}$ac_header_compiler" >&6
7010 # Is the header present?
7011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include <$ac_header>
7020 _ACEOF
7021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null; then
7029 if test -s conftest.err; then
7030 ac_cpp_err=$ac_c_preproc_warn_flag
7031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7032 else
7033 ac_cpp_err=
7035 else
7036 ac_cpp_err=yes
7038 if test -z "$ac_cpp_err"; then
7039 ac_header_preproc=yes
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_header_preproc=no
7046 rm -f conftest.err conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7048 echo "${ECHO_T}$ac_header_preproc" >&6
7050 # So? What about this header?
7051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7052 yes:no: )
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7057 ac_header_preproc=yes
7059 no:yes:* )
7060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7073 cat <<\_ASBOX
7074 ## ------------------------------------------ ##
7075 ## Report this to the AC_PACKAGE_NAME lists. ##
7076 ## ------------------------------------------ ##
7077 _ASBOX
7079 sed "s/^/$as_me: WARNING: /" >&2
7081 esac
7082 echo "$as_me:$LINENO: checking for $ac_header" >&5
7083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 eval "$as_ac_Header=\$ac_header_preproc"
7089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7094 cat >>confdefs.h <<_ACEOF
7095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096 _ACEOF
7100 done
7112 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7113 __argz_count __argz_stringify __argz_next
7115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7116 echo "$as_me:$LINENO: checking for $ac_func" >&5
7117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_var+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7129 #define $ac_func innocuous_$ac_func
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func (); below.
7133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7134 <limits.h> exists even on freestanding compilers. */
7136 #ifdef __STDC__
7137 # include <limits.h>
7138 #else
7139 # include <assert.h>
7140 #endif
7142 #undef $ac_func
7144 /* Override any gcc2 internal prototype to avoid an error. */
7145 #ifdef __cplusplus
7146 extern "C"
7148 #endif
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7151 char $ac_func ();
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 choke me
7157 #else
7158 char (*f) () = $ac_func;
7159 #endif
7160 #ifdef __cplusplus
7162 #endif
7165 main ()
7167 return f != $ac_func;
7169 return 0;
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
7195 else
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 eval "$as_ac_var=no"
7201 rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7206 if test `eval echo '${'$as_ac_var'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7209 _ACEOF
7212 done
7215 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7217 for ac_func in stpcpy
7219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220 echo "$as_me:$LINENO: checking for $ac_func" >&5
7221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_var+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7233 #define $ac_func innocuous_$ac_func
7235 /* System header to define __stub macros and hopefully few prototypes,
7236 which can conflict with char $ac_func (); below.
7237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7238 <limits.h> exists even on freestanding compilers. */
7240 #ifdef __STDC__
7241 # include <limits.h>
7242 #else
7243 # include <assert.h>
7244 #endif
7246 #undef $ac_func
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 #ifdef __cplusplus
7250 extern "C"
7252 #endif
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char $ac_func ();
7256 /* The GNU C library defines this for functions which it implements
7257 to always fail with ENOSYS. Some functions are actually named
7258 something starting with __ and the normal name is an alias. */
7259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 choke me
7261 #else
7262 char (*f) () = $ac_func;
7263 #endif
7264 #ifdef __cplusplus
7266 #endif
7269 main ()
7271 return f != $ac_func;
7273 return 0;
7275 _ACEOF
7276 rm -f conftest.$ac_objext conftest$ac_exeext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 eval "$as_ac_var=yes"
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 eval "$as_ac_var=no"
7305 rm -f conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7310 if test `eval echo '${'$as_ac_var'}'` = yes; then
7311 cat >>confdefs.h <<_ACEOF
7312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7313 _ACEOF
7316 done
7319 if test "${ac_cv_func_stpcpy}" = "yes"; then
7321 cat >>confdefs.h <<\_ACEOF
7322 #define HAVE_STPCPY 1
7323 _ACEOF
7327 if test $ac_cv_header_locale_h = yes; then
7328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7329 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7330 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <locale.h>
7341 main ()
7343 return LC_MESSAGES
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -z "$ac_c_werror_flag"
7358 || test ! -s conftest.err'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; } &&
7364 { ac_try='test -s conftest$ac_exeext'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 am_cv_val_LC_MESSAGES=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 am_cv_val_LC_MESSAGES=no
7377 rm -f conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7380 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7381 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7382 if test $am_cv_val_LC_MESSAGES = yes; then
7384 cat >>confdefs.h <<\_ACEOF
7385 #define HAVE_LC_MESSAGES 1
7386 _ACEOF
7390 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7391 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7392 # Check whether --enable-nls or --disable-nls was given.
7393 if test "${enable_nls+set}" = set; then
7394 enableval="$enable_nls"
7395 USE_NLS=$enableval
7396 else
7397 USE_NLS=yes
7399 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7400 echo "${ECHO_T}$USE_NLS" >&6
7403 USE_INCLUDED_LIBINTL=no
7405 if test "$USE_NLS" = "yes"; then
7406 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7407 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7409 # Check whether --with-included-gettext or --without-included-gettext was given.
7410 if test "${with_included_gettext+set}" = set; then
7411 withval="$with_included_gettext"
7412 nls_cv_force_use_gnu_gettext=$withval
7413 else
7414 nls_cv_force_use_gnu_gettext=no
7416 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7417 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7419 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7420 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7421 nls_cv_header_intl=
7422 nls_cv_header_libgt=
7423 CATOBJEXT=
7425 if test "${ac_cv_header_libintl_h+set}" = set; then
7426 echo "$as_me:$LINENO: checking for libintl.h" >&5
7427 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7428 if test "${ac_cv_header_libintl_h+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7432 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7433 else
7434 # Is the header compilable?
7435 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7436 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #include <libintl.h>
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_header_compiler=yes
7469 else
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 ac_header_compiler=no
7475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7477 echo "${ECHO_T}$ac_header_compiler" >&6
7479 # Is the header present?
7480 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7481 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 #include <libintl.h>
7489 _ACEOF
7490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } >/dev/null; then
7498 if test -s conftest.err; then
7499 ac_cpp_err=$ac_c_preproc_warn_flag
7500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7501 else
7502 ac_cpp_err=
7504 else
7505 ac_cpp_err=yes
7507 if test -z "$ac_cpp_err"; then
7508 ac_header_preproc=yes
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_header_preproc=no
7515 rm -f conftest.err conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7517 echo "${ECHO_T}$ac_header_preproc" >&6
7519 # So? What about this header?
7520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7521 yes:no: )
7522 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7523 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7525 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7526 ac_header_preproc=yes
7528 no:yes:* )
7529 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7530 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7532 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7534 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7536 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7538 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7540 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7542 cat <<\_ASBOX
7543 ## ------------------------------------------ ##
7544 ## Report this to the AC_PACKAGE_NAME lists. ##
7545 ## ------------------------------------------ ##
7546 _ASBOX
7548 sed "s/^/$as_me: WARNING: /" >&2
7550 esac
7551 echo "$as_me:$LINENO: checking for libintl.h" >&5
7552 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7553 if test "${ac_cv_header_libintl_h+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 ac_cv_header_libintl_h=$ac_header_preproc
7558 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7559 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7562 if test $ac_cv_header_libintl_h = yes; then
7563 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7564 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7565 if test "${gt_cv_func_gettext_libc+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <libintl.h>
7576 main ()
7578 return (int) gettext ("")
7580 return 0;
7582 _ACEOF
7583 rm -f conftest.$ac_objext conftest$ac_exeext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585 (eval $ac_link) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 gt_cv_func_gettext_libc=yes
7606 else
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 gt_cv_func_gettext_libc=no
7612 rm -f conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
7615 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7616 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7618 if test "$gt_cv_func_gettext_libc" != "yes"; then
7619 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7620 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7621 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 ac_check_lib_save_LIBS=$LIBS
7625 LIBS="-lintl $LIBS"
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7633 /* Override any gcc2 internal prototype to avoid an error. */
7634 #ifdef __cplusplus
7635 extern "C"
7636 #endif
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7639 char bindtextdomain ();
7641 main ()
7643 bindtextdomain ();
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_lib_intl_bindtextdomain=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_lib_intl_bindtextdomain=no
7677 rm -f conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_check_lib_save_LIBS
7681 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7682 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7683 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7684 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7685 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7686 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7697 main ()
7699 return (int) gettext ("")
7701 return 0;
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 gt_cv_func_gettext_libintl=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 gt_cv_func_gettext_libintl=no
7733 rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7736 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7737 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7742 if test "$gt_cv_func_gettext_libc" = "yes" \
7743 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_GETTEXT 1
7747 _ACEOF
7749 # Extract the first word of "msgfmt", so it can be a program name with args.
7750 set dummy msgfmt; ac_word=$2
7751 echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753 if test "${ac_cv_path_MSGFMT+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 case "$MSGFMT" in
7758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7762 for ac_dir in $PATH; do
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/$ac_word; then
7765 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7766 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7767 break
7770 done
7771 IFS="$ac_save_ifs"
7772 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7774 esac
7776 MSGFMT="$ac_cv_path_MSGFMT"
7777 if test -n "$MSGFMT"; then
7778 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7779 echo "${ECHO_T}$MSGFMT" >&6
7780 else
7781 echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6
7784 if test "$MSGFMT" != "no"; then
7786 for ac_func in dcgettext
7788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7789 echo "$as_me:$LINENO: checking for $ac_func" >&5
7790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7791 if eval "test \"\${$as_ac_var+set}\" = set"; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7802 #define $ac_func innocuous_$ac_func
7804 /* System header to define __stub macros and hopefully few prototypes,
7805 which can conflict with char $ac_func (); below.
7806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7807 <limits.h> exists even on freestanding compilers. */
7809 #ifdef __STDC__
7810 # include <limits.h>
7811 #else
7812 # include <assert.h>
7813 #endif
7815 #undef $ac_func
7817 /* Override any gcc2 internal prototype to avoid an error. */
7818 #ifdef __cplusplus
7819 extern "C"
7821 #endif
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824 char $ac_func ();
7825 /* The GNU C library defines this for functions which it implements
7826 to always fail with ENOSYS. Some functions are actually named
7827 something starting with __ and the normal name is an alias. */
7828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7829 choke me
7830 #else
7831 char (*f) () = $ac_func;
7832 #endif
7833 #ifdef __cplusplus
7835 #endif
7838 main ()
7840 return f != $ac_func;
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 eval "$as_ac_var=yes"
7868 else
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 eval "$as_ac_var=no"
7874 rm -f conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7879 if test `eval echo '${'$as_ac_var'}'` = yes; then
7880 cat >>confdefs.h <<_ACEOF
7881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7882 _ACEOF
7885 done
7887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7888 set dummy gmsgfmt; ac_word=$2
7889 echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 case $GMSGFMT in
7895 [\\/]* | ?:[\\/]*)
7896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7910 done
7911 done
7913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7915 esac
7917 GMSGFMT=$ac_cv_path_GMSGFMT
7919 if test -n "$GMSGFMT"; then
7920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7921 echo "${ECHO_T}$GMSGFMT" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7927 # Extract the first word of "xgettext", so it can be a program name with args.
7928 set dummy xgettext; ac_word=$2
7929 echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7931 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 case "$XGETTEXT" in
7936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7940 for ac_dir in $PATH; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/$ac_word; then
7943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7945 break
7948 done
7949 IFS="$ac_save_ifs"
7950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7952 esac
7954 XGETTEXT="$ac_cv_path_XGETTEXT"
7955 if test -n "$XGETTEXT"; then
7956 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7957 echo "${ECHO_T}$XGETTEXT" >&6
7958 else
7959 echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7971 main ()
7973 extern int _nl_msg_cat_cntr;
7974 return _nl_msg_cat_cntr
7976 return 0;
7978 _ACEOF
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 CATOBJEXT=.gmo
8002 DATADIRNAME=share
8003 else
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 CATOBJEXT=.mo
8008 DATADIRNAME=lib
8010 rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 INSTOBJEXT=.mo
8021 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8022 # Neither gettext nor catgets in included in the C library.
8023 # Fall back on GNU gettext library (assuming it is present).
8024 nls_cv_use_gnu_gettext=yes
8028 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8029 INTLOBJS="\$(GETTOBJS)"
8030 # Extract the first word of "msgfmt", so it can be a program name with args.
8031 set dummy msgfmt; ac_word=$2
8032 echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8034 if test "${ac_cv_path_MSGFMT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 case "$MSGFMT" in
8039 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8043 for ac_dir in $PATH; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8047 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8048 break
8051 done
8052 IFS="$ac_save_ifs"
8053 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8055 esac
8057 MSGFMT="$ac_cv_path_MSGFMT"
8058 if test -n "$MSGFMT"; then
8059 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8060 echo "${ECHO_T}$MSGFMT" >&6
8061 else
8062 echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8066 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8067 set dummy gmsgfmt; ac_word=$2
8068 echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 case $GMSGFMT in
8074 [\\/]* | ?:[\\/]*)
8075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8089 done
8090 done
8092 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8094 esac
8096 GMSGFMT=$ac_cv_path_GMSGFMT
8098 if test -n "$GMSGFMT"; then
8099 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8100 echo "${ECHO_T}$GMSGFMT" >&6
8101 else
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8106 # Extract the first word of "xgettext", so it can be a program name with args.
8107 set dummy xgettext; ac_word=$2
8108 echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8110 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 case "$XGETTEXT" in
8115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8119 for ac_dir in $PATH; do
8120 test -z "$ac_dir" && ac_dir=.
8121 if test -f $ac_dir/$ac_word; then
8122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8124 break
8127 done
8128 IFS="$ac_save_ifs"
8129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8131 esac
8133 XGETTEXT="$ac_cv_path_XGETTEXT"
8134 if test -n "$XGETTEXT"; then
8135 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8136 echo "${ECHO_T}$XGETTEXT" >&6
8137 else
8138 echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8143 USE_INCLUDED_LIBINTL=yes
8144 CATOBJEXT=.gmo
8145 INSTOBJEXT=.mo
8146 DATADIRNAME=share
8147 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8148 INTLLIBS=$INTLDEPS
8149 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8150 nls_cv_header_intl=libintl.h
8151 nls_cv_header_libgt=libgettext.h
8154 if test "$XGETTEXT" != ":"; then
8155 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8157 else
8158 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8159 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8160 XGETTEXT=":"
8164 # We need to process the po/ directory.
8165 POSUB=po
8166 else
8167 DATADIRNAME=share
8168 nls_cv_header_intl=libintl.h
8169 nls_cv_header_libgt=libgettext.h
8172 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8173 # because some of the sources are only built for this goal.
8174 if test "$PACKAGE" = gettext; then
8175 USE_NLS=yes
8176 USE_INCLUDED_LIBINTL=yes
8179 for lang in $ALL_LINGUAS; do
8180 GMOFILES="$GMOFILES $lang.gmo"
8181 POFILES="$POFILES $lang.po"
8182 done
8195 if test "x$CATOBJEXT" != "x"; then
8197 cat >>confdefs.h <<\_ACEOF
8198 #define ENABLE_NLS 1
8199 _ACEOF
8204 if test "x$CATOBJEXT" != "x"; then
8205 if test "x$ALL_LINGUAS" = "x"; then
8206 LINGUAS=
8207 else
8208 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8209 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8210 NEW_LINGUAS=
8211 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8212 case "$ALL_LINGUAS" in
8213 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8214 esac
8215 done
8216 LINGUAS=$NEW_LINGUAS
8217 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8218 echo "${ECHO_T}$LINGUAS" >&6
8221 if test -n "$LINGUAS"; then
8222 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8226 if test $ac_cv_header_locale_h = yes; then
8227 INCLUDE_LOCALE_H="#include <locale.h>"
8228 else
8229 INCLUDE_LOCALE_H="\
8230 /* The system does not provide the header <locale.h>. Take care yourself. */"
8234 if test -f $srcdir/po2tbl.sed.in; then
8235 if test "$CATOBJEXT" = ".cat"; then
8236 if test "${ac_cv_header_linux_version_h+set}" = set; then
8237 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8238 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8239 if test "${ac_cv_header_linux_version_h+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8243 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8244 else
8245 # Is the header compilable?
8246 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8247 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8255 #include <linux/version.h>
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag"
8267 || test ! -s conftest.err'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_header_compiler=yes
8280 else
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_header_compiler=no
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288 echo "${ECHO_T}$ac_header_compiler" >&6
8290 # Is the header present?
8291 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8292 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <linux/version.h>
8300 _ACEOF
8301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } >/dev/null; then
8309 if test -s conftest.err; then
8310 ac_cpp_err=$ac_c_preproc_warn_flag
8311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8312 else
8313 ac_cpp_err=
8315 else
8316 ac_cpp_err=yes
8318 if test -z "$ac_cpp_err"; then
8319 ac_header_preproc=yes
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_header_preproc=no
8326 rm -f conftest.err conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328 echo "${ECHO_T}$ac_header_preproc" >&6
8330 # So? What about this header?
8331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332 yes:no: )
8333 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8336 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8339 no:yes:* )
8340 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8341 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8343 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8345 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8347 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8349 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8351 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8353 cat <<\_ASBOX
8354 ## ------------------------------------------ ##
8355 ## Report this to the AC_PACKAGE_NAME lists. ##
8356 ## ------------------------------------------ ##
8357 _ASBOX
8359 sed "s/^/$as_me: WARNING: /" >&2
8361 esac
8362 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8363 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8364 if test "${ac_cv_header_linux_version_h+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 ac_cv_header_linux_version_h=$ac_header_preproc
8369 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8370 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8373 if test $ac_cv_header_linux_version_h = yes; then
8374 msgformat=linux
8375 else
8376 msgformat=xopen
8381 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8384 $srcdir/po2tbl.sed.in > po2tbl.sed
8387 if test "$PACKAGE" = "gettext"; then
8388 GT_NO="#NO#"
8389 GT_YES=
8390 else
8391 GT_NO=
8392 GT_YES="#YES#"
8397 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8403 if test -f $srcdir/po/POTFILES.in; then
8404 test -d po || mkdir po
8405 if test "x$srcdir" != "x."; then
8406 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8407 posrcprefix="$srcdir/"
8408 else
8409 posrcprefix="../$srcdir/"
8411 else
8412 posrcprefix="../"
8414 rm -f po/POTFILES
8415 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8416 < $srcdir/po/POTFILES.in > po/POTFILES
8420 # Permit host specific settings.
8421 . ${srcdir}/configure.host
8424 # Find a good install program. We prefer a C program (faster),
8425 # so one script is as good as another. But avoid the broken or
8426 # incompatible versions:
8427 # SysV /etc/install, /usr/sbin/install
8428 # SunOS /usr/etc/install
8429 # IRIX /sbin/install
8430 # AIX /bin/install
8431 # AmigaOS /C/install, which installs bootblocks on floppy discs
8432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8435 # OS/2's system install, which has a completely different semantic
8436 # ./install, which can be erroneously created by make from ./install.sh.
8437 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8438 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8439 if test -z "$INSTALL"; then
8440 if test "${ac_cv_path_install+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 # Account for people who put trailing slashes in PATH elements.
8449 case $as_dir/ in
8450 ./ | .// | /cC/* | \
8451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8453 /usr/ucb/* ) ;;
8455 # OSF1 and SCO ODT 3.0 have their own names for install.
8456 # Don't use installbsd from OSF since it installs stuff as root
8457 # by default.
8458 for ac_prog in ginstall scoinst install; do
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8461 if test $ac_prog = install &&
8462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8463 # AIX install. It has an incompatible calling convention.
8465 elif test $ac_prog = install &&
8466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467 # program-specific install script used by HP pwplus--don't use.
8469 else
8470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8471 break 3
8474 done
8475 done
8477 esac
8478 done
8482 if test "${ac_cv_path_install+set}" = set; then
8483 INSTALL=$ac_cv_path_install
8484 else
8485 # As a last resort, use the slow shell script. We don't cache a
8486 # path for INSTALL within a source directory, because that will
8487 # break other packages using the cache if that directory is
8488 # removed, or if the path is relative.
8489 INSTALL=$ac_install_sh
8492 echo "$as_me:$LINENO: result: $INSTALL" >&5
8493 echo "${ECHO_T}$INSTALL" >&6
8495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496 # It thinks the first close brace ends the variable substitution.
8497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8504 BFD_HOST_64BIT_LONG=0
8505 BFD_HOST_LONG_LONG=0
8506 BFD_HOST_64_BIT_DEFINED=0
8507 BFD_HOST_64_BIT=
8508 BFD_HOST_U_64_BIT=
8510 echo "$as_me:$LINENO: checking for long long" >&5
8511 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8512 if test "${bfd_cv_has_long_long+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8523 main ()
8525 unsigned long long ll = 18446744073709551615ULL;
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 bfd_cv_has_long_long=yes
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 bfd_cv_has_long_long=no
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8563 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8564 if test $bfd_cv_has_long_long = yes; then
8565 BFD_HOST_LONG_LONG=1
8566 echo "$as_me:$LINENO: checking for long long" >&5
8567 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8568 if test "${ac_cv_type_long_long+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 $ac_includes_default
8579 main ()
8581 if ((long long *) 0)
8582 return 0;
8583 if (sizeof (long long))
8584 return 0;
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -z "$ac_c_werror_flag"
8599 || test ! -s conftest.err'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try='test -s conftest.$ac_objext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_type_long_long=yes
8612 else
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 ac_cv_type_long_long=no
8618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8620 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8621 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8623 echo "$as_me:$LINENO: checking size of long long" >&5
8624 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8625 if test "${ac_cv_sizeof_long_long+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628 if test "$ac_cv_type_long_long" = yes; then
8629 # The cast to unsigned long works around a bug in the HP C Compiler
8630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8632 # This bug is HP SR number 8606223364.
8633 if test "$cross_compiling" = yes; then
8634 # Depending upon the size, compute the lo and hi bounds.
8635 cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h. */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 $ac_includes_default
8643 main ()
8645 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8646 test_array [0] = 0
8649 return 0;
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>conftest.er1
8655 ac_status=$?
8656 grep -v '^ *+' conftest.er1 >conftest.err
8657 rm -f conftest.er1
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_lo=0 ac_mid=0
8675 while :; do
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 $ac_includes_default
8684 main ()
8686 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8687 test_array [0] = 0
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_hi=$ac_mid; break
8716 else
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_lo=`expr $ac_mid + 1`
8721 if test $ac_lo -le $ac_mid; then
8722 ac_lo= ac_hi=
8723 break
8725 ac_mid=`expr 2 '*' $ac_mid + 1`
8727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8728 done
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8741 main ()
8743 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8744 test_array [0] = 0
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_hi=-1 ac_mid=-1
8773 while :; do
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8782 main ()
8784 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8785 test_array [0] = 0
8788 return 0;
8790 _ACEOF
8791 rm -f conftest.$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest.$ac_objext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_lo=$ac_mid; break
8814 else
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_hi=`expr '(' $ac_mid ')' - 1`
8819 if test $ac_mid -le $ac_hi; then
8820 ac_lo= ac_hi=
8821 break
8823 ac_mid=`expr 2 '*' $ac_mid`
8825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826 done
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_lo= ac_hi=
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836 # Binary search between lo and hi bounds.
8837 while test "x$ac_lo" != "x$ac_hi"; do
8838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h. */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8847 main ()
8849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8850 test_array [0] = 0
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest.$ac_objext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_hi=$ac_mid
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_lo=`expr '(' $ac_mid ')' + 1`
8885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8886 done
8887 case $ac_lo in
8888 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8890 See \`config.log' for more details." >&5
8891 echo "$as_me: error: cannot compute sizeof (long long), 77
8892 See \`config.log' for more details." >&2;}
8893 { (exit 1); exit 1; }; } ;;
8894 esac
8895 else
8896 if test "$cross_compiling" = yes; then
8897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8898 See \`config.log' for more details." >&5
8899 echo "$as_me: error: cannot run test program while cross compiling
8900 See \`config.log' for more details." >&2;}
8901 { (exit 1); exit 1; }; }
8902 else
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 long longval () { return (long) (sizeof (long long)); }
8911 unsigned long ulongval () { return (long) (sizeof (long long)); }
8912 #include <stdio.h>
8913 #include <stdlib.h>
8915 main ()
8918 FILE *f = fopen ("conftest.val", "w");
8919 if (! f)
8920 exit (1);
8921 if (((long) (sizeof (long long))) < 0)
8923 long i = longval ();
8924 if (i != ((long) (sizeof (long long))))
8925 exit (1);
8926 fprintf (f, "%ld\n", i);
8928 else
8930 unsigned long i = ulongval ();
8931 if (i != ((long) (sizeof (long long))))
8932 exit (1);
8933 fprintf (f, "%lu\n", i);
8935 exit (ferror (f) || fclose (f) != 0);
8938 return 0;
8940 _ACEOF
8941 rm -f conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_sizeof_long_long=`cat conftest.val`
8953 else
8954 echo "$as_me: program exited with status $ac_status" >&5
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 ( exit $ac_status )
8959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8960 See \`config.log' for more details." >&5
8961 echo "$as_me: error: cannot compute sizeof (long long), 77
8962 See \`config.log' for more details." >&2;}
8963 { (exit 1); exit 1; }; }
8965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8968 rm -f conftest.val
8969 else
8970 ac_cv_sizeof_long_long=0
8973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8974 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8975 cat >>confdefs.h <<_ACEOF
8976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8977 _ACEOF
8982 echo "$as_me:$LINENO: checking for long" >&5
8983 echo $ECHO_N "checking for long... $ECHO_C" >&6
8984 if test "${ac_cv_type_long+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 $ac_includes_default
8995 main ()
8997 if ((long *) 0)
8998 return 0;
8999 if (sizeof (long))
9000 return 0;
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_type_long=yes
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_cv_type_long=no
9034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9037 echo "${ECHO_T}$ac_cv_type_long" >&6
9039 echo "$as_me:$LINENO: checking size of long" >&5
9040 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9041 if test "${ac_cv_sizeof_long+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044 if test "$ac_cv_type_long" = yes; then
9045 # The cast to unsigned long works around a bug in the HP C Compiler
9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9048 # This bug is HP SR number 8606223364.
9049 if test "$cross_compiling" = yes; then
9050 # Depending upon the size, compute the lo and hi bounds.
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h. */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 $ac_includes_default
9059 main ()
9061 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9062 test_array [0] = 0
9065 return 0;
9067 _ACEOF
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 (eval $ac_compile) 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag"
9078 || test ! -s conftest.err'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_lo=0 ac_mid=0
9091 while :; do
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9100 main ()
9102 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9103 test_array [0] = 0
9106 return 0;
9108 _ACEOF
9109 rm -f conftest.$ac_objext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_hi=$ac_mid; break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_lo=`expr $ac_mid + 1`
9137 if test $ac_lo -le $ac_mid; then
9138 ac_lo= ac_hi=
9139 break
9141 ac_mid=`expr 2 '*' $ac_mid + 1`
9143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9144 done
9145 else
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9157 main ()
9159 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9160 test_array [0] = 0
9163 return 0;
9165 _ACEOF
9166 rm -f conftest.$ac_objext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_hi=-1 ac_mid=-1
9189 while :; do
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h. */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 $ac_includes_default
9198 main ()
9200 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9201 test_array [0] = 0
9204 return 0;
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest.$ac_objext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_lo=$ac_mid; break
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_hi=`expr '(' $ac_mid ')' - 1`
9235 if test $ac_mid -le $ac_hi; then
9236 ac_lo= ac_hi=
9237 break
9239 ac_mid=`expr 2 '*' $ac_mid`
9241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242 done
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_lo= ac_hi=
9249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252 # Binary search between lo and hi bounds.
9253 while test "x$ac_lo" != "x$ac_hi"; do
9254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h. */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 $ac_includes_default
9263 main ()
9265 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9266 test_array [0] = 0
9269 return 0;
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_hi=$ac_mid
9295 else
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_lo=`expr '(' $ac_mid ')' + 1`
9301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302 done
9303 case $ac_lo in
9304 ?*) ac_cv_sizeof_long=$ac_lo;;
9305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9306 See \`config.log' for more details." >&5
9307 echo "$as_me: error: cannot compute sizeof (long), 77
9308 See \`config.log' for more details." >&2;}
9309 { (exit 1); exit 1; }; } ;;
9310 esac
9311 else
9312 if test "$cross_compiling" = yes; then
9313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9314 See \`config.log' for more details." >&5
9315 echo "$as_me: error: cannot run test program while cross compiling
9316 See \`config.log' for more details." >&2;}
9317 { (exit 1); exit 1; }; }
9318 else
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 $ac_includes_default
9326 long longval () { return (long) (sizeof (long)); }
9327 unsigned long ulongval () { return (long) (sizeof (long)); }
9328 #include <stdio.h>
9329 #include <stdlib.h>
9331 main ()
9334 FILE *f = fopen ("conftest.val", "w");
9335 if (! f)
9336 exit (1);
9337 if (((long) (sizeof (long))) < 0)
9339 long i = longval ();
9340 if (i != ((long) (sizeof (long))))
9341 exit (1);
9342 fprintf (f, "%ld\n", i);
9344 else
9346 unsigned long i = ulongval ();
9347 if (i != ((long) (sizeof (long))))
9348 exit (1);
9349 fprintf (f, "%lu\n", i);
9351 exit (ferror (f) || fclose (f) != 0);
9354 return 0;
9356 _ACEOF
9357 rm -f conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_sizeof_long=`cat conftest.val`
9369 else
9370 echo "$as_me: program exited with status $ac_status" >&5
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 ( exit $ac_status )
9375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9376 See \`config.log' for more details." >&5
9377 echo "$as_me: error: cannot compute sizeof (long), 77
9378 See \`config.log' for more details." >&2;}
9379 { (exit 1); exit 1; }; }
9381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9384 rm -f conftest.val
9385 else
9386 ac_cv_sizeof_long=0
9389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9390 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9391 cat >>confdefs.h <<_ACEOF
9392 #define SIZEOF_LONG $ac_cv_sizeof_long
9393 _ACEOF
9396 if test "x${ac_cv_sizeof_long}" = "x8"; then
9397 host64=true
9398 BFD_HOST_64BIT_LONG=1
9399 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9400 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9401 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9402 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9403 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9406 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9407 BFD_HOST_64_BIT_DEFINED=1
9408 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9409 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9418 # Put a plausible default for CC_FOR_BUILD in Makefile.
9419 if test -z "$CC_FOR_BUILD"; then
9420 if test "x$cross_compiling" = "xno"; then
9421 CC_FOR_BUILD='$(CC)'
9422 else
9423 CC_FOR_BUILD=gcc
9427 # Also set EXEEXT_FOR_BUILD.
9428 if test "x$cross_compiling" = "xno"; then
9429 EXEEXT_FOR_BUILD='$(EXEEXT)'
9430 else
9431 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9432 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9433 if test "${bfd_cv_build_exeext+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436 rm -f conftest*
9437 echo 'int main () { return 0; }' > conftest.c
9438 bfd_cv_build_exeext=
9439 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9440 for file in conftest.*; do
9441 case $file in
9442 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9443 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9444 esac
9445 done
9446 rm -f conftest*
9447 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9449 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9450 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9451 EXEEXT_FOR_BUILD=""
9452 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9462 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo "$as_me:$LINENO: checking for $ac_header" >&5
9467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473 else
9474 # Is the header compilable?
9475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 $ac_includes_default
9484 #include <$ac_header>
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_header_compiler=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_header_compiler=no
9515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9517 echo "${ECHO_T}$ac_header_compiler" >&6
9519 # Is the header present?
9520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <$ac_header>
9529 _ACEOF
9530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9541 else
9542 ac_cpp_err=
9544 else
9545 ac_cpp_err=yes
9547 if test -z "$ac_cpp_err"; then
9548 ac_header_preproc=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_header_preproc=no
9555 rm -f conftest.err conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9557 echo "${ECHO_T}$ac_header_preproc" >&6
9559 # So? What about this header?
9560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9561 yes:no: )
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9566 ac_header_preproc=yes
9568 no:yes:* )
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9582 cat <<\_ASBOX
9583 ## ------------------------------------------ ##
9584 ## Report this to the AC_PACKAGE_NAME lists. ##
9585 ## ------------------------------------------ ##
9586 _ASBOX
9588 sed "s/^/$as_me: WARNING: /" >&2
9590 esac
9591 echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605 _ACEOF
9609 done
9614 for ac_header in fcntl.h sys/file.h sys/time.h
9616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9618 echo "$as_me:$LINENO: checking for $ac_header" >&5
9619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9625 else
9626 # Is the header compilable?
9627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9636 #include <$ac_header>
9637 _ACEOF
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_header_compiler=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_header_compiler=no
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9669 echo "${ECHO_T}$ac_header_compiler" >&6
9671 # Is the header present?
9672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <$ac_header>
9681 _ACEOF
9682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } >/dev/null; then
9690 if test -s conftest.err; then
9691 ac_cpp_err=$ac_c_preproc_warn_flag
9692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9693 else
9694 ac_cpp_err=
9696 else
9697 ac_cpp_err=yes
9699 if test -z "$ac_cpp_err"; then
9700 ac_header_preproc=yes
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_header_preproc=no
9707 rm -f conftest.err conftest.$ac_ext
9708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9709 echo "${ECHO_T}$ac_header_preproc" >&6
9711 # So? What about this header?
9712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9713 yes:no: )
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9718 ac_header_preproc=yes
9720 no:yes:* )
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9734 cat <<\_ASBOX
9735 ## ------------------------------------------ ##
9736 ## Report this to the AC_PACKAGE_NAME lists. ##
9737 ## ------------------------------------------ ##
9738 _ASBOX
9740 sed "s/^/$as_me: WARNING: /" >&2
9742 esac
9743 echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 eval "$as_ac_Header=\$ac_header_preproc"
9750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9755 cat >>confdefs.h <<_ACEOF
9756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757 _ACEOF
9761 done
9763 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9764 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9765 if test "${ac_cv_header_time+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 #include <sys/types.h>
9775 #include <sys/time.h>
9776 #include <time.h>
9779 main ()
9781 if ((struct tm *) 0)
9782 return 0;
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_header_time=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_header_time=no
9816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9819 echo "${ECHO_T}$ac_cv_header_time" >&6
9820 if test $ac_cv_header_time = yes; then
9822 cat >>confdefs.h <<\_ACEOF
9823 #define TIME_WITH_SYS_TIME 1
9824 _ACEOF
9833 ac_header_dirent=no
9834 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9835 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9836 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9837 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 #include <sys/types.h>
9848 #include <$ac_hdr>
9851 main ()
9853 if ((DIR *) 0)
9854 return 0;
9856 return 0;
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 eval "$as_ac_Header=yes"
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 eval "$as_ac_Header=no"
9888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9895 _ACEOF
9897 ac_header_dirent=$ac_hdr; break
9900 done
9901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9902 if test $ac_header_dirent = dirent.h; then
9903 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9905 if test "${ac_cv_search_opendir+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 ac_func_search_save_LIBS=$LIBS
9909 ac_cv_search_opendir=no
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any gcc2 internal prototype to avoid an error. */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 /* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9923 char opendir ();
9925 main ()
9927 opendir ();
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_search_opendir="none required"
9955 else
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9960 rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "$ac_cv_search_opendir" = no; then
9963 for ac_lib in dir; do
9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978 char opendir ();
9980 main ()
9982 opendir ();
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_opendir="-l$ac_lib"
10010 break
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 done
10020 LIBS=$ac_func_search_save_LIBS
10022 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10023 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10024 if test "$ac_cv_search_opendir" != no; then
10025 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10029 else
10030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10032 if test "${ac_cv_search_opendir+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 ac_func_search_save_LIBS=$LIBS
10036 ac_cv_search_opendir=no
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10044 /* Override any gcc2 internal prototype to avoid an error. */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 /* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10050 char opendir ();
10052 main ()
10054 opendir ();
10056 return 0;
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061 (eval $ac_link) 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_search_opendir="none required"
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10087 rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089 if test "$ac_cv_search_opendir" = no; then
10090 for ac_lib in x; do
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 /* Override any gcc2 internal prototype to avoid an error. */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105 char opendir ();
10107 main ()
10109 opendir ();
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_search_opendir="-l$ac_lib"
10137 break
10138 else
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10143 rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 done
10147 LIBS=$ac_func_search_save_LIBS
10149 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10150 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10151 if test "$ac_cv_search_opendir" != no; then
10152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10158 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10159 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10160 if test "${gcc_cv_header_string+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h. */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 #include <string.h>
10170 #include <strings.h>
10172 main ()
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 gcc_cv_header_string=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 gcc_cv_header_string=no
10208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10211 echo "${ECHO_T}$gcc_cv_header_string" >&6
10212 if test $gcc_cv_header_string = yes; then
10214 cat >>confdefs.h <<\_ACEOF
10215 #define STRING_WITH_STRINGS 1
10216 _ACEOF
10227 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230 echo "$as_me:$LINENO: checking for $ac_func" >&5
10231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10232 if eval "test \"\${$as_ac_var+set}\" = set"; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243 #define $ac_func innocuous_$ac_func
10245 /* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10250 #ifdef __STDC__
10251 # include <limits.h>
10252 #else
10253 # include <assert.h>
10254 #endif
10256 #undef $ac_func
10258 /* Override any gcc2 internal prototype to avoid an error. */
10259 #ifdef __cplusplus
10260 extern "C"
10262 #endif
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265 char $ac_func ();
10266 /* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10270 choke me
10271 #else
10272 char (*f) () = $ac_func;
10273 #endif
10274 #ifdef __cplusplus
10276 #endif
10279 main ()
10281 return f != $ac_func;
10283 return 0;
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 eval "$as_ac_var=yes"
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 eval "$as_ac_var=no"
10315 rm -f conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10320 if test `eval echo '${'$as_ac_var'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10323 _ACEOF
10326 done
10329 for ac_func in strtoull
10331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10332 echo "$as_me:$LINENO: checking for $ac_func" >&5
10333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10334 if eval "test \"\${$as_ac_var+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10345 #define $ac_func innocuous_$ac_func
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char $ac_func (); below.
10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 <limits.h> exists even on freestanding compilers. */
10352 #ifdef __STDC__
10353 # include <limits.h>
10354 #else
10355 # include <assert.h>
10356 #endif
10358 #undef $ac_func
10360 /* Override any gcc2 internal prototype to avoid an error. */
10361 #ifdef __cplusplus
10362 extern "C"
10364 #endif
10365 /* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10367 char $ac_func ();
10368 /* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372 choke me
10373 #else
10374 char (*f) () = $ac_func;
10375 #endif
10376 #ifdef __cplusplus
10378 #endif
10381 main ()
10383 return f != $ac_func;
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "$as_ac_var=yes"
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 eval "$as_ac_var=no"
10417 rm -f conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425 _ACEOF
10428 done
10431 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10432 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10433 if test "${ac_cv_have_decl_basename+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10444 main ()
10446 #ifndef basename
10447 char *p = (char *) basename;
10448 #endif
10451 return 0;
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_have_decl_basename=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_have_decl_basename=no
10483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10485 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10486 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10487 if test $ac_cv_have_decl_basename = yes; then
10489 cat >>confdefs.h <<_ACEOF
10490 #define HAVE_DECL_BASENAME 1
10491 _ACEOF
10494 else
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_DECL_BASENAME 0
10497 _ACEOF
10503 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10504 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10505 if test "${ac_cv_have_decl_ftello+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10516 main ()
10518 #ifndef ftello
10519 char *p = (char *) ftello;
10520 #endif
10523 return 0;
10525 _ACEOF
10526 rm -f conftest.$ac_objext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag"
10536 || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_have_decl_ftello=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_have_decl_ftello=no
10555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10558 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10559 if test $ac_cv_have_decl_ftello = yes; then
10561 cat >>confdefs.h <<_ACEOF
10562 #define HAVE_DECL_FTELLO 1
10563 _ACEOF
10566 else
10567 cat >>confdefs.h <<_ACEOF
10568 #define HAVE_DECL_FTELLO 0
10569 _ACEOF
10575 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10576 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10577 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 $ac_includes_default
10588 main ()
10590 #ifndef ftello64
10591 char *p = (char *) ftello64;
10592 #endif
10595 return 0;
10597 _ACEOF
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest.$ac_objext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_have_decl_ftello64=yes
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_cv_have_decl_ftello64=no
10627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10629 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10630 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10631 if test $ac_cv_have_decl_ftello64 = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_DECL_FTELLO64 1
10635 _ACEOF
10638 else
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_DECL_FTELLO64 0
10641 _ACEOF
10647 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10648 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10649 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658 $ac_includes_default
10660 main ()
10662 #ifndef fseeko
10663 char *p = (char *) fseeko;
10664 #endif
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10672 (eval $ac_compile) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_have_decl_fseeko=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_have_decl_fseeko=no
10699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10702 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10703 if test $ac_cv_have_decl_fseeko = yes; then
10705 cat >>confdefs.h <<_ACEOF
10706 #define HAVE_DECL_FSEEKO 1
10707 _ACEOF
10710 else
10711 cat >>confdefs.h <<_ACEOF
10712 #define HAVE_DECL_FSEEKO 0
10713 _ACEOF
10719 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10720 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10721 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 $ac_includes_default
10732 main ()
10734 #ifndef fseeko64
10735 char *p = (char *) fseeko64;
10736 #endif
10739 return 0;
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -z "$ac_c_werror_flag"
10752 || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_cv_have_decl_fseeko64=yes
10765 else
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ac_cv_have_decl_fseeko64=no
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10774 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10775 if test $ac_cv_have_decl_fseeko64 = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_DECL_FSEEKO64 1
10779 _ACEOF
10782 else
10783 cat >>confdefs.h <<_ACEOF
10784 #define HAVE_DECL_FSEEKO64 0
10785 _ACEOF
10793 case "${host}" in
10794 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10796 cat >>confdefs.h <<\_ACEOF
10797 #define USE_BINARY_FOPEN 1
10798 _ACEOF
10800 esac
10802 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10803 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10804 if test "${ac_cv_have_decl_ffs+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h. */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10815 main ()
10817 #ifndef ffs
10818 char *p = (char *) ffs;
10819 #endif
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_cv_have_decl_ffs=yes
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 ac_cv_have_decl_ffs=no
10854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10857 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10858 if test $ac_cv_have_decl_ffs = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_DECL_FFS 1
10862 _ACEOF
10865 else
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_DECL_FFS 0
10868 _ACEOF
10874 echo "$as_me:$LINENO: checking whether free is declared" >&5
10875 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10876 if test "${ac_cv_have_decl_free+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10887 main ()
10889 #ifndef free
10890 char *p = (char *) free;
10891 #endif
10894 return 0;
10896 _ACEOF
10897 rm -f conftest.$ac_objext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899 (eval $ac_compile) 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag"
10907 || test ! -s conftest.err'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_have_decl_free=yes
10920 else
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_cv_have_decl_free=no
10926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10928 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10929 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10930 if test $ac_cv_have_decl_free = yes; then
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_DECL_FREE 1
10934 _ACEOF
10937 else
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_DECL_FREE 0
10940 _ACEOF
10946 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10947 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10948 if test "${ac_cv_have_decl_getenv+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 $ac_includes_default
10959 main ()
10961 #ifndef getenv
10962 char *p = (char *) getenv;
10963 #endif
10966 return 0;
10968 _ACEOF
10969 rm -f conftest.$ac_objext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest.$ac_objext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_have_decl_getenv=yes
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_cv_have_decl_getenv=no
10998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11001 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11002 if test $ac_cv_have_decl_getenv = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define HAVE_DECL_GETENV 1
11006 _ACEOF
11009 else
11010 cat >>confdefs.h <<_ACEOF
11011 #define HAVE_DECL_GETENV 0
11012 _ACEOF
11018 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11019 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11020 if test "${ac_cv_have_decl_malloc+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11031 main ()
11033 #ifndef malloc
11034 char *p = (char *) malloc;
11035 #endif
11038 return 0;
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_have_decl_malloc=yes
11064 else
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_have_decl_malloc=no
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11073 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11074 if test $ac_cv_have_decl_malloc = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define HAVE_DECL_MALLOC 1
11078 _ACEOF
11081 else
11082 cat >>confdefs.h <<_ACEOF
11083 #define HAVE_DECL_MALLOC 0
11084 _ACEOF
11090 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11091 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11092 if test "${ac_cv_have_decl_realloc+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h. */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11103 main ()
11105 #ifndef realloc
11106 char *p = (char *) realloc;
11107 #endif
11110 return 0;
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_have_decl_realloc=yes
11136 else
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 ac_cv_have_decl_realloc=no
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11145 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11146 if test $ac_cv_have_decl_realloc = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_DECL_REALLOC 1
11150 _ACEOF
11153 else
11154 cat >>confdefs.h <<_ACEOF
11155 #define HAVE_DECL_REALLOC 0
11156 _ACEOF
11162 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11163 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11164 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 $ac_includes_default
11175 main ()
11177 #ifndef stpcpy
11178 char *p = (char *) stpcpy;
11179 #endif
11182 return 0;
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_have_decl_stpcpy=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_cv_have_decl_stpcpy=no
11214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11217 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11218 if test $ac_cv_have_decl_stpcpy = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_DECL_STPCPY 1
11222 _ACEOF
11225 else
11226 cat >>confdefs.h <<_ACEOF
11227 #define HAVE_DECL_STPCPY 0
11228 _ACEOF
11234 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11235 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11236 if test "${ac_cv_have_decl_strstr+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11247 main ()
11249 #ifndef strstr
11250 char *p = (char *) strstr;
11251 #endif
11254 return 0;
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_have_decl_strstr=yes
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_cv_have_decl_strstr=no
11286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11289 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11290 if test $ac_cv_have_decl_strstr = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define HAVE_DECL_STRSTR 1
11294 _ACEOF
11297 else
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_DECL_STRSTR 0
11300 _ACEOF
11306 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11307 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11308 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11319 main ()
11321 #ifndef snprintf
11322 char *p = (char *) snprintf;
11323 #endif
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_have_decl_snprintf=yes
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_cv_have_decl_snprintf=no
11358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11361 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11362 if test $ac_cv_have_decl_snprintf = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define HAVE_DECL_SNPRINTF 1
11366 _ACEOF
11369 else
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_DECL_SNPRINTF 0
11372 _ACEOF
11378 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11379 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11380 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11391 main ()
11393 #ifndef vsnprintf
11394 char *p = (char *) vsnprintf;
11395 #endif
11398 return 0;
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest.$ac_objext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_have_decl_vsnprintf=yes
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_have_decl_vsnprintf=no
11430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11433 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11434 if test $ac_cv_have_decl_vsnprintf = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define HAVE_DECL_VSNPRINTF 1
11438 _ACEOF
11441 else
11442 cat >>confdefs.h <<_ACEOF
11443 #define HAVE_DECL_VSNPRINTF 0
11444 _ACEOF
11451 # If we are configured native, pick a core file support file.
11452 COREFILE=
11453 COREFLAG=
11454 TRAD_HEADER=
11455 if test "${target}" = "${host}"; then
11456 case "${host}" in
11457 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11458 COREFILE=''
11460 alpha*-*-linux-*)
11461 COREFILE=trad-core.lo
11462 TRAD_HEADER='"hosts/alphalinux.h"'
11464 alpha*-*-netbsd* | alpha*-*-openbsd*)
11465 COREFILE=netbsd-core.lo
11467 alpha*-*-*) COREFILE=osf-core.lo ;;
11468 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11469 COREFILE='' ;;
11470 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11471 arm-*-riscix) COREFILE=trad-core.lo ;;
11472 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11473 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11474 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11475 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11476 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11477 hppa*-*-netbsd* | hppa*-*-openbsd*)
11478 COREFILE=netbsd-core.lo
11481 i370-*-*)
11482 COREFILE=trad-core.lo
11483 TRAD_HEADER='"hosts/i370linux.h"'
11486 i[3-7]86-sequent-bsd*)
11487 COREFILE=trad-core.lo
11488 TRAD_HEADER='"hosts/symmetry.h"'
11490 i[3-7]86-sequent-sysv4*) ;;
11491 i[3-7]86-sequent-sysv*)
11492 COREFILE=trad-core.lo
11493 TRAD_HEADER='"hosts/symmetry.h"'
11495 i[3-7]86-*-bsdi)
11496 COREFILE=
11498 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
11499 COREFILE=trad-core.lo
11500 TRAD_HEADER='"hosts/i386bsd.h"'
11502 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11503 COREFILE=''
11504 TRAD_HEADER='"hosts/i386bsd.h"'
11506 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11507 COREFILE=netbsd-core.lo
11509 i[3-7]86-esix-sysv3*)
11510 COREFILE=trad-core.lo
11511 TRAD_HEADER='"hosts/esix.h"'
11513 i[3-7]86-*-sco3.2v5*)
11514 COREFILE=sco5-core.lo
11516 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11517 COREFILE=trad-core.lo
11518 TRAD_HEADER='"hosts/i386sco.h"'
11520 i[3-7]86-*-mach3*)
11521 COREFILE=trad-core.lo
11522 TRAD_HEADER='"hosts/i386mach3.h"'
11524 i[3-7]86-*-linux-*)
11525 COREFILE=trad-core.lo
11526 TRAD_HEADER='"hosts/i386linux.h"'
11528 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11529 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11530 i860-*-mach3* | i860-*-osf1*)
11531 COREFILE=trad-core.lo
11532 TRAD_HEADER='"hosts/i860mach3.h"'
11534 mips-*-netbsd* | mips*-*-openbsd*)
11535 COREFILE=netbsd-core.lo
11537 mips-dec-*)
11538 COREFILE=trad-core.lo
11539 TRAD_HEADER='"hosts/decstation.h"'
11541 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11542 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11543 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11544 mips-*-sysv4*) ;;
11545 mips-*-sysv* | mips-*-riscos*)
11546 COREFILE=trad-core.lo
11547 TRAD_HEADER='"hosts/riscos.h"'
11549 mips-sony-bsd*)
11550 COREFILE=trad-core.lo
11551 TRAD_HEADER='"hosts/news-mips.h"'
11553 m68*-bull*-sysv*)
11554 COREFILE=trad-core.lo
11555 TRAD_HEADER='"hosts/dpx2.h"'
11557 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11558 m68*-hp-bsd*)
11559 COREFILE=trad-core.lo
11560 TRAD_HEADER='"hosts/hp300bsd.h"'
11562 m68*-*-linux-*)
11563 COREFILE=trad-core.lo
11564 TRAD_HEADER='"hosts/m68klinux.h"'
11566 m68*-motorola-sysv*)
11567 COREFILE=trad-core.lo
11568 TRAD_HEADER='"hosts/delta68.h"'
11570 m68*-sony-*)
11571 COREFILE=trad-core.lo
11572 TRAD_HEADER='"hosts/news.h"'
11574 m68*-*-netbsd* | m68*-*-openbsd*)
11575 COREFILE=netbsd-core.lo
11577 m68*-apple-aux*)
11578 COREFILE=trad-core.lo
11579 TRAD_HEADER='"hosts/m68kaux.h"'
11581 m88*-*-sysv4*)
11583 m88*-motorola-sysv*)
11584 COREFILE=ptrace-core.lo
11586 m88*-*-mach3*)
11587 COREFILE=trad-core.lo
11588 TRAD_HEADER='"hosts/m88kmach3.h"'
11590 m88*-*-openbsd*)
11591 COREFILE=netbsd-core.lo
11593 ns32k-pc532-mach)
11594 COREFILE=trad-core.lo
11595 TRAD_HEADER='"hosts/pc532mach.h"'
11597 ns32k-*-netbsd* | ns32k-*-openbsd*)
11598 COREFILE=netbsd-core.lo
11600 rs6000-*-lynx*)
11601 COREFILE=lynx-core.lo
11603 rs6000-*-aix5.* | powerpc-*-aix5.*)
11604 COREFILE=rs6000-core.lo
11605 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11607 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11608 COREFILE=rs6000-core.lo
11609 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11610 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11611 # have c_impl as a member of struct core_dumpx
11612 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11613 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 #include <core.h>
11622 main ()
11624 struct core_dumpx c; c.c_impl = 0;
11626 return 0;
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_ST_C_IMPL 1
11654 _ACEOF
11656 echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 echo "$as_me:$LINENO: result: no" >&5
11663 echo "${ECHO_T}no" >&6
11665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11668 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11669 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11670 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11671 powerpc-*-beos*) ;;
11672 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11673 COREFILE='' ;;
11674 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11675 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11676 s390*-*-*) COREFILE=trad-core.lo ;;
11677 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11678 sparc-*-netbsd* | sparc*-*-openbsd*)
11679 COREFILE=netbsd-core.lo
11681 tahoe-*-*)
11682 COREFILE=trad-core.lo
11683 TRAD_HEADER='"hosts/tahoe.h"'
11685 vax-*-netbsd* | vax-*-openbsd*)
11686 COREFILE=netbsd-core.lo
11688 vax-*-ultrix2*)
11689 COREFILE=trad-core.lo
11690 TRAD_HEADER='"hosts/vaxult2.h"'
11692 vax-*-ultrix*)
11693 COREFILE=trad-core.lo
11694 TRAD_HEADER='"hosts/vaxult2.h"'
11696 vax-*-linux-*)
11697 COREFILE=trad-core.lo
11698 TRAD_HEADER='"hosts/vaxlinux.h"'
11700 vax-*-*)
11701 COREFILE=trad-core.lo
11702 TRAD_HEADER='"hosts/vaxbsd.h"'
11704 x86_64-*-netbsd* | x86_64-*-openbsd*)
11705 COREFILE=netbsd-core.lo
11707 esac
11709 case "$COREFILE" in
11710 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11711 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11712 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11713 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11714 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11715 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11716 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11717 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11718 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11719 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11720 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11721 esac
11723 # ELF corefile support has several flavors, but all of
11724 # them use something called <sys/procfs.h>
11726 for ac_header in sys/procfs.h
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737 else
11738 # Is the header compilable?
11739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 #include <$ac_header>
11749 _ACEOF
11750 rm -f conftest.$ac_objext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_header_compiler=no
11779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6
11783 # Is the header present?
11784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h. */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <$ac_header>
11793 _ACEOF
11794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805 else
11806 ac_cpp_err=
11808 else
11809 ac_cpp_err=yes
11811 if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11813 else
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ac_header_preproc=no
11819 rm -f conftest.err conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 yes:no: )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11832 no:yes:* )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11846 cat <<\_ASBOX
11847 ## ------------------------------------------ ##
11848 ## Report this to the AC_PACKAGE_NAME lists. ##
11849 ## ------------------------------------------ ##
11850 _ASBOX
11852 sed "s/^/$as_me: WARNING: /" >&2
11854 esac
11855 echo "$as_me:$LINENO: checking for $ac_header" >&5
11856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 eval "$as_ac_Header=\$ac_header_preproc"
11862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869 _ACEOF
11873 done
11875 if test "$ac_cv_header_sys_procfs_h" = yes; then
11876 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11877 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11878 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11888 #define _SYSCALL32
11889 #include <sys/procfs.h>
11891 main ()
11893 prstatus_t avar
11895 return 0;
11897 _ACEOF
11898 rm -f conftest.$ac_objext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 bfd_cv_have_sys_procfs_type_prstatus_t=no
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11931 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11933 cat >>confdefs.h <<\_ACEOF
11934 #define HAVE_PRSTATUS_T 1
11935 _ACEOF
11938 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11939 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11941 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11942 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11943 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11953 #define _SYSCALL32
11954 #include <sys/procfs.h>
11956 main ()
11958 prstatus32_t avar
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 bfd_cv_have_sys_procfs_type_prstatus32_t=no
11993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11996 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_PRSTATUS32_T 1
12000 _ACEOF
12003 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12004 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12006 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12007 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12008 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12018 #define _SYSCALL32
12019 #include <sys/procfs.h>
12021 main ()
12023 prstatus_t avar; void* aref = (void*) &avar.pr_who
12025 return 0;
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag"
12038 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12051 else
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12061 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_PRSTATUS_T_PR_WHO 1
12065 _ACEOF
12068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12069 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12071 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12072 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12073 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12083 #define _SYSCALL32
12084 #include <sys/procfs.h>
12086 main ()
12088 prstatus32_t avar; void* aref = (void*) &avar.pr_who
12090 return 0;
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12116 else
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12126 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_PRSTATUS32_T_PR_WHO 1
12130 _ACEOF
12133 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12134 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12136 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12137 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12138 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12148 #define _SYSCALL32
12149 #include <sys/procfs.h>
12151 main ()
12153 pstatus_t avar
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 bfd_cv_have_sys_procfs_type_pstatus_t=no
12188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12191 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12193 cat >>confdefs.h <<\_ACEOF
12194 #define HAVE_PSTATUS_T 1
12195 _ACEOF
12198 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12199 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12201 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12202 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12203 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h. */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12213 #define _SYSCALL32
12214 #include <sys/procfs.h>
12216 main ()
12218 pxstatus_t avar
12220 return 0;
12222 _ACEOF
12223 rm -f conftest.$ac_objext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12246 else
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12258 cat >>confdefs.h <<\_ACEOF
12259 #define HAVE_PXSTATUS_T 1
12260 _ACEOF
12263 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12264 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12266 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12267 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12268 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12278 #define _SYSCALL32
12279 #include <sys/procfs.h>
12281 main ()
12283 pstatus32_t avar
12285 return 0;
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12311 else
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12323 cat >>confdefs.h <<\_ACEOF
12324 #define HAVE_PSTATUS32_T 1
12325 _ACEOF
12328 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12329 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12331 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12332 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12333 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12343 #define _SYSCALL32
12344 #include <sys/procfs.h>
12346 main ()
12348 prpsinfo_t avar
12350 return 0;
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12386 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12388 cat >>confdefs.h <<\_ACEOF
12389 #define HAVE_PRPSINFO_T 1
12390 _ACEOF
12393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12394 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12396 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12397 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12398 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12408 #define _SYSCALL32
12409 #include <sys/procfs.h>
12411 main ()
12413 prpsinfo32_t avar
12415 return 0;
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_PRPSINFO32_T 1
12455 _ACEOF
12458 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12459 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12461 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12462 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12463 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h. */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12473 #define _SYSCALL32
12474 #include <sys/procfs.h>
12476 main ()
12478 psinfo_t avar
12480 return 0;
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12506 else
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 bfd_cv_have_sys_procfs_type_psinfo_t=no
12513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_PSINFO_T 1
12520 _ACEOF
12523 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12524 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12526 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12527 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12528 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h. */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12538 #define _SYSCALL32
12539 #include <sys/procfs.h>
12541 main ()
12543 psinfo32_t avar
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest.$ac_objext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12571 else
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12583 cat >>confdefs.h <<\_ACEOF
12584 #define HAVE_PSINFO32_T 1
12585 _ACEOF
12588 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12589 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12591 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12592 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12593 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12603 #define _SYSCALL32
12604 #include <sys/procfs.h>
12606 main ()
12608 lwpstatus_t avar
12610 return 0;
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -z "$ac_c_werror_flag"
12623 || test ! -s conftest.err'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_LWPSTATUS_T 1
12650 _ACEOF
12653 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12654 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12656 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12657 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12658 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12668 #define _SYSCALL32
12669 #include <sys/procfs.h>
12671 main ()
12673 lwpxstatus_t avar
12675 return 0;
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_LWPXSTATUS_T 1
12715 _ACEOF
12718 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12719 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12721 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12722 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12723 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12733 #define _SYSCALL32
12734 #include <sys/procfs.h>
12736 main ()
12738 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12740 return 0;
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12766 else
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12778 cat >>confdefs.h <<\_ACEOF
12779 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12780 _ACEOF
12783 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12784 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12786 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12787 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12788 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h. */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12798 #define _SYSCALL32
12799 #include <sys/procfs.h>
12801 main ()
12803 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12805 return 0;
12807 _ACEOF
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag"
12818 || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12841 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_LWPSTATUS_T_PR_REG 1
12845 _ACEOF
12848 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12849 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12851 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12852 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12853 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12863 #define _SYSCALL32
12864 #include <sys/procfs.h>
12866 main ()
12868 win32_pstatus_t avar
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12906 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12908 cat >>confdefs.h <<\_ACEOF
12909 #define HAVE_WIN32_PSTATUS_T 1
12910 _ACEOF
12913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12914 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12920 if test -n "$TRAD_HEADER"; then
12922 cat >>confdefs.h <<_ACEOF
12923 #define TRAD_HEADER $TRAD_HEADER
12924 _ACEOF
12928 # Horrible hacks to build DLLs on Windows.
12929 WIN32LDFLAGS=
12930 WIN32LIBADD=
12931 case "${host}" in
12932 *-*-cygwin*)
12933 if test "$enable_shared" = "yes"; then
12934 WIN32LDFLAGS="-no-undefined"
12935 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12938 *-*-linux*)
12939 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12940 # libiberty.a.
12941 case "${host}" in
12942 mips*-*-linux*)
12943 # Linux/MIPS uses PIC by default.
12944 if test "$enable_shared" = "yes"; then
12945 WIN32LIBADD="-L../libiberty -liberty"
12949 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12950 if test -n "$x"; then
12951 WIN32LIBADD="-L../libiberty/pic -liberty"
12954 esac
12956 esac
12960 # target stuff:
12962 # Canonicalize the secondary target names.
12963 if test -n "$enable_targets" ; then
12964 for targ in `echo $enable_targets | sed 's/,/ /g'`
12966 result=`$ac_config_sub $targ 2>/dev/null`
12967 if test -n "$result" ; then
12968 canon_targets="$canon_targets $result"
12969 else
12970 # Allow targets that config.sub doesn't recognize, like "all".
12971 canon_targets="$canon_targets $targ"
12973 done
12976 all_targets=false
12977 defvec=
12978 selvecs=
12979 assocvecs=
12980 selarchs=
12981 TDEFINES=
12982 for targ in $target $canon_targets
12984 if test "x$targ" = "xall"; then
12985 all_targets=true
12986 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12987 else
12988 . $srcdir/config.bfd
12989 if test "x$targ" = "x$target"; then
12990 defvec=$targ_defvec
12992 selvecs="$selvecs $targ_defvec $targ_selvecs"
12993 selarchs="$selarchs $targ_archs"
12994 TDEFINES="$TDEFINES $targ_cflags"
12996 done
12999 # This processing still needs to be done if we're to decide properly whether
13000 # 64-bit support needs to be compiled in. Currently, it will be included if
13001 # the default or any other explicitly requested target requires it; it
13002 # will not be included on a 32-bit host if no 64-bit target is requested, and
13003 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13004 # used.
13006 # uniq the default and selected vectors in all the configured targets.
13007 f=""
13008 for i in $selvecs ; do
13009 case " $f " in
13010 *" $i "*) ;;
13011 *) f="$f $i" ;;
13012 esac
13013 done
13014 selvecs="$f"
13017 # uniq the associated vectors in all the configured targets.
13018 f=""
13019 for i in $assocvecs ; do
13020 case " $f " in
13021 *" $i "*) ;;
13022 *) f="$f $i" ;;
13023 esac
13024 done
13025 assocvecs="$f"
13028 # uniq the architectures in all the configured targets.
13029 f=""
13030 for i in $selarchs ; do
13031 case " $f " in
13032 *" $i "*) ;;
13033 *) f="$f $i" ;;
13034 esac
13035 done
13036 selarchs="$f"
13038 # Target backend .o files.
13041 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13043 for vec in $selvecs
13045 target_size=32
13046 case "$vec" in
13047 # This list is alphabetized to make it easy to compare
13048 # with the two vector lists in targets.c. For the same reason,
13049 # use one entry per line, even though this leads to long lines.
13050 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13051 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13052 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13053 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13054 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13055 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13056 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13057 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13058 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13059 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13060 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13061 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13062 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13063 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13064 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13065 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13066 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13067 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13068 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13069 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13070 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13071 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13072 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13073 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13074 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13075 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13076 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13077 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13078 bfd_elf32_bigarm_symbian_vec)
13079 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13080 bfd_elf32_bigarm_vxworks_vec)
13081 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13082 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13083 bfd_elf32_bigmips_vxworks_vec)
13084 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13085 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13086 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13087 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13088 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13089 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13090 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13091 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13092 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13093 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13094 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13095 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13096 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13097 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13098 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13099 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13100 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13101 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13102 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13103 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13104 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13105 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13106 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13107 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13108 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13109 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13110 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13111 bfd_elf32_littlearm_symbian_vec)
13112 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13113 bfd_elf32_littlearm_vxworks_vec)
13114 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13115 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13116 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13117 bfd_elf32_littlemips_vxworks_vec)
13118 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13119 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13120 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13121 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13122 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13123 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13124 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13125 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13126 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13127 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13128 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13129 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13130 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13131 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13132 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13133 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13134 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13135 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13136 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13137 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13138 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13139 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13140 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13141 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13142 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13143 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13144 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13145 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13146 # FIXME: We include cofflink.lo not because it's needed for
13147 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13148 # which needs it but does not list it. Should be fixed in right place.
13149 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13150 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13151 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13152 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13153 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13154 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13155 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13156 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13157 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13158 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13159 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13160 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13161 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13162 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13163 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13164 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13165 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13166 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13167 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13168 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13169 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13170 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13171 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13172 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13173 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13174 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13175 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13176 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13177 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13178 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13179 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13180 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13181 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13182 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13183 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13184 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13185 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13186 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13187 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13188 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13189 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13190 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13191 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13192 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13193 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13194 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13195 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13196 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13197 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13198 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13199 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13200 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13201 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13202 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13203 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13204 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13205 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13206 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13207 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13208 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13209 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13210 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13211 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13212 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13213 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13214 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13215 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13216 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13217 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13218 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13219 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13220 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13221 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13222 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13223 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13224 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13225 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13226 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13227 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13228 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13229 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13230 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13231 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13232 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13233 ieee_vec) tb="$tb ieee.lo" ;;
13234 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13235 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13236 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13237 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13238 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13239 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13240 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13241 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13242 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13243 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13244 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13245 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13246 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13247 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13248 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13249 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13250 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13251 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13252 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13253 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13254 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13255 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13256 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13257 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13258 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13259 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13260 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13261 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13262 pef_vec) tb="$tb pef.lo" ;;
13263 pef_xlib_vec) tb="$tb pef.lo" ;;
13264 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13265 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13266 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13267 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13268 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13269 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13270 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13271 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13272 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13273 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13274 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13275 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13276 som_vec) tb="$tb som.lo" ;;
13277 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13278 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13279 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13280 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13281 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13282 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13283 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13284 sym_vec) tb="$tb xsym.lo" ;;
13285 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13286 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13287 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13288 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13289 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13290 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13291 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13292 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13293 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13294 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13295 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13296 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13297 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13298 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13299 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13300 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13301 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13302 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13303 versados_vec) tb="$tb versados.lo" ;;
13304 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13305 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13306 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13307 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13308 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13309 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13311 # These appear out of order in targets.c
13312 srec_vec) tb="$tb srec.lo" ;;
13313 symbolsrec_vec) tb="$tb srec.lo" ;;
13314 tekhex_vec) tb="$tb tekhex.lo" ;;
13315 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13316 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13318 "") ;;
13319 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13320 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13321 { (exit 1); exit 1; }; } ;;
13322 esac
13324 if test ${target_size} = 64; then
13325 target64=true
13327 if test x"${vec}" = x"${defvec}"; then
13328 bfd_default_target_size=${target_size}
13330 done
13332 # Target architecture .o files.
13333 # A couple of CPUs use shorter file names to avoid problems on DOS
13334 # filesystems.
13335 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13337 # Weed out duplicate .o files.
13338 f=""
13339 for i in $tb ; do
13340 case " $f " in
13341 *" $i "*) ;;
13342 *) f="$f $i" ;;
13343 esac
13344 done
13345 tb="$f"
13347 f=""
13348 for i in $ta ; do
13349 case " $f " in
13350 *" $i "*) ;;
13351 *) f="$f $i" ;;
13352 esac
13353 done
13354 ta="$f"
13356 bfd_backends="$tb"
13357 bfd_machines="$ta"
13359 if test x${all_targets} = xtrue ; then
13360 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13361 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13362 selvecs=
13363 havevecs=
13364 selarchs=
13365 test -n "$assocvecs" &&
13366 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13367 else # all_targets is true
13368 # Only set these if they will be nonempty, for the clever echo.
13369 havevecs=
13370 assocvecs=
13371 test -n "$selvecs" &&
13372 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13373 test -n "$selvecs" &&
13374 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13375 test -n "$selarchs" &&
13376 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13377 fi # all_targets is true
13379 case ${host64}-${target64}-${want64} in
13380 *true*)
13381 wordsize=64
13382 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13383 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13384 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13385 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13386 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13387 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13388 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13390 if test -n "$GCC" ; then
13391 bad_64bit_gcc=no;
13392 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13393 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13394 # Add more tests for gcc versions with non-working 64-bit support here.
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 :__GNUC__:__GNUC_MINOR__:__i386__:
13402 _ACEOF
13403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13404 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13405 bad_64bit_gcc=yes;
13406 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13407 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13408 else
13409 echo "$as_me:$LINENO: result: no" >&5
13410 echo "${ECHO_T}no" >&6
13412 rm -f conftest*
13414 if test $bad_64bit_gcc = yes ; then
13415 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13416 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13417 { (exit 1); exit 1; }; }
13421 false-false-false)
13422 wordsize=32
13423 bfd_libs='$(BFD32_LIBS)'
13424 all_backends='$(BFD32_BACKENDS)'
13426 esac
13435 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13436 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13437 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13438 # Hopefully a reasonable assumption since fseeko et.al. should be
13439 # upward compatible.
13445 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13448 echo "$as_me:$LINENO: checking for $ac_func" >&5
13449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13450 if eval "test \"\${$as_ac_var+set}\" = set"; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h. */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13461 #define $ac_func innocuous_$ac_func
13463 /* System header to define __stub macros and hopefully few prototypes,
13464 which can conflict with char $ac_func (); below.
13465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13466 <limits.h> exists even on freestanding compilers. */
13468 #ifdef __STDC__
13469 # include <limits.h>
13470 #else
13471 # include <assert.h>
13472 #endif
13474 #undef $ac_func
13476 /* Override any gcc2 internal prototype to avoid an error. */
13477 #ifdef __cplusplus
13478 extern "C"
13480 #endif
13481 /* We use char because int might match the return type of a gcc2
13482 builtin and then its argument prototype would still apply. */
13483 char $ac_func ();
13484 /* The GNU C library defines this for functions which it implements
13485 to always fail with ENOSYS. Some functions are actually named
13486 something starting with __ and the normal name is an alias. */
13487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13488 choke me
13489 #else
13490 char (*f) () = $ac_func;
13491 #endif
13492 #ifdef __cplusplus
13494 #endif
13497 main ()
13499 return f != $ac_func;
13501 return 0;
13503 _ACEOF
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506 (eval $ac_link) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 eval "$as_ac_var=yes"
13527 else
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 eval "$as_ac_var=no"
13533 rm -f conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13538 if test `eval echo '${'$as_ac_var'}'` = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13541 _ACEOF
13544 done
13546 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13547 echo "$as_me:$LINENO: checking for off_t" >&5
13548 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13549 if test "${ac_cv_type_off_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13560 main ()
13562 if ((off_t *) 0)
13563 return 0;
13564 if (sizeof (off_t))
13565 return 0;
13567 return 0;
13569 _ACEOF
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag"
13580 || test ! -s conftest.err'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_off_t=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_type_off_t=no
13599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13601 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13602 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13604 echo "$as_me:$LINENO: checking size of off_t" >&5
13605 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13606 if test "${ac_cv_sizeof_off_t+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609 if test "$ac_cv_type_off_t" = yes; then
13610 # The cast to unsigned long works around a bug in the HP C Compiler
13611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13613 # This bug is HP SR number 8606223364.
13614 if test "$cross_compiling" = yes; then
13615 # Depending upon the size, compute the lo and hi bounds.
13616 cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h. */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 $ac_includes_default
13624 main ()
13626 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13627 test_array [0] = 0
13630 return 0;
13632 _ACEOF
13633 rm -f conftest.$ac_objext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13635 (eval $ac_compile) 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag"
13643 || test ! -s conftest.err'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_lo=0 ac_mid=0
13656 while :; do
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h. */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13665 main ()
13667 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13668 test_array [0] = 0
13671 return 0;
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_hi=$ac_mid; break
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_lo=`expr $ac_mid + 1`
13702 if test $ac_lo -le $ac_mid; then
13703 ac_lo= ac_hi=
13704 break
13706 ac_mid=`expr 2 '*' $ac_mid + 1`
13708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709 done
13710 else
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13722 main ()
13724 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13725 test_array [0] = 0
13728 return 0;
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=-1 ac_mid=-1
13754 while :; do
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13763 main ()
13765 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13766 test_array [0] = 0
13769 return 0;
13771 _ACEOF
13772 rm -f conftest.$ac_objext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_lo=$ac_mid; break
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_hi=`expr '(' $ac_mid ')' - 1`
13800 if test $ac_mid -le $ac_hi; then
13801 ac_lo= ac_hi=
13802 break
13804 ac_mid=`expr 2 '*' $ac_mid`
13806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 done
13808 else
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ac_lo= ac_hi=
13814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817 # Binary search between lo and hi bounds.
13818 while test "x$ac_lo" != "x$ac_hi"; do
13819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13820 cat >conftest.$ac_ext <<_ACEOF
13821 /* confdefs.h. */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 $ac_includes_default
13828 main ()
13830 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13831 test_array [0] = 0
13834 return 0;
13836 _ACEOF
13837 rm -f conftest.$ac_objext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 ac_hi=$ac_mid
13860 else
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13864 ac_lo=`expr '(' $ac_mid ')' + 1`
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867 done
13868 case $ac_lo in
13869 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13870 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13871 See \`config.log' for more details." >&5
13872 echo "$as_me: error: cannot compute sizeof (off_t), 77
13873 See \`config.log' for more details." >&2;}
13874 { (exit 1); exit 1; }; } ;;
13875 esac
13876 else
13877 if test "$cross_compiling" = yes; then
13878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13879 See \`config.log' for more details." >&5
13880 echo "$as_me: error: cannot run test program while cross compiling
13881 See \`config.log' for more details." >&2;}
13882 { (exit 1); exit 1; }; }
13883 else
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 long longval () { return (long) (sizeof (off_t)); }
13892 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13893 #include <stdio.h>
13894 #include <stdlib.h>
13896 main ()
13899 FILE *f = fopen ("conftest.val", "w");
13900 if (! f)
13901 exit (1);
13902 if (((long) (sizeof (off_t))) < 0)
13904 long i = longval ();
13905 if (i != ((long) (sizeof (off_t))))
13906 exit (1);
13907 fprintf (f, "%ld\n", i);
13909 else
13911 unsigned long i = ulongval ();
13912 if (i != ((long) (sizeof (off_t))))
13913 exit (1);
13914 fprintf (f, "%lu\n", i);
13916 exit (ferror (f) || fclose (f) != 0);
13919 return 0;
13921 _ACEOF
13922 rm -f conftest$ac_exeext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_sizeof_off_t=`cat conftest.val`
13934 else
13935 echo "$as_me: program exited with status $ac_status" >&5
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ( exit $ac_status )
13940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13941 See \`config.log' for more details." >&5
13942 echo "$as_me: error: cannot compute sizeof (off_t), 77
13943 See \`config.log' for more details." >&2;}
13944 { (exit 1); exit 1; }; }
13946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13949 rm -f conftest.val
13950 else
13951 ac_cv_sizeof_off_t=0
13954 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13955 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13956 cat >>confdefs.h <<_ACEOF
13957 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13958 _ACEOF
13962 echo "$as_me:$LINENO: checking file_ptr type" >&5
13963 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13964 bfd_file_ptr="long"
13965 bfd_ufile_ptr="unsigned long"
13966 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13967 -o x"${ac_cv_sizeof_off_t}" = x8; then
13968 bfd_file_ptr=BFD_HOST_64_BIT
13969 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13971 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13972 echo "${ECHO_T}$bfd_file_ptr" >&6
13977 tdefaults=""
13978 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13979 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13980 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13981 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13982 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13987 for ac_header in stdlib.h unistd.h
13989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13998 else
13999 # Is the header compilable?
14000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h. */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 #include <$ac_header>
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_header_compiler=no
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042 echo "${ECHO_T}$ac_header_compiler" >&6
14044 # Is the header present?
14045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <$ac_header>
14054 _ACEOF
14055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev/null; then
14063 if test -s conftest.err; then
14064 ac_cpp_err=$ac_c_preproc_warn_flag
14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14066 else
14067 ac_cpp_err=
14069 else
14070 ac_cpp_err=yes
14072 if test -z "$ac_cpp_err"; then
14073 ac_header_preproc=yes
14074 else
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ac_header_preproc=no
14080 rm -f conftest.err conftest.$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 yes:no: )
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
14093 no:yes:* )
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14107 cat <<\_ASBOX
14108 ## ------------------------------------------ ##
14109 ## Report this to the AC_PACKAGE_NAME lists. ##
14110 ## ------------------------------------------ ##
14111 _ASBOX
14113 sed "s/^/$as_me: WARNING: /" >&2
14115 esac
14116 echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121 eval "$as_ac_Header=\$ac_header_preproc"
14123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130 _ACEOF
14134 done
14137 for ac_func in getpagesize
14139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_func" >&5
14141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153 #define $ac_func innocuous_$ac_func
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14160 #ifdef __STDC__
14161 # include <limits.h>
14162 #else
14163 # include <assert.h>
14164 #endif
14166 #undef $ac_func
14168 /* Override any gcc2 internal prototype to avoid an error. */
14169 #ifdef __cplusplus
14170 extern "C"
14172 #endif
14173 /* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14175 char $ac_func ();
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14180 choke me
14181 #else
14182 char (*f) () = $ac_func;
14183 #endif
14184 #ifdef __cplusplus
14186 #endif
14189 main ()
14191 return f != $ac_func;
14193 return 0;
14195 _ACEOF
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14219 else
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 eval "$as_ac_var=no"
14225 rm -f conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230 if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233 _ACEOF
14236 done
14238 echo "$as_me:$LINENO: checking for working mmap" >&5
14239 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14240 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 if test "$cross_compiling" = yes; then
14244 ac_cv_func_mmap_fixed_mapped=no
14245 else
14246 cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h. */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14253 /* malloc might have been renamed as rpl_malloc. */
14254 #undef malloc
14256 /* Thanks to Mike Haertel and Jim Avera for this test.
14257 Here is a matrix of mmap possibilities:
14258 mmap private not fixed
14259 mmap private fixed at somewhere currently unmapped
14260 mmap private fixed at somewhere already mapped
14261 mmap shared not fixed
14262 mmap shared fixed at somewhere currently unmapped
14263 mmap shared fixed at somewhere already mapped
14264 For private mappings, we should verify that changes cannot be read()
14265 back from the file, nor mmap's back from the file at a different
14266 address. (There have been systems where private was not correctly
14267 implemented like the infamous i386 svr4.0, and systems where the
14268 VM page cache was not coherent with the file system buffer cache
14269 like early versions of FreeBSD and possibly contemporary NetBSD.)
14270 For shared mappings, we should conversely verify that changes get
14271 propagated back to all the places they're supposed to be.
14273 Grep wants private fixed already mapped.
14274 The main things grep needs to know about mmap are:
14275 * does it exist and is it safe to write into the mmap'd area
14276 * how to use it (BSD variants) */
14278 #include <fcntl.h>
14279 #include <sys/mman.h>
14281 #if !STDC_HEADERS && !HAVE_STDLIB_H
14282 char *malloc ();
14283 #endif
14285 /* This mess was copied from the GNU getpagesize.h. */
14286 #if !HAVE_GETPAGESIZE
14287 /* Assume that all systems that can run configure have sys/param.h. */
14288 # if !HAVE_SYS_PARAM_H
14289 # define HAVE_SYS_PARAM_H 1
14290 # endif
14292 # ifdef _SC_PAGESIZE
14293 # define getpagesize() sysconf(_SC_PAGESIZE)
14294 # else /* no _SC_PAGESIZE */
14295 # if HAVE_SYS_PARAM_H
14296 # include <sys/param.h>
14297 # ifdef EXEC_PAGESIZE
14298 # define getpagesize() EXEC_PAGESIZE
14299 # else /* no EXEC_PAGESIZE */
14300 # ifdef NBPG
14301 # define getpagesize() NBPG * CLSIZE
14302 # ifndef CLSIZE
14303 # define CLSIZE 1
14304 # endif /* no CLSIZE */
14305 # else /* no NBPG */
14306 # ifdef NBPC
14307 # define getpagesize() NBPC
14308 # else /* no NBPC */
14309 # ifdef PAGESIZE
14310 # define getpagesize() PAGESIZE
14311 # endif /* PAGESIZE */
14312 # endif /* no NBPC */
14313 # endif /* no NBPG */
14314 # endif /* no EXEC_PAGESIZE */
14315 # else /* no HAVE_SYS_PARAM_H */
14316 # define getpagesize() 8192 /* punt totally */
14317 # endif /* no HAVE_SYS_PARAM_H */
14318 # endif /* no _SC_PAGESIZE */
14320 #endif /* no HAVE_GETPAGESIZE */
14323 main ()
14325 char *data, *data2, *data3;
14326 int i, pagesize;
14327 int fd;
14329 pagesize = getpagesize ();
14331 /* First, make a file with some known garbage in it. */
14332 data = (char *) malloc (pagesize);
14333 if (!data)
14334 exit (1);
14335 for (i = 0; i < pagesize; ++i)
14336 *(data + i) = rand ();
14337 umask (0);
14338 fd = creat ("conftest.mmap", 0600);
14339 if (fd < 0)
14340 exit (1);
14341 if (write (fd, data, pagesize) != pagesize)
14342 exit (1);
14343 close (fd);
14345 /* Next, try to mmap the file at a fixed address which already has
14346 something else allocated at it. If we can, also make sure that
14347 we see the same garbage. */
14348 fd = open ("conftest.mmap", O_RDWR);
14349 if (fd < 0)
14350 exit (1);
14351 data2 = (char *) malloc (2 * pagesize);
14352 if (!data2)
14353 exit (1);
14354 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14357 exit (1);
14358 for (i = 0; i < pagesize; ++i)
14359 if (*(data + i) != *(data2 + i))
14360 exit (1);
14362 /* Finally, make sure that changes to the mapped area do not
14363 percolate back to the file as seen by read(). (This is a bug on
14364 some variants of i386 svr4.0.) */
14365 for (i = 0; i < pagesize; ++i)
14366 *(data2 + i) = *(data2 + i) + 1;
14367 data3 = (char *) malloc (pagesize);
14368 if (!data3)
14369 exit (1);
14370 if (read (fd, data3, pagesize) != pagesize)
14371 exit (1);
14372 for (i = 0; i < pagesize; ++i)
14373 if (*(data + i) != *(data3 + i))
14374 exit (1);
14375 close (fd);
14376 exit (0);
14378 _ACEOF
14379 rm -f conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_func_mmap_fixed_mapped=yes
14391 else
14392 echo "$as_me: program exited with status $ac_status" >&5
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ( exit $ac_status )
14397 ac_cv_func_mmap_fixed_mapped=no
14399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14406 cat >>confdefs.h <<\_ACEOF
14407 #define HAVE_MMAP 1
14408 _ACEOF
14411 rm -f conftest.mmap
14415 for ac_func in madvise mprotect
14417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14418 echo "$as_me:$LINENO: checking for $ac_func" >&5
14419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14420 if eval "test \"\${$as_ac_var+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14431 #define $ac_func innocuous_$ac_func
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func (); below.
14435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14436 <limits.h> exists even on freestanding compilers. */
14438 #ifdef __STDC__
14439 # include <limits.h>
14440 #else
14441 # include <assert.h>
14442 #endif
14444 #undef $ac_func
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 #ifdef __cplusplus
14448 extern "C"
14450 #endif
14451 /* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14453 char $ac_func ();
14454 /* The GNU C library defines this for functions which it implements
14455 to always fail with ENOSYS. Some functions are actually named
14456 something starting with __ and the normal name is an alias. */
14457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14458 choke me
14459 #else
14460 char (*f) () = $ac_func;
14461 #endif
14462 #ifdef __cplusplus
14464 #endif
14467 main ()
14469 return f != $ac_func;
14471 return 0;
14473 _ACEOF
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest$ac_exeext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 eval "$as_ac_var=yes"
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 eval "$as_ac_var=no"
14503 rm -f conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14508 if test `eval echo '${'$as_ac_var'}'` = yes; then
14509 cat >>confdefs.h <<_ACEOF
14510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511 _ACEOF
14514 done
14516 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14517 true+yes )
14518 cat >>confdefs.h <<\_ACEOF
14519 #define USE_MMAP 1
14520 _ACEOF
14522 esac
14524 rm -f doc/config.status
14525 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14527 ac_config_commands="$ac_config_commands default"
14534 cat >confcache <<\_ACEOF
14535 # This file is a shell script that caches the results of configure
14536 # tests run on this system so they can be shared between configure
14537 # scripts and configure runs, see configure's option --config-cache.
14538 # It is not useful on other systems. If it contains results you don't
14539 # want to keep, you may remove or edit it.
14541 # config.status only pays attention to the cache file if you give it
14542 # the --recheck option to rerun configure.
14544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14546 # following values.
14548 _ACEOF
14550 # The following way of writing the cache mishandles newlines in values,
14551 # but we know of no workaround that is simple, portable, and efficient.
14552 # So, don't put newlines in cache variables' values.
14553 # Ultrix sh set writes to stderr and can't be redirected directly,
14554 # and sets the high bit in the cache file unless we assign to the vars.
14556 (set) 2>&1 |
14557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14558 *ac_space=\ *)
14559 # `set' does not quote correctly, so add quotes (double-quote
14560 # substitution turns \\\\ into \\, and sed turns \\ into \).
14561 sed -n \
14562 "s/'/'\\\\''/g;
14563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14566 # `set' quotes correctly as required by POSIX, so do not add quotes.
14567 sed -n \
14568 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14570 esac;
14572 sed '
14573 t clear
14574 : clear
14575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14576 t end
14577 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14578 : end' >>confcache
14579 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14580 if test -w $cache_file; then
14581 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14582 cat confcache >$cache_file
14583 else
14584 echo "not updating unwritable cache $cache_file"
14587 rm -f confcache
14589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14590 # Let make expand exec_prefix.
14591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14595 # trailing colons and then remove the whole line if VPATH becomes empty
14596 # (actually we leave an empty line to preserve line numbers).
14597 if test "x$srcdir" = x.; then
14598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14599 s/:*\$(srcdir):*/:/;
14600 s/:*\${srcdir}:*/:/;
14601 s/:*@srcdir@:*/:/;
14602 s/^\([^=]*=[ ]*\):*/\1/;
14603 s/:*$//;
14604 s/^[^=]*=[ ]*$//;
14608 DEFS=-DHAVE_CONFIG_H
14610 ac_libobjs=
14611 ac_ltlibobjs=
14612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14613 # 1. Remove the extension, and $U if already installed.
14614 ac_i=`echo "$ac_i" |
14615 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14616 # 2. Add them.
14617 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14618 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14619 done
14620 LIBOBJS=$ac_libobjs
14622 LTLIBOBJS=$ac_ltlibobjs
14625 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14626 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14627 Usually this means the macro was only invoked conditionally." >&5
14628 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14629 Usually this means the macro was only invoked conditionally." >&2;}
14630 { (exit 1); exit 1; }; }
14632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14633 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14634 Usually this means the macro was only invoked conditionally." >&5
14635 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14636 Usually this means the macro was only invoked conditionally." >&2;}
14637 { (exit 1); exit 1; }; }
14639 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14640 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14641 Usually this means the macro was only invoked conditionally." >&5
14642 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14643 Usually this means the macro was only invoked conditionally." >&2;}
14644 { (exit 1); exit 1; }; }
14646 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14647 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14648 Usually this means the macro was only invoked conditionally." >&5
14649 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14650 Usually this means the macro was only invoked conditionally." >&2;}
14651 { (exit 1); exit 1; }; }
14654 : ${CONFIG_STATUS=./config.status}
14655 ac_clean_files_save=$ac_clean_files
14656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14657 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14658 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14659 cat >$CONFIG_STATUS <<_ACEOF
14660 #! $SHELL
14661 # Generated by $as_me.
14662 # Run this file to recreate the current configuration.
14663 # Compiler output produced by configure, useful for debugging
14664 # configure, is in config.log if it exists.
14666 debug=false
14667 ac_cs_recheck=false
14668 ac_cs_silent=false
14669 SHELL=\${CONFIG_SHELL-$SHELL}
14670 _ACEOF
14672 cat >>$CONFIG_STATUS <<\_ACEOF
14673 ## --------------------- ##
14674 ## M4sh Initialization. ##
14675 ## --------------------- ##
14677 # Be Bourne compatible
14678 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14679 emulate sh
14680 NULLCMD=:
14681 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14682 # is contrary to our usage. Disable this feature.
14683 alias -g '${1+"$@"}'='"$@"'
14684 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14685 set -o posix
14687 DUALCASE=1; export DUALCASE # for MKS sh
14689 # Support unset when possible.
14690 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14691 as_unset=unset
14692 else
14693 as_unset=false
14697 # Work around bugs in pre-3.0 UWIN ksh.
14698 $as_unset ENV MAIL MAILPATH
14699 PS1='$ '
14700 PS2='> '
14701 PS4='+ '
14703 # NLS nuisances.
14704 for as_var in \
14705 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14706 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14707 LC_TELEPHONE LC_TIME
14709 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14710 eval $as_var=C; export $as_var
14711 else
14712 $as_unset $as_var
14714 done
14716 # Required to use basename.
14717 if expr a : '\(a\)' >/dev/null 2>&1; then
14718 as_expr=expr
14719 else
14720 as_expr=false
14723 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14724 as_basename=basename
14725 else
14726 as_basename=false
14730 # Name of the executable.
14731 as_me=`$as_basename "$0" ||
14732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14733 X"$0" : 'X\(//\)$' \| \
14734 X"$0" : 'X\(/\)$' \| \
14735 . : '\(.\)' 2>/dev/null ||
14736 echo X/"$0" |
14737 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14738 /^X\/\(\/\/\)$/{ s//\1/; q; }
14739 /^X\/\(\/\).*/{ s//\1/; q; }
14740 s/.*/./; q'`
14743 # PATH needs CR, and LINENO needs CR and PATH.
14744 # Avoid depending upon Character Ranges.
14745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14748 as_cr_digits='0123456789'
14749 as_cr_alnum=$as_cr_Letters$as_cr_digits
14751 # The user is always right.
14752 if test "${PATH_SEPARATOR+set}" != set; then
14753 echo "#! /bin/sh" >conf$$.sh
14754 echo "exit 0" >>conf$$.sh
14755 chmod +x conf$$.sh
14756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14757 PATH_SEPARATOR=';'
14758 else
14759 PATH_SEPARATOR=:
14761 rm -f conf$$.sh
14765 as_lineno_1=$LINENO
14766 as_lineno_2=$LINENO
14767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14768 test "x$as_lineno_1" != "x$as_lineno_2" &&
14769 test "x$as_lineno_3" = "x$as_lineno_2" || {
14770 # Find who we are. Look in the path if we contain no path at all
14771 # relative or not.
14772 case $0 in
14773 *[\\/]* ) as_myself=$0 ;;
14774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14777 IFS=$as_save_IFS
14778 test -z "$as_dir" && as_dir=.
14779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14780 done
14783 esac
14784 # We did not find ourselves, most probably we were run as `sh COMMAND'
14785 # in which case we are not to be found in the path.
14786 if test "x$as_myself" = x; then
14787 as_myself=$0
14789 if test ! -f "$as_myself"; then
14790 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14791 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14792 { (exit 1); exit 1; }; }
14794 case $CONFIG_SHELL in
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 for as_base in sh bash ksh sh5; do
14802 case $as_dir in
14804 if ("$as_dir/$as_base" -c '
14805 as_lineno_1=$LINENO
14806 as_lineno_2=$LINENO
14807 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14808 test "x$as_lineno_1" != "x$as_lineno_2" &&
14809 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14810 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14811 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14812 CONFIG_SHELL=$as_dir/$as_base
14813 export CONFIG_SHELL
14814 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14815 fi;;
14816 esac
14817 done
14818 done
14820 esac
14822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14823 # uniformly replaced by the line number. The first 'sed' inserts a
14824 # line-number line before each line; the second 'sed' does the real
14825 # work. The second script uses 'N' to pair each line-number line
14826 # with the numbered line, and appends trailing '-' during
14827 # substitution so that $LINENO is not a special case at line end.
14828 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14829 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14830 sed '=' <$as_myself |
14831 sed '
14833 s,$,-,
14834 : loop
14835 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14836 t loop
14837 s,-$,,
14838 s,^['$as_cr_digits']*\n,,
14839 ' >$as_me.lineno &&
14840 chmod +x $as_me.lineno ||
14841 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14842 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14843 { (exit 1); exit 1; }; }
14845 # Don't try to exec as it changes $[0], causing all sort of problems
14846 # (the dirname of $[0] is not the place where we might find the
14847 # original and so on. Autoconf is especially sensible to this).
14848 . ./$as_me.lineno
14849 # Exit status is that of the last command.
14850 exit
14854 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14855 *c*,-n*) ECHO_N= ECHO_C='
14856 ' ECHO_T=' ' ;;
14857 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14858 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14859 esac
14861 if expr a : '\(a\)' >/dev/null 2>&1; then
14862 as_expr=expr
14863 else
14864 as_expr=false
14867 rm -f conf$$ conf$$.exe conf$$.file
14868 echo >conf$$.file
14869 if ln -s conf$$.file conf$$ 2>/dev/null; then
14870 # We could just check for DJGPP; but this test a) works b) is more generic
14871 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14872 if test -f conf$$.exe; then
14873 # Don't use ln at all; we don't have any links
14874 as_ln_s='cp -p'
14875 else
14876 as_ln_s='ln -s'
14878 elif ln conf$$.file conf$$ 2>/dev/null; then
14879 as_ln_s=ln
14880 else
14881 as_ln_s='cp -p'
14883 rm -f conf$$ conf$$.exe conf$$.file
14885 if mkdir -p . 2>/dev/null; then
14886 as_mkdir_p=:
14887 else
14888 test -d ./-p && rmdir ./-p
14889 as_mkdir_p=false
14892 as_executable_p="test -f"
14894 # Sed expression to map a string onto a valid CPP name.
14895 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14897 # Sed expression to map a string onto a valid variable name.
14898 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14901 # IFS
14902 # We need space, tab and new line, in precisely that order.
14903 as_nl='
14905 IFS=" $as_nl"
14907 # CDPATH.
14908 $as_unset CDPATH
14910 exec 6>&1
14912 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14913 # report actual input values of CONFIG_FILES etc. instead of their
14914 # values after options handling. Logging --version etc. is OK.
14915 exec 5>>config.log
14917 echo
14918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14919 ## Running $as_me. ##
14920 _ASBOX
14921 } >&5
14922 cat >&5 <<_CSEOF
14924 This file was extended by $as_me, which was
14925 generated by GNU Autoconf 2.59. Invocation command line was
14927 CONFIG_FILES = $CONFIG_FILES
14928 CONFIG_HEADERS = $CONFIG_HEADERS
14929 CONFIG_LINKS = $CONFIG_LINKS
14930 CONFIG_COMMANDS = $CONFIG_COMMANDS
14931 $ $0 $@
14933 _CSEOF
14934 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14935 echo >&5
14936 _ACEOF
14938 # Files that config.status was made for.
14939 if test -n "$ac_config_files"; then
14940 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14943 if test -n "$ac_config_headers"; then
14944 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14947 if test -n "$ac_config_links"; then
14948 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14951 if test -n "$ac_config_commands"; then
14952 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14955 cat >>$CONFIG_STATUS <<\_ACEOF
14957 ac_cs_usage="\
14958 \`$as_me' instantiates files from templates according to the
14959 current configuration.
14961 Usage: $0 [OPTIONS] [FILE]...
14963 -h, --help print this help, then exit
14964 -V, --version print version number, then exit
14965 -q, --quiet do not print progress messages
14966 -d, --debug don't remove temporary files
14967 --recheck update $as_me by reconfiguring in the same conditions
14968 --file=FILE[:TEMPLATE]
14969 instantiate the configuration file FILE
14970 --header=FILE[:TEMPLATE]
14971 instantiate the configuration header FILE
14973 Configuration files:
14974 $config_files
14976 Configuration headers:
14977 $config_headers
14979 Configuration commands:
14980 $config_commands
14982 Report bugs to <bug-autoconf@gnu.org>."
14983 _ACEOF
14985 cat >>$CONFIG_STATUS <<_ACEOF
14986 ac_cs_version="\\
14987 config.status
14988 configured by $0, generated by GNU Autoconf 2.59,
14989 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14991 Copyright (C) 2003 Free Software Foundation, Inc.
14992 This config.status script is free software; the Free Software Foundation
14993 gives unlimited permission to copy, distribute and modify it."
14994 srcdir=$srcdir
14995 INSTALL="$INSTALL"
14996 _ACEOF
14998 cat >>$CONFIG_STATUS <<\_ACEOF
14999 # If no file are specified by the user, then we need to provide default
15000 # value. By we need to know if files were specified by the user.
15001 ac_need_defaults=:
15002 while test $# != 0
15004 case $1 in
15005 --*=*)
15006 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15007 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15008 ac_shift=:
15011 ac_option=$1
15012 ac_optarg=$2
15013 ac_shift=shift
15015 *) # This is not an option, so the user has probably given explicit
15016 # arguments.
15017 ac_option=$1
15018 ac_need_defaults=false;;
15019 esac
15021 case $ac_option in
15022 # Handling of the options.
15023 _ACEOF
15024 cat >>$CONFIG_STATUS <<\_ACEOF
15025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15026 ac_cs_recheck=: ;;
15027 --version | --vers* | -V )
15028 echo "$ac_cs_version"; exit 0 ;;
15029 --he | --h)
15030 # Conflict between --help and --header
15031 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15032 Try \`$0 --help' for more information." >&5
15033 echo "$as_me: error: ambiguous option: $1
15034 Try \`$0 --help' for more information." >&2;}
15035 { (exit 1); exit 1; }; };;
15036 --help | --hel | -h )
15037 echo "$ac_cs_usage"; exit 0 ;;
15038 --debug | --d* | -d )
15039 debug=: ;;
15040 --file | --fil | --fi | --f )
15041 $ac_shift
15042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15043 ac_need_defaults=false;;
15044 --header | --heade | --head | --hea )
15045 $ac_shift
15046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15047 ac_need_defaults=false;;
15048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15050 ac_cs_silent=: ;;
15052 # This is an error.
15053 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15054 Try \`$0 --help' for more information." >&5
15055 echo "$as_me: error: unrecognized option: $1
15056 Try \`$0 --help' for more information." >&2;}
15057 { (exit 1); exit 1; }; } ;;
15059 *) ac_config_targets="$ac_config_targets $1" ;;
15061 esac
15062 shift
15063 done
15065 ac_configure_extra_args=
15067 if $ac_cs_silent; then
15068 exec 6>/dev/null
15069 ac_configure_extra_args="$ac_configure_extra_args --silent"
15072 _ACEOF
15073 cat >>$CONFIG_STATUS <<_ACEOF
15074 if \$ac_cs_recheck; then
15075 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15076 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15079 _ACEOF
15081 cat >>$CONFIG_STATUS <<_ACEOF
15083 # INIT-COMMANDS section.
15086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15089 _ACEOF
15093 cat >>$CONFIG_STATUS <<\_ACEOF
15094 for ac_config_target in $ac_config_targets
15096 case "$ac_config_target" in
15097 # Handling of arguments.
15098 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15099 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15100 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15101 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15102 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15103 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15104 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15106 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15107 { (exit 1); exit 1; }; };;
15108 esac
15109 done
15111 # If the user did not use the arguments to specify the items to instantiate,
15112 # then the envvar interface is used. Set only those that are not.
15113 # We use the long form for the default assignment because of an extremely
15114 # bizarre bug on SunOS 4.1.3.
15115 if $ac_need_defaults; then
15116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15121 # Have a temporary directory for convenience. Make it in the build tree
15122 # simply because there is no reason to put it here, and in addition,
15123 # creating and moving files from /tmp can sometimes cause problems.
15124 # Create a temporary directory, and hook for its removal unless debugging.
15125 $debug ||
15127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15128 trap '{ (exit 1); exit 1; }' 1 2 13 15
15131 # Create a (secure) tmp directory for tmp files.
15134 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15135 test -n "$tmp" && test -d "$tmp"
15136 } ||
15138 tmp=./confstat$$-$RANDOM
15139 (umask 077 && mkdir $tmp)
15140 } ||
15142 echo "$me: cannot create a temporary directory in ." >&2
15143 { (exit 1); exit 1; }
15146 _ACEOF
15148 cat >>$CONFIG_STATUS <<_ACEOF
15151 # CONFIG_FILES section.
15154 # No need to generate the scripts if there are no CONFIG_FILES.
15155 # This happens for instance when ./config.status config.h
15156 if test -n "\$CONFIG_FILES"; then
15157 # Protect against being on the right side of a sed subst in config.status.
15158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15160 s,@SHELL@,$SHELL,;t t
15161 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15162 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15163 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15164 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15165 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15166 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15167 s,@exec_prefix@,$exec_prefix,;t t
15168 s,@prefix@,$prefix,;t t
15169 s,@program_transform_name@,$program_transform_name,;t t
15170 s,@bindir@,$bindir,;t t
15171 s,@sbindir@,$sbindir,;t t
15172 s,@libexecdir@,$libexecdir,;t t
15173 s,@datadir@,$datadir,;t t
15174 s,@sysconfdir@,$sysconfdir,;t t
15175 s,@sharedstatedir@,$sharedstatedir,;t t
15176 s,@localstatedir@,$localstatedir,;t t
15177 s,@libdir@,$libdir,;t t
15178 s,@includedir@,$includedir,;t t
15179 s,@oldincludedir@,$oldincludedir,;t t
15180 s,@infodir@,$infodir,;t t
15181 s,@mandir@,$mandir,;t t
15182 s,@build_alias@,$build_alias,;t t
15183 s,@host_alias@,$host_alias,;t t
15184 s,@target_alias@,$target_alias,;t t
15185 s,@DEFS@,$DEFS,;t t
15186 s,@ECHO_C@,$ECHO_C,;t t
15187 s,@ECHO_N@,$ECHO_N,;t t
15188 s,@ECHO_T@,$ECHO_T,;t t
15189 s,@LIBS@,$LIBS,;t t
15190 s,@build@,$build,;t t
15191 s,@build_cpu@,$build_cpu,;t t
15192 s,@build_vendor@,$build_vendor,;t t
15193 s,@build_os@,$build_os,;t t
15194 s,@host@,$host,;t t
15195 s,@host_cpu@,$host_cpu,;t t
15196 s,@host_vendor@,$host_vendor,;t t
15197 s,@host_os@,$host_os,;t t
15198 s,@target@,$target,;t t
15199 s,@target_cpu@,$target_cpu,;t t
15200 s,@target_vendor@,$target_vendor,;t t
15201 s,@target_os@,$target_os,;t t
15202 s,@CC@,$CC,;t t
15203 s,@CFLAGS@,$CFLAGS,;t t
15204 s,@LDFLAGS@,$LDFLAGS,;t t
15205 s,@CPPFLAGS@,$CPPFLAGS,;t t
15206 s,@ac_ct_CC@,$ac_ct_CC,;t t
15207 s,@EXEEXT@,$EXEEXT,;t t
15208 s,@OBJEXT@,$OBJEXT,;t t
15209 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15210 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15211 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15212 s,@CYGPATH_W@,$CYGPATH_W,;t t
15213 s,@PACKAGE@,$PACKAGE,;t t
15214 s,@VERSION@,$VERSION,;t t
15215 s,@ACLOCAL@,$ACLOCAL,;t t
15216 s,@AUTOCONF@,$AUTOCONF,;t t
15217 s,@AUTOMAKE@,$AUTOMAKE,;t t
15218 s,@AUTOHEADER@,$AUTOHEADER,;t t
15219 s,@MAKEINFO@,$MAKEINFO,;t t
15220 s,@install_sh@,$install_sh,;t t
15221 s,@STRIP@,$STRIP,;t t
15222 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15223 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15224 s,@mkdir_p@,$mkdir_p,;t t
15225 s,@AWK@,$AWK,;t t
15226 s,@SET_MAKE@,$SET_MAKE,;t t
15227 s,@am__leading_dot@,$am__leading_dot,;t t
15228 s,@AMTAR@,$AMTAR,;t t
15229 s,@am__tar@,$am__tar,;t t
15230 s,@am__untar@,$am__untar,;t t
15231 s,@DEPDIR@,$DEPDIR,;t t
15232 s,@am__include@,$am__include,;t t
15233 s,@am__quote@,$am__quote,;t t
15234 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15235 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15236 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15237 s,@CCDEPMODE@,$CCDEPMODE,;t t
15238 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15239 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15240 s,@AR@,$AR,;t t
15241 s,@ac_ct_AR@,$ac_ct_AR,;t t
15242 s,@RANLIB@,$RANLIB,;t t
15243 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15244 s,@LN_S@,$LN_S,;t t
15245 s,@LIBTOOL@,$LIBTOOL,;t t
15246 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15247 s,@NO_WERROR@,$NO_WERROR,;t t
15248 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15249 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15250 s,@MAINT@,$MAINT,;t t
15251 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15252 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15253 s,@host_noncanonical@,$host_noncanonical,;t t
15254 s,@target_noncanonical@,$target_noncanonical,;t t
15255 s,@bfdlibdir@,$bfdlibdir,;t t
15256 s,@bfdincludedir@,$bfdincludedir,;t t
15257 s,@CPP@,$CPP,;t t
15258 s,@EGREP@,$EGREP,;t t
15259 s,@ALLOCA@,$ALLOCA,;t t
15260 s,@USE_NLS@,$USE_NLS,;t t
15261 s,@MSGFMT@,$MSGFMT,;t t
15262 s,@GMSGFMT@,$GMSGFMT,;t t
15263 s,@XGETTEXT@,$XGETTEXT,;t t
15264 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15265 s,@CATALOGS@,$CATALOGS,;t t
15266 s,@CATOBJEXT@,$CATOBJEXT,;t t
15267 s,@DATADIRNAME@,$DATADIRNAME,;t t
15268 s,@GMOFILES@,$GMOFILES,;t t
15269 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15270 s,@INTLDEPS@,$INTLDEPS,;t t
15271 s,@INTLLIBS@,$INTLLIBS,;t t
15272 s,@INTLOBJS@,$INTLOBJS,;t t
15273 s,@POFILES@,$POFILES,;t t
15274 s,@POSUB@,$POSUB,;t t
15275 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15276 s,@GT_NO@,$GT_NO,;t t
15277 s,@GT_YES@,$GT_YES,;t t
15278 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15279 s,@l@,$l,;t t
15280 s,@HDEFINES@,$HDEFINES,;t t
15281 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15282 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15283 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15284 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15285 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15286 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15287 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15288 s,@COREFILE@,$COREFILE,;t t
15289 s,@COREFLAG@,$COREFLAG,;t t
15290 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15291 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15292 s,@TDEFINES@,$TDEFINES,;t t
15293 s,@wordsize@,$wordsize,;t t
15294 s,@bfd_libs@,$bfd_libs,;t t
15295 s,@all_backends@,$all_backends,;t t
15296 s,@bfd_backends@,$bfd_backends,;t t
15297 s,@bfd_machines@,$bfd_machines,;t t
15298 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15299 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15300 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15301 s,@tdefaults@,$tdefaults,;t t
15302 s,@datarootdir@,$datarootdir,;t t
15303 s,@docdir@,$docdir,;t t
15304 s,@htmldir@,$htmldir,;t t
15305 s,@LIBOBJS@,$LIBOBJS,;t t
15306 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15307 CEOF
15309 _ACEOF
15311 cat >>$CONFIG_STATUS <<\_ACEOF
15312 # Split the substitutions into bite-sized pieces for seds with
15313 # small command number limits, like on Digital OSF/1 and HP-UX.
15314 ac_max_sed_lines=48
15315 ac_sed_frag=1 # Number of current file.
15316 ac_beg=1 # First line for current file.
15317 ac_end=$ac_max_sed_lines # Line after last line for current file.
15318 ac_more_lines=:
15319 ac_sed_cmds=
15320 while $ac_more_lines; do
15321 if test $ac_beg -gt 1; then
15322 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15323 else
15324 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15326 if test ! -s $tmp/subs.frag; then
15327 ac_more_lines=false
15328 else
15329 # The purpose of the label and of the branching condition is to
15330 # speed up the sed processing (if there are no `@' at all, there
15331 # is no need to browse any of the substitutions).
15332 # These are the two extra sed commands mentioned above.
15333 (echo ':t
15334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15335 if test -z "$ac_sed_cmds"; then
15336 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15337 else
15338 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15340 ac_sed_frag=`expr $ac_sed_frag + 1`
15341 ac_beg=$ac_end
15342 ac_end=`expr $ac_end + $ac_max_sed_lines`
15344 done
15345 if test -z "$ac_sed_cmds"; then
15346 ac_sed_cmds=cat
15348 fi # test -n "$CONFIG_FILES"
15350 _ACEOF
15351 cat >>$CONFIG_STATUS <<\_ACEOF
15352 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15354 case $ac_file in
15355 - | *:- | *:-:* ) # input from stdin
15356 cat >$tmp/stdin
15357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15361 * ) ac_file_in=$ac_file.in ;;
15362 esac
15364 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15366 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15367 X"$ac_file" : 'X\(//\)[^/]' \| \
15368 X"$ac_file" : 'X\(//\)$' \| \
15369 X"$ac_file" : 'X\(/\)' \| \
15370 . : '\(.\)' 2>/dev/null ||
15371 echo X"$ac_file" |
15372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15374 /^X\(\/\/\)$/{ s//\1/; q; }
15375 /^X\(\/\).*/{ s//\1/; q; }
15376 s/.*/./; q'`
15377 { if $as_mkdir_p; then
15378 mkdir -p "$ac_dir"
15379 else
15380 as_dir="$ac_dir"
15381 as_dirs=
15382 while test ! -d "$as_dir"; do
15383 as_dirs="$as_dir $as_dirs"
15384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15386 X"$as_dir" : 'X\(//\)[^/]' \| \
15387 X"$as_dir" : 'X\(//\)$' \| \
15388 X"$as_dir" : 'X\(/\)' \| \
15389 . : '\(.\)' 2>/dev/null ||
15390 echo X"$as_dir" |
15391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15393 /^X\(\/\/\)$/{ s//\1/; q; }
15394 /^X\(\/\).*/{ s//\1/; q; }
15395 s/.*/./; q'`
15396 done
15397 test ! -n "$as_dirs" || mkdir $as_dirs
15398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15400 { (exit 1); exit 1; }; }; }
15402 ac_builddir=.
15404 if test "$ac_dir" != .; then
15405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15406 # A "../" for each directory in $ac_dir_suffix.
15407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15408 else
15409 ac_dir_suffix= ac_top_builddir=
15412 case $srcdir in
15413 .) # No --srcdir option. We are building in place.
15414 ac_srcdir=.
15415 if test -z "$ac_top_builddir"; then
15416 ac_top_srcdir=.
15417 else
15418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15419 fi ;;
15420 [\\/]* | ?:[\\/]* ) # Absolute path.
15421 ac_srcdir=$srcdir$ac_dir_suffix;
15422 ac_top_srcdir=$srcdir ;;
15423 *) # Relative path.
15424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15425 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15426 esac
15428 # Do not use `cd foo && pwd` to compute absolute paths, because
15429 # the directories may not exist.
15430 case `pwd` in
15431 .) ac_abs_builddir="$ac_dir";;
15433 case "$ac_dir" in
15434 .) ac_abs_builddir=`pwd`;;
15435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15436 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15437 esac;;
15438 esac
15439 case $ac_abs_builddir in
15440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15442 case ${ac_top_builddir}. in
15443 .) ac_abs_top_builddir=$ac_abs_builddir;;
15444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15446 esac;;
15447 esac
15448 case $ac_abs_builddir in
15449 .) ac_abs_srcdir=$ac_srcdir;;
15451 case $ac_srcdir in
15452 .) ac_abs_srcdir=$ac_abs_builddir;;
15453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15455 esac;;
15456 esac
15457 case $ac_abs_builddir in
15458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15460 case $ac_top_srcdir in
15461 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15464 esac;;
15465 esac
15468 case $INSTALL in
15469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15471 esac
15473 if test x"$ac_file" != x-; then
15474 { echo "$as_me:$LINENO: creating $ac_file" >&5
15475 echo "$as_me: creating $ac_file" >&6;}
15476 rm -f "$ac_file"
15478 # Let's still pretend it is `configure' which instantiates (i.e., don't
15479 # use $as_me), people would be surprised to read:
15480 # /* config.h. Generated by config.status. */
15481 if test x"$ac_file" = x-; then
15482 configure_input=
15483 else
15484 configure_input="$ac_file. "
15486 configure_input=$configure_input"Generated from `echo $ac_file_in |
15487 sed 's,.*/,,'` by configure."
15489 # First look for the input files in the build tree, otherwise in the
15490 # src tree.
15491 ac_file_inputs=`IFS=:
15492 for f in $ac_file_in; do
15493 case $f in
15494 -) echo $tmp/stdin ;;
15495 [\\/$]*)
15496 # Absolute (can't be DOS-style, as IFS=:)
15497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15498 echo "$as_me: error: cannot find input file: $f" >&2;}
15499 { (exit 1); exit 1; }; }
15500 echo "$f";;
15501 *) # Relative
15502 if test -f "$f"; then
15503 # Build tree
15504 echo "$f"
15505 elif test -f "$srcdir/$f"; then
15506 # Source tree
15507 echo "$srcdir/$f"
15508 else
15509 # /dev/null tree
15510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15511 echo "$as_me: error: cannot find input file: $f" >&2;}
15512 { (exit 1); exit 1; }; }
15513 fi;;
15514 esac
15515 done` || { (exit 1); exit 1; }
15516 _ACEOF
15517 cat >>$CONFIG_STATUS <<_ACEOF
15518 sed "$ac_vpsub
15519 $extrasub
15520 _ACEOF
15521 cat >>$CONFIG_STATUS <<\_ACEOF
15523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15524 s,@configure_input@,$configure_input,;t t
15525 s,@srcdir@,$ac_srcdir,;t t
15526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15527 s,@top_srcdir@,$ac_top_srcdir,;t t
15528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15529 s,@builddir@,$ac_builddir,;t t
15530 s,@abs_builddir@,$ac_abs_builddir,;t t
15531 s,@top_builddir@,$ac_top_builddir,;t t
15532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15533 s,@INSTALL@,$ac_INSTALL,;t t
15534 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15535 rm -f $tmp/stdin
15536 if test x"$ac_file" != x-; then
15537 mv $tmp/out $ac_file
15538 else
15539 cat $tmp/out
15540 rm -f $tmp/out
15543 done
15544 _ACEOF
15545 cat >>$CONFIG_STATUS <<\_ACEOF
15548 # CONFIG_HEADER section.
15551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15554 # ac_d sets the value in "#define NAME VALUE" lines.
15555 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15556 ac_dB='[ ].*$,\1#\2'
15557 ac_dC=' '
15558 ac_dD=',;t'
15559 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15560 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15561 ac_uB='$,\1#\2define\3'
15562 ac_uC=' '
15563 ac_uD=',;t'
15565 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15567 case $ac_file in
15568 - | *:- | *:-:* ) # input from stdin
15569 cat >$tmp/stdin
15570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15574 * ) ac_file_in=$ac_file.in ;;
15575 esac
15577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15578 echo "$as_me: creating $ac_file" >&6;}
15580 # First look for the input files in the build tree, otherwise in the
15581 # src tree.
15582 ac_file_inputs=`IFS=:
15583 for f in $ac_file_in; do
15584 case $f in
15585 -) echo $tmp/stdin ;;
15586 [\\/$]*)
15587 # Absolute (can't be DOS-style, as IFS=:)
15588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15589 echo "$as_me: error: cannot find input file: $f" >&2;}
15590 { (exit 1); exit 1; }; }
15591 # Do quote $f, to prevent DOS paths from being IFS'd.
15592 echo "$f";;
15593 *) # Relative
15594 if test -f "$f"; then
15595 # Build tree
15596 echo "$f"
15597 elif test -f "$srcdir/$f"; then
15598 # Source tree
15599 echo "$srcdir/$f"
15600 else
15601 # /dev/null tree
15602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15603 echo "$as_me: error: cannot find input file: $f" >&2;}
15604 { (exit 1); exit 1; }; }
15605 fi;;
15606 esac
15607 done` || { (exit 1); exit 1; }
15608 # Remove the trailing spaces.
15609 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15611 _ACEOF
15613 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15614 # `conftest.undefs', that substitutes the proper values into
15615 # config.h.in to produce config.h. The first handles `#define'
15616 # templates, and the second `#undef' templates.
15617 # And first: Protect against being on the right side of a sed subst in
15618 # config.status. Protect against being in an unquoted here document
15619 # in config.status.
15620 rm -f conftest.defines conftest.undefs
15621 # Using a here document instead of a string reduces the quoting nightmare.
15622 # Putting comments in sed scripts is not portable.
15624 # `end' is used to avoid that the second main sed command (meant for
15625 # 0-ary CPP macros) applies to n-ary macro definitions.
15626 # See the Autoconf documentation for `clear'.
15627 cat >confdef2sed.sed <<\_ACEOF
15628 s/[\\&,]/\\&/g
15629 s,[\\$`],\\&,g
15630 t clear
15631 : clear
15632 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15633 t end
15634 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15635 : end
15636 _ACEOF
15637 # If some macros were called several times there might be several times
15638 # the same #defines, which is useless. Nevertheless, we may not want to
15639 # sort them, since we want the *last* AC-DEFINE to be honored.
15640 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15641 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15642 rm -f confdef2sed.sed
15644 # This sed command replaces #undef with comments. This is necessary, for
15645 # example, in the case of _POSIX_SOURCE, which is predefined and required
15646 # on some systems where configure will not decide to define it.
15647 cat >>conftest.undefs <<\_ACEOF
15648 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15649 _ACEOF
15651 # Break up conftest.defines because some shells have a limit on the size
15652 # of here documents, and old seds have small limits too (100 cmds).
15653 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15654 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15655 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15656 echo ' :' >>$CONFIG_STATUS
15657 rm -f conftest.tail
15658 while grep . conftest.defines >/dev/null
15660 # Write a limited-size here document to $tmp/defines.sed.
15661 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15662 # Speed up: don't consider the non `#define' lines.
15663 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15664 # Work around the forget-to-reset-the-flag bug.
15665 echo 't clr' >>$CONFIG_STATUS
15666 echo ': clr' >>$CONFIG_STATUS
15667 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15668 echo 'CEOF
15669 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15670 rm -f $tmp/in
15671 mv $tmp/out $tmp/in
15672 ' >>$CONFIG_STATUS
15673 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15674 rm -f conftest.defines
15675 mv conftest.tail conftest.defines
15676 done
15677 rm -f conftest.defines
15678 echo ' fi # grep' >>$CONFIG_STATUS
15679 echo >>$CONFIG_STATUS
15681 # Break up conftest.undefs because some shells have a limit on the size
15682 # of here documents, and old seds have small limits too (100 cmds).
15683 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15684 rm -f conftest.tail
15685 while grep . conftest.undefs >/dev/null
15687 # Write a limited-size here document to $tmp/undefs.sed.
15688 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15689 # Speed up: don't consider the non `#undef'
15690 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15691 # Work around the forget-to-reset-the-flag bug.
15692 echo 't clr' >>$CONFIG_STATUS
15693 echo ': clr' >>$CONFIG_STATUS
15694 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15695 echo 'CEOF
15696 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15697 rm -f $tmp/in
15698 mv $tmp/out $tmp/in
15699 ' >>$CONFIG_STATUS
15700 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15701 rm -f conftest.undefs
15702 mv conftest.tail conftest.undefs
15703 done
15704 rm -f conftest.undefs
15706 cat >>$CONFIG_STATUS <<\_ACEOF
15707 # Let's still pretend it is `configure' which instantiates (i.e., don't
15708 # use $as_me), people would be surprised to read:
15709 # /* config.h. Generated by config.status. */
15710 if test x"$ac_file" = x-; then
15711 echo "/* Generated by configure. */" >$tmp/config.h
15712 else
15713 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15715 cat $tmp/in >>$tmp/config.h
15716 rm -f $tmp/in
15717 if test x"$ac_file" != x-; then
15718 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15719 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15720 echo "$as_me: $ac_file is unchanged" >&6;}
15721 else
15722 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15724 X"$ac_file" : 'X\(//\)[^/]' \| \
15725 X"$ac_file" : 'X\(//\)$' \| \
15726 X"$ac_file" : 'X\(/\)' \| \
15727 . : '\(.\)' 2>/dev/null ||
15728 echo X"$ac_file" |
15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15731 /^X\(\/\/\)$/{ s//\1/; q; }
15732 /^X\(\/\).*/{ s//\1/; q; }
15733 s/.*/./; q'`
15734 { if $as_mkdir_p; then
15735 mkdir -p "$ac_dir"
15736 else
15737 as_dir="$ac_dir"
15738 as_dirs=
15739 while test ! -d "$as_dir"; do
15740 as_dirs="$as_dir $as_dirs"
15741 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743 X"$as_dir" : 'X\(//\)[^/]' \| \
15744 X"$as_dir" : 'X\(//\)$' \| \
15745 X"$as_dir" : 'X\(/\)' \| \
15746 . : '\(.\)' 2>/dev/null ||
15747 echo X"$as_dir" |
15748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15750 /^X\(\/\/\)$/{ s//\1/; q; }
15751 /^X\(\/\).*/{ s//\1/; q; }
15752 s/.*/./; q'`
15753 done
15754 test ! -n "$as_dirs" || mkdir $as_dirs
15755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15756 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15757 { (exit 1); exit 1; }; }; }
15759 rm -f $ac_file
15760 mv $tmp/config.h $ac_file
15762 else
15763 cat $tmp/config.h
15764 rm -f $tmp/config.h
15766 # Compute $ac_file's index in $config_headers.
15767 _am_stamp_count=1
15768 for _am_header in $config_headers :; do
15769 case $_am_header in
15770 $ac_file | $ac_file:* )
15771 break ;;
15773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15774 esac
15775 done
15776 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15777 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X$ac_file : 'X\(//\)[^/]' \| \
15779 X$ac_file : 'X\(//\)$' \| \
15780 X$ac_file : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15782 echo X$ac_file |
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15787 s/.*/./; q'`/stamp-h$_am_stamp_count
15788 done
15789 _ACEOF
15790 cat >>$CONFIG_STATUS <<\_ACEOF
15793 # CONFIG_COMMANDS section.
15795 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15798 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800 X"$ac_dest" : 'X\(//\)[^/]' \| \
15801 X"$ac_dest" : 'X\(//\)$' \| \
15802 X"$ac_dest" : 'X\(/\)' \| \
15803 . : '\(.\)' 2>/dev/null ||
15804 echo X"$ac_dest" |
15805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15807 /^X\(\/\/\)$/{ s//\1/; q; }
15808 /^X\(\/\).*/{ s//\1/; q; }
15809 s/.*/./; q'`
15810 { if $as_mkdir_p; then
15811 mkdir -p "$ac_dir"
15812 else
15813 as_dir="$ac_dir"
15814 as_dirs=
15815 while test ! -d "$as_dir"; do
15816 as_dirs="$as_dir $as_dirs"
15817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15819 X"$as_dir" : 'X\(//\)[^/]' \| \
15820 X"$as_dir" : 'X\(//\)$' \| \
15821 X"$as_dir" : 'X\(/\)' \| \
15822 . : '\(.\)' 2>/dev/null ||
15823 echo X"$as_dir" |
15824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15826 /^X\(\/\/\)$/{ s//\1/; q; }
15827 /^X\(\/\).*/{ s//\1/; q; }
15828 s/.*/./; q'`
15829 done
15830 test ! -n "$as_dirs" || mkdir $as_dirs
15831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15833 { (exit 1); exit 1; }; }; }
15835 ac_builddir=.
15837 if test "$ac_dir" != .; then
15838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15839 # A "../" for each directory in $ac_dir_suffix.
15840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15841 else
15842 ac_dir_suffix= ac_top_builddir=
15845 case $srcdir in
15846 .) # No --srcdir option. We are building in place.
15847 ac_srcdir=.
15848 if test -z "$ac_top_builddir"; then
15849 ac_top_srcdir=.
15850 else
15851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15852 fi ;;
15853 [\\/]* | ?:[\\/]* ) # Absolute path.
15854 ac_srcdir=$srcdir$ac_dir_suffix;
15855 ac_top_srcdir=$srcdir ;;
15856 *) # Relative path.
15857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15859 esac
15861 # Do not use `cd foo && pwd` to compute absolute paths, because
15862 # the directories may not exist.
15863 case `pwd` in
15864 .) ac_abs_builddir="$ac_dir";;
15866 case "$ac_dir" in
15867 .) ac_abs_builddir=`pwd`;;
15868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15869 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15870 esac;;
15871 esac
15872 case $ac_abs_builddir in
15873 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15875 case ${ac_top_builddir}. in
15876 .) ac_abs_top_builddir=$ac_abs_builddir;;
15877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15879 esac;;
15880 esac
15881 case $ac_abs_builddir in
15882 .) ac_abs_srcdir=$ac_srcdir;;
15884 case $ac_srcdir in
15885 .) ac_abs_srcdir=$ac_abs_builddir;;
15886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15888 esac;;
15889 esac
15890 case $ac_abs_builddir in
15891 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15893 case $ac_top_srcdir in
15894 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15897 esac;;
15898 esac
15901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15902 echo "$as_me: executing $ac_dest commands" >&6;}
15903 case $ac_dest in
15904 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15905 # Strip MF so we end up with the name of the file.
15906 mf=`echo "$mf" | sed -e 's/:.*$//'`
15907 # Check whether this is an Automake generated Makefile or not.
15908 # We used to match only the files named `Makefile.in', but
15909 # some people rename them; so instead we look at the file content.
15910 # Grep'ing the first line is not enough: some people post-process
15911 # each Makefile.in and add a new line on top of each file to say so.
15912 # So let's grep whole file.
15913 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15914 dirpart=`(dirname "$mf") 2>/dev/null ||
15915 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15916 X"$mf" : 'X\(//\)[^/]' \| \
15917 X"$mf" : 'X\(//\)$' \| \
15918 X"$mf" : 'X\(/\)' \| \
15919 . : '\(.\)' 2>/dev/null ||
15920 echo X"$mf" |
15921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15923 /^X\(\/\/\)$/{ s//\1/; q; }
15924 /^X\(\/\).*/{ s//\1/; q; }
15925 s/.*/./; q'`
15926 else
15927 continue
15929 # Extract the definition of DEPDIR, am__include, and am__quote
15930 # from the Makefile without running `make'.
15931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15932 test -z "$DEPDIR" && continue
15933 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15934 test -z "am__include" && continue
15935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15936 # When using ansi2knr, U may be empty or an underscore; expand it
15937 U=`sed -n 's/^U = //p' < "$mf"`
15938 # Find all dependency output files, they are included files with
15939 # $(DEPDIR) in their names. We invoke sed twice because it is the
15940 # simplest approach to changing $(DEPDIR) to its actual value in the
15941 # expansion.
15942 for file in `sed -n "
15943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15945 # Make sure the directory exists.
15946 test -f "$dirpart/$file" && continue
15947 fdir=`(dirname "$file") 2>/dev/null ||
15948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15949 X"$file" : 'X\(//\)[^/]' \| \
15950 X"$file" : 'X\(//\)$' \| \
15951 X"$file" : 'X\(/\)' \| \
15952 . : '\(.\)' 2>/dev/null ||
15953 echo X"$file" |
15954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15956 /^X\(\/\/\)$/{ s//\1/; q; }
15957 /^X\(\/\).*/{ s//\1/; q; }
15958 s/.*/./; q'`
15959 { if $as_mkdir_p; then
15960 mkdir -p $dirpart/$fdir
15961 else
15962 as_dir=$dirpart/$fdir
15963 as_dirs=
15964 while test ! -d "$as_dir"; do
15965 as_dirs="$as_dir $as_dirs"
15966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15968 X"$as_dir" : 'X\(//\)[^/]' \| \
15969 X"$as_dir" : 'X\(//\)$' \| \
15970 X"$as_dir" : 'X\(/\)' \| \
15971 . : '\(.\)' 2>/dev/null ||
15972 echo X"$as_dir" |
15973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15975 /^X\(\/\/\)$/{ s//\1/; q; }
15976 /^X\(\/\).*/{ s//\1/; q; }
15977 s/.*/./; q'`
15978 done
15979 test ! -n "$as_dirs" || mkdir $as_dirs
15980 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15981 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15982 { (exit 1); exit 1; }; }; }
15984 # echo "creating $dirpart/$file"
15985 echo '# dummy' > "$dirpart/$file"
15986 done
15987 done
15989 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15990 esac
15991 done
15992 _ACEOF
15994 cat >>$CONFIG_STATUS <<\_ACEOF
15996 { (exit 0); exit 0; }
15997 _ACEOF
15998 chmod +x $CONFIG_STATUS
15999 ac_clean_files=$ac_clean_files_save
16002 # configure is writing to config.log, and then calls config.status.
16003 # config.status does its own redirection, appending to config.log.
16004 # Unfortunately, on DOS this fails, as config.log is still kept open
16005 # by configure, so config.status won't be able to write to it; its
16006 # output is simply discarded. So we exec the FD to /dev/null,
16007 # effectively closing config.log, so it can be properly (re)opened and
16008 # appended to by config.status. When coming back to configure, we
16009 # need to make the FD available again.
16010 if test "$no_create" != yes; then
16011 ac_cs_success=:
16012 ac_config_status_args=
16013 test "$silent" = yes &&
16014 ac_config_status_args="$ac_config_status_args --quiet"
16015 exec 5>/dev/null
16016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16017 exec 5>>config.log
16018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16019 # would make configure fail if this is the last instruction.
16020 $ac_cs_success || { (exit 1); exit 1; }