* configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix
[binutils.git] / bfd / configure
blob203ecfa941eaf0dc485c5ccf8578961367e04f4d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL VERSUFFIX WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings Enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-versuffix=SFX Append SFX to the version string
877 --with-included-gettext use the GNU gettext library included here
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 _ACEOF
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 cd $ac_popdir
980 done
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991 exit 0
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1001 $ $0 $@
1003 _ACEOF
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 _ASUNAME
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035 done
1037 } >&5
1039 cat >&5 <<_ACEOF
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1046 _ACEOF
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_configure_args=
1055 ac_configure_args0=
1056 ac_configure_args1=
1057 ac_sep=
1058 ac_must_keep_next=false
1059 for ac_pass in 1 2
1061 for ac_arg
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1094 esac
1095 done
1096 done
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1108 echo
1110 cat <<\_ASBOX
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1114 _ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 esac;
1131 echo
1133 cat <<\_ASBOX
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148 ## ------------- ##
1149 ## Output files. ##
1150 ## ------------- ##
1151 _ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163 ## ----------- ##
1164 ## confdefs.h. ##
1165 ## ----------- ##
1166 _ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 done
1182 ac_signal=0
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 echo >confdefs.h
1189 # Predefined preprocessor variables.
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 _ACEOF
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1232 done
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1245 else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1251 # Check that the precious variables saved in the cache have kept the same
1252 # value.
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1293 done
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_aux_dir=
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Make sure we can run config.sub.
1354 $ac_config_sub sun4 >/dev/null 2>&1 ||
1355 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1356 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1357 { (exit 1); exit 1; }; }
1359 echo "$as_me:$LINENO: checking build system type" >&5
1360 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1361 if test "${ac_cv_build+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 ac_cv_build_alias=$build_alias
1365 test -z "$ac_cv_build_alias" &&
1366 ac_cv_build_alias=`$ac_config_guess`
1367 test -z "$ac_cv_build_alias" &&
1368 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1369 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1370 { (exit 1); exit 1; }; }
1371 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1378 echo "${ECHO_T}$ac_cv_build" >&6
1379 build=$ac_cv_build
1380 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 echo "$as_me:$LINENO: checking host system type" >&5
1386 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1387 if test "${ac_cv_host+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390 ac_cv_host_alias=$host_alias
1391 test -z "$ac_cv_host_alias" &&
1392 ac_cv_host_alias=$ac_cv_build_alias
1393 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1400 echo "${ECHO_T}$ac_cv_host" >&6
1401 host=$ac_cv_host
1402 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:$LINENO: checking target system type" >&5
1408 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1409 if test "${ac_cv_target+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 ac_cv_target_alias=$target_alias
1413 test "x$ac_cv_target_alias" = "x" &&
1414 ac_cv_target_alias=$ac_cv_host_alias
1415 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1422 echo "${ECHO_T}$ac_cv_target" >&6
1423 target=$ac_cv_target
1424 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 # The aliases save the names the user supplied, while $host etc.
1430 # will get canonicalized.
1431 test -n "$target_alias" &&
1432 test "$program_prefix$program_suffix$program_transform_name" = \
1433 NONENONEs,x,x, &&
1434 program_prefix=${target_alias}-
1435 ac_ext=c
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1500 done
1501 done
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1514 CC=$ac_ct_CC
1515 else
1516 CC="$ac_cv_prog_CC"
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1542 done
1543 done
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1580 done
1581 done
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 CC=$ac_ct_CC
1595 else
1596 CC="$ac_cv_prog_CC"
1600 if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602 set dummy cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 ac_prog_rejected=no
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1630 if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
1634 if test $# != 0; then
1635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$CC" && break
1694 done
1696 if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701 set dummy $ac_prog; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1721 done
1722 done
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 test -n "$ac_ct_CC" && break
1736 done
1738 CC=$ac_ct_CC
1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: no acceptable C compiler found in \$PATH
1747 See \`config.log' for more details." >&2;}
1748 { (exit 1); exit 1; }; }
1750 # Provide some information about the compiler.
1751 echo "$as_me:$LINENO:" \
1752 "checking for C compiler version" >&5
1753 ac_compiler=`set X $ac_compile; echo $2`
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1755 (eval $ac_compiler --version </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1760 (eval $ac_compiler -v </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1765 (eval $ac_compiler -V </dev/null >&5) 2>&5
1766 ac_status=$?
1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768 (exit $ac_status); }
1770 cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h. */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1778 main ()
1782 return 0;
1784 _ACEOF
1785 ac_clean_files_save=$ac_clean_files
1786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1789 # of exeext.
1790 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # resort.
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 ac_cv_exeext=
1805 # b.out is created by i960 compilers.
1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 conftest.$ac_ext )
1813 # This is the source file.
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1827 break;;
1828 esac
1829 done
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877 ac_clean_files=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 # `rm'.
1896 for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905 done
1906 else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.$ac_ext
1919 EXEEXT=$ac_cv_exeext
1920 ac_exeext=$EXEEXT
1921 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1923 if test "${ac_cv_objext+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926 cat >conftest.$ac_ext <<_ACEOF
1927 /* confdefs.h. */
1928 _ACEOF
1929 cat confdefs.h >>conftest.$ac_ext
1930 cat >>conftest.$ac_ext <<_ACEOF
1931 /* end confdefs.h. */
1934 main ()
1938 return 0;
1940 _ACEOF
1941 rm -f conftest.o conftest.obj
1942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 break;;
1952 esac
1953 done
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1961 See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1968 echo "${ECHO_T}$ac_cv_objext" >&6
1969 OBJEXT=$ac_cv_objext
1970 ac_objext=$OBJEXT
1971 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 cat >conftest.$ac_ext <<_ACEOF
1977 /* confdefs.h. */
1978 _ACEOF
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1984 main ()
1986 #ifndef __GNUC__
1987 choke me
1988 #endif
1991 return 0;
1993 _ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>conftest.er1
1997 ac_status=$?
1998 grep -v '^ *+' conftest.er1 >conftest.err
1999 rm -f conftest.er1
2000 cat conftest.err >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -z "$ac_c_werror_flag"
2004 || test ! -s conftest.err'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 ac_compiler_gnu=yes
2017 else
2018 echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_compiler_gnu=no
2023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2027 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2028 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2029 GCC=`test $ac_compiler_gnu = yes && echo yes`
2030 ac_test_CFLAGS=${CFLAGS+set}
2031 ac_save_CFLAGS=$CFLAGS
2032 CFLAGS="-g"
2033 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2035 if test "${ac_cv_prog_cc_g+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 cat >conftest.$ac_ext <<_ACEOF
2039 /* confdefs.h. */
2040 _ACEOF
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h. */
2046 main ()
2050 return 0;
2052 _ACEOF
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2056 ac_status=$?
2057 grep -v '^ *+' conftest.er1 >conftest.err
2058 rm -f conftest.er1
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_g=yes
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_cv_prog_cc_g=no
2082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2086 if test "$ac_test_CFLAGS" = set; then
2087 CFLAGS=$ac_save_CFLAGS
2088 elif test $ac_cv_prog_cc_g = yes; then
2089 if test "$GCC" = yes; then
2090 CFLAGS="-g -O2"
2091 else
2092 CFLAGS="-g"
2094 else
2095 if test "$GCC" = yes; then
2096 CFLAGS="-O2"
2097 else
2098 CFLAGS=
2101 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2102 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2103 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 ac_cv_prog_cc_stdc=no
2107 ac_save_CC=$CC
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2114 #include <stdarg.h>
2115 #include <stdio.h>
2116 #include <sys/types.h>
2117 #include <sys/stat.h>
2118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2119 struct buf { int x; };
2120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2121 static char *e (p, i)
2122 char **p;
2123 int i;
2125 return p[i];
2127 static char *f (char * (*g) (char **, int), char **p, ...)
2129 char *s;
2130 va_list v;
2131 va_start (v,p);
2132 s = g (p, va_arg (v,int));
2133 va_end (v);
2134 return s;
2137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2138 function prototypes and stuff, but not '\xHH' hex character constants.
2139 These don't provoke an error unfortunately, instead are silently treated
2140 as 'x'. The following induces an error, until -std1 is added to get
2141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2142 array size at least. It's necessary to write '\x00'==0 to get something
2143 that's true only with -std1. */
2144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146 int test (int i, double x);
2147 struct s1 {int (*f) (int a);};
2148 struct s2 {int (*f) (double a);};
2149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2150 int argc;
2151 char **argv;
2153 main ()
2155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 return 0;
2159 _ACEOF
2160 # Don't try gcc -ansi; that turns off useful extensions and
2161 # breaks some systems' header files.
2162 # AIX -qlanglvl=ansi
2163 # Ultrix and OSF/1 -std1
2164 # HP-UX 10.20 and later -Ae
2165 # HP-UX older versions -Aa -D_HPUX_SOURCE
2166 # SVR4 -Xc -D__EXTENSIONS__
2167 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169 CC="$ac_save_CC $ac_arg"
2170 rm -f conftest.$ac_objext
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_cv_prog_cc_stdc=$ac_arg
2193 break
2194 else
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2199 rm -f conftest.err conftest.$ac_objext
2200 done
2201 rm -f conftest.$ac_ext conftest.$ac_objext
2202 CC=$ac_save_CC
2206 case "x$ac_cv_prog_cc_stdc" in
2207 x|xno)
2208 echo "$as_me:$LINENO: result: none needed" >&5
2209 echo "${ECHO_T}none needed" >&6 ;;
2211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2212 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2213 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 esac
2216 # Some people use a C++ compiler to compile C. Since we use `exit',
2217 # in C++ we need to declare it. In case someone uses the same compiler
2218 # for both compiling C and C++ we need to have the C++ compiler decide
2219 # the declaration of exit, since it's the most demanding environment.
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #ifndef __cplusplus
2222 choke me
2223 #endif
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 for ac_declaration in \
2248 '' \
2249 'extern "C" void std::exit (int) throw (); using std::exit;' \
2250 'extern "C" void std::exit (int); using std::exit;' \
2251 'extern "C" void exit (int) throw ();' \
2252 'extern "C" void exit (int);' \
2253 'void exit (int);'
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261 $ac_declaration
2262 #include <stdlib.h>
2264 main ()
2266 exit (42);
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2274 ac_status=$?
2275 grep -v '^ *+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -z "$ac_c_werror_flag"
2281 || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 continue
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2307 $ac_declaration
2309 main ()
2311 exit (42);
2313 return 0;
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>conftest.er1
2319 ac_status=$?
2320 grep -v '^ *+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -z "$ac_c_werror_flag"
2326 || test ! -s conftest.err'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 break
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 done
2346 rm -f conftest*
2347 if test -n "$ac_declaration"; then
2348 echo '#ifdef __cplusplus' >>confdefs.h
2349 echo $ac_declaration >>confdefs.h
2350 echo '#endif' >>confdefs.h
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2367 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2368 if test "${ac_cv_search_strerror+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 ac_func_search_save_LIBS=$LIBS
2372 ac_cv_search_strerror=no
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 #ifdef __cplusplus
2382 extern "C"
2383 #endif
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386 char strerror ();
2388 main ()
2390 strerror ();
2392 return 0;
2394 _ACEOF
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest$ac_exeext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_cv_search_strerror="none required"
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f conftest.err conftest.$ac_objext \
2424 conftest$ac_exeext conftest.$ac_ext
2425 if test "$ac_cv_search_strerror" = no; then
2426 for ac_lib in cposix; do
2427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 #ifdef __cplusplus
2437 extern "C"
2438 #endif
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char strerror ();
2443 main ()
2445 strerror ();
2447 return 0;
2449 _ACEOF
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2452 (eval $ac_link) 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest$ac_exeext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_search_strerror="-l$ac_lib"
2473 break
2474 else
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2479 rm -f conftest.err conftest.$ac_objext \
2480 conftest$ac_exeext conftest.$ac_ext
2481 done
2483 LIBS=$ac_func_search_save_LIBS
2485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487 if test "$ac_cv_search_strerror" != no; then
2488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2493 am__api_version="1.9"
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2500 # AIX /bin/install
2501 # AmigaOS /C/install, which installs bootblocks on floppy discs
2502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505 # OS/2's system install, which has a completely different semantic
2506 # ./install, which can be erroneously created by make from ./install.sh.
2507 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2508 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2509 if test -z "$INSTALL"; then
2510 if test "${ac_cv_path_install+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519 case $as_dir/ in
2520 ./ | .// | /cC/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2523 /usr/ucb/* ) ;;
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2531 if test $ac_prog = install &&
2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # AIX install. It has an incompatible calling convention.
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2539 else
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 break 3
2544 done
2545 done
2547 esac
2548 done
2552 if test "${ac_cv_path_install+set}" = set; then
2553 INSTALL=$ac_cv_path_install
2554 else
2555 # As a last resort, use the slow shell script. We don't cache a
2556 # path for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the path is relative.
2559 INSTALL=$ac_install_sh
2562 echo "$as_me:$LINENO: result: $INSTALL" >&5
2563 echo "${ECHO_T}$INSTALL" >&6
2565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566 # It thinks the first close brace ends the variable substitution.
2567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2574 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2575 # Just in case
2576 sleep 1
2577 echo timestamp > conftest.file
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2586 # -L didn't work.
2587 set X `ls -t $srcdir/configure conftest.file`
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&5
2599 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
2604 test "$2" = conftest.file
2606 then
2607 # Ok.
2609 else
2610 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2611 Check your system clock" >&5
2612 echo "$as_me: error: newly created file is older than distributed files!
2613 Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
2616 echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2623 # Double any \ or $. echo might interpret backslashes.
2624 # By default was `s,x,x', remove it if useless.
2625 cat <<\_ACEOF >conftest.sed
2626 s/[\\$]/&&/g;s/;s,x,x,$//
2627 _ACEOF
2628 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2629 rm conftest.sed
2631 # expand $ac_aux_dir to an absolute path
2632 am_aux_dir=`cd $ac_aux_dir && pwd`
2634 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2635 # Use eval to expand $SHELL
2636 if eval "$MISSING --run true"; then
2637 am_missing_run="$MISSING --run "
2638 else
2639 am_missing_run=
2640 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2641 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2645 # We used to keeping the `.' as first argument, in order to
2646 # allow $(mkdir_p) to be used without argument. As in
2647 # $(mkdir_p) $(somedir)
2648 # where $(somedir) is conditionally defined. However this is wrong
2649 # for two reasons:
2650 # 1. if the package is installed by a user who cannot write `.'
2651 # make install will fail,
2652 # 2. the above comment should most certainly read
2653 # $(mkdir_p) $(DESTDIR)$(somedir)
2654 # so it does not work when $(somedir) is undefined and
2655 # $(DESTDIR) is not.
2656 # To support the latter case, we have to write
2657 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2658 # so the `.' trick is pointless.
2659 mkdir_p='mkdir -p --'
2660 else
2661 # On NextStep and OpenStep, the `mkdir' command does not
2662 # recognize any option. It will interpret all options as
2663 # directories to create, and then abort because `.' already
2664 # exists.
2665 for d in ./-p ./--version;
2667 test -d $d && rmdir $d
2668 done
2669 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2670 if test -f "$ac_aux_dir/mkinstalldirs"; then
2671 mkdir_p='$(mkinstalldirs)'
2672 else
2673 mkdir_p='$(install_sh) -d'
2677 for ac_prog in gawk mawk nawk awk
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_prog_AWK+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2705 AWK=$ac_cv_prog_AWK
2706 if test -n "$AWK"; then
2707 echo "$as_me:$LINENO: result: $AWK" >&5
2708 echo "${ECHO_T}$AWK" >&6
2709 else
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2714 test -n "$AWK" && break
2715 done
2717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.make <<\_ACEOF
2724 all:
2725 @echo 'ac_maketemp="$(MAKE)"'
2726 _ACEOF
2727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2729 if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_${ac_make}_set=yes
2731 else
2732 eval ac_cv_prog_make_${ac_make}_set=no
2734 rm -f conftest.make
2736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738 echo "${ECHO_T}yes" >&6
2739 SET_MAKE=
2740 else
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743 SET_MAKE="MAKE=${MAKE-make}"
2746 rm -rf .tst 2>/dev/null
2747 mkdir .tst 2>/dev/null
2748 if test -d .tst; then
2749 am__leading_dot=.
2750 else
2751 am__leading_dot=_
2753 rmdir .tst 2>/dev/null
2755 DEPDIR="${am__leading_dot}deps"
2757 ac_config_commands="$ac_config_commands depfiles"
2760 am_make=${MAKE-make}
2761 cat > confinc << 'END'
2762 am__doit:
2763 @echo done
2764 .PHONY: am__doit
2766 # If we don't find an include directive, just comment out the code.
2767 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2768 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2769 am__include="#"
2770 am__quote=
2771 _am_result=none
2772 # First try GNU make style include.
2773 echo "include confinc" > confmf
2774 # We grep out `Entering directory' and `Leaving directory'
2775 # messages which can occur if `w' ends up in MAKEFLAGS.
2776 # In particular we don't look at `^make:' because GNU make might
2777 # be invoked under some other name (usually "gmake"), in which
2778 # case it prints its new name instead of `make'.
2779 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2780 am__include=include
2781 am__quote=
2782 _am_result=GNU
2784 # Now try BSD make style include.
2785 if test "$am__include" = "#"; then
2786 echo '.include "confinc"' > confmf
2787 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2788 am__include=.include
2789 am__quote="\""
2790 _am_result=BSD
2795 echo "$as_me:$LINENO: result: $_am_result" >&5
2796 echo "${ECHO_T}$_am_result" >&6
2797 rm -f confinc confmf
2799 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2800 if test "${enable_dependency_tracking+set}" = set; then
2801 enableval="$enable_dependency_tracking"
2804 if test "x$enable_dependency_tracking" != xno; then
2805 am_depcomp="$ac_aux_dir/depcomp"
2806 AMDEPBACKSLASH='\'
2810 if test "x$enable_dependency_tracking" != xno; then
2811 AMDEP_TRUE=
2812 AMDEP_FALSE='#'
2813 else
2814 AMDEP_TRUE='#'
2815 AMDEP_FALSE=
2820 # test to see if srcdir already configured
2821 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2822 test -f $srcdir/config.status; then
2823 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2824 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2825 { (exit 1); exit 1; }; }
2828 # test whether we have cygpath
2829 if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2832 else
2833 CYGPATH_W=echo
2838 # Define the identity of the package.
2839 PACKAGE=bfd
2840 VERSION=2.17
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE "$PACKAGE"
2845 _ACEOF
2848 cat >>confdefs.h <<_ACEOF
2849 #define VERSION "$VERSION"
2850 _ACEOF
2852 # Some tools Automake needs.
2854 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2870 # Installed binaries are usually stripped using `strip' when the user
2871 # run `make install-strip'. However `strip' might not be the right
2872 # tool to use in cross-compilation environments, therefore Automake
2873 # will honor the `STRIP' environment variable to overrule this program.
2874 if test "$cross_compiling" != no; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}strip; ac_word=$2
2878 echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880 if test "${ac_cv_prog_STRIP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -n "$STRIP"; then
2884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 echo "$as_me:$LINENO: result: $STRIP" >&5
2905 echo "${ECHO_T}$STRIP" >&6
2906 else
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2912 if test -z "$ac_cv_prog_STRIP"; then
2913 ac_ct_STRIP=$STRIP
2914 # Extract the first word of "strip", so it can be a program name with args.
2915 set dummy strip; ac_word=$2
2916 echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 if test -n "$ac_ct_STRIP"; then
2922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_ac_ct_STRIP="strip"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2942 if test -n "$ac_ct_STRIP"; then
2943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2944 echo "${ECHO_T}$ac_ct_STRIP" >&6
2945 else
2946 echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2950 STRIP=$ac_ct_STRIP
2951 else
2952 STRIP="$ac_cv_prog_STRIP"
2956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958 # We need awk for the "check" target. The system "awk" is bad on
2959 # some platforms.
2960 # Always define AMTAR for backward compatibility.
2962 AMTAR=${AMTAR-"${am_missing_run}tar"}
2964 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2969 depcc="$CC" am_compiler_list=
2971 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2972 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2973 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2977 # We make a subdir and do the tests there. Otherwise we can end up
2978 # making bogus files that we don't know about and never remove. For
2979 # instance it was reported that on HP-UX the gcc test will end up
2980 # making a dummy file named `D' -- because `-MD' means `put the output
2981 # in D'.
2982 mkdir conftest.dir
2983 # Copy depcomp to subdir because otherwise we won't find it if we're
2984 # using a relative directory.
2985 cp "$am_depcomp" conftest.dir
2986 cd conftest.dir
2987 # We will build objects and dependencies in a subdirectory because
2988 # it helps to detect inapplicable dependency modes. For instance
2989 # both Tru64's cc and ICC support -MD to output dependencies as a
2990 # side effect of compilation, but ICC will put the dependencies in
2991 # the current directory while Tru64 will put them in the object
2992 # directory.
2993 mkdir sub
2995 am_cv_CC_dependencies_compiler_type=none
2996 if test "$am_compiler_list" = ""; then
2997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 for depmode in $am_compiler_list; do
3000 # Setup a source with many dependencies, because some compilers
3001 # like to wrap large dependency lists on column 80 (with \), and
3002 # we should not choose a depcomp mode which is confused by this.
3004 # We need to recreate these files for each test, as the compiler may
3005 # overwrite some of them when testing with obscure command lines.
3006 # This happens at least with the AIX C compiler.
3007 : > sub/conftest.c
3008 for i in 1 2 3 4 5 6; do
3009 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3010 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3011 # Solaris 8's {/usr,}/bin/sh.
3012 touch sub/conftst$i.h
3013 done
3014 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016 case $depmode in
3017 nosideeffect)
3018 # after this tag, mechanisms are not by side-effect, so they'll
3019 # only be used when explicitly requested
3020 if test "x$enable_dependency_tracking" = xyes; then
3021 continue
3022 else
3023 break
3026 none) break ;;
3027 esac
3028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3029 # mode. It turns out that the SunPro C++ compiler does not properly
3030 # handle `-M -o', and we need to detect this.
3031 if depmode=$depmode \
3032 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3034 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3035 >/dev/null 2>conftest.err &&
3036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3037 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3039 # icc doesn't choke on unknown options, it will just issue warnings
3040 # or remarks (even with -Werror). So we grep stderr for any message
3041 # that says an option was ignored or not supported.
3042 # When given -MP, icc 7.0 and 7.1 complain thusly:
3043 # icc: Command line warning: ignoring option '-M'; no argument required
3044 # The diagnosis changed in icc 8.0:
3045 # icc: Command line remark: option '-MP' not supported
3046 if (grep 'ignoring option' conftest.err ||
3047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3048 am_cv_CC_dependencies_compiler_type=$depmode
3049 break
3052 done
3054 cd ..
3055 rm -rf conftest.dir
3056 else
3057 am_cv_CC_dependencies_compiler_type=none
3061 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3062 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3068 test "x$enable_dependency_tracking" != xno \
3069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3070 am__fastdepCC_TRUE=
3071 am__fastdepCC_FALSE='#'
3072 else
3073 am__fastdepCC_TRUE='#'
3074 am__fastdepCC_FALSE=
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}ar; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_AR+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -n "$AR"; then
3089 ac_cv_prog_AR="$AR" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_AR="${ac_tool_prefix}ar"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3107 AR=$ac_cv_prog_AR
3108 if test -n "$AR"; then
3109 echo "$as_me:$LINENO: result: $AR" >&5
3110 echo "${ECHO_T}$AR" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3117 if test -z "$ac_cv_prog_AR"; then
3118 ac_ct_AR=$AR
3119 # Extract the first word of "ar", so it can be a program name with args.
3120 set dummy ar; ac_word=$2
3121 echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 if test -n "$ac_ct_AR"; then
3127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_AR="ar"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3146 if test -n "$ac_ct_AR"; then
3147 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3148 echo "${ECHO_T}$ac_ct_AR" >&6
3149 else
3150 echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3154 AR=$ac_ct_AR
3155 else
3156 AR="$ac_cv_prog_AR"
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_RANLIB+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3186 RANLIB=$ac_cv_prog_RANLIB
3187 if test -n "$RANLIB"; then
3188 echo "$as_me:$LINENO: result: $RANLIB" >&5
3189 echo "${ECHO_T}$RANLIB" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$ac_cv_prog_RANLIB"; then
3197 ac_ct_RANLIB=$RANLIB
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 if test -n "$ac_ct_RANLIB"; then
3206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_RANLIB="ranlib"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3226 if test -n "$ac_ct_RANLIB"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 RANLIB=$ac_ct_RANLIB
3235 else
3236 RANLIB="$ac_cv_prog_RANLIB"
3240 # Check whether --enable-shared or --disable-shared was given.
3241 if test "${enable_shared+set}" = set; then
3242 enableval="$enable_shared"
3243 p=${PACKAGE-default}
3244 case $enableval in
3245 yes) enable_shared=yes ;;
3246 no) enable_shared=no ;;
3248 enable_shared=no
3249 # Look at the argument we got. We use all the common list separators.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3251 for pkg in $enableval; do
3252 if test "X$pkg" = "X$p"; then
3253 enable_shared=yes
3255 done
3256 IFS="$ac_save_ifs"
3258 esac
3259 else
3260 enable_shared=no
3263 # Check whether --enable-static or --disable-static was given.
3264 if test "${enable_static+set}" = set; then
3265 enableval="$enable_static"
3266 p=${PACKAGE-default}
3267 case $enableval in
3268 yes) enable_static=yes ;;
3269 no) enable_static=no ;;
3271 enable_static=no
3272 # Look at the argument we got. We use all the common list separators.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3274 for pkg in $enableval; do
3275 if test "X$pkg" = "X$p"; then
3276 enable_static=yes
3278 done
3279 IFS="$ac_save_ifs"
3281 esac
3282 else
3283 enable_static=yes
3285 # Check whether --enable-fast-install or --disable-fast-install was given.
3286 if test "${enable_fast_install+set}" = set; then
3287 enableval="$enable_fast_install"
3288 p=${PACKAGE-default}
3289 case $enableval in
3290 yes) enable_fast_install=yes ;;
3291 no) enable_fast_install=no ;;
3293 enable_fast_install=no
3294 # Look at the argument we got. We use all the common list separators.
3295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3296 for pkg in $enableval; do
3297 if test "X$pkg" = "X$p"; then
3298 enable_fast_install=yes
3300 done
3301 IFS="$ac_save_ifs"
3303 esac
3304 else
3305 enable_fast_install=yes
3308 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3309 if test "${with_gnu_ld+set}" = set; then
3310 withval="$with_gnu_ld"
3311 test "$withval" = no || with_gnu_ld=yes
3312 else
3313 with_gnu_ld=no
3315 ac_prog=ld
3316 if test "$GCC" = yes; then
3317 # Check if gcc -print-prog-name=ld gives a path.
3318 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3319 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3320 case $host in
3321 *-*-mingw*)
3322 # gcc leaves a trailing carriage return which upsets mingw
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3326 esac
3327 case $ac_prog in
3328 # Accept absolute paths.
3329 [\\/]* | [A-Za-z]:[\\/]*)
3330 re_direlt='/[^/][^/]*/\.\./'
3331 # Canonicalize the path of ld
3332 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3334 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3335 done
3336 test -z "$LD" && LD="$ac_prog"
3339 # If it fails, then pretend we aren't using GCC.
3340 ac_prog=ld
3343 # If it is relative, then search for the first ld in PATH.
3344 with_gnu_ld=unknown
3346 esac
3347 elif test "$with_gnu_ld" = yes; then
3348 echo "$as_me:$LINENO: checking for GNU ld" >&5
3349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3350 else
3351 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_path_LD+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -z "$LD"; then
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3359 for ac_dir in $PATH; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3362 lt_cv_path_LD="$ac_dir/$ac_prog"
3363 # Check to see if the program is GNU ld. I'd rather use --version,
3364 # but apparently some GNU ld's only accept -v.
3365 # Break only if it was the GNU/non-GNU ld that we prefer.
3366 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3367 test "$with_gnu_ld" != no && break
3368 else
3369 test "$with_gnu_ld" != yes && break
3372 done
3373 IFS="$ac_save_ifs"
3374 else
3375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3379 LD="$lt_cv_path_LD"
3380 if test -n "$LD"; then
3381 echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3397 lt_cv_prog_gnu_ld=yes
3398 else
3399 lt_cv_prog_gnu_ld=no
3402 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3403 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3404 with_gnu_ld=$lt_cv_prog_gnu_ld
3407 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3408 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3409 if test "${lt_cv_ld_reload_flag+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 lt_cv_ld_reload_flag='-r'
3414 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3415 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3416 reload_flag=$lt_cv_ld_reload_flag
3417 test -n "$reload_flag" && reload_flag=" $reload_flag"
3419 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3421 if test "${lt_cv_path_NM+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$NM"; then
3425 # Let the user override the test.
3426 lt_cv_path_NM="$NM"
3427 else
3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3429 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3430 test -z "$ac_dir" && ac_dir=.
3431 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3432 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3433 # Check to see if the nm accepts a BSD-compat flag.
3434 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3435 # nm: unknown option "B" ignored
3436 # Tru64's nm complains that /dev/null is an invalid object file
3437 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3438 lt_cv_path_NM="$tmp_nm -B"
3439 break
3440 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3441 lt_cv_path_NM="$tmp_nm -p"
3442 break
3443 else
3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3445 continue # so that we can try to find one that supports BSD flags
3448 done
3449 IFS="$ac_save_ifs"
3450 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3454 NM="$lt_cv_path_NM"
3455 echo "$as_me:$LINENO: result: $NM" >&5
3456 echo "${ECHO_T}$NM" >&6
3458 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3460 LN_S=$as_ln_s
3461 if test "$LN_S" = "ln -s"; then
3462 echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 else
3465 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3466 echo "${ECHO_T}no, using $LN_S" >&6
3469 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3470 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3471 if test "${lt_cv_deplibs_check_method+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 lt_cv_file_magic_cmd='$MAGIC_CMD'
3475 lt_cv_file_magic_test_file=
3476 lt_cv_deplibs_check_method='unknown'
3477 # Need to set the preceding variable on all platforms that support
3478 # interlibrary dependencies.
3479 # 'none' -- dependencies not supported.
3480 # `unknown' -- same as none, but documents that we really don't know.
3481 # 'pass_all' -- all dependencies passed with no checks.
3482 # 'test_compile' -- check by making test program.
3483 # 'file_magic [regex]' -- check by looking for files in library path
3484 # which responds to the $file_magic_cmd with a given egrep regex.
3485 # If you have `file' or equivalent on your system and you're not sure
3486 # whether `pass_all' will *always* work, you probably want this one.
3488 case $host_os in
3489 aix*)
3490 lt_cv_deplibs_check_method=pass_all
3493 beos*)
3494 lt_cv_deplibs_check_method=pass_all
3497 bsdi4*)
3498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 lt_cv_file_magic_test_file=/shlib/libc.so
3503 cygwin* | mingw* |pw32*)
3504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 darwin* | rhapsody*)
3509 # this will be overwritten by pass_all, but leave it in just in case
3510 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3511 lt_cv_file_magic_cmd='/usr/bin/file -L'
3512 case "$host_os" in
3513 rhapsody* | darwin1.012)
3514 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 *) # Darwin 1.3 on
3517 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 esac
3520 lt_cv_deplibs_check_method=pass_all
3523 freebsd* | kfreebsd*-gnu)
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 case $host_cpu in
3526 i*86 )
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3539 gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3543 hpux10.20*|hpux11*)
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3555 esac
3558 irix5* | irix6*)
3559 case $host_os in
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3565 case $LD in
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3579 # This must be Linux ELF.
3580 linux-gnu*)
3581 lt_cv_deplibs_check_method=pass_all
3584 netbsd* | knetbsd*-gnu)
3585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3587 else
3588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3592 newsos6)
3593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3594 lt_cv_file_magic_cmd=/usr/bin/file
3595 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598 osf3* | osf4* | osf5*)
3599 # this will be overridden with pass_all, but let us keep it just in case
3600 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3601 lt_cv_file_magic_test_file=/shlib/libc.so
3602 lt_cv_deplibs_check_method=pass_all
3605 sco3.2v5*)
3606 lt_cv_deplibs_check_method=pass_all
3609 solaris*)
3610 lt_cv_deplibs_check_method=pass_all
3611 lt_cv_file_magic_test_file=/lib/libc.so
3614 sysv5uw[78]* | sysv4*uw2*)
3615 lt_cv_deplibs_check_method=pass_all
3618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3619 case $host_vendor in
3620 ncr)
3621 lt_cv_deplibs_check_method=pass_all
3623 motorola)
3624 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]'
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3627 esac
3629 esac
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3640 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3642 # find the maximum length of command line arguments
3643 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3644 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3645 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3649 teststring="ABCD"
3651 case $build_os in
3652 msdosdjgpp*)
3653 # On DJGPP, this test can blow up pretty badly due to problems in libc
3654 # (any single argument exceeding 2000 bytes causes a buffer overrun
3655 # during glob expansion). Even if it were fixed, the result of this
3656 # check would be larger than it should be.
3657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3660 cygwin* | mingw*)
3661 # On Win9x/ME, this test blows up -- it succeeds, but takes
3662 # about 5 minutes as the teststring grows exponentially.
3663 # Worse, since 9x/ME are not pre-emptively multitasking,
3664 # you end up with a "frozen" computer, even though with patience
3665 # the test eventually succeeds (with a max line length of 256k).
3666 # Instead, let's just punt: use the minimum linelength reported by
3667 # all of the supported platforms: 8192 (on NT/2K/XP).
3668 lt_cv_sys_max_cmd_len=8192;
3671 amigaos*)
3672 # On AmigaOS with pdksh, this test takes hours, literally.
3673 # So we just punt and use a minimum line length of 8192.
3674 lt_cv_sys_max_cmd_len=8192;
3677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3678 # This has been around since 386BSD, at least. Likely further.
3679 if test -x /sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3681 elif test -x /usr/sbin/sysctl; then
3682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3683 else
3684 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3686 # And add a safety zone
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3690 esac
3694 if test -n "$lt_cv_sys_max_cmd_len" ; then
3695 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3696 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3697 else
3698 echo "$as_me:$LINENO: result: none" >&5
3699 echo "${ECHO_T}none" >&6
3703 # Only perform the check for file, if the check method requires it
3704 case $deplibs_check_method in
3705 file_magic*)
3706 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3707 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3708 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 case $MAGIC_CMD in
3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3716 ?:/*)
3717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3720 ac_save_MAGIC_CMD="$MAGIC_CMD"
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3722 ac_dummy="/usr/bin:$PATH"
3723 for ac_dir in $ac_dummy; do
3724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/${ac_tool_prefix}file; then
3726 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3727 if test -n "$file_magic_test_file"; then
3728 case $deplibs_check_method in
3729 "file_magic "*)
3730 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3733 egrep "$file_magic_regex" > /dev/null; then
3735 else
3736 cat <<EOF 1>&2
3738 *** Warning: the command libtool uses to detect shared libraries,
3739 *** $file_magic_cmd, produces output that libtool cannot recognize.
3740 *** The result is that libtool may fail to recognize shared libraries
3741 *** as such. This will affect the creation of libtool libraries that
3742 *** depend on shared libraries, but programs linked with such libtool
3743 *** libraries will work regardless of this problem. Nevertheless, you
3744 *** may want to report the problem to your system manager and/or to
3745 *** bug-libtool@gnu.org
3748 fi ;;
3749 esac
3751 break
3753 done
3754 IFS="$ac_save_ifs"
3755 MAGIC_CMD="$ac_save_MAGIC_CMD"
3757 esac
3760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3761 if test -n "$MAGIC_CMD"; then
3762 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3763 echo "${ECHO_T}$MAGIC_CMD" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 if test -z "$lt_cv_path_MAGIC_CMD"; then
3770 if test -n "$ac_tool_prefix"; then
3771 echo "$as_me:$LINENO: checking for file" >&5
3772 echo $ECHO_N "checking for file... $ECHO_C" >&6
3773 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 case $MAGIC_CMD in
3778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3780 ?:/*)
3781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3784 ac_save_MAGIC_CMD="$MAGIC_CMD"
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3786 ac_dummy="/usr/bin:$PATH"
3787 for ac_dir in $ac_dummy; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f $ac_dir/file; then
3790 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3791 if test -n "$file_magic_test_file"; then
3792 case $deplibs_check_method in
3793 "file_magic "*)
3794 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3797 egrep "$file_magic_regex" > /dev/null; then
3799 else
3800 cat <<EOF 1>&2
3802 *** Warning: the command libtool uses to detect shared libraries,
3803 *** $file_magic_cmd, produces output that libtool cannot recognize.
3804 *** The result is that libtool may fail to recognize shared libraries
3805 *** as such. This will affect the creation of libtool libraries that
3806 *** depend on shared libraries, but programs linked with such libtool
3807 *** libraries will work regardless of this problem. Nevertheless, you
3808 *** may want to report the problem to your system manager and/or to
3809 *** bug-libtool@gnu.org
3812 fi ;;
3813 esac
3815 break
3817 done
3818 IFS="$ac_save_ifs"
3819 MAGIC_CMD="$ac_save_MAGIC_CMD"
3821 esac
3824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3825 if test -n "$MAGIC_CMD"; then
3826 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3827 echo "${ECHO_T}$MAGIC_CMD" >&6
3828 else
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3833 else
3834 MAGIC_CMD=:
3840 esac
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_RANLIB+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 if test -n "$RANLIB"; then
3851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3869 RANLIB=$ac_cv_prog_RANLIB
3870 if test -n "$RANLIB"; then
3871 echo "$as_me:$LINENO: result: $RANLIB" >&5
3872 echo "${ECHO_T}$RANLIB" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3879 if test -z "$ac_cv_prog_RANLIB"; then
3880 ac_ct_RANLIB=$RANLIB
3881 # Extract the first word of "ranlib", so it can be a program name with args.
3882 set dummy ranlib; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$ac_ct_RANLIB"; then
3889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_RANLIB="ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3905 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3909 if test -n "$ac_ct_RANLIB"; then
3910 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3911 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 RANLIB=$ac_ct_RANLIB
3918 else
3919 RANLIB="$ac_cv_prog_RANLIB"
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}strip; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_prog_STRIP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 if test -n "$STRIP"; then
3931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3949 STRIP=$ac_cv_prog_STRIP
3950 if test -n "$STRIP"; then
3951 echo "$as_me:$LINENO: result: $STRIP" >&5
3952 echo "${ECHO_T}$STRIP" >&6
3953 else
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3959 if test -z "$ac_cv_prog_STRIP"; then
3960 ac_ct_STRIP=$STRIP
3961 # Extract the first word of "strip", so it can be a program name with args.
3962 set dummy strip; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$ac_ct_STRIP"; then
3969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_STRIP="strip"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3989 if test -n "$ac_ct_STRIP"; then
3990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3991 echo "${ECHO_T}$ac_ct_STRIP" >&6
3992 else
3993 echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3997 STRIP=$ac_ct_STRIP
3998 else
3999 STRIP="$ac_cv_prog_STRIP"
4003 # Check for any special flags to pass to ltconfig.
4004 libtool_flags="--cache-file=$cache_file"
4005 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4006 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4007 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4008 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4009 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4012 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013 if test "${enable_libtool_lock+set}" = set; then
4014 enableval="$enable_libtool_lock"
4017 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4018 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4021 # Check whether --with-pic or --without-pic was given.
4022 if test "${with_pic+set}" = set; then
4023 withval="$with_pic"
4024 pic_mode="$withval"
4025 else
4026 pic_mode=default
4028 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4029 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4031 # Some flags need to be propagated to the compiler or linker for good
4032 # libtool support.
4033 case $host in
4034 *-*-irix6*)
4035 # Find out which ABI we are using.
4036 echo '#line 4036 "configure"' > conftest.$ac_ext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
4042 if test "$lt_cv_prog_gnu_ld" = yes; then
4043 case `/usr/bin/file conftest.$ac_objext` in
4044 *32-bit*)
4045 LD="${LD-ld} -melf32bsmip"
4047 *N32*)
4048 LD="${LD-ld} -melf32bmipn32"
4050 *64-bit*)
4051 LD="${LD-ld} -melf64bmip"
4053 esac
4054 else
4055 case `/usr/bin/file conftest.$ac_objext` in
4056 *32-bit*)
4057 LD="${LD-ld} -32"
4059 *N32*)
4060 LD="${LD-ld} -n32"
4062 *64-bit*)
4063 LD="${LD-ld} -64"
4065 esac
4068 rm -rf conftest*
4071 ia64-*-hpux*)
4072 # Find out which ABI we are using.
4073 echo 'int i;' > conftest.$ac_ext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4079 case "`/usr/bin/file conftest.o`" in
4080 *ELF-32*)
4081 HPUX_IA64_MODE="32"
4083 *ELF-64*)
4084 HPUX_IA64_MODE="64"
4086 esac
4088 rm -rf conftest*
4091 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4092 # Find out which ABI we are using.
4093 echo 'int i;' > conftest.$ac_ext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; then
4099 case "`/usr/bin/file conftest.o`" in
4100 *32-bit*)
4101 case $host in
4102 x86_64-*linux*)
4103 LD="${LD-ld} -m elf_i386"
4105 ppc64-*linux*|powerpc64-*linux*)
4106 LD="${LD-ld} -m elf32ppclinux"
4108 s390x-*linux*)
4109 LD="${LD-ld} -m elf_s390"
4111 sparc64-*linux*)
4112 LD="${LD-ld} -m elf32_sparc"
4114 esac
4116 *64-bit*)
4117 case $host in
4118 x86_64-*linux*)
4119 LD="${LD-ld} -m elf_x86_64"
4121 ppc*-*linux*|powerpc*-*linux*)
4122 LD="${LD-ld} -m elf64ppc"
4124 s390*-*linux*)
4125 LD="${LD-ld} -m elf64_s390"
4127 sparc*-*linux*)
4128 LD="${LD-ld} -m elf64_sparc"
4130 esac
4132 esac
4134 rm -rf conftest*
4137 *-*-sco3.2v5*)
4138 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4139 SAVE_CFLAGS="$CFLAGS"
4140 CFLAGS="$CFLAGS -belf"
4141 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4142 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4143 if test "${lt_cv_cc_needs_belf+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4148 ac_ext=c
4149 ac_cpp='$CPP $CPPFLAGS'
4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4162 main ()
4166 return 0;
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 lt_cv_cc_needs_belf=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 lt_cv_cc_needs_belf=no
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4208 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4211 CFLAGS="$SAVE_CFLAGS"
4216 esac
4219 # Save cache, so that ltconfig can load it
4220 cat >confcache <<\_ACEOF
4221 # This file is a shell script that caches the results of configure
4222 # tests run on this system so they can be shared between configure
4223 # scripts and configure runs, see configure's option --config-cache.
4224 # It is not useful on other systems. If it contains results you don't
4225 # want to keep, you may remove or edit it.
4227 # config.status only pays attention to the cache file if you give it
4228 # the --recheck option to rerun configure.
4230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4232 # following values.
4234 _ACEOF
4236 # The following way of writing the cache mishandles newlines in values,
4237 # but we know of no workaround that is simple, portable, and efficient.
4238 # So, don't put newlines in cache variables' values.
4239 # Ultrix sh set writes to stderr and can't be redirected directly,
4240 # and sets the high bit in the cache file unless we assign to the vars.
4242 (set) 2>&1 |
4243 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4244 *ac_space=\ *)
4245 # `set' does not quote correctly, so add quotes (double-quote
4246 # substitution turns \\\\ into \\, and sed turns \\ into \).
4247 sed -n \
4248 "s/'/'\\\\''/g;
4249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4252 # `set' quotes correctly as required by POSIX, so do not add quotes.
4253 sed -n \
4254 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4256 esac;
4258 sed '
4259 t clear
4260 : clear
4261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 t end
4263 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 : end' >>confcache
4265 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4266 if test -w $cache_file; then
4267 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4268 cat confcache >$cache_file
4269 else
4270 echo "not updating unwritable cache $cache_file"
4273 rm -f confcache
4275 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4276 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4277 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4278 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4279 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4280 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4281 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4282 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4283 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4284 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4285 echo "$as_me: error: libtool configure failed" >&2;}
4286 { (exit 1); exit 1; }; }
4288 # Reload cache, that may have been modified by ltconfig
4289 if test -r "$cache_file"; then
4290 # Some versions of bash will fail to source /dev/null (special
4291 # files actually), so we avoid doing that.
4292 if test -f "$cache_file"; then
4293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4294 echo "$as_me: loading cache $cache_file" >&6;}
4295 case $cache_file in
4296 [\\/]* | ?:[\\/]* ) . $cache_file;;
4297 *) . ./$cache_file;;
4298 esac
4300 else
4301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4302 echo "$as_me: creating cache $cache_file" >&6;}
4303 >$cache_file
4307 # This can be used to rebuild libtool when needed
4308 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4310 # Always use our own libtool.
4311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4313 # Redirect the config.log output again, so that the ltconfig log is not
4314 # clobbered by the next message.
4315 exec 5>>./config.log
4323 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4324 if test "${enable_64_bit_bfd+set}" = set; then
4325 enableval="$enable_64_bit_bfd"
4326 case "${enableval}" in
4327 yes) want64=true ;;
4328 no) want64=false ;;
4329 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4330 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4331 { (exit 1); exit 1; }; } ;;
4332 esac
4333 else
4334 want64=false
4335 fi; # Check whether --enable-targets or --disable-targets was given.
4336 if test "${enable_targets+set}" = set; then
4337 enableval="$enable_targets"
4338 case "${enableval}" in
4339 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4340 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4341 { (exit 1); exit 1; }; }
4343 no) enable_targets= ;;
4344 *) enable_targets=$enableval ;;
4345 esac
4346 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4347 if test "${enable_commonbfdlib+set}" = set; then
4348 enableval="$enable_commonbfdlib"
4349 case "${enableval}" in
4350 yes) commonbfdlib=true ;;
4351 no) commonbfdlib=false ;;
4352 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4353 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355 esac
4357 # Check whether --with-mmap or --without-mmap was given.
4358 if test "${with_mmap+set}" = set; then
4359 withval="$with_mmap"
4360 case "${withval}" in
4361 yes) want_mmap=true ;;
4362 no) want_mmap=false ;;
4363 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4364 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366 esac
4367 else
4368 want_mmap=false
4370 # Check whether --enable-secureplt or --disable-secureplt was given.
4371 if test "${enable_secureplt+set}" = set; then
4372 enableval="$enable_secureplt"
4373 case "${enableval}" in
4374 yes) use_secureplt=true ;;
4375 no) use_secureplt=false ;;
4376 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4377 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379 esac
4380 else
4381 use_secureplt=false
4382 fi; if test $use_secureplt = true; then
4384 cat >>confdefs.h <<\_ACEOF
4385 #define USE_SECUREPLT 1
4386 _ACEOF
4390 # The trailing component of the string reported as the version number
4391 # by gdb. For an official FSF release, it is empty.
4393 # Check whether --with-versuffix or --without-versuffix was given.
4394 if test "${with_versuffix+set}" = set; then
4395 withval="$with_versuffix"
4396 case "$withval" in
4397 yes) { { echo "$as_me:$LINENO: error: version suffix not specified" >&5
4398 echo "$as_me: error: version suffix not specified" >&2;}
4399 { (exit 1); exit 1; }; } ;;
4400 no) VERSUFFIX=" (CodeSourcery Unofficial)" ;;
4401 *) VERSUFFIX=" ($withval)" ;;
4402 esac
4403 else
4404 VERSUFFIX=
4410 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4412 # Check whether --enable-werror or --disable-werror was given.
4413 if test "${enable_werror+set}" = set; then
4414 enableval="$enable_werror"
4415 case "${enableval}" in
4416 yes | y) ERROR_ON_WARNING="yes" ;;
4417 no | n) ERROR_ON_WARNING="no" ;;
4418 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4419 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4420 { (exit 1); exit 1; }; } ;;
4421 esac
4424 # Enable -Werror by default when using gcc
4425 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4426 ERROR_ON_WARNING=yes
4429 NO_WERROR=
4430 if test "${ERROR_ON_WARNING}" = yes ; then
4431 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4432 NO_WERROR="-Wno-error"
4435 if test "${GCC}" = yes ; then
4436 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4439 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4440 if test "${enable_build_warnings+set}" = set; then
4441 enableval="$enable_build_warnings"
4442 case "${enableval}" in
4443 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4444 no) if test "${GCC}" = yes ; then
4445 WARN_CFLAGS="-w"
4446 fi;;
4447 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4448 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4449 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4450 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4451 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4452 esac
4455 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4456 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4463 ac_config_headers="$ac_config_headers config.h:config.in"
4466 if test -z "$target" ; then
4467 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4468 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4469 { (exit 1); exit 1; }; }
4472 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4473 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4474 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4475 if test "${enable_maintainer_mode+set}" = set; then
4476 enableval="$enable_maintainer_mode"
4477 USE_MAINTAINER_MODE=$enableval
4478 else
4479 USE_MAINTAINER_MODE=no
4481 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4482 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4485 if test $USE_MAINTAINER_MODE = yes; then
4486 MAINTAINER_MODE_TRUE=
4487 MAINTAINER_MODE_FALSE='#'
4488 else
4489 MAINTAINER_MODE_TRUE='#'
4490 MAINTAINER_MODE_FALSE=
4493 MAINT=$MAINTAINER_MODE_TRUE
4496 case ${build_alias} in
4497 "") build_noncanonical=${build} ;;
4498 *) build_noncanonical=${build_alias} ;;
4499 esac
4501 case ${host_alias} in
4502 "") host_noncanonical=${build_noncanonical} ;;
4503 *) host_noncanonical=${host_alias} ;;
4504 esac
4506 case ${target_alias} in
4507 "") target_noncanonical=${host_noncanonical} ;;
4508 *) target_noncanonical=${target_alias} ;;
4509 esac
4511 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4512 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4513 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4514 if test "${enable_install_libbfd+set}" = set; then
4515 enableval="$enable_install_libbfd"
4516 install_libbfd_p=$enableval
4517 else
4518 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4519 install_libbfd_p=yes
4520 else
4521 install_libbfd_p=no
4524 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4525 echo "${ECHO_T}$install_libbfd_p" >&6
4528 if test $install_libbfd_p = yes; then
4529 INSTALL_LIBBFD_TRUE=
4530 INSTALL_LIBBFD_FALSE='#'
4531 else
4532 INSTALL_LIBBFD_TRUE='#'
4533 INSTALL_LIBBFD_FALSE=
4536 # Need _noncanonical variables for this.
4541 # libbfd.a is a host library containing target dependent code
4542 bfdlibdir='$(libdir)'
4543 bfdincludedir='$(includedir)'
4544 if test "${host}" != "${target}"; then
4545 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4546 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4554 host64=false
4555 target64=false
4556 bfd_default_target_size=32
4558 # host stuff:
4560 ac_ext=c
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565 if test -n "$ac_tool_prefix"; then
4566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_CC+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC="$CC" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4587 done
4588 done
4592 CC=$ac_cv_prog_CC
4593 if test -n "$CC"; then
4594 echo "$as_me:$LINENO: result: $CC" >&5
4595 echo "${ECHO_T}$CC" >&6
4596 else
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4602 if test -z "$ac_cv_prog_CC"; then
4603 ac_ct_CC=$CC
4604 # Extract the first word of "gcc", so it can be a program name with args.
4605 set dummy gcc; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 if test -n "$ac_ct_CC"; then
4612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_ac_ct_CC="gcc"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4631 if test -n "$ac_ct_CC"; then
4632 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4633 echo "${ECHO_T}$ac_ct_CC" >&6
4634 else
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 CC=$ac_ct_CC
4640 else
4641 CC="$ac_cv_prog_CC"
4644 if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}cc; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CC="${ac_tool_prefix}cc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4672 CC=$ac_cv_prog_CC
4673 if test -n "$CC"; then
4674 echo "$as_me:$LINENO: result: $CC" >&5
4675 echo "${ECHO_T}$CC" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4682 if test -z "$ac_cv_prog_CC"; then
4683 ac_ct_CC=$CC
4684 # Extract the first word of "cc", so it can be a program name with args.
4685 set dummy cc; ac_word=$2
4686 echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_ac_ct_CC="cc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4711 if test -n "$ac_ct_CC"; then
4712 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4713 echo "${ECHO_T}$ac_ct_CC" >&6
4714 else
4715 echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4719 CC=$ac_ct_CC
4720 else
4721 CC="$ac_cv_prog_CC"
4725 if test -z "$CC"; then
4726 # Extract the first word of "cc", so it can be a program name with args.
4727 set dummy cc; ac_word=$2
4728 echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4730 if test "${ac_cv_prog_CC+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 else
4736 ac_prog_rejected=no
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4745 ac_prog_rejected=yes
4746 continue
4748 ac_cv_prog_CC="cc"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4755 if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_CC
4758 shift
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set CC to just the basename; use the full file name.
4763 shift
4764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4769 CC=$ac_cv_prog_CC
4770 if test -n "$CC"; then
4771 echo "$as_me:$LINENO: result: $CC" >&5
4772 echo "${ECHO_T}$CC" >&6
4773 else
4774 echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4779 if test -z "$CC"; then
4780 if test -n "$ac_tool_prefix"; then
4781 for ac_prog in cl
4783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_prog_CC+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC="$CC" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4804 done
4805 done
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 echo "$as_me:$LINENO: result: $CC" >&5
4812 echo "${ECHO_T}$CC" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4818 test -n "$CC" && break
4819 done
4821 if test -z "$CC"; then
4822 ac_ct_CC=$CC
4823 for ac_prog in cl
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 if test -n "$ac_ct_CC"; then
4833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_ac_ct_CC="$ac_prog"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4852 if test -n "$ac_ct_CC"; then
4853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4854 echo "${ECHO_T}$ac_ct_CC" >&6
4855 else
4856 echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4860 test -n "$ac_ct_CC" && break
4861 done
4863 CC=$ac_ct_CC
4869 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4870 See \`config.log' for more details." >&5
4871 echo "$as_me: error: no acceptable C compiler found in \$PATH
4872 See \`config.log' for more details." >&2;}
4873 { (exit 1); exit 1; }; }
4875 # Provide some information about the compiler.
4876 echo "$as_me:$LINENO:" \
4877 "checking for C compiler version" >&5
4878 ac_compiler=`set X $ac_compile; echo $2`
4879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4880 (eval $ac_compiler --version </dev/null >&5) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }
4884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4885 (eval $ac_compiler -v </dev/null >&5) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }
4889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4890 (eval $ac_compiler -V </dev/null >&5) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }
4895 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4908 main ()
4910 #ifndef __GNUC__
4911 choke me
4912 #endif
4915 return 0;
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_compiler_gnu=yes
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_compiler_gnu=no
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4951 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4953 GCC=`test $ac_compiler_gnu = yes && echo yes`
4954 ac_test_CFLAGS=${CFLAGS+set}
4955 ac_save_CFLAGS=$CFLAGS
4956 CFLAGS="-g"
4957 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4958 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4959 if test "${ac_cv_prog_cc_g+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4970 main ()
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_prog_cc_g=yes
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 ac_cv_prog_cc_g=no
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5008 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5009 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5010 if test "$ac_test_CFLAGS" = set; then
5011 CFLAGS=$ac_save_CFLAGS
5012 elif test $ac_cv_prog_cc_g = yes; then
5013 if test "$GCC" = yes; then
5014 CFLAGS="-g -O2"
5015 else
5016 CFLAGS="-g"
5018 else
5019 if test "$GCC" = yes; then
5020 CFLAGS="-O2"
5021 else
5022 CFLAGS=
5025 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5026 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5027 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 ac_cv_prog_cc_stdc=no
5031 ac_save_CC=$CC
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 #include <stdarg.h>
5039 #include <stdio.h>
5040 #include <sys/types.h>
5041 #include <sys/stat.h>
5042 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5043 struct buf { int x; };
5044 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5045 static char *e (p, i)
5046 char **p;
5047 int i;
5049 return p[i];
5051 static char *f (char * (*g) (char **, int), char **p, ...)
5053 char *s;
5054 va_list v;
5055 va_start (v,p);
5056 s = g (p, va_arg (v,int));
5057 va_end (v);
5058 return s;
5061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5062 function prototypes and stuff, but not '\xHH' hex character constants.
5063 These don't provoke an error unfortunately, instead are silently treated
5064 as 'x'. The following induces an error, until -std1 is added to get
5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5066 array size at least. It's necessary to write '\x00'==0 to get something
5067 that's true only with -std1. */
5068 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5070 int test (int i, double x);
5071 struct s1 {int (*f) (int a);};
5072 struct s2 {int (*f) (double a);};
5073 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5074 int argc;
5075 char **argv;
5077 main ()
5079 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5081 return 0;
5083 _ACEOF
5084 # Don't try gcc -ansi; that turns off useful extensions and
5085 # breaks some systems' header files.
5086 # AIX -qlanglvl=ansi
5087 # Ultrix and OSF/1 -std1
5088 # HP-UX 10.20 and later -Ae
5089 # HP-UX older versions -Aa -D_HPUX_SOURCE
5090 # SVR4 -Xc -D__EXTENSIONS__
5091 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5093 CC="$ac_save_CC $ac_arg"
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_prog_cc_stdc=$ac_arg
5117 break
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5123 rm -f conftest.err conftest.$ac_objext
5124 done
5125 rm -f conftest.$ac_ext conftest.$ac_objext
5126 CC=$ac_save_CC
5130 case "x$ac_cv_prog_cc_stdc" in
5131 x|xno)
5132 echo "$as_me:$LINENO: result: none needed" >&5
5133 echo "${ECHO_T}none needed" >&6 ;;
5135 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5136 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5137 CC="$CC $ac_cv_prog_cc_stdc" ;;
5138 esac
5140 # Some people use a C++ compiler to compile C. Since we use `exit',
5141 # in C++ we need to declare it. In case someone uses the same compiler
5142 # for both compiling C and C++ we need to have the C++ compiler decide
5143 # the declaration of exit, since it's the most demanding environment.
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #ifndef __cplusplus
5146 choke me
5147 #endif
5148 _ACEOF
5149 rm -f conftest.$ac_objext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try='test -z "$ac_c_werror_flag"
5159 || test ! -s conftest.err'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; } &&
5165 { ac_try='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 for ac_declaration in \
5172 '' \
5173 'extern "C" void std::exit (int) throw (); using std::exit;' \
5174 'extern "C" void std::exit (int); using std::exit;' \
5175 'extern "C" void exit (int) throw ();' \
5176 'extern "C" void exit (int);' \
5177 'void exit (int);'
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 $ac_declaration
5186 #include <stdlib.h>
5188 main ()
5190 exit (42);
5192 return 0;
5194 _ACEOF
5195 rm -f conftest.$ac_objext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>conftest.er1
5198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -z "$ac_c_werror_flag"
5205 || test ! -s conftest.err'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 (eval $ac_try) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; } &&
5211 { ac_try='test -s conftest.$ac_objext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 continue
5224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_declaration
5233 main ()
5235 exit (42);
5237 return 0;
5239 _ACEOF
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 break
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269 done
5270 rm -f conftest*
5271 if test -n "$ac_declaration"; then
5272 echo '#ifdef __cplusplus' >>confdefs.h
5273 echo $ac_declaration >>confdefs.h
5274 echo '#endif' >>confdefs.h
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5283 ac_ext=c
5284 ac_cpp='$CPP $CPPFLAGS'
5285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290 cat >>confdefs.h <<\_ACEOF
5291 #define _GNU_SOURCE 1
5292 _ACEOF
5296 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_prog_RANLIB+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305 if test -n "$RANLIB"; then
5306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5319 done
5320 done
5324 RANLIB=$ac_cv_prog_RANLIB
5325 if test -n "$RANLIB"; then
5326 echo "$as_me:$LINENO: result: $RANLIB" >&5
5327 echo "${ECHO_T}$RANLIB" >&6
5328 else
5329 echo "$as_me:$LINENO: result: no" >&5
5330 echo "${ECHO_T}no" >&6
5334 if test -z "$ac_cv_prog_RANLIB"; then
5335 ac_ct_RANLIB=$RANLIB
5336 # Extract the first word of "ranlib", so it can be a program name with args.
5337 set dummy ranlib; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 if test -n "$ac_ct_RANLIB"; then
5344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_ac_ct_RANLIB="ranlib"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5357 done
5358 done
5360 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5364 if test -n "$ac_ct_RANLIB"; then
5365 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5367 else
5368 echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6
5372 RANLIB=$ac_ct_RANLIB
5373 else
5374 RANLIB="$ac_cv_prog_RANLIB"
5377 ac_ext=c
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5383 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5384 # On Suns, sometimes $CPP names a directory.
5385 if test -n "$CPP" && test -d "$CPP"; then
5386 CPP=
5388 if test -z "$CPP"; then
5389 if test "${ac_cv_prog_CPP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 # Double quotes because CPP needs to be expanded
5393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5395 ac_preproc_ok=false
5396 for ac_c_preproc_warn_flag in '' yes
5398 # Use a header file that comes with gcc, so configuring glibc
5399 # with a fresh cross-compiler works.
5400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401 # <limits.h> exists even on freestanding compilers.
5402 # On the NeXT, cc -E runs the code through the compiler's parser,
5403 # not just through cpp. "Syntax error" is here to catch this case.
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #ifdef __STDC__
5411 # include <limits.h>
5412 #else
5413 # include <assert.h>
5414 #endif
5415 Syntax error
5416 _ACEOF
5417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null; then
5425 if test -s conftest.err; then
5426 ac_cpp_err=$ac_c_preproc_warn_flag
5427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5428 else
5429 ac_cpp_err=
5431 else
5432 ac_cpp_err=yes
5434 if test -z "$ac_cpp_err"; then
5436 else
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 # Broken: fails on valid input.
5441 continue
5443 rm -f conftest.err conftest.$ac_ext
5445 # OK, works on sane cases. Now check whether non-existent headers
5446 # can be detected and how.
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <ac_nonexistent.h>
5454 _ACEOF
5455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } >/dev/null; then
5463 if test -s conftest.err; then
5464 ac_cpp_err=$ac_c_preproc_warn_flag
5465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5466 else
5467 ac_cpp_err=
5469 else
5470 ac_cpp_err=yes
5472 if test -z "$ac_cpp_err"; then
5473 # Broken: success on invalid input.
5474 continue
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 # Passes both tests.
5480 ac_preproc_ok=:
5481 break
5483 rm -f conftest.err conftest.$ac_ext
5485 done
5486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5487 rm -f conftest.err conftest.$ac_ext
5488 if $ac_preproc_ok; then
5489 break
5492 done
5493 ac_cv_prog_CPP=$CPP
5496 CPP=$ac_cv_prog_CPP
5497 else
5498 ac_cv_prog_CPP=$CPP
5500 echo "$as_me:$LINENO: result: $CPP" >&5
5501 echo "${ECHO_T}$CPP" >&6
5502 ac_preproc_ok=false
5503 for ac_c_preproc_warn_flag in '' yes
5505 # Use a header file that comes with gcc, so configuring glibc
5506 # with a fresh cross-compiler works.
5507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5508 # <limits.h> exists even on freestanding compilers.
5509 # On the NeXT, cc -E runs the code through the compiler's parser,
5510 # not just through cpp. "Syntax error" is here to catch this case.
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #ifdef __STDC__
5518 # include <limits.h>
5519 #else
5520 # include <assert.h>
5521 #endif
5522 Syntax error
5523 _ACEOF
5524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } >/dev/null; then
5532 if test -s conftest.err; then
5533 ac_cpp_err=$ac_c_preproc_warn_flag
5534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5535 else
5536 ac_cpp_err=
5538 else
5539 ac_cpp_err=yes
5541 if test -z "$ac_cpp_err"; then
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 # Broken: fails on valid input.
5548 continue
5550 rm -f conftest.err conftest.$ac_ext
5552 # OK, works on sane cases. Now check whether non-existent headers
5553 # can be detected and how.
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <ac_nonexistent.h>
5561 _ACEOF
5562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } >/dev/null; then
5570 if test -s conftest.err; then
5571 ac_cpp_err=$ac_c_preproc_warn_flag
5572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573 else
5574 ac_cpp_err=
5576 else
5577 ac_cpp_err=yes
5579 if test -z "$ac_cpp_err"; then
5580 # Broken: success on invalid input.
5581 continue
5582 else
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 # Passes both tests.
5587 ac_preproc_ok=:
5588 break
5590 rm -f conftest.err conftest.$ac_ext
5592 done
5593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5594 rm -f conftest.err conftest.$ac_ext
5595 if $ac_preproc_ok; then
5597 else
5598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5599 See \`config.log' for more details." >&5
5600 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5601 See \`config.log' for more details." >&2;}
5602 { (exit 1); exit 1; }; }
5605 ac_ext=c
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612 echo "$as_me:$LINENO: checking for egrep" >&5
5613 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5614 if test "${ac_cv_prog_egrep+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5618 then ac_cv_prog_egrep='grep -E'
5619 else ac_cv_prog_egrep='egrep'
5622 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5623 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5624 EGREP=$ac_cv_prog_egrep
5627 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5628 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5629 if test "${ac_cv_header_stdc+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <stdlib.h>
5639 #include <stdarg.h>
5640 #include <string.h>
5641 #include <float.h>
5644 main ()
5648 return 0;
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_header_stdc=yes
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_cv_header_stdc=no
5680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 if test $ac_cv_header_stdc = yes; then
5683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <string.h>
5692 _ACEOF
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "memchr" >/dev/null 2>&1; then
5696 else
5697 ac_cv_header_stdc=no
5699 rm -f conftest*
5703 if test $ac_cv_header_stdc = yes; then
5704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #include <stdlib.h>
5713 _ACEOF
5714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5715 $EGREP "free" >/dev/null 2>&1; then
5717 else
5718 ac_cv_header_stdc=no
5720 rm -f conftest*
5724 if test $ac_cv_header_stdc = yes; then
5725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5726 if test "$cross_compiling" = yes; then
5728 else
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ctype.h>
5736 #if ((' ' & 0x0FF) == 0x020)
5737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5739 #else
5740 # define ISLOWER(c) \
5741 (('a' <= (c) && (c) <= 'i') \
5742 || ('j' <= (c) && (c) <= 'r') \
5743 || ('s' <= (c) && (c) <= 'z'))
5744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5745 #endif
5747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5749 main ()
5751 int i;
5752 for (i = 0; i < 256; i++)
5753 if (XOR (islower (i), ISLOWER (i))
5754 || toupper (i) != TOUPPER (i))
5755 exit(2);
5756 exit (0);
5758 _ACEOF
5759 rm -f conftest$ac_exeext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761 (eval $ac_link) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5771 else
5772 echo "$as_me: program exited with status $ac_status" >&5
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ( exit $ac_status )
5777 ac_cv_header_stdc=no
5779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5784 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5785 if test $ac_cv_header_stdc = yes; then
5787 cat >>confdefs.h <<\_ACEOF
5788 #define STDC_HEADERS 1
5789 _ACEOF
5793 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5794 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5795 if test "${ac_cv_c_const+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5806 main ()
5808 /* FIXME: Include the comments suggested by Paul. */
5809 #ifndef __cplusplus
5810 /* Ultrix mips cc rejects this. */
5811 typedef int charset[2];
5812 const charset x;
5813 /* SunOS 4.1.1 cc rejects this. */
5814 char const *const *ccp;
5815 char **p;
5816 /* NEC SVR4.0.2 mips cc rejects this. */
5817 struct point {int x, y;};
5818 static struct point const zero = {0,0};
5819 /* AIX XL C 1.02.0.0 rejects this.
5820 It does not let you subtract one const X* pointer from another in
5821 an arm of an if-expression whose if-part is not a constant
5822 expression */
5823 const char *g = "string";
5824 ccp = &g + (g ? g-g : 0);
5825 /* HPUX 7.0 cc rejects these. */
5826 ++ccp;
5827 p = (char**) ccp;
5828 ccp = (char const *const *) p;
5829 { /* SCO 3.2v4 cc rejects this. */
5830 char *t;
5831 char const *s = 0 ? (char *) 0 : (char const *) 0;
5833 *t++ = 0;
5835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5836 int x[] = {25, 17};
5837 const int *foo = &x[0];
5838 ++foo;
5840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5841 typedef const int *iptr;
5842 iptr p = 0;
5843 ++p;
5845 { /* AIX XL C 1.02.0.0 rejects this saying
5846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5847 struct s { int j; const int *ap[3]; };
5848 struct s *b; b->j = 5;
5850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5851 const int foo = 10;
5853 #endif
5856 return 0;
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_c_const=yes
5882 else
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_cv_c_const=no
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5891 echo "${ECHO_T}$ac_cv_c_const" >&6
5892 if test $ac_cv_c_const = no; then
5894 cat >>confdefs.h <<\_ACEOF
5895 #define const
5896 _ACEOF
5900 echo "$as_me:$LINENO: checking for inline" >&5
5901 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5902 if test "${ac_cv_c_inline+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 ac_cv_c_inline=no
5906 for ac_kw in inline __inline__ __inline; do
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #ifndef __cplusplus
5914 typedef int foo_t;
5915 static $ac_kw foo_t static_foo () {return 0; }
5916 $ac_kw foo_t foo () {return 0; }
5917 #endif
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_c_inline=$ac_kw; break
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 done
5952 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5953 echo "${ECHO_T}$ac_cv_c_inline" >&6
5956 case $ac_cv_c_inline in
5957 inline | yes) ;;
5959 case $ac_cv_c_inline in
5960 no) ac_val=;;
5961 *) ac_val=$ac_cv_c_inline;;
5962 esac
5963 cat >>confdefs.h <<_ACEOF
5964 #ifndef __cplusplus
5965 #define inline $ac_val
5966 #endif
5967 _ACEOF
5969 esac
5971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5982 inttypes.h stdint.h unistd.h
5984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5985 echo "$as_me:$LINENO: checking for $ac_header" >&5
5986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 $ac_includes_default
5998 #include <$ac_header>
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 eval "$as_ac_Header=yes"
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 eval "$as_ac_Header=no"
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6036 _ACEOF
6040 done
6043 echo "$as_me:$LINENO: checking for off_t" >&5
6044 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6045 if test "${ac_cv_type_off_t+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6056 main ()
6058 if ((off_t *) 0)
6059 return 0;
6060 if (sizeof (off_t))
6061 return 0;
6063 return 0;
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_type_off_t=yes
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_type_off_t=no
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6097 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6098 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6099 if test $ac_cv_type_off_t = yes; then
6101 else
6103 cat >>confdefs.h <<_ACEOF
6104 #define off_t long
6105 _ACEOF
6109 echo "$as_me:$LINENO: checking for size_t" >&5
6110 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6111 if test "${ac_cv_type_size_t+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6122 main ()
6124 if ((size_t *) 0)
6125 return 0;
6126 if (sizeof (size_t))
6127 return 0;
6129 return 0;
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_type_size_t=yes
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_cv_type_size_t=no
6161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6165 if test $ac_cv_type_size_t = yes; then
6167 else
6169 cat >>confdefs.h <<_ACEOF
6170 #define size_t unsigned
6171 _ACEOF
6175 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6176 # for constant arguments. Useless!
6177 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6178 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6179 if test "${ac_cv_working_alloca_h+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 #include <alloca.h>
6190 main ()
6192 char *p = (char *) alloca (2 * sizeof (int));
6194 return 0;
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -z "$ac_c_werror_flag"
6207 || test ! -s conftest.err'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest$ac_exeext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 ac_cv_working_alloca_h=yes
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_working_alloca_h=no
6226 rm -f conftest.err conftest.$ac_objext \
6227 conftest$ac_exeext conftest.$ac_ext
6229 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6230 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6231 if test $ac_cv_working_alloca_h = yes; then
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_ALLOCA_H 1
6235 _ACEOF
6239 echo "$as_me:$LINENO: checking for alloca" >&5
6240 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6241 if test "${ac_cv_func_alloca_works+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 cat >conftest.$ac_ext <<_ACEOF
6245 /* confdefs.h. */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 #ifdef __GNUC__
6251 # define alloca __builtin_alloca
6252 #else
6253 # ifdef _MSC_VER
6254 # include <malloc.h>
6255 # define alloca _alloca
6256 # else
6257 # if HAVE_ALLOCA_H
6258 # include <alloca.h>
6259 # else
6260 # ifdef _AIX
6261 #pragma alloca
6262 # else
6263 # ifndef alloca /* predefined by HP cc +Olibcalls */
6264 char *alloca ();
6265 # endif
6266 # endif
6267 # endif
6268 # endif
6269 #endif
6272 main ()
6274 char *p = (char *) alloca (1);
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_func_alloca_works=yes
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 ac_cv_func_alloca_works=no
6308 rm -f conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6311 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6312 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6314 if test $ac_cv_func_alloca_works = yes; then
6316 cat >>confdefs.h <<\_ACEOF
6317 #define HAVE_ALLOCA 1
6318 _ACEOF
6320 else
6321 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6322 # that cause trouble. Some versions do not even contain alloca or
6323 # contain a buggy version. If you still want to use their alloca,
6324 # use ar to extract alloca.o from them instead of compiling alloca.c.
6326 ALLOCA=alloca.$ac_objext
6328 cat >>confdefs.h <<\_ACEOF
6329 #define C_ALLOCA 1
6330 _ACEOF
6333 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6334 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6335 if test "${ac_cv_os_cray+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #if defined(CRAY) && ! defined(CRAY2)
6345 webecray
6346 #else
6347 wenotbecray
6348 #endif
6350 _ACEOF
6351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6352 $EGREP "webecray" >/dev/null 2>&1; then
6353 ac_cv_os_cray=yes
6354 else
6355 ac_cv_os_cray=no
6357 rm -f conftest*
6360 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6361 echo "${ECHO_T}$ac_cv_os_cray" >&6
6362 if test $ac_cv_os_cray = yes; then
6363 for ac_func in _getb67 GETB67 getb67; do
6364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6365 echo "$as_me:$LINENO: checking for $ac_func" >&5
6366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6367 if eval "test \"\${$as_ac_var+set}\" = set"; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6378 #define $ac_func innocuous_$ac_func
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char $ac_func (); below.
6382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6383 <limits.h> exists even on freestanding compilers. */
6385 #ifdef __STDC__
6386 # include <limits.h>
6387 #else
6388 # include <assert.h>
6389 #endif
6391 #undef $ac_func
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 #ifdef __cplusplus
6395 extern "C"
6397 #endif
6398 /* We use char because int might match the return type of a gcc2
6399 builtin and then its argument prototype would still apply. */
6400 char $ac_func ();
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6405 choke me
6406 #else
6407 char (*f) () = $ac_func;
6408 #endif
6409 #ifdef __cplusplus
6411 #endif
6414 main ()
6416 return f != $ac_func;
6418 return 0;
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 eval "$as_ac_var=yes"
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 eval "$as_ac_var=no"
6450 rm -f conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6455 if test `eval echo '${'$as_ac_var'}'` = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458 #define CRAY_STACKSEG_END $ac_func
6459 _ACEOF
6461 break
6464 done
6467 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6468 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6469 if test "${ac_cv_c_stack_direction+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 if test "$cross_compiling" = yes; then
6473 ac_cv_c_stack_direction=0
6474 else
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6482 find_stack_direction ()
6484 static char *addr = 0;
6485 auto char dummy;
6486 if (addr == 0)
6488 addr = &dummy;
6489 return find_stack_direction ();
6491 else
6492 return (&dummy > addr) ? 1 : -1;
6496 main ()
6498 exit (find_stack_direction () < 0);
6500 _ACEOF
6501 rm -f conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 ac_cv_c_stack_direction=1
6513 else
6514 echo "$as_me: program exited with status $ac_status" >&5
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 ( exit $ac_status )
6519 ac_cv_c_stack_direction=-1
6521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6525 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6527 cat >>confdefs.h <<_ACEOF
6528 #define STACK_DIRECTION $ac_cv_c_stack_direction
6529 _ACEOF
6536 for ac_header in stdlib.h unistd.h
6538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540 echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547 else
6548 # Is the header compilable?
6549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 $ac_includes_default
6558 #include <$ac_header>
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 ac_header_compiler=yes
6583 else
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 ac_header_compiler=no
6589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6591 echo "${ECHO_T}$ac_header_compiler" >&6
6593 # Is the header present?
6594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <$ac_header>
6603 _ACEOF
6604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } >/dev/null; then
6612 if test -s conftest.err; then
6613 ac_cpp_err=$ac_c_preproc_warn_flag
6614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6615 else
6616 ac_cpp_err=
6618 else
6619 ac_cpp_err=yes
6621 if test -z "$ac_cpp_err"; then
6622 ac_header_preproc=yes
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_header_preproc=no
6629 rm -f conftest.err conftest.$ac_ext
6630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6631 echo "${ECHO_T}$ac_header_preproc" >&6
6633 # So? What about this header?
6634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6635 yes:no: )
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6640 ac_header_preproc=yes
6642 no:yes:* )
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6656 cat <<\_ASBOX
6657 ## ------------------------------------------ ##
6658 ## Report this to the AC_PACKAGE_NAME lists. ##
6659 ## ------------------------------------------ ##
6660 _ASBOX
6662 sed "s/^/$as_me: WARNING: /" >&2
6664 esac
6665 echo "$as_me:$LINENO: checking for $ac_header" >&5
6666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 eval "$as_ac_Header=\$ac_header_preproc"
6672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677 cat >>confdefs.h <<_ACEOF
6678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6679 _ACEOF
6683 done
6686 for ac_func in getpagesize
6688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6689 echo "$as_me:$LINENO: checking for $ac_func" >&5
6690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6691 if eval "test \"\${$as_ac_var+set}\" = set"; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6702 #define $ac_func innocuous_$ac_func
6704 /* System header to define __stub macros and hopefully few prototypes,
6705 which can conflict with char $ac_func (); below.
6706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6707 <limits.h> exists even on freestanding compilers. */
6709 #ifdef __STDC__
6710 # include <limits.h>
6711 #else
6712 # include <assert.h>
6713 #endif
6715 #undef $ac_func
6717 /* Override any gcc2 internal prototype to avoid an error. */
6718 #ifdef __cplusplus
6719 extern "C"
6721 #endif
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6724 char $ac_func ();
6725 /* The GNU C library defines this for functions which it implements
6726 to always fail with ENOSYS. Some functions are actually named
6727 something starting with __ and the normal name is an alias. */
6728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729 choke me
6730 #else
6731 char (*f) () = $ac_func;
6732 #endif
6733 #ifdef __cplusplus
6735 #endif
6738 main ()
6740 return f != $ac_func;
6742 return 0;
6744 _ACEOF
6745 rm -f conftest.$ac_objext conftest$ac_exeext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747 (eval $ac_link) 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 eval "$as_ac_var=yes"
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 eval "$as_ac_var=no"
6774 rm -f conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6779 if test `eval echo '${'$as_ac_var'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6782 _ACEOF
6785 done
6787 echo "$as_me:$LINENO: checking for working mmap" >&5
6788 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6789 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 if test "$cross_compiling" = yes; then
6793 ac_cv_func_mmap_fixed_mapped=no
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 $ac_includes_default
6802 /* malloc might have been renamed as rpl_malloc. */
6803 #undef malloc
6805 /* Thanks to Mike Haertel and Jim Avera for this test.
6806 Here is a matrix of mmap possibilities:
6807 mmap private not fixed
6808 mmap private fixed at somewhere currently unmapped
6809 mmap private fixed at somewhere already mapped
6810 mmap shared not fixed
6811 mmap shared fixed at somewhere currently unmapped
6812 mmap shared fixed at somewhere already mapped
6813 For private mappings, we should verify that changes cannot be read()
6814 back from the file, nor mmap's back from the file at a different
6815 address. (There have been systems where private was not correctly
6816 implemented like the infamous i386 svr4.0, and systems where the
6817 VM page cache was not coherent with the file system buffer cache
6818 like early versions of FreeBSD and possibly contemporary NetBSD.)
6819 For shared mappings, we should conversely verify that changes get
6820 propagated back to all the places they're supposed to be.
6822 Grep wants private fixed already mapped.
6823 The main things grep needs to know about mmap are:
6824 * does it exist and is it safe to write into the mmap'd area
6825 * how to use it (BSD variants) */
6827 #include <fcntl.h>
6828 #include <sys/mman.h>
6830 #if !STDC_HEADERS && !HAVE_STDLIB_H
6831 char *malloc ();
6832 #endif
6834 /* This mess was copied from the GNU getpagesize.h. */
6835 #if !HAVE_GETPAGESIZE
6836 /* Assume that all systems that can run configure have sys/param.h. */
6837 # if !HAVE_SYS_PARAM_H
6838 # define HAVE_SYS_PARAM_H 1
6839 # endif
6841 # ifdef _SC_PAGESIZE
6842 # define getpagesize() sysconf(_SC_PAGESIZE)
6843 # else /* no _SC_PAGESIZE */
6844 # if HAVE_SYS_PARAM_H
6845 # include <sys/param.h>
6846 # ifdef EXEC_PAGESIZE
6847 # define getpagesize() EXEC_PAGESIZE
6848 # else /* no EXEC_PAGESIZE */
6849 # ifdef NBPG
6850 # define getpagesize() NBPG * CLSIZE
6851 # ifndef CLSIZE
6852 # define CLSIZE 1
6853 # endif /* no CLSIZE */
6854 # else /* no NBPG */
6855 # ifdef NBPC
6856 # define getpagesize() NBPC
6857 # else /* no NBPC */
6858 # ifdef PAGESIZE
6859 # define getpagesize() PAGESIZE
6860 # endif /* PAGESIZE */
6861 # endif /* no NBPC */
6862 # endif /* no NBPG */
6863 # endif /* no EXEC_PAGESIZE */
6864 # else /* no HAVE_SYS_PARAM_H */
6865 # define getpagesize() 8192 /* punt totally */
6866 # endif /* no HAVE_SYS_PARAM_H */
6867 # endif /* no _SC_PAGESIZE */
6869 #endif /* no HAVE_GETPAGESIZE */
6872 main ()
6874 char *data, *data2, *data3;
6875 int i, pagesize;
6876 int fd;
6878 pagesize = getpagesize ();
6880 /* First, make a file with some known garbage in it. */
6881 data = (char *) malloc (pagesize);
6882 if (!data)
6883 exit (1);
6884 for (i = 0; i < pagesize; ++i)
6885 *(data + i) = rand ();
6886 umask (0);
6887 fd = creat ("conftest.mmap", 0600);
6888 if (fd < 0)
6889 exit (1);
6890 if (write (fd, data, pagesize) != pagesize)
6891 exit (1);
6892 close (fd);
6894 /* Next, try to mmap the file at a fixed address which already has
6895 something else allocated at it. If we can, also make sure that
6896 we see the same garbage. */
6897 fd = open ("conftest.mmap", O_RDWR);
6898 if (fd < 0)
6899 exit (1);
6900 data2 = (char *) malloc (2 * pagesize);
6901 if (!data2)
6902 exit (1);
6903 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6904 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6905 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6906 exit (1);
6907 for (i = 0; i < pagesize; ++i)
6908 if (*(data + i) != *(data2 + i))
6909 exit (1);
6911 /* Finally, make sure that changes to the mapped area do not
6912 percolate back to the file as seen by read(). (This is a bug on
6913 some variants of i386 svr4.0.) */
6914 for (i = 0; i < pagesize; ++i)
6915 *(data2 + i) = *(data2 + i) + 1;
6916 data3 = (char *) malloc (pagesize);
6917 if (!data3)
6918 exit (1);
6919 if (read (fd, data3, pagesize) != pagesize)
6920 exit (1);
6921 for (i = 0; i < pagesize; ++i)
6922 if (*(data + i) != *(data3 + i))
6923 exit (1);
6924 close (fd);
6925 exit (0);
6927 _ACEOF
6928 rm -f conftest$ac_exeext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930 (eval $ac_link) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 (eval $ac_try) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6939 ac_cv_func_mmap_fixed_mapped=yes
6940 else
6941 echo "$as_me: program exited with status $ac_status" >&5
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 ( exit $ac_status )
6946 ac_cv_func_mmap_fixed_mapped=no
6948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6951 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6952 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_MMAP 1
6957 _ACEOF
6960 rm -f conftest.mmap
6972 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6973 unistd.h values.h sys/param.h
6975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6977 echo "$as_me:$LINENO: checking for $ac_header" >&5
6978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6984 else
6985 # Is the header compilable?
6986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 #include <$ac_header>
6996 _ACEOF
6997 rm -f conftest.$ac_objext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999 (eval $ac_compile) 2>conftest.er1
7000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } &&
7006 { ac_try='test -z "$ac_c_werror_flag"
7007 || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_header_compiler=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_header_compiler=no
7026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7028 echo "${ECHO_T}$ac_header_compiler" >&6
7030 # Is the header present?
7031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <$ac_header>
7040 _ACEOF
7041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } >/dev/null; then
7049 if test -s conftest.err; then
7050 ac_cpp_err=$ac_c_preproc_warn_flag
7051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7052 else
7053 ac_cpp_err=
7055 else
7056 ac_cpp_err=yes
7058 if test -z "$ac_cpp_err"; then
7059 ac_header_preproc=yes
7060 else
7061 echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 ac_header_preproc=no
7066 rm -f conftest.err conftest.$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7068 echo "${ECHO_T}$ac_header_preproc" >&6
7070 # So? What about this header?
7071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7072 yes:no: )
7073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7077 ac_header_preproc=yes
7079 no:yes:* )
7080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7093 cat <<\_ASBOX
7094 ## ------------------------------------------ ##
7095 ## Report this to the AC_PACKAGE_NAME lists. ##
7096 ## ------------------------------------------ ##
7097 _ASBOX
7099 sed "s/^/$as_me: WARNING: /" >&2
7101 esac
7102 echo "$as_me:$LINENO: checking for $ac_header" >&5
7103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 eval "$as_ac_Header=\$ac_header_preproc"
7109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7114 cat >>confdefs.h <<_ACEOF
7115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7116 _ACEOF
7120 done
7132 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7133 __argz_count __argz_stringify __argz_next
7135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7136 echo "$as_me:$LINENO: checking for $ac_func" >&5
7137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7138 if eval "test \"\${$as_ac_var+set}\" = set"; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7149 #define $ac_func innocuous_$ac_func
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char $ac_func (); below.
7153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7154 <limits.h> exists even on freestanding compilers. */
7156 #ifdef __STDC__
7157 # include <limits.h>
7158 #else
7159 # include <assert.h>
7160 #endif
7162 #undef $ac_func
7164 /* Override any gcc2 internal prototype to avoid an error. */
7165 #ifdef __cplusplus
7166 extern "C"
7168 #endif
7169 /* We use char because int might match the return type of a gcc2
7170 builtin and then its argument prototype would still apply. */
7171 char $ac_func ();
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 choke me
7177 #else
7178 char (*f) () = $ac_func;
7179 #endif
7180 #ifdef __cplusplus
7182 #endif
7185 main ()
7187 return f != $ac_func;
7189 return 0;
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 eval "$as_ac_var=yes"
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 eval "$as_ac_var=no"
7221 rm -f conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7226 if test `eval echo '${'$as_ac_var'}'` = yes; then
7227 cat >>confdefs.h <<_ACEOF
7228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7229 _ACEOF
7232 done
7235 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7237 for ac_func in stpcpy
7239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7240 echo "$as_me:$LINENO: checking for $ac_func" >&5
7241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7242 if eval "test \"\${$as_ac_var+set}\" = set"; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7253 #define $ac_func innocuous_$ac_func
7255 /* System header to define __stub macros and hopefully few prototypes,
7256 which can conflict with char $ac_func (); below.
7257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7258 <limits.h> exists even on freestanding compilers. */
7260 #ifdef __STDC__
7261 # include <limits.h>
7262 #else
7263 # include <assert.h>
7264 #endif
7266 #undef $ac_func
7268 /* Override any gcc2 internal prototype to avoid an error. */
7269 #ifdef __cplusplus
7270 extern "C"
7272 #endif
7273 /* We use char because int might match the return type of a gcc2
7274 builtin and then its argument prototype would still apply. */
7275 char $ac_func ();
7276 /* The GNU C library defines this for functions which it implements
7277 to always fail with ENOSYS. Some functions are actually named
7278 something starting with __ and the normal name is an alias. */
7279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7280 choke me
7281 #else
7282 char (*f) () = $ac_func;
7283 #endif
7284 #ifdef __cplusplus
7286 #endif
7289 main ()
7291 return f != $ac_func;
7293 return 0;
7295 _ACEOF
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -z "$ac_c_werror_flag"
7306 || test ! -s conftest.err'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 eval "$as_ac_var=yes"
7319 else
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 eval "$as_ac_var=no"
7325 rm -f conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7330 if test `eval echo '${'$as_ac_var'}'` = yes; then
7331 cat >>confdefs.h <<_ACEOF
7332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7333 _ACEOF
7336 done
7339 if test "${ac_cv_func_stpcpy}" = "yes"; then
7341 cat >>confdefs.h <<\_ACEOF
7342 #define HAVE_STPCPY 1
7343 _ACEOF
7347 if test $ac_cv_header_locale_h = yes; then
7348 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7349 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7350 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <locale.h>
7361 main ()
7363 return LC_MESSAGES
7365 return 0;
7367 _ACEOF
7368 rm -f conftest.$ac_objext conftest$ac_exeext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7370 (eval $ac_link) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag"
7378 || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 am_cv_val_LC_MESSAGES=yes
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 am_cv_val_LC_MESSAGES=no
7397 rm -f conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7401 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7402 if test $am_cv_val_LC_MESSAGES = yes; then
7404 cat >>confdefs.h <<\_ACEOF
7405 #define HAVE_LC_MESSAGES 1
7406 _ACEOF
7410 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7411 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7412 # Check whether --enable-nls or --disable-nls was given.
7413 if test "${enable_nls+set}" = set; then
7414 enableval="$enable_nls"
7415 USE_NLS=$enableval
7416 else
7417 USE_NLS=yes
7419 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7420 echo "${ECHO_T}$USE_NLS" >&6
7423 USE_INCLUDED_LIBINTL=no
7425 if test "$USE_NLS" = "yes"; then
7426 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7427 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7429 # Check whether --with-included-gettext or --without-included-gettext was given.
7430 if test "${with_included_gettext+set}" = set; then
7431 withval="$with_included_gettext"
7432 nls_cv_force_use_gnu_gettext=$withval
7433 else
7434 nls_cv_force_use_gnu_gettext=no
7436 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7437 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7439 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7440 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7441 nls_cv_header_intl=
7442 nls_cv_header_libgt=
7443 CATOBJEXT=
7445 if test "${ac_cv_header_libintl_h+set}" = set; then
7446 echo "$as_me:$LINENO: checking for libintl.h" >&5
7447 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7448 if test "${ac_cv_header_libintl_h+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7452 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7453 else
7454 # Is the header compilable?
7455 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7456 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7457 cat >conftest.$ac_ext <<_ACEOF
7458 /* confdefs.h. */
7459 _ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7463 $ac_includes_default
7464 #include <libintl.h>
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_header_compiler=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_header_compiler=no
7495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7497 echo "${ECHO_T}$ac_header_compiler" >&6
7499 # Is the header present?
7500 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7501 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 #include <libintl.h>
7509 _ACEOF
7510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } >/dev/null; then
7518 if test -s conftest.err; then
7519 ac_cpp_err=$ac_c_preproc_warn_flag
7520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7521 else
7522 ac_cpp_err=
7524 else
7525 ac_cpp_err=yes
7527 if test -z "$ac_cpp_err"; then
7528 ac_header_preproc=yes
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 ac_header_preproc=no
7535 rm -f conftest.err conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7537 echo "${ECHO_T}$ac_header_preproc" >&6
7539 # So? What about this header?
7540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7541 yes:no: )
7542 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7543 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7545 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7546 ac_header_preproc=yes
7548 no:yes:* )
7549 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7550 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7552 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7554 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7556 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7560 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7562 cat <<\_ASBOX
7563 ## ------------------------------------------ ##
7564 ## Report this to the AC_PACKAGE_NAME lists. ##
7565 ## ------------------------------------------ ##
7566 _ASBOX
7568 sed "s/^/$as_me: WARNING: /" >&2
7570 esac
7571 echo "$as_me:$LINENO: checking for libintl.h" >&5
7572 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7573 if test "${ac_cv_header_libintl_h+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 ac_cv_header_libintl_h=$ac_header_preproc
7578 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7579 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7582 if test $ac_cv_header_libintl_h = yes; then
7583 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7584 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7585 if test "${gt_cv_func_gettext_libc+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <libintl.h>
7596 main ()
7598 return (int) gettext ("")
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 gt_cv_func_gettext_libc=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 gt_cv_func_gettext_libc=no
7632 rm -f conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
7635 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7636 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7638 if test "$gt_cv_func_gettext_libc" != "yes"; then
7639 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7640 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7641 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644 ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lintl $LIBS"
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659 char bindtextdomain ();
7661 main ()
7663 bindtextdomain ();
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_cv_lib_intl_bindtextdomain=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_cv_lib_intl_bindtextdomain=no
7697 rm -f conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7701 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7702 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7703 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7704 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7705 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7706 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7717 main ()
7719 return (int) gettext ("")
7721 return 0;
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726 (eval $ac_link) 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -z "$ac_c_werror_flag"
7734 || test ! -s conftest.err'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 gt_cv_func_gettext_libintl=yes
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 gt_cv_func_gettext_libintl=no
7753 rm -f conftest.err conftest.$ac_objext \
7754 conftest$ac_exeext conftest.$ac_ext
7756 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7757 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7762 if test "$gt_cv_func_gettext_libc" = "yes" \
7763 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7765 cat >>confdefs.h <<\_ACEOF
7766 #define HAVE_GETTEXT 1
7767 _ACEOF
7769 # Extract the first word of "msgfmt", so it can be a program name with args.
7770 set dummy msgfmt; ac_word=$2
7771 echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7773 if test "${ac_cv_path_MSGFMT+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 case "$MSGFMT" in
7778 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7782 for ac_dir in $PATH; do
7783 test -z "$ac_dir" && ac_dir=.
7784 if test -f $ac_dir/$ac_word; then
7785 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7786 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7787 break
7790 done
7791 IFS="$ac_save_ifs"
7792 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7794 esac
7796 MSGFMT="$ac_cv_path_MSGFMT"
7797 if test -n "$MSGFMT"; then
7798 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7799 echo "${ECHO_T}$MSGFMT" >&6
7800 else
7801 echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6
7804 if test "$MSGFMT" != "no"; then
7806 for ac_func in dcgettext
7808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7809 echo "$as_me:$LINENO: checking for $ac_func" >&5
7810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7811 if eval "test \"\${$as_ac_var+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7822 #define $ac_func innocuous_$ac_func
7824 /* System header to define __stub macros and hopefully few prototypes,
7825 which can conflict with char $ac_func (); below.
7826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7827 <limits.h> exists even on freestanding compilers. */
7829 #ifdef __STDC__
7830 # include <limits.h>
7831 #else
7832 # include <assert.h>
7833 #endif
7835 #undef $ac_func
7837 /* Override any gcc2 internal prototype to avoid an error. */
7838 #ifdef __cplusplus
7839 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char $ac_func ();
7845 /* The GNU C library defines this for functions which it implements
7846 to always fail with ENOSYS. Some functions are actually named
7847 something starting with __ and the normal name is an alias. */
7848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 choke me
7850 #else
7851 char (*f) () = $ac_func;
7852 #endif
7853 #ifdef __cplusplus
7855 #endif
7858 main ()
7860 return f != $ac_func;
7862 return 0;
7864 _ACEOF
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 eval "$as_ac_var=yes"
7888 else
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 eval "$as_ac_var=no"
7894 rm -f conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7899 if test `eval echo '${'$as_ac_var'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7902 _ACEOF
7905 done
7907 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7908 set dummy gmsgfmt; ac_word=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 case $GMSGFMT in
7915 [\\/]* | ?:[\\/]*)
7916 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7933 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7935 esac
7937 GMSGFMT=$ac_cv_path_GMSGFMT
7939 if test -n "$GMSGFMT"; then
7940 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7941 echo "${ECHO_T}$GMSGFMT" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7947 # Extract the first word of "xgettext", so it can be a program name with args.
7948 set dummy xgettext; ac_word=$2
7949 echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 case "$XGETTEXT" in
7956 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7960 for ac_dir in $PATH; do
7961 test -z "$ac_dir" && ac_dir=.
7962 if test -f $ac_dir/$ac_word; then
7963 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7964 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7965 break
7968 done
7969 IFS="$ac_save_ifs"
7970 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7972 esac
7974 XGETTEXT="$ac_cv_path_XGETTEXT"
7975 if test -n "$XGETTEXT"; then
7976 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7977 echo "${ECHO_T}$XGETTEXT" >&6
7978 else
7979 echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7991 main ()
7993 extern int _nl_msg_cat_cntr;
7994 return _nl_msg_cat_cntr
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag"
8009 || test ! -s conftest.err'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 (eval $ac_try) 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 CATOBJEXT=.gmo
8022 DATADIRNAME=share
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 CATOBJEXT=.mo
8028 DATADIRNAME=lib
8030 rm -f conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext conftest.$ac_ext
8032 INSTOBJEXT=.mo
8041 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8042 # Neither gettext nor catgets in included in the C library.
8043 # Fall back on GNU gettext library (assuming it is present).
8044 nls_cv_use_gnu_gettext=yes
8048 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8049 INTLOBJS="\$(GETTOBJS)"
8050 # Extract the first word of "msgfmt", so it can be a program name with args.
8051 set dummy msgfmt; ac_word=$2
8052 echo "$as_me:$LINENO: checking for $ac_word" >&5
8053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8054 if test "${ac_cv_path_MSGFMT+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 case "$MSGFMT" in
8059 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8063 for ac_dir in $PATH; do
8064 test -z "$ac_dir" && ac_dir=.
8065 if test -f $ac_dir/$ac_word; then
8066 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8067 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8068 break
8071 done
8072 IFS="$ac_save_ifs"
8073 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8075 esac
8077 MSGFMT="$ac_cv_path_MSGFMT"
8078 if test -n "$MSGFMT"; then
8079 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8080 echo "${ECHO_T}$MSGFMT" >&6
8081 else
8082 echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6
8086 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8087 set dummy gmsgfmt; ac_word=$2
8088 echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8090 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093 case $GMSGFMT in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8109 done
8110 done
8112 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8114 esac
8116 GMSGFMT=$ac_cv_path_GMSGFMT
8118 if test -n "$GMSGFMT"; then
8119 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8120 echo "${ECHO_T}$GMSGFMT" >&6
8121 else
8122 echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8126 # Extract the first word of "xgettext", so it can be a program name with args.
8127 set dummy xgettext; ac_word=$2
8128 echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8130 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 case "$XGETTEXT" in
8135 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8139 for ac_dir in $PATH; do
8140 test -z "$ac_dir" && ac_dir=.
8141 if test -f $ac_dir/$ac_word; then
8142 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8143 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8144 break
8147 done
8148 IFS="$ac_save_ifs"
8149 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8151 esac
8153 XGETTEXT="$ac_cv_path_XGETTEXT"
8154 if test -n "$XGETTEXT"; then
8155 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8156 echo "${ECHO_T}$XGETTEXT" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159 echo "${ECHO_T}no" >&6
8163 USE_INCLUDED_LIBINTL=yes
8164 CATOBJEXT=.gmo
8165 INSTOBJEXT=.mo
8166 DATADIRNAME=share
8167 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8168 INTLLIBS=$INTLDEPS
8169 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8170 nls_cv_header_intl=libintl.h
8171 nls_cv_header_libgt=libgettext.h
8174 if test "$XGETTEXT" != ":"; then
8175 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8177 else
8178 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8179 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8180 XGETTEXT=":"
8184 # We need to process the po/ directory.
8185 POSUB=po
8186 else
8187 DATADIRNAME=share
8188 nls_cv_header_intl=libintl.h
8189 nls_cv_header_libgt=libgettext.h
8192 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8193 # because some of the sources are only built for this goal.
8194 if test "$PACKAGE" = gettext; then
8195 USE_NLS=yes
8196 USE_INCLUDED_LIBINTL=yes
8199 for lang in $ALL_LINGUAS; do
8200 GMOFILES="$GMOFILES $lang.gmo"
8201 POFILES="$POFILES $lang.po"
8202 done
8215 if test "x$CATOBJEXT" != "x"; then
8217 cat >>confdefs.h <<\_ACEOF
8218 #define ENABLE_NLS 1
8219 _ACEOF
8224 if test "x$CATOBJEXT" != "x"; then
8225 if test "x$ALL_LINGUAS" = "x"; then
8226 LINGUAS=
8227 else
8228 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8229 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8230 NEW_LINGUAS=
8231 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8232 case "$ALL_LINGUAS" in
8233 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8234 esac
8235 done
8236 LINGUAS=$NEW_LINGUAS
8237 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8238 echo "${ECHO_T}$LINGUAS" >&6
8241 if test -n "$LINGUAS"; then
8242 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8246 if test $ac_cv_header_locale_h = yes; then
8247 INCLUDE_LOCALE_H="#include <locale.h>"
8248 else
8249 INCLUDE_LOCALE_H="\
8250 /* The system does not provide the header <locale.h>. Take care yourself. */"
8254 if test -f $srcdir/po2tbl.sed.in; then
8255 if test "$CATOBJEXT" = ".cat"; then
8256 if test "${ac_cv_header_linux_version_h+set}" = set; then
8257 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8258 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8259 if test "${ac_cv_header_linux_version_h+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8263 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8264 else
8265 # Is the header compilable?
8266 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8267 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8275 #include <linux/version.h>
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279 (eval $ac_compile) 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_header_compiler=yes
8300 else
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_header_compiler=no
8306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308 echo "${ECHO_T}$ac_header_compiler" >&6
8310 # Is the header present?
8311 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8312 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <linux/version.h>
8320 _ACEOF
8321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } >/dev/null; then
8329 if test -s conftest.err; then
8330 ac_cpp_err=$ac_c_preproc_warn_flag
8331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8332 else
8333 ac_cpp_err=
8335 else
8336 ac_cpp_err=yes
8338 if test -z "$ac_cpp_err"; then
8339 ac_header_preproc=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_header_preproc=no
8346 rm -f conftest.err conftest.$ac_ext
8347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8348 echo "${ECHO_T}$ac_header_preproc" >&6
8350 # So? What about this header?
8351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8352 yes:no: )
8353 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8354 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8356 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8357 ac_header_preproc=yes
8359 no:yes:* )
8360 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8361 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8363 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8365 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8367 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8371 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8373 cat <<\_ASBOX
8374 ## ------------------------------------------ ##
8375 ## Report this to the AC_PACKAGE_NAME lists. ##
8376 ## ------------------------------------------ ##
8377 _ASBOX
8379 sed "s/^/$as_me: WARNING: /" >&2
8381 esac
8382 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8383 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8384 if test "${ac_cv_header_linux_version_h+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 ac_cv_header_linux_version_h=$ac_header_preproc
8389 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8390 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8393 if test $ac_cv_header_linux_version_h = yes; then
8394 msgformat=linux
8395 else
8396 msgformat=xopen
8401 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8403 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8404 $srcdir/po2tbl.sed.in > po2tbl.sed
8407 if test "$PACKAGE" = "gettext"; then
8408 GT_NO="#NO#"
8409 GT_YES=
8410 else
8411 GT_NO=
8412 GT_YES="#YES#"
8417 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8423 if test -f $srcdir/po/POTFILES.in; then
8424 test -d po || mkdir po
8425 if test "x$srcdir" != "x."; then
8426 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8427 posrcprefix="$srcdir/"
8428 else
8429 posrcprefix="../$srcdir/"
8431 else
8432 posrcprefix="../"
8434 rm -f po/POTFILES
8435 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8436 < $srcdir/po/POTFILES.in > po/POTFILES
8440 # Permit host specific settings.
8441 . ${srcdir}/configure.host
8444 # Find a good install program. We prefer a C program (faster),
8445 # so one script is as good as another. But avoid the broken or
8446 # incompatible versions:
8447 # SysV /etc/install, /usr/sbin/install
8448 # SunOS /usr/etc/install
8449 # IRIX /sbin/install
8450 # AIX /bin/install
8451 # AmigaOS /C/install, which installs bootblocks on floppy discs
8452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8455 # OS/2's system install, which has a completely different semantic
8456 # ./install, which can be erroneously created by make from ./install.sh.
8457 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8459 if test -z "$INSTALL"; then
8460 if test "${ac_cv_path_install+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 # Account for people who put trailing slashes in PATH elements.
8469 case $as_dir/ in
8470 ./ | .// | /cC/* | \
8471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8473 /usr/ucb/* ) ;;
8475 # OSF1 and SCO ODT 3.0 have their own names for install.
8476 # Don't use installbsd from OSF since it installs stuff as root
8477 # by default.
8478 for ac_prog in ginstall scoinst install; do
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8481 if test $ac_prog = install &&
8482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8483 # AIX install. It has an incompatible calling convention.
8485 elif test $ac_prog = install &&
8486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8487 # program-specific install script used by HP pwplus--don't use.
8489 else
8490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8491 break 3
8494 done
8495 done
8497 esac
8498 done
8502 if test "${ac_cv_path_install+set}" = set; then
8503 INSTALL=$ac_cv_path_install
8504 else
8505 # As a last resort, use the slow shell script. We don't cache a
8506 # path for INSTALL within a source directory, because that will
8507 # break other packages using the cache if that directory is
8508 # removed, or if the path is relative.
8509 INSTALL=$ac_install_sh
8512 echo "$as_me:$LINENO: result: $INSTALL" >&5
8513 echo "${ECHO_T}$INSTALL" >&6
8515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8516 # It thinks the first close brace ends the variable substitution.
8517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8524 BFD_HOST_64BIT_LONG=0
8525 BFD_HOST_LONG_LONG=0
8526 BFD_HOST_64_BIT_DEFINED=0
8527 BFD_HOST_64_BIT=
8528 BFD_HOST_U_64_BIT=
8530 echo "$as_me:$LINENO: checking for long long" >&5
8531 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8532 if test "${bfd_cv_has_long_long+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h. */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8543 main ()
8545 unsigned long long ll = 18446744073709551615ULL;
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 bfd_cv_has_long_long=yes
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 bfd_cv_has_long_long=no
8579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8583 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8584 if test $bfd_cv_has_long_long = yes; then
8585 BFD_HOST_LONG_LONG=1
8586 echo "$as_me:$LINENO: checking for long long" >&5
8587 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8588 if test "${ac_cv_type_long_long+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8599 main ()
8601 if ((long long *) 0)
8602 return 0;
8603 if (sizeof (long long))
8604 return 0;
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611 (eval $ac_compile) 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag"
8619 || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_type_long_long=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_cv_type_long_long=no
8638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8641 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8643 echo "$as_me:$LINENO: checking size of long long" >&5
8644 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8645 if test "${ac_cv_sizeof_long_long+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 if test "$ac_cv_type_long_long" = yes; then
8649 # The cast to unsigned long works around a bug in the HP C Compiler
8650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8652 # This bug is HP SR number 8606223364.
8653 if test "$cross_compiling" = yes; then
8654 # Depending upon the size, compute the lo and hi bounds.
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8663 main ()
8665 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8666 test_array [0] = 0
8669 return 0;
8671 _ACEOF
8672 rm -f conftest.$ac_objext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag"
8682 || test ! -s conftest.err'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest.$ac_objext'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_lo=0 ac_mid=0
8695 while :; do
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8704 main ()
8706 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8707 test_array [0] = 0
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8715 (eval $ac_compile) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest.$ac_objext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_hi=$ac_mid; break
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 ac_lo=`expr $ac_mid + 1`
8741 if test $ac_lo -le $ac_mid; then
8742 ac_lo= ac_hi=
8743 break
8745 ac_mid=`expr 2 '*' $ac_mid + 1`
8747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748 done
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8761 main ()
8763 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8764 test_array [0] = 0
8767 return 0;
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8772 (eval $ac_compile) 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag"
8780 || test ! -s conftest.err'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_hi=-1 ac_mid=-1
8793 while :; do
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8802 main ()
8804 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8805 test_array [0] = 0
8808 return 0;
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_lo=$ac_mid; break
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_hi=`expr '(' $ac_mid ')' - 1`
8839 if test $ac_mid -le $ac_hi; then
8840 ac_lo= ac_hi=
8841 break
8843 ac_mid=`expr 2 '*' $ac_mid`
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8846 done
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_lo= ac_hi=
8853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8856 # Binary search between lo and hi bounds.
8857 while test "x$ac_lo" != "x$ac_hi"; do
8858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8867 main ()
8869 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8870 test_array [0] = 0
8873 return 0;
8875 _ACEOF
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_hi=$ac_mid
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_lo=`expr '(' $ac_mid ')' + 1`
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8906 done
8907 case $ac_lo in
8908 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8909 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8910 See \`config.log' for more details." >&5
8911 echo "$as_me: error: cannot compute sizeof (long long), 77
8912 See \`config.log' for more details." >&2;}
8913 { (exit 1); exit 1; }; } ;;
8914 esac
8915 else
8916 if test "$cross_compiling" = yes; then
8917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8918 See \`config.log' for more details." >&5
8919 echo "$as_me: error: cannot run test program while cross compiling
8920 See \`config.log' for more details." >&2;}
8921 { (exit 1); exit 1; }; }
8922 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 long longval () { return (long) (sizeof (long long)); }
8931 unsigned long ulongval () { return (long) (sizeof (long long)); }
8932 #include <stdio.h>
8933 #include <stdlib.h>
8935 main ()
8938 FILE *f = fopen ("conftest.val", "w");
8939 if (! f)
8940 exit (1);
8941 if (((long) (sizeof (long long))) < 0)
8943 long i = longval ();
8944 if (i != ((long) (sizeof (long long))))
8945 exit (1);
8946 fprintf (f, "%ld\n", i);
8948 else
8950 unsigned long i = ulongval ();
8951 if (i != ((long) (sizeof (long long))))
8952 exit (1);
8953 fprintf (f, "%lu\n", i);
8955 exit (ferror (f) || fclose (f) != 0);
8958 return 0;
8960 _ACEOF
8961 rm -f conftest$ac_exeext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_sizeof_long_long=`cat conftest.val`
8973 else
8974 echo "$as_me: program exited with status $ac_status" >&5
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ( exit $ac_status )
8979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8980 See \`config.log' for more details." >&5
8981 echo "$as_me: error: cannot compute sizeof (long long), 77
8982 See \`config.log' for more details." >&2;}
8983 { (exit 1); exit 1; }; }
8985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8988 rm -f conftest.val
8989 else
8990 ac_cv_sizeof_long_long=0
8993 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8994 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8995 cat >>confdefs.h <<_ACEOF
8996 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8997 _ACEOF
9002 echo "$as_me:$LINENO: checking for long" >&5
9003 echo $ECHO_N "checking for long... $ECHO_C" >&6
9004 if test "${ac_cv_type_long+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9015 main ()
9017 if ((long *) 0)
9018 return 0;
9019 if (sizeof (long))
9020 return 0;
9022 return 0;
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9027 (eval $ac_compile) 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } &&
9034 { ac_try='test -z "$ac_c_werror_flag"
9035 || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest.$ac_objext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_type_long=yes
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_type_long=no
9054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9057 echo "${ECHO_T}$ac_cv_type_long" >&6
9059 echo "$as_me:$LINENO: checking size of long" >&5
9060 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9061 if test "${ac_cv_sizeof_long+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 if test "$ac_cv_type_long" = yes; then
9065 # The cast to unsigned long works around a bug in the HP C Compiler
9066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9068 # This bug is HP SR number 8606223364.
9069 if test "$cross_compiling" = yes; then
9070 # Depending upon the size, compute the lo and hi bounds.
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 $ac_includes_default
9079 main ()
9081 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9082 test_array [0] = 0
9085 return 0;
9087 _ACEOF
9088 rm -f conftest.$ac_objext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9090 (eval $ac_compile) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest.$ac_objext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_lo=0 ac_mid=0
9111 while :; do
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9120 main ()
9122 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9123 test_array [0] = 0
9126 return 0;
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag"
9139 || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_hi=$ac_mid; break
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ac_lo=`expr $ac_mid + 1`
9157 if test $ac_lo -le $ac_mid; then
9158 ac_lo= ac_hi=
9159 break
9161 ac_mid=`expr 2 '*' $ac_mid + 1`
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9164 done
9165 else
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9177 main ()
9179 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9180 test_array [0] = 0
9183 return 0;
9185 _ACEOF
9186 rm -f conftest.$ac_objext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9188 (eval $ac_compile) 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag"
9196 || test ! -s conftest.err'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_hi=-1 ac_mid=-1
9209 while :; do
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9218 main ()
9220 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9221 test_array [0] = 0
9224 return 0;
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_lo=$ac_mid; break
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_hi=`expr '(' $ac_mid ')' - 1`
9255 if test $ac_mid -le $ac_hi; then
9256 ac_lo= ac_hi=
9257 break
9259 ac_mid=`expr 2 '*' $ac_mid`
9261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262 done
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_lo= ac_hi=
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9272 # Binary search between lo and hi bounds.
9273 while test "x$ac_lo" != "x$ac_hi"; do
9274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9283 main ()
9285 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9286 test_array [0] = 0
9289 return 0;
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_c_werror_flag"
9302 || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest.$ac_objext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 ac_hi=$ac_mid
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_lo=`expr '(' $ac_mid ')' + 1`
9321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9322 done
9323 case $ac_lo in
9324 ?*) ac_cv_sizeof_long=$ac_lo;;
9325 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9326 See \`config.log' for more details." >&5
9327 echo "$as_me: error: cannot compute sizeof (long), 77
9328 See \`config.log' for more details." >&2;}
9329 { (exit 1); exit 1; }; } ;;
9330 esac
9331 else
9332 if test "$cross_compiling" = yes; then
9333 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9334 See \`config.log' for more details." >&5
9335 echo "$as_me: error: cannot run test program while cross compiling
9336 See \`config.log' for more details." >&2;}
9337 { (exit 1); exit 1; }; }
9338 else
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 $ac_includes_default
9346 long longval () { return (long) (sizeof (long)); }
9347 unsigned long ulongval () { return (long) (sizeof (long)); }
9348 #include <stdio.h>
9349 #include <stdlib.h>
9351 main ()
9354 FILE *f = fopen ("conftest.val", "w");
9355 if (! f)
9356 exit (1);
9357 if (((long) (sizeof (long))) < 0)
9359 long i = longval ();
9360 if (i != ((long) (sizeof (long))))
9361 exit (1);
9362 fprintf (f, "%ld\n", i);
9364 else
9366 unsigned long i = ulongval ();
9367 if (i != ((long) (sizeof (long))))
9368 exit (1);
9369 fprintf (f, "%lu\n", i);
9371 exit (ferror (f) || fclose (f) != 0);
9374 return 0;
9376 _ACEOF
9377 rm -f conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_sizeof_long=`cat conftest.val`
9389 else
9390 echo "$as_me: program exited with status $ac_status" >&5
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ( exit $ac_status )
9395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9396 See \`config.log' for more details." >&5
9397 echo "$as_me: error: cannot compute sizeof (long), 77
9398 See \`config.log' for more details." >&2;}
9399 { (exit 1); exit 1; }; }
9401 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9404 rm -f conftest.val
9405 else
9406 ac_cv_sizeof_long=0
9409 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9410 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9411 cat >>confdefs.h <<_ACEOF
9412 #define SIZEOF_LONG $ac_cv_sizeof_long
9413 _ACEOF
9416 if test "x${ac_cv_sizeof_long}" = "x8"; then
9417 host64=true
9418 BFD_HOST_64BIT_LONG=1
9419 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9420 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9421 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9422 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9423 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9426 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9427 BFD_HOST_64_BIT_DEFINED=1
9428 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9429 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9438 # Put a plausible default for CC_FOR_BUILD in Makefile.
9439 if test -z "$CC_FOR_BUILD"; then
9440 if test "x$cross_compiling" = "xno"; then
9441 CC_FOR_BUILD='$(CC)'
9442 else
9443 CC_FOR_BUILD=gcc
9447 # Also set EXEEXT_FOR_BUILD.
9448 if test "x$cross_compiling" = "xno"; then
9449 EXEEXT_FOR_BUILD='$(EXEEXT)'
9450 else
9451 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9452 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9453 if test "${bfd_cv_build_exeext+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 rm -f conftest*
9457 echo 'int main () { return 0; }' > conftest.c
9458 bfd_cv_build_exeext=
9459 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9460 for file in conftest.*; do
9461 case $file in
9462 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9463 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9464 esac
9465 done
9466 rm -f conftest*
9467 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9469 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9470 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9471 EXEEXT_FOR_BUILD=""
9472 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9482 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486 echo "$as_me:$LINENO: checking for $ac_header" >&5
9487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9493 else
9494 # Is the header compilable?
9495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 $ac_includes_default
9504 #include <$ac_header>
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag"
9516 || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest.$ac_objext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_header_compiler=yes
9529 else
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_header_compiler=no
9535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9537 echo "${ECHO_T}$ac_header_compiler" >&6
9539 # Is the header present?
9540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9542 cat >conftest.$ac_ext <<_ACEOF
9543 /* confdefs.h. */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 #include <$ac_header>
9549 _ACEOF
9550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } >/dev/null; then
9558 if test -s conftest.err; then
9559 ac_cpp_err=$ac_c_preproc_warn_flag
9560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9561 else
9562 ac_cpp_err=
9564 else
9565 ac_cpp_err=yes
9567 if test -z "$ac_cpp_err"; then
9568 ac_header_preproc=yes
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_header_preproc=no
9575 rm -f conftest.err conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9577 echo "${ECHO_T}$ac_header_preproc" >&6
9579 # So? What about this header?
9580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9581 yes:no: )
9582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9586 ac_header_preproc=yes
9588 no:yes:* )
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9602 cat <<\_ASBOX
9603 ## ------------------------------------------ ##
9604 ## Report this to the AC_PACKAGE_NAME lists. ##
9605 ## ------------------------------------------ ##
9606 _ASBOX
9608 sed "s/^/$as_me: WARNING: /" >&2
9610 esac
9611 echo "$as_me:$LINENO: checking for $ac_header" >&5
9612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 eval "$as_ac_Header=\$ac_header_preproc"
9618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9623 cat >>confdefs.h <<_ACEOF
9624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9625 _ACEOF
9629 done
9634 for ac_header in fcntl.h sys/file.h sys/time.h
9636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9638 echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9645 else
9646 # Is the header compilable?
9647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 $ac_includes_default
9656 #include <$ac_header>
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest.$ac_objext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_header_compiler=yes
9681 else
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_header_compiler=no
9687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9689 echo "${ECHO_T}$ac_header_compiler" >&6
9691 # Is the header present?
9692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 #include <$ac_header>
9701 _ACEOF
9702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } >/dev/null; then
9710 if test -s conftest.err; then
9711 ac_cpp_err=$ac_c_preproc_warn_flag
9712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9713 else
9714 ac_cpp_err=
9716 else
9717 ac_cpp_err=yes
9719 if test -z "$ac_cpp_err"; then
9720 ac_header_preproc=yes
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_header_preproc=no
9727 rm -f conftest.err conftest.$ac_ext
9728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9729 echo "${ECHO_T}$ac_header_preproc" >&6
9731 # So? What about this header?
9732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9733 yes:no: )
9734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9738 ac_header_preproc=yes
9740 no:yes:* )
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9754 cat <<\_ASBOX
9755 ## ------------------------------------------ ##
9756 ## Report this to the AC_PACKAGE_NAME lists. ##
9757 ## ------------------------------------------ ##
9758 _ASBOX
9760 sed "s/^/$as_me: WARNING: /" >&2
9762 esac
9763 echo "$as_me:$LINENO: checking for $ac_header" >&5
9764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 eval "$as_ac_Header=\$ac_header_preproc"
9770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9775 cat >>confdefs.h <<_ACEOF
9776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9777 _ACEOF
9781 done
9783 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9784 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9785 if test "${ac_cv_header_time+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 #include <sys/types.h>
9795 #include <sys/time.h>
9796 #include <time.h>
9799 main ()
9801 if ((struct tm *) 0)
9802 return 0;
9804 return 0;
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_cv_header_time=yes
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_header_time=no
9836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9838 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9839 echo "${ECHO_T}$ac_cv_header_time" >&6
9840 if test $ac_cv_header_time = yes; then
9842 cat >>confdefs.h <<\_ACEOF
9843 #define TIME_WITH_SYS_TIME 1
9844 _ACEOF
9853 ac_header_dirent=no
9854 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9855 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9856 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9857 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h. */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 #include <sys/types.h>
9868 #include <$ac_hdr>
9871 main ()
9873 if ((DIR *) 0)
9874 return 0;
9876 return 0;
9878 _ACEOF
9879 rm -f conftest.$ac_objext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881 (eval $ac_compile) 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_c_werror_flag"
9889 || test ! -s conftest.err'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 (eval $ac_try) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest.$ac_objext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 eval "$as_ac_Header=yes"
9902 else
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 eval "$as_ac_Header=no"
9908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9913 cat >>confdefs.h <<_ACEOF
9914 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9915 _ACEOF
9917 ac_header_dirent=$ac_hdr; break
9920 done
9921 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9922 if test $ac_header_dirent = dirent.h; then
9923 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9925 if test "${ac_cv_search_opendir+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 ac_func_search_save_LIBS=$LIBS
9929 ac_cv_search_opendir=no
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any gcc2 internal prototype to avoid an error. */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 /* We use char because int might match the return type of a gcc2
9942 builtin and then its argument prototype would still apply. */
9943 char opendir ();
9945 main ()
9947 opendir ();
9949 return 0;
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_cv_search_opendir="none required"
9975 else
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9980 rm -f conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 if test "$ac_cv_search_opendir" = no; then
9983 for ac_lib in dir; do
9984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
9998 char opendir ();
10000 main ()
10002 opendir ();
10004 return 0;
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_search_opendir="-l$ac_lib"
10030 break
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10036 rm -f conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10038 done
10040 LIBS=$ac_func_search_save_LIBS
10042 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10043 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10044 if test "$ac_cv_search_opendir" != no; then
10045 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10049 else
10050 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10051 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10052 if test "${ac_cv_search_opendir+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 ac_func_search_save_LIBS=$LIBS
10056 ac_cv_search_opendir=no
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char opendir ();
10072 main ()
10074 opendir ();
10076 return 0;
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_search_opendir="none required"
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10107 rm -f conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 if test "$ac_cv_search_opendir" = no; then
10110 for ac_lib in x; do
10111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10125 char opendir ();
10127 main ()
10129 opendir ();
10131 return 0;
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag"
10144 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_search_opendir="-l$ac_lib"
10157 break
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10163 rm -f conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 done
10167 LIBS=$ac_func_search_save_LIBS
10169 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10170 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10171 if test "$ac_cv_search_opendir" != no; then
10172 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10178 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10179 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10180 if test "${gcc_cv_header_string+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <string.h>
10190 #include <strings.h>
10192 main ()
10196 return 0;
10198 _ACEOF
10199 rm -f conftest.$ac_objext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 gcc_cv_header_string=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 gcc_cv_header_string=no
10228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10230 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10231 echo "${ECHO_T}$gcc_cv_header_string" >&6
10232 if test $gcc_cv_header_string = yes; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define STRING_WITH_STRINGS 1
10236 _ACEOF
10247 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10250 echo "$as_me:$LINENO: checking for $ac_func" >&5
10251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10252 if eval "test \"\${$as_ac_var+set}\" = set"; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h. */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10263 #define $ac_func innocuous_$ac_func
10265 /* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char $ac_func (); below.
10267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268 <limits.h> exists even on freestanding compilers. */
10270 #ifdef __STDC__
10271 # include <limits.h>
10272 #else
10273 # include <assert.h>
10274 #endif
10276 #undef $ac_func
10278 /* Override any gcc2 internal prototype to avoid an error. */
10279 #ifdef __cplusplus
10280 extern "C"
10282 #endif
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10285 char $ac_func ();
10286 /* The GNU C library defines this for functions which it implements
10287 to always fail with ENOSYS. Some functions are actually named
10288 something starting with __ and the normal name is an alias. */
10289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10290 choke me
10291 #else
10292 char (*f) () = $ac_func;
10293 #endif
10294 #ifdef __cplusplus
10296 #endif
10299 main ()
10301 return f != $ac_func;
10303 return 0;
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try='test -s conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 eval "$as_ac_var=yes"
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 eval "$as_ac_var=no"
10335 rm -f conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10340 if test `eval echo '${'$as_ac_var'}'` = yes; then
10341 cat >>confdefs.h <<_ACEOF
10342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10343 _ACEOF
10346 done
10349 for ac_func in strtoull
10351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10352 echo "$as_me:$LINENO: checking for $ac_func" >&5
10353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10354 if eval "test \"\${$as_ac_var+set}\" = set"; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10365 #define $ac_func innocuous_$ac_func
10367 /* System header to define __stub macros and hopefully few prototypes,
10368 which can conflict with char $ac_func (); below.
10369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10370 <limits.h> exists even on freestanding compilers. */
10372 #ifdef __STDC__
10373 # include <limits.h>
10374 #else
10375 # include <assert.h>
10376 #endif
10378 #undef $ac_func
10380 /* Override any gcc2 internal prototype to avoid an error. */
10381 #ifdef __cplusplus
10382 extern "C"
10384 #endif
10385 /* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387 char $ac_func ();
10388 /* The GNU C library defines this for functions which it implements
10389 to always fail with ENOSYS. Some functions are actually named
10390 something starting with __ and the normal name is an alias. */
10391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10392 choke me
10393 #else
10394 char (*f) () = $ac_func;
10395 #endif
10396 #ifdef __cplusplus
10398 #endif
10401 main ()
10403 return f != $ac_func;
10405 return 0;
10407 _ACEOF
10408 rm -f conftest.$ac_objext conftest$ac_exeext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag"
10418 || test ! -s conftest.err'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 eval "$as_ac_var=yes"
10431 else
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 eval "$as_ac_var=no"
10437 rm -f conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10442 if test `eval echo '${'$as_ac_var'}'` = yes; then
10443 cat >>confdefs.h <<_ACEOF
10444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10445 _ACEOF
10448 done
10451 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10452 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10453 if test "${ac_cv_have_decl_basename+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456 cat >conftest.$ac_ext <<_ACEOF
10457 /* confdefs.h. */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462 $ac_includes_default
10464 main ()
10466 #ifndef basename
10467 char *p = (char *) basename;
10468 #endif
10471 return 0;
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_have_decl_basename=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_have_decl_basename=no
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10506 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10507 if test $ac_cv_have_decl_basename = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_DECL_BASENAME 1
10511 _ACEOF
10514 else
10515 cat >>confdefs.h <<_ACEOF
10516 #define HAVE_DECL_BASENAME 0
10517 _ACEOF
10523 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10524 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10525 if test "${ac_cv_have_decl_ftello+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 $ac_includes_default
10536 main ()
10538 #ifndef ftello
10539 char *p = (char *) ftello;
10540 #endif
10543 return 0;
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag"
10556 || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_have_decl_ftello=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_cv_have_decl_ftello=no
10575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10578 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10579 if test $ac_cv_have_decl_ftello = yes; then
10581 cat >>confdefs.h <<_ACEOF
10582 #define HAVE_DECL_FTELLO 1
10583 _ACEOF
10586 else
10587 cat >>confdefs.h <<_ACEOF
10588 #define HAVE_DECL_FTELLO 0
10589 _ACEOF
10595 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10596 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10597 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 $ac_includes_default
10608 main ()
10610 #ifndef ftello64
10611 char *p = (char *) ftello64;
10612 #endif
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_have_decl_ftello64=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_have_decl_ftello64=no
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10649 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10650 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10651 if test $ac_cv_have_decl_ftello64 = yes; then
10653 cat >>confdefs.h <<_ACEOF
10654 #define HAVE_DECL_FTELLO64 1
10655 _ACEOF
10658 else
10659 cat >>confdefs.h <<_ACEOF
10660 #define HAVE_DECL_FTELLO64 0
10661 _ACEOF
10667 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10668 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10669 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 $ac_includes_default
10680 main ()
10682 #ifndef fseeko
10683 char *p = (char *) fseeko;
10684 #endif
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag"
10700 || test ! -s conftest.err'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_have_decl_fseeko=yes
10713 else
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 ac_cv_have_decl_fseeko=no
10719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10722 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10723 if test $ac_cv_have_decl_fseeko = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define HAVE_DECL_FSEEKO 1
10727 _ACEOF
10730 else
10731 cat >>confdefs.h <<_ACEOF
10732 #define HAVE_DECL_FSEEKO 0
10733 _ACEOF
10739 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10740 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10741 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10752 main ()
10754 #ifndef fseeko64
10755 char *p = (char *) fseeko64;
10756 #endif
10759 return 0;
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag"
10772 || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_have_decl_fseeko64=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_have_decl_fseeko64=no
10791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10794 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10795 if test $ac_cv_have_decl_fseeko64 = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define HAVE_DECL_FSEEKO64 1
10799 _ACEOF
10802 else
10803 cat >>confdefs.h <<_ACEOF
10804 #define HAVE_DECL_FSEEKO64 0
10805 _ACEOF
10813 case "${host}" in
10814 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10816 cat >>confdefs.h <<\_ACEOF
10817 #define USE_BINARY_FOPEN 1
10818 _ACEOF
10820 esac
10822 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10823 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10824 if test "${ac_cv_have_decl_ffs+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 $ac_includes_default
10835 main ()
10837 #ifndef ffs
10838 char *p = (char *) ffs;
10839 #endif
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847 (eval $ac_compile) 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag"
10855 || test ! -s conftest.err'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest.$ac_objext'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_have_decl_ffs=yes
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ac_cv_have_decl_ffs=no
10874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10877 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10878 if test $ac_cv_have_decl_ffs = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_DECL_FFS 1
10882 _ACEOF
10885 else
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_DECL_FFS 0
10888 _ACEOF
10894 echo "$as_me:$LINENO: checking whether free is declared" >&5
10895 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10896 if test "${ac_cv_have_decl_free+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10907 main ()
10909 #ifndef free
10910 char *p = (char *) free;
10911 #endif
10914 return 0;
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>conftest.er1
10920 ac_status=$?
10921 grep -v '^ *+' conftest.er1 >conftest.err
10922 rm -f conftest.er1
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -z "$ac_c_werror_flag"
10927 || test ! -s conftest.err'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest.$ac_objext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_cv_have_decl_free=yes
10940 else
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_cv_have_decl_free=no
10946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10949 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10950 if test $ac_cv_have_decl_free = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define HAVE_DECL_FREE 1
10954 _ACEOF
10957 else
10958 cat >>confdefs.h <<_ACEOF
10959 #define HAVE_DECL_FREE 0
10960 _ACEOF
10966 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10967 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10968 if test "${ac_cv_have_decl_getenv+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10979 main ()
10981 #ifndef getenv
10982 char *p = (char *) getenv;
10983 #endif
10986 return 0;
10988 _ACEOF
10989 rm -f conftest.$ac_objext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest.$ac_objext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_have_decl_getenv=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_have_decl_getenv=no
11018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11021 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11022 if test $ac_cv_have_decl_getenv = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_DECL_GETENV 1
11026 _ACEOF
11029 else
11030 cat >>confdefs.h <<_ACEOF
11031 #define HAVE_DECL_GETENV 0
11032 _ACEOF
11038 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11039 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11040 if test "${ac_cv_have_decl_malloc+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 $ac_includes_default
11051 main ()
11053 #ifndef malloc
11054 char *p = (char *) malloc;
11055 #endif
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063 (eval $ac_compile) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest.$ac_objext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_have_decl_malloc=yes
11084 else
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11088 ac_cv_have_decl_malloc=no
11090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11093 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11094 if test $ac_cv_have_decl_malloc = yes; then
11096 cat >>confdefs.h <<_ACEOF
11097 #define HAVE_DECL_MALLOC 1
11098 _ACEOF
11101 else
11102 cat >>confdefs.h <<_ACEOF
11103 #define HAVE_DECL_MALLOC 0
11104 _ACEOF
11110 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11111 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11112 if test "${ac_cv_have_decl_realloc+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 $ac_includes_default
11123 main ()
11125 #ifndef realloc
11126 char *p = (char *) realloc;
11127 #endif
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11135 (eval $ac_compile) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_have_decl_realloc=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_cv_have_decl_realloc=no
11162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11164 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11165 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11166 if test $ac_cv_have_decl_realloc = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_DECL_REALLOC 1
11170 _ACEOF
11173 else
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_DECL_REALLOC 0
11176 _ACEOF
11182 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11183 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11184 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11195 main ()
11197 #ifndef stpcpy
11198 char *p = (char *) stpcpy;
11199 #endif
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11207 (eval $ac_compile) 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -z "$ac_c_werror_flag"
11215 || test ! -s conftest.err'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; } &&
11221 { ac_try='test -s conftest.$ac_objext'
11222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223 (eval $ac_try) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 ac_cv_have_decl_stpcpy=yes
11228 else
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 ac_cv_have_decl_stpcpy=no
11234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11237 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11238 if test $ac_cv_have_decl_stpcpy = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define HAVE_DECL_STPCPY 1
11242 _ACEOF
11245 else
11246 cat >>confdefs.h <<_ACEOF
11247 #define HAVE_DECL_STPCPY 0
11248 _ACEOF
11254 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11255 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11256 if test "${ac_cv_have_decl_strstr+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h. */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 $ac_includes_default
11267 main ()
11269 #ifndef strstr
11270 char *p = (char *) strstr;
11271 #endif
11274 return 0;
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -z "$ac_c_werror_flag"
11287 || test ! -s conftest.err'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest.$ac_objext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_cv_have_decl_strstr=yes
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_cv_have_decl_strstr=no
11306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11309 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11310 if test $ac_cv_have_decl_strstr = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define HAVE_DECL_STRSTR 1
11314 _ACEOF
11317 else
11318 cat >>confdefs.h <<_ACEOF
11319 #define HAVE_DECL_STRSTR 0
11320 _ACEOF
11326 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11327 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11328 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11339 main ()
11341 #ifndef snprintf
11342 char *p = (char *) snprintf;
11343 #endif
11346 return 0;
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11351 (eval $ac_compile) 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
11358 { ac_try='test -z "$ac_c_werror_flag"
11359 || test ! -s conftest.err'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_have_decl_snprintf=yes
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_cv_have_decl_snprintf=no
11378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11381 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11382 if test $ac_cv_have_decl_snprintf = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_DECL_SNPRINTF 1
11386 _ACEOF
11389 else
11390 cat >>confdefs.h <<_ACEOF
11391 #define HAVE_DECL_SNPRINTF 0
11392 _ACEOF
11398 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11399 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11400 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 $ac_includes_default
11411 main ()
11413 #ifndef vsnprintf
11414 char *p = (char *) vsnprintf;
11415 #endif
11418 return 0;
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11423 (eval $ac_compile) 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag"
11431 || test ! -s conftest.err'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_cv_have_decl_vsnprintf=yes
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 ac_cv_have_decl_vsnprintf=no
11450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11453 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11454 if test $ac_cv_have_decl_vsnprintf = yes; then
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_DECL_VSNPRINTF 1
11458 _ACEOF
11461 else
11462 cat >>confdefs.h <<_ACEOF
11463 #define HAVE_DECL_VSNPRINTF 0
11464 _ACEOF
11471 # If we are configured native, pick a core file support file.
11472 COREFILE=
11473 COREFLAG=
11474 TRAD_HEADER=
11475 if test "${target}" = "${host}"; then
11476 case "${host}" in
11477 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11478 COREFILE=''
11480 alpha*-*-linux-*)
11481 COREFILE=trad-core.lo
11482 TRAD_HEADER='"hosts/alphalinux.h"'
11484 alpha*-*-netbsd* | alpha*-*-openbsd*)
11485 COREFILE=netbsd-core.lo
11487 alpha*-*-*) COREFILE=osf-core.lo ;;
11488 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11489 COREFILE='' ;;
11490 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11491 arm-*-riscix) COREFILE=trad-core.lo ;;
11492 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11493 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11494 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11495 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11496 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11497 hppa*-*-netbsd* | hppa*-*-openbsd*)
11498 COREFILE=netbsd-core.lo
11501 i370-*-*)
11502 COREFILE=trad-core.lo
11503 TRAD_HEADER='"hosts/i370linux.h"'
11506 i[3-7]86-sequent-bsd*)
11507 COREFILE=trad-core.lo
11508 TRAD_HEADER='"hosts/symmetry.h"'
11510 i[3-7]86-sequent-sysv4*) ;;
11511 i[3-7]86-sequent-sysv*)
11512 COREFILE=trad-core.lo
11513 TRAD_HEADER='"hosts/symmetry.h"'
11515 i[3-7]86-*-bsdi)
11516 COREFILE=
11518 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*)
11519 COREFILE=trad-core.lo
11520 TRAD_HEADER='"hosts/i386bsd.h"'
11522 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11523 COREFILE=''
11524 TRAD_HEADER='"hosts/i386bsd.h"'
11526 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11527 COREFILE=netbsd-core.lo
11529 i[3-7]86-esix-sysv3*)
11530 COREFILE=trad-core.lo
11531 TRAD_HEADER='"hosts/esix.h"'
11533 i[3-7]86-*-sco3.2v5*)
11534 COREFILE=sco5-core.lo
11536 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11537 COREFILE=trad-core.lo
11538 TRAD_HEADER='"hosts/i386sco.h"'
11540 i[3-7]86-*-mach3*)
11541 COREFILE=trad-core.lo
11542 TRAD_HEADER='"hosts/i386mach3.h"'
11544 i[3-7]86-*-linux-*)
11545 COREFILE=trad-core.lo
11546 TRAD_HEADER='"hosts/i386linux.h"'
11548 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11549 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11550 i860-*-mach3* | i860-*-osf1*)
11551 COREFILE=trad-core.lo
11552 TRAD_HEADER='"hosts/i860mach3.h"'
11554 mips-*-netbsd* | mips*-*-openbsd*)
11555 COREFILE=netbsd-core.lo
11557 mips-dec-*)
11558 COREFILE=trad-core.lo
11559 TRAD_HEADER='"hosts/decstation.h"'
11561 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11562 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11563 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11564 mips-*-sysv4*) ;;
11565 mips-*-sysv* | mips-*-riscos*)
11566 COREFILE=trad-core.lo
11567 TRAD_HEADER='"hosts/riscos.h"'
11569 mips-sony-bsd*)
11570 COREFILE=trad-core.lo
11571 TRAD_HEADER='"hosts/news-mips.h"'
11573 m68*-bull*-sysv*)
11574 COREFILE=trad-core.lo
11575 TRAD_HEADER='"hosts/dpx2.h"'
11577 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11578 m68*-hp-bsd*)
11579 COREFILE=trad-core.lo
11580 TRAD_HEADER='"hosts/hp300bsd.h"'
11582 m68*-*-linux-*)
11583 COREFILE=trad-core.lo
11584 TRAD_HEADER='"hosts/m68klinux.h"'
11586 m68*-motorola-sysv*)
11587 COREFILE=trad-core.lo
11588 TRAD_HEADER='"hosts/delta68.h"'
11590 m68*-sony-*)
11591 COREFILE=trad-core.lo
11592 TRAD_HEADER='"hosts/news.h"'
11594 m68*-*-netbsd* | m68*-*-openbsd*)
11595 COREFILE=netbsd-core.lo
11597 m68*-apple-aux*)
11598 COREFILE=trad-core.lo
11599 TRAD_HEADER='"hosts/m68kaux.h"'
11601 m88*-*-sysv4*)
11603 m88*-motorola-sysv*)
11604 COREFILE=ptrace-core.lo
11606 m88*-*-mach3*)
11607 COREFILE=trad-core.lo
11608 TRAD_HEADER='"hosts/m88kmach3.h"'
11610 m88*-*-openbsd*)
11611 COREFILE=netbsd-core.lo
11613 ns32k-pc532-mach)
11614 COREFILE=trad-core.lo
11615 TRAD_HEADER='"hosts/pc532mach.h"'
11617 ns32k-*-netbsd* | ns32k-*-openbsd*)
11618 COREFILE=netbsd-core.lo
11620 rs6000-*-lynx*)
11621 COREFILE=lynx-core.lo
11623 rs6000-*-aix5.* | powerpc-*-aix5.*)
11624 COREFILE=rs6000-core.lo
11625 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11627 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11628 COREFILE=rs6000-core.lo
11629 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11630 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11631 # have c_impl as a member of struct core_dumpx
11632 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11633 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h. */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 #include <core.h>
11642 main ()
11644 struct core_dumpx c; c.c_impl = 0;
11646 return 0;
11648 _ACEOF
11649 rm -f conftest.$ac_objext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -z "$ac_c_werror_flag"
11659 || test ! -s conftest.err'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_ST_C_IMPL 1
11674 _ACEOF
11676 echo "$as_me:$LINENO: result: yes" >&5
11677 echo "${ECHO_T}yes" >&6
11678 else
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11687 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11688 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11689 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11690 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11691 powerpc-*-beos*) ;;
11692 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11693 COREFILE='' ;;
11694 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11695 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11696 s390*-*-*) COREFILE=trad-core.lo ;;
11697 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11698 sparc-*-netbsd* | sparc*-*-openbsd*)
11699 COREFILE=netbsd-core.lo
11701 tahoe-*-*)
11702 COREFILE=trad-core.lo
11703 TRAD_HEADER='"hosts/tahoe.h"'
11705 vax-*-netbsd* | vax-*-openbsd*)
11706 COREFILE=netbsd-core.lo
11708 vax-*-ultrix2*)
11709 COREFILE=trad-core.lo
11710 TRAD_HEADER='"hosts/vaxult2.h"'
11712 vax-*-ultrix*)
11713 COREFILE=trad-core.lo
11714 TRAD_HEADER='"hosts/vaxult2.h"'
11716 vax-*-linux-*)
11717 COREFILE=trad-core.lo
11718 TRAD_HEADER='"hosts/vaxlinux.h"'
11720 vax-*-*)
11721 COREFILE=trad-core.lo
11722 TRAD_HEADER='"hosts/vaxbsd.h"'
11724 x86_64-*-netbsd* | x86_64-*-openbsd*)
11725 COREFILE=netbsd-core.lo
11727 esac
11729 case "$COREFILE" in
11730 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11731 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11732 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11733 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11734 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11735 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11736 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11737 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11738 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11739 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11740 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11741 esac
11743 # ELF corefile support has several flavors, but all of
11744 # them use something called <sys/procfs.h>
11746 for ac_header in sys/procfs.h
11748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11750 echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11757 else
11758 # Is the header compilable?
11759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <$ac_header>
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag"
11780 || test ! -s conftest.err'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_header_compiler=yes
11793 else
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_header_compiler=no
11799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 echo "${ECHO_T}$ac_header_compiler" >&6
11803 # Is the header present?
11804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h. */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 #include <$ac_header>
11813 _ACEOF
11814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } >/dev/null; then
11822 if test -s conftest.err; then
11823 ac_cpp_err=$ac_c_preproc_warn_flag
11824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11825 else
11826 ac_cpp_err=
11828 else
11829 ac_cpp_err=yes
11831 if test -z "$ac_cpp_err"; then
11832 ac_header_preproc=yes
11833 else
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11837 ac_header_preproc=no
11839 rm -f conftest.err conftest.$ac_ext
11840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 echo "${ECHO_T}$ac_header_preproc" >&6
11843 # So? What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 yes:no: )
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc=yes
11852 no:yes:* )
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866 cat <<\_ASBOX
11867 ## ------------------------------------------ ##
11868 ## Report this to the AC_PACKAGE_NAME lists. ##
11869 ## ------------------------------------------ ##
11870 _ASBOX
11872 sed "s/^/$as_me: WARNING: /" >&2
11874 esac
11875 echo "$as_me:$LINENO: checking for $ac_header" >&5
11876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880 eval "$as_ac_Header=\$ac_header_preproc"
11882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11887 cat >>confdefs.h <<_ACEOF
11888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11889 _ACEOF
11893 done
11895 if test "$ac_cv_header_sys_procfs_h" = yes; then
11896 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11897 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11898 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11908 #define _SYSCALL32
11909 #include <sys/procfs.h>
11911 main ()
11913 prstatus_t avar
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920 (eval $ac_compile) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 bfd_cv_have_sys_procfs_type_prstatus_t=no
11948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11951 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11953 cat >>confdefs.h <<\_ACEOF
11954 #define HAVE_PRSTATUS_T 1
11955 _ACEOF
11958 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11959 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11961 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11962 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11963 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11973 #define _SYSCALL32
11974 #include <sys/procfs.h>
11976 main ()
11978 prstatus32_t avar
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 bfd_cv_have_sys_procfs_type_prstatus32_t=no
12013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12016 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12018 cat >>confdefs.h <<\_ACEOF
12019 #define HAVE_PRSTATUS32_T 1
12020 _ACEOF
12023 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12024 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12026 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12027 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12028 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 #define _SYSCALL32
12039 #include <sys/procfs.h>
12041 main ()
12043 prstatus_t avar; void* aref = (void*) &avar.pr_who
12045 return 0;
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try='test -s conftest.$ac_objext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_PRSTATUS_T_PR_WHO 1
12085 _ACEOF
12088 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12089 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12091 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12092 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12093 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 #define _SYSCALL32
12104 #include <sys/procfs.h>
12106 main ()
12108 prstatus32_t avar; void* aref = (void*) &avar.pr_who
12110 return 0;
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12146 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12148 cat >>confdefs.h <<\_ACEOF
12149 #define HAVE_PRSTATUS32_T_PR_WHO 1
12150 _ACEOF
12153 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12154 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12156 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12157 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12158 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h. */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12168 #define _SYSCALL32
12169 #include <sys/procfs.h>
12171 main ()
12173 pstatus_t avar
12175 return 0;
12177 _ACEOF
12178 rm -f conftest.$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 bfd_cv_have_sys_procfs_type_pstatus_t=no
12208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12211 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12213 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_PSTATUS_T 1
12215 _ACEOF
12218 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12219 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12221 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12222 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12223 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 #define _SYSCALL32
12234 #include <sys/procfs.h>
12236 main ()
12238 pxstatus_t avar
12240 return 0;
12242 _ACEOF
12243 rm -f conftest.$ac_objext
12244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
12252 { ac_try='test -z "$ac_c_werror_flag"
12253 || test ! -s conftest.err'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12276 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12278 cat >>confdefs.h <<\_ACEOF
12279 #define HAVE_PXSTATUS_T 1
12280 _ACEOF
12283 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12284 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12286 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12287 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12288 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12298 #define _SYSCALL32
12299 #include <sys/procfs.h>
12301 main ()
12303 pstatus32_t avar
12305 return 0;
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAVE_PSTATUS32_T 1
12345 _ACEOF
12348 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12349 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12351 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12352 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12353 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12363 #define _SYSCALL32
12364 #include <sys/procfs.h>
12366 main ()
12368 prpsinfo_t avar
12370 return 0;
12372 _ACEOF
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375 (eval $ac_compile) 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag"
12383 || test ! -s conftest.err'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest.$ac_objext'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12396 else
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12408 cat >>confdefs.h <<\_ACEOF
12409 #define HAVE_PRPSINFO_T 1
12410 _ACEOF
12413 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12414 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12416 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12417 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12418 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12428 #define _SYSCALL32
12429 #include <sys/procfs.h>
12431 main ()
12433 prpsinfo32_t avar
12435 return 0;
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12471 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12473 cat >>confdefs.h <<\_ACEOF
12474 #define HAVE_PRPSINFO32_T 1
12475 _ACEOF
12478 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12479 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12481 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12482 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12483 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 cat >conftest.$ac_ext <<_ACEOF
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12493 #define _SYSCALL32
12494 #include <sys/procfs.h>
12496 main ()
12498 psinfo_t avar
12500 return 0;
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>conftest.er1
12506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest.$ac_objext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 bfd_cv_have_sys_procfs_type_psinfo_t=no
12533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12536 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_PSINFO_T 1
12540 _ACEOF
12543 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12544 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12546 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12547 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12548 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12558 #define _SYSCALL32
12559 #include <sys/procfs.h>
12561 main ()
12563 psinfo32_t avar
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570 (eval $ac_compile) 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag"
12578 || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_PSINFO32_T 1
12605 _ACEOF
12608 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12609 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12611 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12612 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12613 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616 cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h. */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12623 #define _SYSCALL32
12624 #include <sys/procfs.h>
12626 main ()
12628 lwpstatus_t avar
12630 return 0;
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag"
12643 || test ! -s conftest.err'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12666 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_LWPSTATUS_T 1
12670 _ACEOF
12673 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12674 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12676 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12677 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12678 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h. */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12688 #define _SYSCALL32
12689 #include <sys/procfs.h>
12691 main ()
12693 lwpxstatus_t avar
12695 return 0;
12697 _ACEOF
12698 rm -f conftest.$ac_objext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700 (eval $ac_compile) 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -z "$ac_c_werror_flag"
12708 || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest.$ac_objext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12721 else
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12733 cat >>confdefs.h <<\_ACEOF
12734 #define HAVE_LWPXSTATUS_T 1
12735 _ACEOF
12738 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12739 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12741 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12742 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12743 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h. */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12753 #define _SYSCALL32
12754 #include <sys/procfs.h>
12756 main ()
12758 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12760 return 0;
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag"
12773 || test ! -s conftest.err'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; } &&
12779 { ac_try='test -s conftest.$ac_objext'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12786 else
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12790 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12796 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12800 _ACEOF
12803 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12804 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12806 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12807 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12808 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h. */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12818 #define _SYSCALL32
12819 #include <sys/procfs.h>
12821 main ()
12823 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12825 return 0;
12827 _ACEOF
12828 rm -f conftest.$ac_objext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag"
12838 || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12861 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12863 cat >>confdefs.h <<\_ACEOF
12864 #define HAVE_LWPSTATUS_T_PR_REG 1
12865 _ACEOF
12868 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12869 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12871 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12872 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12873 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12883 #define _SYSCALL32
12884 #include <sys/procfs.h>
12886 main ()
12888 win32_pstatus_t avar
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag"
12903 || test ! -s conftest.err'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12926 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_WIN32_PSTATUS_T 1
12930 _ACEOF
12933 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12934 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12940 if test -n "$TRAD_HEADER"; then
12942 cat >>confdefs.h <<_ACEOF
12943 #define TRAD_HEADER $TRAD_HEADER
12944 _ACEOF
12948 # Horrible hacks to build DLLs on Windows.
12949 WIN32LDFLAGS=
12950 WIN32LIBADD=
12951 case "${host}" in
12952 *-*-cygwin*)
12953 if test "$enable_shared" = "yes"; then
12954 WIN32LDFLAGS="-no-undefined"
12955 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12958 *-*-linux*)
12959 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12960 # libiberty.a.
12961 case "${host}" in
12962 mips*-*-linux*)
12963 # Linux/MIPS uses PIC by default.
12964 if test "$enable_shared" = "yes"; then
12965 WIN32LIBADD="-L../libiberty -liberty"
12969 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12970 if test -n "$x"; then
12971 WIN32LIBADD="-L../libiberty/pic -liberty"
12974 esac
12976 esac
12980 # target stuff:
12982 # Canonicalize the secondary target names.
12983 if test -n "$enable_targets" ; then
12984 for targ in `echo $enable_targets | sed 's/,/ /g'`
12986 result=`$ac_config_sub $targ 2>/dev/null`
12987 if test -n "$result" ; then
12988 canon_targets="$canon_targets $result"
12989 else
12990 # Allow targets that config.sub doesn't recognize, like "all".
12991 canon_targets="$canon_targets $targ"
12993 done
12996 all_targets=false
12997 defvec=
12998 selvecs=
12999 assocvecs=
13000 selarchs=
13001 TDEFINES=
13002 for targ in $target $canon_targets
13004 if test "x$targ" = "xall"; then
13005 all_targets=true
13006 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
13007 else
13008 . $srcdir/config.bfd
13009 if test "x$targ" = "x$target"; then
13010 defvec=$targ_defvec
13012 selvecs="$selvecs $targ_defvec $targ_selvecs"
13013 selarchs="$selarchs $targ_archs"
13014 TDEFINES="$TDEFINES $targ_cflags"
13016 done
13019 # This processing still needs to be done if we're to decide properly whether
13020 # 64-bit support needs to be compiled in. Currently, it will be included if
13021 # the default or any other explicitly requested target requires it; it
13022 # will not be included on a 32-bit host if no 64-bit target is requested, and
13023 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13024 # used.
13026 # uniq the default and selected vectors in all the configured targets.
13027 f=""
13028 for i in $selvecs ; do
13029 case " $f " in
13030 *" $i "*) ;;
13031 *) f="$f $i" ;;
13032 esac
13033 done
13034 selvecs="$f"
13037 # uniq the associated vectors in all the configured targets.
13038 f=""
13039 for i in $assocvecs ; do
13040 case " $f " in
13041 *" $i "*) ;;
13042 *) f="$f $i" ;;
13043 esac
13044 done
13045 assocvecs="$f"
13048 # uniq the architectures in all the configured targets.
13049 f=""
13050 for i in $selarchs ; do
13051 case " $f " in
13052 *" $i "*) ;;
13053 *) f="$f $i" ;;
13054 esac
13055 done
13056 selarchs="$f"
13058 # Target backend .o files.
13061 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13063 for vec in $selvecs
13065 target_size=32
13066 case "$vec" in
13067 # This list is alphabetized to make it easy to compare
13068 # with the two vector lists in targets.c. For the same reason,
13069 # use one entry per line, even though this leads to long lines.
13070 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13071 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13072 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13073 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13074 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13075 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13076 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13077 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13078 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13079 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13080 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13081 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13082 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13083 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13084 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13085 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13086 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13087 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13088 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13089 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13090 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13091 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13092 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13093 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13094 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13095 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13096 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13097 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13098 bfd_elf32_bigarm_symbian_vec)
13099 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13100 bfd_elf32_bigarm_vxworks_vec)
13101 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13102 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13103 bfd_elf32_bigmips_vxworks_vec)
13104 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13105 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13106 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13107 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13108 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13109 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13110 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13111 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13112 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13113 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13114 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13115 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13116 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13117 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13118 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13119 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13120 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13121 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13122 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13123 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13124 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13125 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13126 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13127 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13128 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13129 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13130 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13131 bfd_elf32_littlearm_symbian_vec)
13132 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13133 bfd_elf32_littlearm_vxworks_vec)
13134 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13135 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13136 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13137 bfd_elf32_littlemips_vxworks_vec)
13138 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13139 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13140 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13141 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13142 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13143 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13144 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13145 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13146 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13147 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13148 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13149 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13150 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13151 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13152 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13153 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13154 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13155 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13156 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13157 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13158 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13159 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13160 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13161 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13162 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13163 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13164 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13165 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13166 # FIXME: We include cofflink.lo not because it's needed for
13167 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13168 # which needs it but does not list it. Should be fixed in right place.
13169 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13170 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13171 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13172 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13173 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13174 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13175 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13176 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13177 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13178 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13179 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13180 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13181 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13182 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13183 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13184 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13185 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13186 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13187 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13188 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13189 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13190 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13191 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13192 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13193 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13194 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13195 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13196 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 ;;
13197 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13198 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13199 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13200 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13201 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13202 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13203 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 ;;
13204 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13205 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13206 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13207 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13208 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13209 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13210 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13211 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13212 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13213 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13214 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13215 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 ;;
13216 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 ;;
13217 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13218 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13219 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13220 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13221 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13222 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13223 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13224 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13225 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13226 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13227 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13228 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13229 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13230 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13231 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13232 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13233 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13234 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13235 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13236 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13237 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13238 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13239 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13240 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13241 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13242 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13243 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13244 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13245 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13246 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13247 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13248 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13249 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13250 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13251 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13252 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13253 ieee_vec) tb="$tb ieee.lo" ;;
13254 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13255 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13256 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13257 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13258 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13259 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13260 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13261 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13262 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13263 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13264 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13265 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13266 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13267 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13268 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13269 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13270 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13271 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13272 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13273 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13274 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13275 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13276 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13277 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13278 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13279 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13280 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13281 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13282 pef_vec) tb="$tb pef.lo" ;;
13283 pef_xlib_vec) tb="$tb pef.lo" ;;
13284 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13285 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13286 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13287 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13288 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13289 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13290 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13291 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13292 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13293 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13294 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13295 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13296 som_vec) tb="$tb som.lo" ;;
13297 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13298 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13299 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13300 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13301 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13302 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13303 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13304 sym_vec) tb="$tb xsym.lo" ;;
13305 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13306 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13307 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13308 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13309 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13310 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13311 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13312 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13313 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13314 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13315 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13316 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13317 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13318 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13319 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13320 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13321 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13322 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13323 versados_vec) tb="$tb versados.lo" ;;
13324 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13325 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13326 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13327 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13328 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13329 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13331 # These appear out of order in targets.c
13332 srec_vec) tb="$tb srec.lo" ;;
13333 symbolsrec_vec) tb="$tb srec.lo" ;;
13334 tekhex_vec) tb="$tb tekhex.lo" ;;
13335 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13336 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13338 "") ;;
13339 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13340 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13341 { (exit 1); exit 1; }; } ;;
13342 esac
13344 if test ${target_size} = 64; then
13345 target64=true
13347 if test x"${vec}" = x"${defvec}"; then
13348 bfd_default_target_size=${target_size}
13350 done
13352 # Target architecture .o files.
13353 # A couple of CPUs use shorter file names to avoid problems on DOS
13354 # filesystems.
13355 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13357 # Weed out duplicate .o files.
13358 f=""
13359 for i in $tb ; do
13360 case " $f " in
13361 *" $i "*) ;;
13362 *) f="$f $i" ;;
13363 esac
13364 done
13365 tb="$f"
13367 f=""
13368 for i in $ta ; do
13369 case " $f " in
13370 *" $i "*) ;;
13371 *) f="$f $i" ;;
13372 esac
13373 done
13374 ta="$f"
13376 bfd_backends="$tb"
13377 bfd_machines="$ta"
13379 if test x${all_targets} = xtrue ; then
13380 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13381 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13382 selvecs=
13383 havevecs=
13384 selarchs=
13385 test -n "$assocvecs" &&
13386 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13387 else # all_targets is true
13388 # Only set these if they will be nonempty, for the clever echo.
13389 havevecs=
13390 assocvecs=
13391 test -n "$selvecs" &&
13392 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13393 test -n "$selvecs" &&
13394 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13395 test -n "$selarchs" &&
13396 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13397 fi # all_targets is true
13399 case ${host64}-${target64}-${want64} in
13400 *true*)
13401 wordsize=64
13402 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13403 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13404 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13405 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13406 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13408 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13410 if test -n "$GCC" ; then
13411 bad_64bit_gcc=no;
13412 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13413 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13414 # Add more tests for gcc versions with non-working 64-bit support here.
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 :__GNUC__:__GNUC_MINOR__:__i386__:
13422 _ACEOF
13423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13424 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13425 bad_64bit_gcc=yes;
13426 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13427 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13428 else
13429 echo "$as_me:$LINENO: result: no" >&5
13430 echo "${ECHO_T}no" >&6
13432 rm -f conftest*
13434 if test $bad_64bit_gcc = yes ; then
13435 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13436 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13437 { (exit 1); exit 1; }; }
13441 false-false-false)
13442 wordsize=32
13443 bfd_libs='$(BFD32_LIBS)'
13444 all_backends='$(BFD32_BACKENDS)'
13446 esac
13455 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13456 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13457 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13458 # Hopefully a reasonable assumption since fseeko et.al. should be
13459 # upward compatible.
13465 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13468 echo "$as_me:$LINENO: checking for $ac_func" >&5
13469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13470 if eval "test \"\${$as_ac_var+set}\" = set"; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h. */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13481 #define $ac_func innocuous_$ac_func
13483 /* System header to define __stub macros and hopefully few prototypes,
13484 which can conflict with char $ac_func (); below.
13485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13486 <limits.h> exists even on freestanding compilers. */
13488 #ifdef __STDC__
13489 # include <limits.h>
13490 #else
13491 # include <assert.h>
13492 #endif
13494 #undef $ac_func
13496 /* Override any gcc2 internal prototype to avoid an error. */
13497 #ifdef __cplusplus
13498 extern "C"
13500 #endif
13501 /* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
13503 char $ac_func ();
13504 /* The GNU C library defines this for functions which it implements
13505 to always fail with ENOSYS. Some functions are actually named
13506 something starting with __ and the normal name is an alias. */
13507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13508 choke me
13509 #else
13510 char (*f) () = $ac_func;
13511 #endif
13512 #ifdef __cplusplus
13514 #endif
13517 main ()
13519 return f != $ac_func;
13521 return 0;
13523 _ACEOF
13524 rm -f conftest.$ac_objext conftest$ac_exeext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526 (eval $ac_link) 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest$ac_exeext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 eval "$as_ac_var=yes"
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 eval "$as_ac_var=no"
13553 rm -f conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13558 if test `eval echo '${'$as_ac_var'}'` = yes; then
13559 cat >>confdefs.h <<_ACEOF
13560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13561 _ACEOF
13564 done
13566 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13567 echo "$as_me:$LINENO: checking for off_t" >&5
13568 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13569 if test "${ac_cv_type_off_t+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13580 main ()
13582 if ((off_t *) 0)
13583 return 0;
13584 if (sizeof (off_t))
13585 return 0;
13587 return 0;
13589 _ACEOF
13590 rm -f conftest.$ac_objext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13592 (eval $ac_compile) 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag"
13600 || test ! -s conftest.err'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest.$ac_objext'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }; then
13612 ac_cv_type_off_t=yes
13613 else
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13617 ac_cv_type_off_t=no
13619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13622 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13624 echo "$as_me:$LINENO: checking size of off_t" >&5
13625 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13626 if test "${ac_cv_sizeof_off_t+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629 if test "$ac_cv_type_off_t" = yes; then
13630 # The cast to unsigned long works around a bug in the HP C Compiler
13631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13633 # This bug is HP SR number 8606223364.
13634 if test "$cross_compiling" = yes; then
13635 # Depending upon the size, compute the lo and hi bounds.
13636 cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h. */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 $ac_includes_default
13644 main ()
13646 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13647 test_array [0] = 0
13650 return 0;
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -z "$ac_c_werror_flag"
13663 || test ! -s conftest.err'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_lo=0 ac_mid=0
13676 while :; do
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13685 main ()
13687 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13688 test_array [0] = 0
13691 return 0;
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696 (eval $ac_compile) 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_c_werror_flag"
13704 || test ! -s conftest.err'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } &&
13710 { ac_try='test -s conftest.$ac_objext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_hi=$ac_mid; break
13717 else
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13721 ac_lo=`expr $ac_mid + 1`
13722 if test $ac_lo -le $ac_mid; then
13723 ac_lo= ac_hi=
13724 break
13726 ac_mid=`expr 2 '*' $ac_mid + 1`
13728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13729 done
13730 else
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 $ac_includes_default
13742 main ()
13744 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13745 test_array [0] = 0
13748 return 0;
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_hi=-1 ac_mid=-1
13774 while :; do
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 $ac_includes_default
13783 main ()
13785 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13786 test_array [0] = 0
13789 return 0;
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_lo=$ac_mid; break
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_hi=`expr '(' $ac_mid ')' - 1`
13820 if test $ac_mid -le $ac_hi; then
13821 ac_lo= ac_hi=
13822 break
13824 ac_mid=`expr 2 '*' $ac_mid`
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13827 done
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_lo= ac_hi=
13834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13837 # Binary search between lo and hi bounds.
13838 while test "x$ac_lo" != "x$ac_hi"; do
13839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13848 main ()
13850 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13851 test_array [0] = 0
13854 return 0;
13856 _ACEOF
13857 rm -f conftest.$ac_objext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13859 (eval $ac_compile) 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_c_werror_flag"
13867 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try='test -s conftest.$ac_objext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 ac_hi=$ac_mid
13880 else
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ac_lo=`expr '(' $ac_mid ')' + 1`
13886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13887 done
13888 case $ac_lo in
13889 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13890 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13891 See \`config.log' for more details." >&5
13892 echo "$as_me: error: cannot compute sizeof (off_t), 77
13893 See \`config.log' for more details." >&2;}
13894 { (exit 1); exit 1; }; } ;;
13895 esac
13896 else
13897 if test "$cross_compiling" = yes; then
13898 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13899 See \`config.log' for more details." >&5
13900 echo "$as_me: error: cannot run test program while cross compiling
13901 See \`config.log' for more details." >&2;}
13902 { (exit 1); exit 1; }; }
13903 else
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h. */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 $ac_includes_default
13911 long longval () { return (long) (sizeof (off_t)); }
13912 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13913 #include <stdio.h>
13914 #include <stdlib.h>
13916 main ()
13919 FILE *f = fopen ("conftest.val", "w");
13920 if (! f)
13921 exit (1);
13922 if (((long) (sizeof (off_t))) < 0)
13924 long i = longval ();
13925 if (i != ((long) (sizeof (off_t))))
13926 exit (1);
13927 fprintf (f, "%ld\n", i);
13929 else
13931 unsigned long i = ulongval ();
13932 if (i != ((long) (sizeof (off_t))))
13933 exit (1);
13934 fprintf (f, "%lu\n", i);
13936 exit (ferror (f) || fclose (f) != 0);
13939 return 0;
13941 _ACEOF
13942 rm -f conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_sizeof_off_t=`cat conftest.val`
13954 else
13955 echo "$as_me: program exited with status $ac_status" >&5
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ( exit $ac_status )
13960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13961 See \`config.log' for more details." >&5
13962 echo "$as_me: error: cannot compute sizeof (off_t), 77
13963 See \`config.log' for more details." >&2;}
13964 { (exit 1); exit 1; }; }
13966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13969 rm -f conftest.val
13970 else
13971 ac_cv_sizeof_off_t=0
13974 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13975 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13976 cat >>confdefs.h <<_ACEOF
13977 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13978 _ACEOF
13982 echo "$as_me:$LINENO: checking file_ptr type" >&5
13983 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13984 bfd_file_ptr="long"
13985 bfd_ufile_ptr="unsigned long"
13986 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13987 -o x"${ac_cv_sizeof_off_t}" = x8; then
13988 bfd_file_ptr=BFD_HOST_64_BIT
13989 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13991 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13992 echo "${ECHO_T}$bfd_file_ptr" >&6
13997 tdefaults=""
13998 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13999 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14000 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14001 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14002 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
14007 for ac_header in stdlib.h unistd.h
14009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo "$as_me:$LINENO: checking for $ac_header" >&5
14012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14018 else
14019 # Is the header compilable?
14020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14029 #include <$ac_header>
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_header_compiler=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_header_compiler=no
14060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6
14064 # Is the header present?
14065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <$ac_header>
14074 _ACEOF
14075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev/null; then
14083 if test -s conftest.err; then
14084 ac_cpp_err=$ac_c_preproc_warn_flag
14085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14086 else
14087 ac_cpp_err=
14089 else
14090 ac_cpp_err=yes
14092 if test -z "$ac_cpp_err"; then
14093 ac_header_preproc=yes
14094 else
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_header_preproc=no
14100 rm -f conftest.err conftest.$ac_ext
14101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14102 echo "${ECHO_T}$ac_header_preproc" >&6
14104 # So? What about this header?
14105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14106 yes:no: )
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14111 ac_header_preproc=yes
14113 no:yes:* )
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14127 cat <<\_ASBOX
14128 ## ------------------------------------------ ##
14129 ## Report this to the AC_PACKAGE_NAME lists. ##
14130 ## ------------------------------------------ ##
14131 _ASBOX
14133 sed "s/^/$as_me: WARNING: /" >&2
14135 esac
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141 eval "$as_ac_Header=\$ac_header_preproc"
14143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14148 cat >>confdefs.h <<_ACEOF
14149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14150 _ACEOF
14154 done
14157 for ac_func in getpagesize
14159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14160 echo "$as_me:$LINENO: checking for $ac_func" >&5
14161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14162 if eval "test \"\${$as_ac_var+set}\" = set"; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14173 #define $ac_func innocuous_$ac_func
14175 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char $ac_func (); below.
14177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14178 <limits.h> exists even on freestanding compilers. */
14180 #ifdef __STDC__
14181 # include <limits.h>
14182 #else
14183 # include <assert.h>
14184 #endif
14186 #undef $ac_func
14188 /* Override any gcc2 internal prototype to avoid an error. */
14189 #ifdef __cplusplus
14190 extern "C"
14192 #endif
14193 /* We use char because int might match the return type of a gcc2
14194 builtin and then its argument prototype would still apply. */
14195 char $ac_func ();
14196 /* The GNU C library defines this for functions which it implements
14197 to always fail with ENOSYS. Some functions are actually named
14198 something starting with __ and the normal name is an alias. */
14199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14200 choke me
14201 #else
14202 char (*f) () = $ac_func;
14203 #endif
14204 #ifdef __cplusplus
14206 #endif
14209 main ()
14211 return f != $ac_func;
14213 return 0;
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 eval "$as_ac_var=yes"
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 eval "$as_ac_var=no"
14245 rm -f conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14250 if test `eval echo '${'$as_ac_var'}'` = yes; then
14251 cat >>confdefs.h <<_ACEOF
14252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253 _ACEOF
14256 done
14258 echo "$as_me:$LINENO: checking for working mmap" >&5
14259 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14260 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 if test "$cross_compiling" = yes; then
14264 ac_cv_func_mmap_fixed_mapped=no
14265 else
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 $ac_includes_default
14273 /* malloc might have been renamed as rpl_malloc. */
14274 #undef malloc
14276 /* Thanks to Mike Haertel and Jim Avera for this test.
14277 Here is a matrix of mmap possibilities:
14278 mmap private not fixed
14279 mmap private fixed at somewhere currently unmapped
14280 mmap private fixed at somewhere already mapped
14281 mmap shared not fixed
14282 mmap shared fixed at somewhere currently unmapped
14283 mmap shared fixed at somewhere already mapped
14284 For private mappings, we should verify that changes cannot be read()
14285 back from the file, nor mmap's back from the file at a different
14286 address. (There have been systems where private was not correctly
14287 implemented like the infamous i386 svr4.0, and systems where the
14288 VM page cache was not coherent with the file system buffer cache
14289 like early versions of FreeBSD and possibly contemporary NetBSD.)
14290 For shared mappings, we should conversely verify that changes get
14291 propagated back to all the places they're supposed to be.
14293 Grep wants private fixed already mapped.
14294 The main things grep needs to know about mmap are:
14295 * does it exist and is it safe to write into the mmap'd area
14296 * how to use it (BSD variants) */
14298 #include <fcntl.h>
14299 #include <sys/mman.h>
14301 #if !STDC_HEADERS && !HAVE_STDLIB_H
14302 char *malloc ();
14303 #endif
14305 /* This mess was copied from the GNU getpagesize.h. */
14306 #if !HAVE_GETPAGESIZE
14307 /* Assume that all systems that can run configure have sys/param.h. */
14308 # if !HAVE_SYS_PARAM_H
14309 # define HAVE_SYS_PARAM_H 1
14310 # endif
14312 # ifdef _SC_PAGESIZE
14313 # define getpagesize() sysconf(_SC_PAGESIZE)
14314 # else /* no _SC_PAGESIZE */
14315 # if HAVE_SYS_PARAM_H
14316 # include <sys/param.h>
14317 # ifdef EXEC_PAGESIZE
14318 # define getpagesize() EXEC_PAGESIZE
14319 # else /* no EXEC_PAGESIZE */
14320 # ifdef NBPG
14321 # define getpagesize() NBPG * CLSIZE
14322 # ifndef CLSIZE
14323 # define CLSIZE 1
14324 # endif /* no CLSIZE */
14325 # else /* no NBPG */
14326 # ifdef NBPC
14327 # define getpagesize() NBPC
14328 # else /* no NBPC */
14329 # ifdef PAGESIZE
14330 # define getpagesize() PAGESIZE
14331 # endif /* PAGESIZE */
14332 # endif /* no NBPC */
14333 # endif /* no NBPG */
14334 # endif /* no EXEC_PAGESIZE */
14335 # else /* no HAVE_SYS_PARAM_H */
14336 # define getpagesize() 8192 /* punt totally */
14337 # endif /* no HAVE_SYS_PARAM_H */
14338 # endif /* no _SC_PAGESIZE */
14340 #endif /* no HAVE_GETPAGESIZE */
14343 main ()
14345 char *data, *data2, *data3;
14346 int i, pagesize;
14347 int fd;
14349 pagesize = getpagesize ();
14351 /* First, make a file with some known garbage in it. */
14352 data = (char *) malloc (pagesize);
14353 if (!data)
14354 exit (1);
14355 for (i = 0; i < pagesize; ++i)
14356 *(data + i) = rand ();
14357 umask (0);
14358 fd = creat ("conftest.mmap", 0600);
14359 if (fd < 0)
14360 exit (1);
14361 if (write (fd, data, pagesize) != pagesize)
14362 exit (1);
14363 close (fd);
14365 /* Next, try to mmap the file at a fixed address which already has
14366 something else allocated at it. If we can, also make sure that
14367 we see the same garbage. */
14368 fd = open ("conftest.mmap", O_RDWR);
14369 if (fd < 0)
14370 exit (1);
14371 data2 = (char *) malloc (2 * pagesize);
14372 if (!data2)
14373 exit (1);
14374 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14375 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14376 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14377 exit (1);
14378 for (i = 0; i < pagesize; ++i)
14379 if (*(data + i) != *(data2 + i))
14380 exit (1);
14382 /* Finally, make sure that changes to the mapped area do not
14383 percolate back to the file as seen by read(). (This is a bug on
14384 some variants of i386 svr4.0.) */
14385 for (i = 0; i < pagesize; ++i)
14386 *(data2 + i) = *(data2 + i) + 1;
14387 data3 = (char *) malloc (pagesize);
14388 if (!data3)
14389 exit (1);
14390 if (read (fd, data3, pagesize) != pagesize)
14391 exit (1);
14392 for (i = 0; i < pagesize; ++i)
14393 if (*(data + i) != *(data3 + i))
14394 exit (1);
14395 close (fd);
14396 exit (0);
14398 _ACEOF
14399 rm -f conftest$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_func_mmap_fixed_mapped=yes
14411 else
14412 echo "$as_me: program exited with status $ac_status" >&5
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ( exit $ac_status )
14417 ac_cv_func_mmap_fixed_mapped=no
14419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14422 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14423 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14424 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14426 cat >>confdefs.h <<\_ACEOF
14427 #define HAVE_MMAP 1
14428 _ACEOF
14431 rm -f conftest.mmap
14435 for ac_func in madvise mprotect
14437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14438 echo "$as_me:$LINENO: checking for $ac_func" >&5
14439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14440 if eval "test \"\${$as_ac_var+set}\" = set"; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14451 #define $ac_func innocuous_$ac_func
14453 /* System header to define __stub macros and hopefully few prototypes,
14454 which can conflict with char $ac_func (); below.
14455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14456 <limits.h> exists even on freestanding compilers. */
14458 #ifdef __STDC__
14459 # include <limits.h>
14460 #else
14461 # include <assert.h>
14462 #endif
14464 #undef $ac_func
14466 /* Override any gcc2 internal prototype to avoid an error. */
14467 #ifdef __cplusplus
14468 extern "C"
14470 #endif
14471 /* We use char because int might match the return type of a gcc2
14472 builtin and then its argument prototype would still apply. */
14473 char $ac_func ();
14474 /* The GNU C library defines this for functions which it implements
14475 to always fail with ENOSYS. Some functions are actually named
14476 something starting with __ and the normal name is an alias. */
14477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14478 choke me
14479 #else
14480 char (*f) () = $ac_func;
14481 #endif
14482 #ifdef __cplusplus
14484 #endif
14487 main ()
14489 return f != $ac_func;
14491 return 0;
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest$ac_exeext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 eval "$as_ac_var=yes"
14517 else
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 eval "$as_ac_var=no"
14523 rm -f conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14528 if test `eval echo '${'$as_ac_var'}'` = yes; then
14529 cat >>confdefs.h <<_ACEOF
14530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14531 _ACEOF
14534 done
14536 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14537 true+yes )
14538 cat >>confdefs.h <<\_ACEOF
14539 #define USE_MMAP 1
14540 _ACEOF
14542 esac
14544 rm -f doc/config.status
14545 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14547 ac_config_commands="$ac_config_commands default"
14554 cat >confcache <<\_ACEOF
14555 # This file is a shell script that caches the results of configure
14556 # tests run on this system so they can be shared between configure
14557 # scripts and configure runs, see configure's option --config-cache.
14558 # It is not useful on other systems. If it contains results you don't
14559 # want to keep, you may remove or edit it.
14561 # config.status only pays attention to the cache file if you give it
14562 # the --recheck option to rerun configure.
14564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14566 # following values.
14568 _ACEOF
14570 # The following way of writing the cache mishandles newlines in values,
14571 # but we know of no workaround that is simple, portable, and efficient.
14572 # So, don't put newlines in cache variables' values.
14573 # Ultrix sh set writes to stderr and can't be redirected directly,
14574 # and sets the high bit in the cache file unless we assign to the vars.
14576 (set) 2>&1 |
14577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14578 *ac_space=\ *)
14579 # `set' does not quote correctly, so add quotes (double-quote
14580 # substitution turns \\\\ into \\, and sed turns \\ into \).
14581 sed -n \
14582 "s/'/'\\\\''/g;
14583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14586 # `set' quotes correctly as required by POSIX, so do not add quotes.
14587 sed -n \
14588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14590 esac;
14592 sed '
14593 t clear
14594 : clear
14595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14596 t end
14597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14598 : end' >>confcache
14599 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14600 if test -w $cache_file; then
14601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14602 cat confcache >$cache_file
14603 else
14604 echo "not updating unwritable cache $cache_file"
14607 rm -f confcache
14609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14610 # Let make expand exec_prefix.
14611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14615 # trailing colons and then remove the whole line if VPATH becomes empty
14616 # (actually we leave an empty line to preserve line numbers).
14617 if test "x$srcdir" = x.; then
14618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14619 s/:*\$(srcdir):*/:/;
14620 s/:*\${srcdir}:*/:/;
14621 s/:*@srcdir@:*/:/;
14622 s/^\([^=]*=[ ]*\):*/\1/;
14623 s/:*$//;
14624 s/^[^=]*=[ ]*$//;
14628 DEFS=-DHAVE_CONFIG_H
14630 ac_libobjs=
14631 ac_ltlibobjs=
14632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14633 # 1. Remove the extension, and $U if already installed.
14634 ac_i=`echo "$ac_i" |
14635 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14636 # 2. Add them.
14637 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14638 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14639 done
14640 LIBOBJS=$ac_libobjs
14642 LTLIBOBJS=$ac_ltlibobjs
14645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14646 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14647 Usually this means the macro was only invoked conditionally." >&5
14648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14649 Usually this means the macro was only invoked conditionally." >&2;}
14650 { (exit 1); exit 1; }; }
14652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14654 Usually this means the macro was only invoked conditionally." >&5
14655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14656 Usually this means the macro was only invoked conditionally." >&2;}
14657 { (exit 1); exit 1; }; }
14659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14660 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14661 Usually this means the macro was only invoked conditionally." >&5
14662 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14663 Usually this means the macro was only invoked conditionally." >&2;}
14664 { (exit 1); exit 1; }; }
14666 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14667 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14668 Usually this means the macro was only invoked conditionally." >&5
14669 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14670 Usually this means the macro was only invoked conditionally." >&2;}
14671 { (exit 1); exit 1; }; }
14674 : ${CONFIG_STATUS=./config.status}
14675 ac_clean_files_save=$ac_clean_files
14676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14679 cat >$CONFIG_STATUS <<_ACEOF
14680 #! $SHELL
14681 # Generated by $as_me.
14682 # Run this file to recreate the current configuration.
14683 # Compiler output produced by configure, useful for debugging
14684 # configure, is in config.log if it exists.
14686 debug=false
14687 ac_cs_recheck=false
14688 ac_cs_silent=false
14689 SHELL=\${CONFIG_SHELL-$SHELL}
14690 _ACEOF
14692 cat >>$CONFIG_STATUS <<\_ACEOF
14693 ## --------------------- ##
14694 ## M4sh Initialization. ##
14695 ## --------------------- ##
14697 # Be Bourne compatible
14698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14699 emulate sh
14700 NULLCMD=:
14701 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14702 # is contrary to our usage. Disable this feature.
14703 alias -g '${1+"$@"}'='"$@"'
14704 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14705 set -o posix
14707 DUALCASE=1; export DUALCASE # for MKS sh
14709 # Support unset when possible.
14710 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14711 as_unset=unset
14712 else
14713 as_unset=false
14717 # Work around bugs in pre-3.0 UWIN ksh.
14718 $as_unset ENV MAIL MAILPATH
14719 PS1='$ '
14720 PS2='> '
14721 PS4='+ '
14723 # NLS nuisances.
14724 for as_var in \
14725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14727 LC_TELEPHONE LC_TIME
14729 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14730 eval $as_var=C; export $as_var
14731 else
14732 $as_unset $as_var
14734 done
14736 # Required to use basename.
14737 if expr a : '\(a\)' >/dev/null 2>&1; then
14738 as_expr=expr
14739 else
14740 as_expr=false
14743 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14744 as_basename=basename
14745 else
14746 as_basename=false
14750 # Name of the executable.
14751 as_me=`$as_basename "$0" ||
14752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14753 X"$0" : 'X\(//\)$' \| \
14754 X"$0" : 'X\(/\)$' \| \
14755 . : '\(.\)' 2>/dev/null ||
14756 echo X/"$0" |
14757 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14758 /^X\/\(\/\/\)$/{ s//\1/; q; }
14759 /^X\/\(\/\).*/{ s//\1/; q; }
14760 s/.*/./; q'`
14763 # PATH needs CR, and LINENO needs CR and PATH.
14764 # Avoid depending upon Character Ranges.
14765 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14766 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14767 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14768 as_cr_digits='0123456789'
14769 as_cr_alnum=$as_cr_Letters$as_cr_digits
14771 # The user is always right.
14772 if test "${PATH_SEPARATOR+set}" != set; then
14773 echo "#! /bin/sh" >conf$$.sh
14774 echo "exit 0" >>conf$$.sh
14775 chmod +x conf$$.sh
14776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14777 PATH_SEPARATOR=';'
14778 else
14779 PATH_SEPARATOR=:
14781 rm -f conf$$.sh
14785 as_lineno_1=$LINENO
14786 as_lineno_2=$LINENO
14787 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14788 test "x$as_lineno_1" != "x$as_lineno_2" &&
14789 test "x$as_lineno_3" = "x$as_lineno_2" || {
14790 # Find who we are. Look in the path if we contain no path at all
14791 # relative or not.
14792 case $0 in
14793 *[\\/]* ) as_myself=$0 ;;
14794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14795 for as_dir in $PATH
14797 IFS=$as_save_IFS
14798 test -z "$as_dir" && as_dir=.
14799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14800 done
14803 esac
14804 # We did not find ourselves, most probably we were run as `sh COMMAND'
14805 # in which case we are not to be found in the path.
14806 if test "x$as_myself" = x; then
14807 as_myself=$0
14809 if test ! -f "$as_myself"; then
14810 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14811 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14812 { (exit 1); exit 1; }; }
14814 case $CONFIG_SHELL in
14816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14817 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14819 IFS=$as_save_IFS
14820 test -z "$as_dir" && as_dir=.
14821 for as_base in sh bash ksh sh5; do
14822 case $as_dir in
14824 if ("$as_dir/$as_base" -c '
14825 as_lineno_1=$LINENO
14826 as_lineno_2=$LINENO
14827 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14828 test "x$as_lineno_1" != "x$as_lineno_2" &&
14829 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14830 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14831 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14832 CONFIG_SHELL=$as_dir/$as_base
14833 export CONFIG_SHELL
14834 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14835 fi;;
14836 esac
14837 done
14838 done
14840 esac
14842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14843 # uniformly replaced by the line number. The first 'sed' inserts a
14844 # line-number line before each line; the second 'sed' does the real
14845 # work. The second script uses 'N' to pair each line-number line
14846 # with the numbered line, and appends trailing '-' during
14847 # substitution so that $LINENO is not a special case at line end.
14848 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14849 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14850 sed '=' <$as_myself |
14851 sed '
14853 s,$,-,
14854 : loop
14855 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14856 t loop
14857 s,-$,,
14858 s,^['$as_cr_digits']*\n,,
14859 ' >$as_me.lineno &&
14860 chmod +x $as_me.lineno ||
14861 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14862 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14863 { (exit 1); exit 1; }; }
14865 # Don't try to exec as it changes $[0], causing all sort of problems
14866 # (the dirname of $[0] is not the place where we might find the
14867 # original and so on. Autoconf is especially sensible to this).
14868 . ./$as_me.lineno
14869 # Exit status is that of the last command.
14870 exit
14874 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14875 *c*,-n*) ECHO_N= ECHO_C='
14876 ' ECHO_T=' ' ;;
14877 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14878 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14879 esac
14881 if expr a : '\(a\)' >/dev/null 2>&1; then
14882 as_expr=expr
14883 else
14884 as_expr=false
14887 rm -f conf$$ conf$$.exe conf$$.file
14888 echo >conf$$.file
14889 if ln -s conf$$.file conf$$ 2>/dev/null; then
14890 # We could just check for DJGPP; but this test a) works b) is more generic
14891 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14892 if test -f conf$$.exe; then
14893 # Don't use ln at all; we don't have any links
14894 as_ln_s='cp -p'
14895 else
14896 as_ln_s='ln -s'
14898 elif ln conf$$.file conf$$ 2>/dev/null; then
14899 as_ln_s=ln
14900 else
14901 as_ln_s='cp -p'
14903 rm -f conf$$ conf$$.exe conf$$.file
14905 if mkdir -p . 2>/dev/null; then
14906 as_mkdir_p=:
14907 else
14908 test -d ./-p && rmdir ./-p
14909 as_mkdir_p=false
14912 as_executable_p="test -f"
14914 # Sed expression to map a string onto a valid CPP name.
14915 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14917 # Sed expression to map a string onto a valid variable name.
14918 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14921 # IFS
14922 # We need space, tab and new line, in precisely that order.
14923 as_nl='
14925 IFS=" $as_nl"
14927 # CDPATH.
14928 $as_unset CDPATH
14930 exec 6>&1
14932 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14933 # report actual input values of CONFIG_FILES etc. instead of their
14934 # values after options handling. Logging --version etc. is OK.
14935 exec 5>>config.log
14937 echo
14938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14939 ## Running $as_me. ##
14940 _ASBOX
14941 } >&5
14942 cat >&5 <<_CSEOF
14944 This file was extended by $as_me, which was
14945 generated by GNU Autoconf 2.59. Invocation command line was
14947 CONFIG_FILES = $CONFIG_FILES
14948 CONFIG_HEADERS = $CONFIG_HEADERS
14949 CONFIG_LINKS = $CONFIG_LINKS
14950 CONFIG_COMMANDS = $CONFIG_COMMANDS
14951 $ $0 $@
14953 _CSEOF
14954 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14955 echo >&5
14956 _ACEOF
14958 # Files that config.status was made for.
14959 if test -n "$ac_config_files"; then
14960 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14963 if test -n "$ac_config_headers"; then
14964 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14967 if test -n "$ac_config_links"; then
14968 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14971 if test -n "$ac_config_commands"; then
14972 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14975 cat >>$CONFIG_STATUS <<\_ACEOF
14977 ac_cs_usage="\
14978 \`$as_me' instantiates files from templates according to the
14979 current configuration.
14981 Usage: $0 [OPTIONS] [FILE]...
14983 -h, --help print this help, then exit
14984 -V, --version print version number, then exit
14985 -q, --quiet do not print progress messages
14986 -d, --debug don't remove temporary files
14987 --recheck update $as_me by reconfiguring in the same conditions
14988 --file=FILE[:TEMPLATE]
14989 instantiate the configuration file FILE
14990 --header=FILE[:TEMPLATE]
14991 instantiate the configuration header FILE
14993 Configuration files:
14994 $config_files
14996 Configuration headers:
14997 $config_headers
14999 Configuration commands:
15000 $config_commands
15002 Report bugs to <bug-autoconf@gnu.org>."
15003 _ACEOF
15005 cat >>$CONFIG_STATUS <<_ACEOF
15006 ac_cs_version="\\
15007 config.status
15008 configured by $0, generated by GNU Autoconf 2.59,
15009 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15011 Copyright (C) 2003 Free Software Foundation, Inc.
15012 This config.status script is free software; the Free Software Foundation
15013 gives unlimited permission to copy, distribute and modify it."
15014 srcdir=$srcdir
15015 INSTALL="$INSTALL"
15016 _ACEOF
15018 cat >>$CONFIG_STATUS <<\_ACEOF
15019 # If no file are specified by the user, then we need to provide default
15020 # value. By we need to know if files were specified by the user.
15021 ac_need_defaults=:
15022 while test $# != 0
15024 case $1 in
15025 --*=*)
15026 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15027 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15028 ac_shift=:
15031 ac_option=$1
15032 ac_optarg=$2
15033 ac_shift=shift
15035 *) # This is not an option, so the user has probably given explicit
15036 # arguments.
15037 ac_option=$1
15038 ac_need_defaults=false;;
15039 esac
15041 case $ac_option in
15042 # Handling of the options.
15043 _ACEOF
15044 cat >>$CONFIG_STATUS <<\_ACEOF
15045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15046 ac_cs_recheck=: ;;
15047 --version | --vers* | -V )
15048 echo "$ac_cs_version"; exit 0 ;;
15049 --he | --h)
15050 # Conflict between --help and --header
15051 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15052 Try \`$0 --help' for more information." >&5
15053 echo "$as_me: error: ambiguous option: $1
15054 Try \`$0 --help' for more information." >&2;}
15055 { (exit 1); exit 1; }; };;
15056 --help | --hel | -h )
15057 echo "$ac_cs_usage"; exit 0 ;;
15058 --debug | --d* | -d )
15059 debug=: ;;
15060 --file | --fil | --fi | --f )
15061 $ac_shift
15062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15063 ac_need_defaults=false;;
15064 --header | --heade | --head | --hea )
15065 $ac_shift
15066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15067 ac_need_defaults=false;;
15068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15070 ac_cs_silent=: ;;
15072 # This is an error.
15073 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15074 Try \`$0 --help' for more information." >&5
15075 echo "$as_me: error: unrecognized option: $1
15076 Try \`$0 --help' for more information." >&2;}
15077 { (exit 1); exit 1; }; } ;;
15079 *) ac_config_targets="$ac_config_targets $1" ;;
15081 esac
15082 shift
15083 done
15085 ac_configure_extra_args=
15087 if $ac_cs_silent; then
15088 exec 6>/dev/null
15089 ac_configure_extra_args="$ac_configure_extra_args --silent"
15092 _ACEOF
15093 cat >>$CONFIG_STATUS <<_ACEOF
15094 if \$ac_cs_recheck; then
15095 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15096 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15099 _ACEOF
15101 cat >>$CONFIG_STATUS <<_ACEOF
15103 # INIT-COMMANDS section.
15106 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15109 _ACEOF
15113 cat >>$CONFIG_STATUS <<\_ACEOF
15114 for ac_config_target in $ac_config_targets
15116 case "$ac_config_target" in
15117 # Handling of arguments.
15118 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15119 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15120 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15121 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15122 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15123 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15124 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15125 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15126 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15127 { (exit 1); exit 1; }; };;
15128 esac
15129 done
15131 # If the user did not use the arguments to specify the items to instantiate,
15132 # then the envvar interface is used. Set only those that are not.
15133 # We use the long form for the default assignment because of an extremely
15134 # bizarre bug on SunOS 4.1.3.
15135 if $ac_need_defaults; then
15136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15141 # Have a temporary directory for convenience. Make it in the build tree
15142 # simply because there is no reason to put it here, and in addition,
15143 # creating and moving files from /tmp can sometimes cause problems.
15144 # Create a temporary directory, and hook for its removal unless debugging.
15145 $debug ||
15147 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15148 trap '{ (exit 1); exit 1; }' 1 2 13 15
15151 # Create a (secure) tmp directory for tmp files.
15154 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15155 test -n "$tmp" && test -d "$tmp"
15156 } ||
15158 tmp=./confstat$$-$RANDOM
15159 (umask 077 && mkdir $tmp)
15160 } ||
15162 echo "$me: cannot create a temporary directory in ." >&2
15163 { (exit 1); exit 1; }
15166 _ACEOF
15168 cat >>$CONFIG_STATUS <<_ACEOF
15171 # CONFIG_FILES section.
15174 # No need to generate the scripts if there are no CONFIG_FILES.
15175 # This happens for instance when ./config.status config.h
15176 if test -n "\$CONFIG_FILES"; then
15177 # Protect against being on the right side of a sed subst in config.status.
15178 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15179 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15180 s,@SHELL@,$SHELL,;t t
15181 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15182 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15183 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15184 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15185 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15186 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15187 s,@exec_prefix@,$exec_prefix,;t t
15188 s,@prefix@,$prefix,;t t
15189 s,@program_transform_name@,$program_transform_name,;t t
15190 s,@bindir@,$bindir,;t t
15191 s,@sbindir@,$sbindir,;t t
15192 s,@libexecdir@,$libexecdir,;t t
15193 s,@datadir@,$datadir,;t t
15194 s,@sysconfdir@,$sysconfdir,;t t
15195 s,@sharedstatedir@,$sharedstatedir,;t t
15196 s,@localstatedir@,$localstatedir,;t t
15197 s,@libdir@,$libdir,;t t
15198 s,@includedir@,$includedir,;t t
15199 s,@oldincludedir@,$oldincludedir,;t t
15200 s,@infodir@,$infodir,;t t
15201 s,@mandir@,$mandir,;t t
15202 s,@build_alias@,$build_alias,;t t
15203 s,@host_alias@,$host_alias,;t t
15204 s,@target_alias@,$target_alias,;t t
15205 s,@DEFS@,$DEFS,;t t
15206 s,@ECHO_C@,$ECHO_C,;t t
15207 s,@ECHO_N@,$ECHO_N,;t t
15208 s,@ECHO_T@,$ECHO_T,;t t
15209 s,@LIBS@,$LIBS,;t t
15210 s,@build@,$build,;t t
15211 s,@build_cpu@,$build_cpu,;t t
15212 s,@build_vendor@,$build_vendor,;t t
15213 s,@build_os@,$build_os,;t t
15214 s,@host@,$host,;t t
15215 s,@host_cpu@,$host_cpu,;t t
15216 s,@host_vendor@,$host_vendor,;t t
15217 s,@host_os@,$host_os,;t t
15218 s,@target@,$target,;t t
15219 s,@target_cpu@,$target_cpu,;t t
15220 s,@target_vendor@,$target_vendor,;t t
15221 s,@target_os@,$target_os,;t t
15222 s,@CC@,$CC,;t t
15223 s,@CFLAGS@,$CFLAGS,;t t
15224 s,@LDFLAGS@,$LDFLAGS,;t t
15225 s,@CPPFLAGS@,$CPPFLAGS,;t t
15226 s,@ac_ct_CC@,$ac_ct_CC,;t t
15227 s,@EXEEXT@,$EXEEXT,;t t
15228 s,@OBJEXT@,$OBJEXT,;t t
15229 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15230 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15231 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15232 s,@CYGPATH_W@,$CYGPATH_W,;t t
15233 s,@PACKAGE@,$PACKAGE,;t t
15234 s,@VERSION@,$VERSION,;t t
15235 s,@ACLOCAL@,$ACLOCAL,;t t
15236 s,@AUTOCONF@,$AUTOCONF,;t t
15237 s,@AUTOMAKE@,$AUTOMAKE,;t t
15238 s,@AUTOHEADER@,$AUTOHEADER,;t t
15239 s,@MAKEINFO@,$MAKEINFO,;t t
15240 s,@install_sh@,$install_sh,;t t
15241 s,@STRIP@,$STRIP,;t t
15242 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15243 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15244 s,@mkdir_p@,$mkdir_p,;t t
15245 s,@AWK@,$AWK,;t t
15246 s,@SET_MAKE@,$SET_MAKE,;t t
15247 s,@am__leading_dot@,$am__leading_dot,;t t
15248 s,@AMTAR@,$AMTAR,;t t
15249 s,@am__tar@,$am__tar,;t t
15250 s,@am__untar@,$am__untar,;t t
15251 s,@DEPDIR@,$DEPDIR,;t t
15252 s,@am__include@,$am__include,;t t
15253 s,@am__quote@,$am__quote,;t t
15254 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15255 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15256 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15257 s,@CCDEPMODE@,$CCDEPMODE,;t t
15258 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15259 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15260 s,@AR@,$AR,;t t
15261 s,@ac_ct_AR@,$ac_ct_AR,;t t
15262 s,@RANLIB@,$RANLIB,;t t
15263 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15264 s,@LN_S@,$LN_S,;t t
15265 s,@LIBTOOL@,$LIBTOOL,;t t
15266 s,@VERSUFFIX@,$VERSUFFIX,;t t
15267 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15268 s,@NO_WERROR@,$NO_WERROR,;t t
15269 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15270 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15271 s,@MAINT@,$MAINT,;t t
15272 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15273 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15274 s,@host_noncanonical@,$host_noncanonical,;t t
15275 s,@target_noncanonical@,$target_noncanonical,;t t
15276 s,@bfdlibdir@,$bfdlibdir,;t t
15277 s,@bfdincludedir@,$bfdincludedir,;t t
15278 s,@CPP@,$CPP,;t t
15279 s,@EGREP@,$EGREP,;t t
15280 s,@ALLOCA@,$ALLOCA,;t t
15281 s,@USE_NLS@,$USE_NLS,;t t
15282 s,@MSGFMT@,$MSGFMT,;t t
15283 s,@GMSGFMT@,$GMSGFMT,;t t
15284 s,@XGETTEXT@,$XGETTEXT,;t t
15285 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15286 s,@CATALOGS@,$CATALOGS,;t t
15287 s,@CATOBJEXT@,$CATOBJEXT,;t t
15288 s,@DATADIRNAME@,$DATADIRNAME,;t t
15289 s,@GMOFILES@,$GMOFILES,;t t
15290 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15291 s,@INTLDEPS@,$INTLDEPS,;t t
15292 s,@INTLLIBS@,$INTLLIBS,;t t
15293 s,@INTLOBJS@,$INTLOBJS,;t t
15294 s,@POFILES@,$POFILES,;t t
15295 s,@POSUB@,$POSUB,;t t
15296 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15297 s,@GT_NO@,$GT_NO,;t t
15298 s,@GT_YES@,$GT_YES,;t t
15299 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15300 s,@l@,$l,;t t
15301 s,@HDEFINES@,$HDEFINES,;t t
15302 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15303 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15304 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15305 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15306 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15307 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15308 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15309 s,@COREFILE@,$COREFILE,;t t
15310 s,@COREFLAG@,$COREFLAG,;t t
15311 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15312 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15313 s,@TDEFINES@,$TDEFINES,;t t
15314 s,@wordsize@,$wordsize,;t t
15315 s,@bfd_libs@,$bfd_libs,;t t
15316 s,@all_backends@,$all_backends,;t t
15317 s,@bfd_backends@,$bfd_backends,;t t
15318 s,@bfd_machines@,$bfd_machines,;t t
15319 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15320 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15321 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15322 s,@tdefaults@,$tdefaults,;t t
15323 s,@datarootdir@,$datarootdir,;t t
15324 s,@docdir@,$docdir,;t t
15325 s,@htmldir@,$htmldir,;t t
15326 s,@LIBOBJS@,$LIBOBJS,;t t
15327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15328 CEOF
15330 _ACEOF
15332 cat >>$CONFIG_STATUS <<\_ACEOF
15333 # Split the substitutions into bite-sized pieces for seds with
15334 # small command number limits, like on Digital OSF/1 and HP-UX.
15335 ac_max_sed_lines=48
15336 ac_sed_frag=1 # Number of current file.
15337 ac_beg=1 # First line for current file.
15338 ac_end=$ac_max_sed_lines # Line after last line for current file.
15339 ac_more_lines=:
15340 ac_sed_cmds=
15341 while $ac_more_lines; do
15342 if test $ac_beg -gt 1; then
15343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15344 else
15345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15347 if test ! -s $tmp/subs.frag; then
15348 ac_more_lines=false
15349 else
15350 # The purpose of the label and of the branching condition is to
15351 # speed up the sed processing (if there are no `@' at all, there
15352 # is no need to browse any of the substitutions).
15353 # These are the two extra sed commands mentioned above.
15354 (echo ':t
15355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15356 if test -z "$ac_sed_cmds"; then
15357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15358 else
15359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15361 ac_sed_frag=`expr $ac_sed_frag + 1`
15362 ac_beg=$ac_end
15363 ac_end=`expr $ac_end + $ac_max_sed_lines`
15365 done
15366 if test -z "$ac_sed_cmds"; then
15367 ac_sed_cmds=cat
15369 fi # test -n "$CONFIG_FILES"
15371 _ACEOF
15372 cat >>$CONFIG_STATUS <<\_ACEOF
15373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15375 case $ac_file in
15376 - | *:- | *:-:* ) # input from stdin
15377 cat >$tmp/stdin
15378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15382 * ) ac_file_in=$ac_file.in ;;
15383 esac
15385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15388 X"$ac_file" : 'X\(//\)[^/]' \| \
15389 X"$ac_file" : 'X\(//\)$' \| \
15390 X"$ac_file" : 'X\(/\)' \| \
15391 . : '\(.\)' 2>/dev/null ||
15392 echo X"$ac_file" |
15393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15395 /^X\(\/\/\)$/{ s//\1/; q; }
15396 /^X\(\/\).*/{ s//\1/; q; }
15397 s/.*/./; q'`
15398 { if $as_mkdir_p; then
15399 mkdir -p "$ac_dir"
15400 else
15401 as_dir="$ac_dir"
15402 as_dirs=
15403 while test ! -d "$as_dir"; do
15404 as_dirs="$as_dir $as_dirs"
15405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15407 X"$as_dir" : 'X\(//\)[^/]' \| \
15408 X"$as_dir" : 'X\(//\)$' \| \
15409 X"$as_dir" : 'X\(/\)' \| \
15410 . : '\(.\)' 2>/dev/null ||
15411 echo X"$as_dir" |
15412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15414 /^X\(\/\/\)$/{ s//\1/; q; }
15415 /^X\(\/\).*/{ s//\1/; q; }
15416 s/.*/./; q'`
15417 done
15418 test ! -n "$as_dirs" || mkdir $as_dirs
15419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15421 { (exit 1); exit 1; }; }; }
15423 ac_builddir=.
15425 if test "$ac_dir" != .; then
15426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15427 # A "../" for each directory in $ac_dir_suffix.
15428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15429 else
15430 ac_dir_suffix= ac_top_builddir=
15433 case $srcdir in
15434 .) # No --srcdir option. We are building in place.
15435 ac_srcdir=.
15436 if test -z "$ac_top_builddir"; then
15437 ac_top_srcdir=.
15438 else
15439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15440 fi ;;
15441 [\\/]* | ?:[\\/]* ) # Absolute path.
15442 ac_srcdir=$srcdir$ac_dir_suffix;
15443 ac_top_srcdir=$srcdir ;;
15444 *) # Relative path.
15445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15447 esac
15449 # Do not use `cd foo && pwd` to compute absolute paths, because
15450 # the directories may not exist.
15451 case `pwd` in
15452 .) ac_abs_builddir="$ac_dir";;
15454 case "$ac_dir" in
15455 .) ac_abs_builddir=`pwd`;;
15456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15458 esac;;
15459 esac
15460 case $ac_abs_builddir in
15461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15463 case ${ac_top_builddir}. in
15464 .) ac_abs_top_builddir=$ac_abs_builddir;;
15465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15467 esac;;
15468 esac
15469 case $ac_abs_builddir in
15470 .) ac_abs_srcdir=$ac_srcdir;;
15472 case $ac_srcdir in
15473 .) ac_abs_srcdir=$ac_abs_builddir;;
15474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15476 esac;;
15477 esac
15478 case $ac_abs_builddir in
15479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15481 case $ac_top_srcdir in
15482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15485 esac;;
15486 esac
15489 case $INSTALL in
15490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15491 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15492 esac
15494 if test x"$ac_file" != x-; then
15495 { echo "$as_me:$LINENO: creating $ac_file" >&5
15496 echo "$as_me: creating $ac_file" >&6;}
15497 rm -f "$ac_file"
15499 # Let's still pretend it is `configure' which instantiates (i.e., don't
15500 # use $as_me), people would be surprised to read:
15501 # /* config.h. Generated by config.status. */
15502 if test x"$ac_file" = x-; then
15503 configure_input=
15504 else
15505 configure_input="$ac_file. "
15507 configure_input=$configure_input"Generated from `echo $ac_file_in |
15508 sed 's,.*/,,'` by configure."
15510 # First look for the input files in the build tree, otherwise in the
15511 # src tree.
15512 ac_file_inputs=`IFS=:
15513 for f in $ac_file_in; do
15514 case $f in
15515 -) echo $tmp/stdin ;;
15516 [\\/$]*)
15517 # Absolute (can't be DOS-style, as IFS=:)
15518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15519 echo "$as_me: error: cannot find input file: $f" >&2;}
15520 { (exit 1); exit 1; }; }
15521 echo "$f";;
15522 *) # Relative
15523 if test -f "$f"; then
15524 # Build tree
15525 echo "$f"
15526 elif test -f "$srcdir/$f"; then
15527 # Source tree
15528 echo "$srcdir/$f"
15529 else
15530 # /dev/null tree
15531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15532 echo "$as_me: error: cannot find input file: $f" >&2;}
15533 { (exit 1); exit 1; }; }
15534 fi;;
15535 esac
15536 done` || { (exit 1); exit 1; }
15537 _ACEOF
15538 cat >>$CONFIG_STATUS <<_ACEOF
15539 sed "$ac_vpsub
15540 $extrasub
15541 _ACEOF
15542 cat >>$CONFIG_STATUS <<\_ACEOF
15544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15545 s,@configure_input@,$configure_input,;t t
15546 s,@srcdir@,$ac_srcdir,;t t
15547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15548 s,@top_srcdir@,$ac_top_srcdir,;t t
15549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15550 s,@builddir@,$ac_builddir,;t t
15551 s,@abs_builddir@,$ac_abs_builddir,;t t
15552 s,@top_builddir@,$ac_top_builddir,;t t
15553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15554 s,@INSTALL@,$ac_INSTALL,;t t
15555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15556 rm -f $tmp/stdin
15557 if test x"$ac_file" != x-; then
15558 mv $tmp/out $ac_file
15559 else
15560 cat $tmp/out
15561 rm -f $tmp/out
15564 done
15565 _ACEOF
15566 cat >>$CONFIG_STATUS <<\_ACEOF
15569 # CONFIG_HEADER section.
15572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15575 # ac_d sets the value in "#define NAME VALUE" lines.
15576 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15577 ac_dB='[ ].*$,\1#\2'
15578 ac_dC=' '
15579 ac_dD=',;t'
15580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15581 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15582 ac_uB='$,\1#\2define\3'
15583 ac_uC=' '
15584 ac_uD=',;t'
15586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15588 case $ac_file in
15589 - | *:- | *:-:* ) # input from stdin
15590 cat >$tmp/stdin
15591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15595 * ) ac_file_in=$ac_file.in ;;
15596 esac
15598 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15599 echo "$as_me: creating $ac_file" >&6;}
15601 # First look for the input files in the build tree, otherwise in the
15602 # src tree.
15603 ac_file_inputs=`IFS=:
15604 for f in $ac_file_in; do
15605 case $f in
15606 -) echo $tmp/stdin ;;
15607 [\\/$]*)
15608 # Absolute (can't be DOS-style, as IFS=:)
15609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15610 echo "$as_me: error: cannot find input file: $f" >&2;}
15611 { (exit 1); exit 1; }; }
15612 # Do quote $f, to prevent DOS paths from being IFS'd.
15613 echo "$f";;
15614 *) # Relative
15615 if test -f "$f"; then
15616 # Build tree
15617 echo "$f"
15618 elif test -f "$srcdir/$f"; then
15619 # Source tree
15620 echo "$srcdir/$f"
15621 else
15622 # /dev/null tree
15623 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15624 echo "$as_me: error: cannot find input file: $f" >&2;}
15625 { (exit 1); exit 1; }; }
15626 fi;;
15627 esac
15628 done` || { (exit 1); exit 1; }
15629 # Remove the trailing spaces.
15630 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15632 _ACEOF
15634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15635 # `conftest.undefs', that substitutes the proper values into
15636 # config.h.in to produce config.h. The first handles `#define'
15637 # templates, and the second `#undef' templates.
15638 # And first: Protect against being on the right side of a sed subst in
15639 # config.status. Protect against being in an unquoted here document
15640 # in config.status.
15641 rm -f conftest.defines conftest.undefs
15642 # Using a here document instead of a string reduces the quoting nightmare.
15643 # Putting comments in sed scripts is not portable.
15645 # `end' is used to avoid that the second main sed command (meant for
15646 # 0-ary CPP macros) applies to n-ary macro definitions.
15647 # See the Autoconf documentation for `clear'.
15648 cat >confdef2sed.sed <<\_ACEOF
15649 s/[\\&,]/\\&/g
15650 s,[\\$`],\\&,g
15651 t clear
15652 : clear
15653 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15654 t end
15655 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15656 : end
15657 _ACEOF
15658 # If some macros were called several times there might be several times
15659 # the same #defines, which is useless. Nevertheless, we may not want to
15660 # sort them, since we want the *last* AC-DEFINE to be honored.
15661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15663 rm -f confdef2sed.sed
15665 # This sed command replaces #undef with comments. This is necessary, for
15666 # example, in the case of _POSIX_SOURCE, which is predefined and required
15667 # on some systems where configure will not decide to define it.
15668 cat >>conftest.undefs <<\_ACEOF
15669 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15670 _ACEOF
15672 # Break up conftest.defines because some shells have a limit on the size
15673 # of here documents, and old seds have small limits too (100 cmds).
15674 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15675 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15676 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15677 echo ' :' >>$CONFIG_STATUS
15678 rm -f conftest.tail
15679 while grep . conftest.defines >/dev/null
15681 # Write a limited-size here document to $tmp/defines.sed.
15682 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15683 # Speed up: don't consider the non `#define' lines.
15684 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15685 # Work around the forget-to-reset-the-flag bug.
15686 echo 't clr' >>$CONFIG_STATUS
15687 echo ': clr' >>$CONFIG_STATUS
15688 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15689 echo 'CEOF
15690 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15691 rm -f $tmp/in
15692 mv $tmp/out $tmp/in
15693 ' >>$CONFIG_STATUS
15694 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15695 rm -f conftest.defines
15696 mv conftest.tail conftest.defines
15697 done
15698 rm -f conftest.defines
15699 echo ' fi # grep' >>$CONFIG_STATUS
15700 echo >>$CONFIG_STATUS
15702 # Break up conftest.undefs because some shells have a limit on the size
15703 # of here documents, and old seds have small limits too (100 cmds).
15704 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15705 rm -f conftest.tail
15706 while grep . conftest.undefs >/dev/null
15708 # Write a limited-size here document to $tmp/undefs.sed.
15709 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15710 # Speed up: don't consider the non `#undef'
15711 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15712 # Work around the forget-to-reset-the-flag bug.
15713 echo 't clr' >>$CONFIG_STATUS
15714 echo ': clr' >>$CONFIG_STATUS
15715 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15716 echo 'CEOF
15717 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15718 rm -f $tmp/in
15719 mv $tmp/out $tmp/in
15720 ' >>$CONFIG_STATUS
15721 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15722 rm -f conftest.undefs
15723 mv conftest.tail conftest.undefs
15724 done
15725 rm -f conftest.undefs
15727 cat >>$CONFIG_STATUS <<\_ACEOF
15728 # Let's still pretend it is `configure' which instantiates (i.e., don't
15729 # use $as_me), people would be surprised to read:
15730 # /* config.h. Generated by config.status. */
15731 if test x"$ac_file" = x-; then
15732 echo "/* Generated by configure. */" >$tmp/config.h
15733 else
15734 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15736 cat $tmp/in >>$tmp/config.h
15737 rm -f $tmp/in
15738 if test x"$ac_file" != x-; then
15739 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15741 echo "$as_me: $ac_file is unchanged" >&6;}
15742 else
15743 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15745 X"$ac_file" : 'X\(//\)[^/]' \| \
15746 X"$ac_file" : 'X\(//\)$' \| \
15747 X"$ac_file" : 'X\(/\)' \| \
15748 . : '\(.\)' 2>/dev/null ||
15749 echo X"$ac_file" |
15750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15752 /^X\(\/\/\)$/{ s//\1/; q; }
15753 /^X\(\/\).*/{ s//\1/; q; }
15754 s/.*/./; q'`
15755 { if $as_mkdir_p; then
15756 mkdir -p "$ac_dir"
15757 else
15758 as_dir="$ac_dir"
15759 as_dirs=
15760 while test ! -d "$as_dir"; do
15761 as_dirs="$as_dir $as_dirs"
15762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764 X"$as_dir" : 'X\(//\)[^/]' \| \
15765 X"$as_dir" : 'X\(//\)$' \| \
15766 X"$as_dir" : 'X\(/\)' \| \
15767 . : '\(.\)' 2>/dev/null ||
15768 echo X"$as_dir" |
15769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15771 /^X\(\/\/\)$/{ s//\1/; q; }
15772 /^X\(\/\).*/{ s//\1/; q; }
15773 s/.*/./; q'`
15774 done
15775 test ! -n "$as_dirs" || mkdir $as_dirs
15776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15778 { (exit 1); exit 1; }; }; }
15780 rm -f $ac_file
15781 mv $tmp/config.h $ac_file
15783 else
15784 cat $tmp/config.h
15785 rm -f $tmp/config.h
15787 # Compute $ac_file's index in $config_headers.
15788 _am_stamp_count=1
15789 for _am_header in $config_headers :; do
15790 case $_am_header in
15791 $ac_file | $ac_file:* )
15792 break ;;
15794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15795 esac
15796 done
15797 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15798 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15799 X$ac_file : 'X\(//\)[^/]' \| \
15800 X$ac_file : 'X\(//\)$' \| \
15801 X$ac_file : 'X\(/\)' \| \
15802 . : '\(.\)' 2>/dev/null ||
15803 echo X$ac_file |
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15806 /^X\(\/\/\)$/{ s//\1/; q; }
15807 /^X\(\/\).*/{ s//\1/; q; }
15808 s/.*/./; q'`/stamp-h$_am_stamp_count
15809 done
15810 _ACEOF
15811 cat >>$CONFIG_STATUS <<\_ACEOF
15814 # CONFIG_COMMANDS section.
15816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15821 X"$ac_dest" : 'X\(//\)[^/]' \| \
15822 X"$ac_dest" : 'X\(//\)$' \| \
15823 X"$ac_dest" : 'X\(/\)' \| \
15824 . : '\(.\)' 2>/dev/null ||
15825 echo X"$ac_dest" |
15826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15828 /^X\(\/\/\)$/{ s//\1/; q; }
15829 /^X\(\/\).*/{ s//\1/; q; }
15830 s/.*/./; q'`
15831 { if $as_mkdir_p; then
15832 mkdir -p "$ac_dir"
15833 else
15834 as_dir="$ac_dir"
15835 as_dirs=
15836 while test ! -d "$as_dir"; do
15837 as_dirs="$as_dir $as_dirs"
15838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$as_dir" : 'X\(//\)[^/]' \| \
15841 X"$as_dir" : 'X\(//\)$' \| \
15842 X"$as_dir" : 'X\(/\)' \| \
15843 . : '\(.\)' 2>/dev/null ||
15844 echo X"$as_dir" |
15845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15847 /^X\(\/\/\)$/{ s//\1/; q; }
15848 /^X\(\/\).*/{ s//\1/; q; }
15849 s/.*/./; q'`
15850 done
15851 test ! -n "$as_dirs" || mkdir $as_dirs
15852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15854 { (exit 1); exit 1; }; }; }
15856 ac_builddir=.
15858 if test "$ac_dir" != .; then
15859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15860 # A "../" for each directory in $ac_dir_suffix.
15861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15862 else
15863 ac_dir_suffix= ac_top_builddir=
15866 case $srcdir in
15867 .) # No --srcdir option. We are building in place.
15868 ac_srcdir=.
15869 if test -z "$ac_top_builddir"; then
15870 ac_top_srcdir=.
15871 else
15872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15873 fi ;;
15874 [\\/]* | ?:[\\/]* ) # Absolute path.
15875 ac_srcdir=$srcdir$ac_dir_suffix;
15876 ac_top_srcdir=$srcdir ;;
15877 *) # Relative path.
15878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15880 esac
15882 # Do not use `cd foo && pwd` to compute absolute paths, because
15883 # the directories may not exist.
15884 case `pwd` in
15885 .) ac_abs_builddir="$ac_dir";;
15887 case "$ac_dir" in
15888 .) ac_abs_builddir=`pwd`;;
15889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15891 esac;;
15892 esac
15893 case $ac_abs_builddir in
15894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15896 case ${ac_top_builddir}. in
15897 .) ac_abs_top_builddir=$ac_abs_builddir;;
15898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15900 esac;;
15901 esac
15902 case $ac_abs_builddir in
15903 .) ac_abs_srcdir=$ac_srcdir;;
15905 case $ac_srcdir in
15906 .) ac_abs_srcdir=$ac_abs_builddir;;
15907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15909 esac;;
15910 esac
15911 case $ac_abs_builddir in
15912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15914 case $ac_top_srcdir in
15915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15918 esac;;
15919 esac
15922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15923 echo "$as_me: executing $ac_dest commands" >&6;}
15924 case $ac_dest in
15925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15926 # Strip MF so we end up with the name of the file.
15927 mf=`echo "$mf" | sed -e 's/:.*$//'`
15928 # Check whether this is an Automake generated Makefile or not.
15929 # We used to match only the files named `Makefile.in', but
15930 # some people rename them; so instead we look at the file content.
15931 # Grep'ing the first line is not enough: some people post-process
15932 # each Makefile.in and add a new line on top of each file to say so.
15933 # So let's grep whole file.
15934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15935 dirpart=`(dirname "$mf") 2>/dev/null ||
15936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15937 X"$mf" : 'X\(//\)[^/]' \| \
15938 X"$mf" : 'X\(//\)$' \| \
15939 X"$mf" : 'X\(/\)' \| \
15940 . : '\(.\)' 2>/dev/null ||
15941 echo X"$mf" |
15942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15944 /^X\(\/\/\)$/{ s//\1/; q; }
15945 /^X\(\/\).*/{ s//\1/; q; }
15946 s/.*/./; q'`
15947 else
15948 continue
15950 # Extract the definition of DEPDIR, am__include, and am__quote
15951 # from the Makefile without running `make'.
15952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15953 test -z "$DEPDIR" && continue
15954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15955 test -z "am__include" && continue
15956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15957 # When using ansi2knr, U may be empty or an underscore; expand it
15958 U=`sed -n 's/^U = //p' < "$mf"`
15959 # Find all dependency output files, they are included files with
15960 # $(DEPDIR) in their names. We invoke sed twice because it is the
15961 # simplest approach to changing $(DEPDIR) to its actual value in the
15962 # expansion.
15963 for file in `sed -n "
15964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15966 # Make sure the directory exists.
15967 test -f "$dirpart/$file" && continue
15968 fdir=`(dirname "$file") 2>/dev/null ||
15969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15970 X"$file" : 'X\(//\)[^/]' \| \
15971 X"$file" : 'X\(//\)$' \| \
15972 X"$file" : 'X\(/\)' \| \
15973 . : '\(.\)' 2>/dev/null ||
15974 echo X"$file" |
15975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15977 /^X\(\/\/\)$/{ s//\1/; q; }
15978 /^X\(\/\).*/{ s//\1/; q; }
15979 s/.*/./; q'`
15980 { if $as_mkdir_p; then
15981 mkdir -p $dirpart/$fdir
15982 else
15983 as_dir=$dirpart/$fdir
15984 as_dirs=
15985 while test ! -d "$as_dir"; do
15986 as_dirs="$as_dir $as_dirs"
15987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15989 X"$as_dir" : 'X\(//\)[^/]' \| \
15990 X"$as_dir" : 'X\(//\)$' \| \
15991 X"$as_dir" : 'X\(/\)' \| \
15992 . : '\(.\)' 2>/dev/null ||
15993 echo X"$as_dir" |
15994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15996 /^X\(\/\/\)$/{ s//\1/; q; }
15997 /^X\(\/\).*/{ s//\1/; q; }
15998 s/.*/./; q'`
15999 done
16000 test ! -n "$as_dirs" || mkdir $as_dirs
16001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16003 { (exit 1); exit 1; }; }; }
16005 # echo "creating $dirpart/$file"
16006 echo '# dummy' > "$dirpart/$file"
16007 done
16008 done
16010 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
16011 esac
16012 done
16013 _ACEOF
16015 cat >>$CONFIG_STATUS <<\_ACEOF
16017 { (exit 0); exit 0; }
16018 _ACEOF
16019 chmod +x $CONFIG_STATUS
16020 ac_clean_files=$ac_clean_files_save
16023 # configure is writing to config.log, and then calls config.status.
16024 # config.status does its own redirection, appending to config.log.
16025 # Unfortunately, on DOS this fails, as config.log is still kept open
16026 # by configure, so config.status won't be able to write to it; its
16027 # output is simply discarded. So we exec the FD to /dev/null,
16028 # effectively closing config.log, so it can be properly (re)opened and
16029 # appended to by config.status. When coming back to configure, we
16030 # need to make the FD available again.
16031 if test "$no_create" != yes; then
16032 ac_cs_success=:
16033 ac_config_status_args=
16034 test "$silent" = yes &&
16035 ac_config_status_args="$ac_config_status_args --quiet"
16036 exec 5>/dev/null
16037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16038 exec 5>>config.log
16039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16040 # would make configure fail if this is the last instruction.
16041 $ac_cs_success || { (exit 1); exit 1; }