* configure.in (--enable-secureplt): New.
[binutils.git] / bfd / configure
blobbf85e502906f42c79811e391f47234bb3e2c6bb0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings Enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-included-gettext use the GNU gettext library included here
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd "$ac_popdir"
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990 exit 0
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
997 It was created by $as_me, which was
998 generated by GNU Autoconf 2.59. Invocation command line was
1000 $ $0 $@
1002 _ACEOF
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 _ASUNAME
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034 done
1036 } >&5
1038 cat >&5 <<_ACEOF
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1045 _ACEOF
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1060 for ac_arg
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1093 esac
1094 done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1107 echo
1109 cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 esac;
1130 echo
1132 cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1188 # Predefined preprocessor variables.
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1231 done
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1244 else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1292 done
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1342 done
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking target system type" >&5
1407 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408 if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_target_alias=$target_alias
1412 test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421 echo "${ECHO_T}$ac_cv_target" >&6
1422 target=$ac_cv_target
1423 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 # The aliases save the names the user supplied, while $host etc.
1429 # will get canonicalized.
1430 test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434 ac_ext=c
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1461 done
1462 done
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1476 if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1499 done
1500 done
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1513 CC=$ac_ct_CC
1514 else
1515 CC="$ac_cv_prog_CC"
1518 if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1541 done
1542 done
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1556 if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1579 done
1580 done
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1593 CC=$ac_ct_CC
1594 else
1595 CC="$ac_cv_prog_CC"
1599 if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else
1610 ac_prog_rejected=no
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1626 done
1627 done
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1653 if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1678 done
1679 done
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$CC" && break
1693 done
1695 if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1720 done
1721 done
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1734 test -n "$ac_ct_CC" && break
1735 done
1737 CC=$ac_ct_CC
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1749 # Provide some information about the compiler.
1750 echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752 ac_compiler=`set X $ac_compile; echo $2`
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1769 cat >conftest.$ac_ext <<_ACEOF
1770 /* confdefs.h. */
1771 _ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h. */
1777 main ()
1781 return 0;
1783 _ACEOF
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1788 # of exeext.
1789 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 # resort.
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 ac_cv_exeext=
1804 # b.out is created by i960 compilers.
1805 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1811 conftest.$ac_ext )
1812 # This is the source file.
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1826 break;;
1827 esac
1828 done
1829 else
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1840 ac_exeext=$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_file" >&5
1842 echo "${ECHO_T}$ac_file" >&6
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849 # If not cross compiling, check that we can run a simple program.
1850 if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot run C compiled programs.
1866 If you meant to cross compile, use \`--host'.
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1872 echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6
1875 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876 ac_clean_files=$ac_clean_files_save
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882 echo "${ECHO_T}$cross_compiling" >&6
1884 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 # `rm'.
1895 for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904 done
1905 else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1913 rm -f conftest$ac_cv_exeext
1914 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915 echo "${ECHO_T}$ac_cv_exeext" >&6
1917 rm -f conftest.$ac_ext
1918 EXEEXT=$ac_cv_exeext
1919 ac_exeext=$EXEEXT
1920 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922 if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1933 main ()
1937 return 0;
1939 _ACEOF
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952 done
1953 else
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1969 ac_objext=$OBJEXT
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1983 main ()
1985 #ifndef __GNUC__
1986 choke me
1987 #endif
1990 return 0;
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015 else
2016 echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_compiler_gnu=no
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2030 CFLAGS="-g"
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h. */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2044 main ()
2048 return 0;
2050 _ACEOF
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 ac_cv_prog_cc_g=no
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083 if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085 elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2091 else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2098 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 ac_cv_prog_cc_stdc=no
2104 ac_save_CC=$CC
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h. */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2111 #include <stdarg.h>
2112 #include <stdio.h>
2113 #include <sys/types.h>
2114 #include <sys/stat.h>
2115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116 struct buf { int x; };
2117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118 static char *e (p, i)
2119 char **p;
2120 int i;
2122 return p[i];
2124 static char *f (char * (*g) (char **, int), char **p, ...)
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 int argc;
2148 char **argv;
2150 main ()
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 return 0;
2156 _ACEOF
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_cv_prog_cc_stdc=$ac_arg
2189 break
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2195 rm -f conftest.err conftest.$ac_objext
2196 done
2197 rm -f conftest.$ac_ext conftest.$ac_objext
2198 CC=$ac_save_CC
2202 case "x$ac_cv_prog_cc_stdc" in
2203 x|xno)
2204 echo "$as_me:$LINENO: result: none needed" >&5
2205 echo "${ECHO_T}none needed" >&6 ;;
2207 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209 CC="$CC $ac_cv_prog_cc_stdc" ;;
2210 esac
2212 # Some people use a C++ compiler to compile C. Since we use `exit',
2213 # in C++ we need to declare it. In case someone uses the same compiler
2214 # for both compiling C and C++ we need to have the C++ compiler decide
2215 # the declaration of exit, since it's the most demanding environment.
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #ifndef __cplusplus
2218 choke me
2219 #endif
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2259 main ()
2261 exit (42);
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2292 continue
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301 $ac_declaration
2303 main ()
2305 exit (42);
2307 return 0;
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2346 else
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361 if test "${ac_cv_search_strerror+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 ac_func_search_save_LIBS=$LIBS
2365 ac_cv_search_strerror=no
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 #ifdef __cplusplus
2375 extern "C"
2376 #endif
2377 /* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379 char strerror ();
2381 main ()
2383 strerror ();
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_cv_search_strerror="none required"
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2417 if test "$ac_cv_search_strerror" = no; then
2418 for ac_lib in cposix; do
2419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2427 /* Override any gcc2 internal prototype to avoid an error. */
2428 #ifdef __cplusplus
2429 extern "C"
2430 #endif
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2433 char strerror ();
2435 main ()
2437 strerror ();
2439 return 0;
2441 _ACEOF
2442 rm -f conftest.$ac_objext conftest$ac_exeext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2444 (eval $ac_link) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest$ac_exeext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 ac_cv_search_strerror="-l$ac_lib"
2464 break
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2470 rm -f conftest.err conftest.$ac_objext \
2471 conftest$ac_exeext conftest.$ac_ext
2472 done
2474 LIBS=$ac_func_search_save_LIBS
2476 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2477 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2478 if test "$ac_cv_search_strerror" != no; then
2479 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2484 am__api_version="1.9"
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in
2511 ./ | .// | /cC/* | \
2512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2514 /usr/ucb/* ) ;;
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 # Don't use installbsd from OSF since it installs stuff as root
2518 # by default.
2519 for ac_prog in ginstall scoinst install; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2522 if test $ac_prog = install &&
2523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # AIX install. It has an incompatible calling convention.
2526 elif test $ac_prog = install &&
2527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # program-specific install script used by HP pwplus--don't use.
2530 else
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
2535 done
2536 done
2538 esac
2539 done
2543 if test "${ac_cv_path_install+set}" = set; then
2544 INSTALL=$ac_cv_path_install
2545 else
2546 # As a last resort, use the slow shell script. We don't cache a
2547 # path for INSTALL within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the path is relative.
2550 INSTALL=$ac_install_sh
2553 echo "$as_me:$LINENO: result: $INSTALL" >&5
2554 echo "${ECHO_T}$INSTALL" >&6
2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557 # It thinks the first close brace ends the variable substitution.
2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2565 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2566 # Just in case
2567 sleep 1
2568 echo timestamp > conftest.file
2569 # Do `set' in a subshell so we don't clobber the current shell's
2570 # arguments. Must try -L first in case configure is actually a
2571 # symlink; some systems play weird games with the mod time of symlinks
2572 # (eg FreeBSD returns the mod time of the symlink's containing
2573 # directory).
2574 if (
2575 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2576 if test "$*" = "X"; then
2577 # -L didn't work.
2578 set X `ls -t $srcdir/configure conftest.file`
2580 rm -f conftest.file
2581 if test "$*" != "X $srcdir/configure conftest.file" \
2582 && test "$*" != "X conftest.file $srcdir/configure"; then
2584 # If neither matched, then we have a broken ls. This can happen
2585 # if, for instance, CONFIG_SHELL is bash and it inherits a
2586 # broken ls alias from the environment. This has actually
2587 # happened. Such a system could not be considered "sane".
2588 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2589 alias in your environment" >&5
2590 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2591 alias in your environment" >&2;}
2592 { (exit 1); exit 1; }; }
2595 test "$2" = conftest.file
2597 then
2598 # Ok.
2600 else
2601 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2602 Check your system clock" >&5
2603 echo "$as_me: error: newly created file is older than distributed files!
2604 Check your system clock" >&2;}
2605 { (exit 1); exit 1; }; }
2607 echo "$as_me:$LINENO: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2609 test "$program_prefix" != NONE &&
2610 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2611 # Use a double $ so make ignores it.
2612 test "$program_suffix" != NONE &&
2613 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2614 # Double any \ or $. echo might interpret backslashes.
2615 # By default was `s,x,x', remove it if useless.
2616 cat <<\_ACEOF >conftest.sed
2617 s/[\\$]/&&/g;s/;s,x,x,$//
2618 _ACEOF
2619 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2620 rm conftest.sed
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2625 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2626 # Use eval to expand $SHELL
2627 if eval "$MISSING --run true"; then
2628 am_missing_run="$MISSING --run "
2629 else
2630 am_missing_run=
2631 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2632 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2635 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2636 # We used to keeping the `.' as first argument, in order to
2637 # allow $(mkdir_p) to be used without argument. As in
2638 # $(mkdir_p) $(somedir)
2639 # where $(somedir) is conditionally defined. However this is wrong
2640 # for two reasons:
2641 # 1. if the package is installed by a user who cannot write `.'
2642 # make install will fail,
2643 # 2. the above comment should most certainly read
2644 # $(mkdir_p) $(DESTDIR)$(somedir)
2645 # so it does not work when $(somedir) is undefined and
2646 # $(DESTDIR) is not.
2647 # To support the latter case, we have to write
2648 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2649 # so the `.' trick is pointless.
2650 mkdir_p='mkdir -p --'
2651 else
2652 # On NextStep and OpenStep, the `mkdir' command does not
2653 # recognize any option. It will interpret all options as
2654 # directories to create, and then abort because `.' already
2655 # exists.
2656 for d in ./-p ./--version;
2658 test -d $d && rmdir $d
2659 done
2660 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2661 if test -f "$ac_aux_dir/mkinstalldirs"; then
2662 mkdir_p='$(mkinstalldirs)'
2663 else
2664 mkdir_p='$(install_sh) -d'
2668 for ac_prog in gawk mawk nawk awk
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674 if test "${ac_cv_prog_AWK+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2696 AWK=$ac_cv_prog_AWK
2697 if test -n "$AWK"; then
2698 echo "$as_me:$LINENO: result: $AWK" >&5
2699 echo "${ECHO_T}$AWK" >&6
2700 else
2701 echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2705 test -n "$AWK" && break
2706 done
2708 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2710 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2711 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 cat >conftest.make <<\_ACEOF
2715 all:
2716 @echo 'ac_maketemp="$(MAKE)"'
2717 _ACEOF
2718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2719 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2720 if test -n "$ac_maketemp"; then
2721 eval ac_cv_prog_make_${ac_make}_set=yes
2722 else
2723 eval ac_cv_prog_make_${ac_make}_set=no
2725 rm -f conftest.make
2727 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2728 echo "$as_me:$LINENO: result: yes" >&5
2729 echo "${ECHO_T}yes" >&6
2730 SET_MAKE=
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2734 SET_MAKE="MAKE=${MAKE-make}"
2737 rm -rf .tst 2>/dev/null
2738 mkdir .tst 2>/dev/null
2739 if test -d .tst; then
2740 am__leading_dot=.
2741 else
2742 am__leading_dot=_
2744 rmdir .tst 2>/dev/null
2746 DEPDIR="${am__leading_dot}deps"
2748 ac_config_commands="$ac_config_commands depfiles"
2751 am_make=${MAKE-make}
2752 cat > confinc << 'END'
2753 am__doit:
2754 @echo done
2755 .PHONY: am__doit
2757 # If we don't find an include directive, just comment out the code.
2758 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2759 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2760 am__include="#"
2761 am__quote=
2762 _am_result=none
2763 # First try GNU make style include.
2764 echo "include confinc" > confmf
2765 # We grep out `Entering directory' and `Leaving directory'
2766 # messages which can occur if `w' ends up in MAKEFLAGS.
2767 # In particular we don't look at `^make:' because GNU make might
2768 # be invoked under some other name (usually "gmake"), in which
2769 # case it prints its new name instead of `make'.
2770 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2771 am__include=include
2772 am__quote=
2773 _am_result=GNU
2775 # Now try BSD make style include.
2776 if test "$am__include" = "#"; then
2777 echo '.include "confinc"' > confmf
2778 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2779 am__include=.include
2780 am__quote="\""
2781 _am_result=BSD
2786 echo "$as_me:$LINENO: result: $_am_result" >&5
2787 echo "${ECHO_T}$_am_result" >&6
2788 rm -f confinc confmf
2790 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2791 if test "${enable_dependency_tracking+set}" = set; then
2792 enableval="$enable_dependency_tracking"
2795 if test "x$enable_dependency_tracking" != xno; then
2796 am_depcomp="$ac_aux_dir/depcomp"
2797 AMDEPBACKSLASH='\'
2801 if test "x$enable_dependency_tracking" != xno; then
2802 AMDEP_TRUE=
2803 AMDEP_FALSE='#'
2804 else
2805 AMDEP_TRUE='#'
2806 AMDEP_FALSE=
2811 # test to see if srcdir already configured
2812 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2813 test -f $srcdir/config.status; then
2814 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2815 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2816 { (exit 1); exit 1; }; }
2819 # test whether we have cygpath
2820 if test -z "$CYGPATH_W"; then
2821 if (cygpath --version) >/dev/null 2>/dev/null; then
2822 CYGPATH_W='cygpath -w'
2823 else
2824 CYGPATH_W=echo
2829 # Define the identity of the package.
2830 PACKAGE=bfd
2831 VERSION=2.16.90
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE "$PACKAGE"
2836 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define VERSION "$VERSION"
2841 _ACEOF
2843 # Some tools Automake needs.
2845 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2848 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2851 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2854 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2857 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2861 # Installed binaries are usually stripped using `strip' when the user
2862 # run `make install-strip'. However `strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the `STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_STRIP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2893 STRIP=$ac_cv_prog_STRIP
2894 if test -n "$STRIP"; then
2895 echo "$as_me:$LINENO: result: $STRIP" >&5
2896 echo "${ECHO_T}$STRIP" >&6
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2903 if test -z "$ac_cv_prog_STRIP"; then
2904 ac_ct_STRIP=$STRIP
2905 # Extract the first word of "strip", so it can be a program name with args.
2906 set dummy strip; ac_word=$2
2907 echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 if test -n "$ac_ct_STRIP"; then
2913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_ac_ct_STRIP="strip"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2929 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2933 if test -n "$ac_ct_STRIP"; then
2934 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2935 echo "${ECHO_T}$ac_ct_STRIP" >&6
2936 else
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2941 STRIP=$ac_ct_STRIP
2942 else
2943 STRIP="$ac_cv_prog_STRIP"
2947 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2949 # We need awk for the "check" target. The system "awk" is bad on
2950 # some platforms.
2951 # Always define AMTAR for backward compatibility.
2953 AMTAR=${AMTAR-"${am_missing_run}tar"}
2955 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960 depcc="$CC" am_compiler_list=
2962 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2963 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2964 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2968 # We make a subdir and do the tests there. Otherwise we can end up
2969 # making bogus files that we don't know about and never remove. For
2970 # instance it was reported that on HP-UX the gcc test will end up
2971 # making a dummy file named `D' -- because `-MD' means `put the output
2972 # in D'.
2973 mkdir conftest.dir
2974 # Copy depcomp to subdir because otherwise we won't find it if we're
2975 # using a relative directory.
2976 cp "$am_depcomp" conftest.dir
2977 cd conftest.dir
2978 # We will build objects and dependencies in a subdirectory because
2979 # it helps to detect inapplicable dependency modes. For instance
2980 # both Tru64's cc and ICC support -MD to output dependencies as a
2981 # side effect of compilation, but ICC will put the dependencies in
2982 # the current directory while Tru64 will put them in the object
2983 # directory.
2984 mkdir sub
2986 am_cv_CC_dependencies_compiler_type=none
2987 if test "$am_compiler_list" = ""; then
2988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2990 for depmode in $am_compiler_list; do
2991 # Setup a source with many dependencies, because some compilers
2992 # like to wrap large dependency lists on column 80 (with \), and
2993 # we should not choose a depcomp mode which is confused by this.
2995 # We need to recreate these files for each test, as the compiler may
2996 # overwrite some of them when testing with obscure command lines.
2997 # This happens at least with the AIX C compiler.
2998 : > sub/conftest.c
2999 for i in 1 2 3 4 5 6; do
3000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3002 # Solaris 8's {/usr,}/bin/sh.
3003 touch sub/conftst$i.h
3004 done
3005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3007 case $depmode in
3008 nosideeffect)
3009 # after this tag, mechanisms are not by side-effect, so they'll
3010 # only be used when explicitly requested
3011 if test "x$enable_dependency_tracking" = xyes; then
3012 continue
3013 else
3014 break
3017 none) break ;;
3018 esac
3019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3020 # mode. It turns out that the SunPro C++ compiler does not properly
3021 # handle `-M -o', and we need to detect this.
3022 if depmode=$depmode \
3023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3026 >/dev/null 2>conftest.err &&
3027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3028 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3030 # icc doesn't choke on unknown options, it will just issue warnings
3031 # or remarks (even with -Werror). So we grep stderr for any message
3032 # that says an option was ignored or not supported.
3033 # When given -MP, icc 7.0 and 7.1 complain thusly:
3034 # icc: Command line warning: ignoring option '-M'; no argument required
3035 # The diagnosis changed in icc 8.0:
3036 # icc: Command line remark: option '-MP' not supported
3037 if (grep 'ignoring option' conftest.err ||
3038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3039 am_cv_CC_dependencies_compiler_type=$depmode
3040 break
3043 done
3045 cd ..
3046 rm -rf conftest.dir
3047 else
3048 am_cv_CC_dependencies_compiler_type=none
3052 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3053 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059 test "x$enable_dependency_tracking" != xno \
3060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3061 am__fastdepCC_TRUE=
3062 am__fastdepCC_FALSE='#'
3063 else
3064 am__fastdepCC_TRUE='#'
3065 am__fastdepCC_FALSE=
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}ar; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_AR+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 if test -n "$AR"; then
3080 ac_cv_prog_AR="$AR" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_AR="${ac_tool_prefix}ar"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3098 AR=$ac_cv_prog_AR
3099 if test -n "$AR"; then
3100 echo "$as_me:$LINENO: result: $AR" >&5
3101 echo "${ECHO_T}$AR" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3108 if test -z "$ac_cv_prog_AR"; then
3109 ac_ct_AR=$AR
3110 # Extract the first word of "ar", so it can be a program name with args.
3111 set dummy ar; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 if test -n "$ac_ct_AR"; then
3118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_AR="ar"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3131 done
3132 done
3136 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3137 if test -n "$ac_ct_AR"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3139 echo "${ECHO_T}$ac_ct_AR" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3145 AR=$ac_ct_AR
3146 else
3147 AR="$ac_cv_prog_AR"
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_RANLIB+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 if test -n "$RANLIB"; then
3159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3172 done
3173 done
3177 RANLIB=$ac_cv_prog_RANLIB
3178 if test -n "$RANLIB"; then
3179 echo "$as_me:$LINENO: result: $RANLIB" >&5
3180 echo "${ECHO_T}$RANLIB" >&6
3181 else
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3187 if test -z "$ac_cv_prog_RANLIB"; then
3188 ac_ct_RANLIB=$RANLIB
3189 # Extract the first word of "ranlib", so it can be a program name with args.
3190 set dummy ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if test -n "$ac_ct_RANLIB"; then
3197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_RANLIB="ranlib"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3217 if test -n "$ac_ct_RANLIB"; then
3218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3225 RANLIB=$ac_ct_RANLIB
3226 else
3227 RANLIB="$ac_cv_prog_RANLIB"
3231 # Check whether --enable-shared or --disable-shared was given.
3232 if test "${enable_shared+set}" = set; then
3233 enableval="$enable_shared"
3234 p=${PACKAGE-default}
3235 case $enableval in
3236 yes) enable_shared=yes ;;
3237 no) enable_shared=no ;;
3239 enable_shared=no
3240 # Look at the argument we got. We use all the common list separators.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3242 for pkg in $enableval; do
3243 if test "X$pkg" = "X$p"; then
3244 enable_shared=yes
3246 done
3247 IFS="$ac_save_ifs"
3249 esac
3250 else
3251 enable_shared=no
3254 # Check whether --enable-static or --disable-static was given.
3255 if test "${enable_static+set}" = set; then
3256 enableval="$enable_static"
3257 p=${PACKAGE-default}
3258 case $enableval in
3259 yes) enable_static=yes ;;
3260 no) enable_static=no ;;
3262 enable_static=no
3263 # Look at the argument we got. We use all the common list separators.
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3265 for pkg in $enableval; do
3266 if test "X$pkg" = "X$p"; then
3267 enable_static=yes
3269 done
3270 IFS="$ac_save_ifs"
3272 esac
3273 else
3274 enable_static=yes
3276 # Check whether --enable-fast-install or --disable-fast-install was given.
3277 if test "${enable_fast_install+set}" = set; then
3278 enableval="$enable_fast_install"
3279 p=${PACKAGE-default}
3280 case $enableval in
3281 yes) enable_fast_install=yes ;;
3282 no) enable_fast_install=no ;;
3284 enable_fast_install=no
3285 # Look at the argument we got. We use all the common list separators.
3286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3287 for pkg in $enableval; do
3288 if test "X$pkg" = "X$p"; then
3289 enable_fast_install=yes
3291 done
3292 IFS="$ac_save_ifs"
3294 esac
3295 else
3296 enable_fast_install=yes
3299 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3300 if test "${with_gnu_ld+set}" = set; then
3301 withval="$with_gnu_ld"
3302 test "$withval" = no || with_gnu_ld=yes
3303 else
3304 with_gnu_ld=no
3306 ac_prog=ld
3307 if test "$GCC" = yes; then
3308 # Check if gcc -print-prog-name=ld gives a path.
3309 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3310 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3311 case $host in
3312 *-*-mingw*)
3313 # gcc leaves a trailing carriage return which upsets mingw
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3317 esac
3318 case $ac_prog in
3319 # Accept absolute paths.
3320 [\\/]* | [A-Za-z]:[\\/]*)
3321 re_direlt='/[^/][^/]*/\.\./'
3322 # Canonicalize the path of ld
3323 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3324 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3325 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3326 done
3327 test -z "$LD" && LD="$ac_prog"
3330 # If it fails, then pretend we aren't using GCC.
3331 ac_prog=ld
3334 # If it is relative, then search for the first ld in PATH.
3335 with_gnu_ld=unknown
3337 esac
3338 elif test "$with_gnu_ld" = yes; then
3339 echo "$as_me:$LINENO: checking for GNU ld" >&5
3340 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3341 else
3342 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3343 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3345 if test "${lt_cv_path_LD+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -z "$LD"; then
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3350 for ac_dir in $PATH; do
3351 test -z "$ac_dir" && ac_dir=.
3352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3353 lt_cv_path_LD="$ac_dir/$ac_prog"
3354 # Check to see if the program is GNU ld. I'd rather use --version,
3355 # but apparently some GNU ld's only accept -v.
3356 # Break only if it was the GNU/non-GNU ld that we prefer.
3357 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3358 test "$with_gnu_ld" != no && break
3359 else
3360 test "$with_gnu_ld" != yes && break
3363 done
3364 IFS="$ac_save_ifs"
3365 else
3366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3370 LD="$lt_cv_path_LD"
3371 if test -n "$LD"; then
3372 echo "$as_me:$LINENO: result: $LD" >&5
3373 echo "${ECHO_T}$LD" >&6
3374 else
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3378 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3379 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3380 { (exit 1); exit 1; }; }
3381 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3382 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3383 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3387 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3388 lt_cv_prog_gnu_ld=yes
3389 else
3390 lt_cv_prog_gnu_ld=no
3393 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3395 with_gnu_ld=$lt_cv_prog_gnu_ld
3398 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3399 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3400 if test "${lt_cv_ld_reload_flag+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 lt_cv_ld_reload_flag='-r'
3405 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3406 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3407 reload_flag=$lt_cv_ld_reload_flag
3408 test -n "$reload_flag" && reload_flag=" $reload_flag"
3410 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3411 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3412 if test "${lt_cv_path_NM+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test -n "$NM"; then
3416 # Let the user override the test.
3417 lt_cv_path_NM="$NM"
3418 else
3419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3420 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3421 test -z "$ac_dir" && ac_dir=.
3422 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3423 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3424 # Check to see if the nm accepts a BSD-compat flag.
3425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426 # nm: unknown option "B" ignored
3427 # Tru64's nm complains that /dev/null is an invalid object file
3428 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3429 lt_cv_path_NM="$tmp_nm -B"
3430 break
3431 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3432 lt_cv_path_NM="$tmp_nm -p"
3433 break
3434 else
3435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3436 continue # so that we can try to find one that supports BSD flags
3439 done
3440 IFS="$ac_save_ifs"
3441 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3445 NM="$lt_cv_path_NM"
3446 echo "$as_me:$LINENO: result: $NM" >&5
3447 echo "${ECHO_T}$NM" >&6
3449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3451 LN_S=$as_ln_s
3452 if test "$LN_S" = "ln -s"; then
3453 echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6
3455 else
3456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3457 echo "${ECHO_T}no, using $LN_S" >&6
3460 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3461 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3462 if test "${lt_cv_deplibs_check_method+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 lt_cv_file_magic_cmd='$MAGIC_CMD'
3466 lt_cv_file_magic_test_file=
3467 lt_cv_deplibs_check_method='unknown'
3468 # Need to set the preceding variable on all platforms that support
3469 # interlibrary dependencies.
3470 # 'none' -- dependencies not supported.
3471 # `unknown' -- same as none, but documents that we really don't know.
3472 # 'pass_all' -- all dependencies passed with no checks.
3473 # 'test_compile' -- check by making test program.
3474 # 'file_magic [regex]' -- check by looking for files in library path
3475 # which responds to the $file_magic_cmd with a given egrep regex.
3476 # If you have `file' or equivalent on your system and you're not sure
3477 # whether `pass_all' will *always* work, you probably want this one.
3479 case $host_os in
3480 aix*)
3481 lt_cv_deplibs_check_method=pass_all
3484 beos*)
3485 lt_cv_deplibs_check_method=pass_all
3488 bsdi4*)
3489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3490 lt_cv_file_magic_cmd='/usr/bin/file -L'
3491 lt_cv_file_magic_test_file=/shlib/libc.so
3494 cygwin* | mingw* |pw32*)
3495 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3496 lt_cv_file_magic_cmd='$OBJDUMP -f'
3499 darwin* | rhapsody*)
3500 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3501 lt_cv_file_magic_cmd='/usr/bin/file -L'
3502 case "$host_os" in
3503 rhapsody* | darwin1.012)
3504 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3506 *) # Darwin 1.3 on
3507 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3509 esac
3512 freebsd* | kfreebsd*-gnu)
3513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3514 case $host_cpu in
3515 i*86 )
3516 # Not sure whether the presence of OpenBSD here was a mistake.
3517 # Let's accept both of them until this is cleared up.
3518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3519 lt_cv_file_magic_cmd=/usr/bin/file
3520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3522 esac
3523 else
3524 lt_cv_deplibs_check_method=pass_all
3528 gnu*)
3529 lt_cv_deplibs_check_method=pass_all
3532 hpux10.20*|hpux11*)
3533 case $host_cpu in
3534 hppa*)
3535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3536 lt_cv_file_magic_cmd=/usr/bin/file
3537 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3539 ia64*)
3540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3541 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3544 esac
3547 irix5* | irix6*)
3548 case $host_os in
3549 irix5*)
3550 # this will be overridden with pass_all, but let us keep it just in case
3551 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3554 case $LD in
3555 *-32|*"-32 ") libmagic=32-bit;;
3556 *-n32|*"-n32 ") libmagic=N32;;
3557 *-64|*"-64 ") libmagic=64-bit;;
3558 *) libmagic=never-match;;
3559 esac
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3563 esac
3564 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3565 lt_cv_deplibs_check_method=pass_all
3568 # This must be Linux ELF.
3569 linux-gnu*)
3570 case $host_cpu in
3571 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3572 lt_cv_deplibs_check_method=pass_all ;;
3574 # glibc up to 2.1.1 does not perform some relocations on ARM
3575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3576 esac
3577 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3580 netbsd* | knetbsd*-gnu)
3581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3583 else
3584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3588 newsos6)
3589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3590 lt_cv_file_magic_cmd=/usr/bin/file
3591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3594 osf3* | osf4* | osf5*)
3595 # this will be overridden with pass_all, but let us keep it just in case
3596 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3597 lt_cv_file_magic_test_file=/shlib/libc.so
3598 lt_cv_deplibs_check_method=pass_all
3601 sco3.2v5*)
3602 lt_cv_deplibs_check_method=pass_all
3605 solaris*)
3606 lt_cv_deplibs_check_method=pass_all
3607 lt_cv_file_magic_test_file=/lib/libc.so
3610 sysv5uw[78]* | sysv4*uw2*)
3611 lt_cv_deplibs_check_method=pass_all
3614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3615 case $host_vendor in
3616 ncr)
3617 lt_cv_deplibs_check_method=pass_all
3619 motorola)
3620 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]'
3621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3623 esac
3625 esac
3628 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3629 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3630 file_magic_cmd=$lt_cv_file_magic_cmd
3631 deplibs_check_method=$lt_cv_deplibs_check_method
3636 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3638 # Only perform the check for file, if the check method requires it
3639 case $deplibs_check_method in
3640 file_magic*)
3641 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3642 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3643 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3644 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 case $MAGIC_CMD in
3649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3651 ?:/*)
3652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3655 ac_save_MAGIC_CMD="$MAGIC_CMD"
3656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3657 ac_dummy="/usr/bin:$PATH"
3658 for ac_dir in $ac_dummy; do
3659 test -z "$ac_dir" && ac_dir=.
3660 if test -f $ac_dir/${ac_tool_prefix}file; then
3661 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3662 if test -n "$file_magic_test_file"; then
3663 case $deplibs_check_method in
3664 "file_magic "*)
3665 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3667 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3668 egrep "$file_magic_regex" > /dev/null; then
3670 else
3671 cat <<EOF 1>&2
3673 *** Warning: the command libtool uses to detect shared libraries,
3674 *** $file_magic_cmd, produces output that libtool cannot recognize.
3675 *** The result is that libtool may fail to recognize shared libraries
3676 *** as such. This will affect the creation of libtool libraries that
3677 *** depend on shared libraries, but programs linked with such libtool
3678 *** libraries will work regardless of this problem. Nevertheless, you
3679 *** may want to report the problem to your system manager and/or to
3680 *** bug-libtool@gnu.org
3683 fi ;;
3684 esac
3686 break
3688 done
3689 IFS="$ac_save_ifs"
3690 MAGIC_CMD="$ac_save_MAGIC_CMD"
3692 esac
3695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3696 if test -n "$MAGIC_CMD"; then
3697 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3698 echo "${ECHO_T}$MAGIC_CMD" >&6
3699 else
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3704 if test -z "$lt_cv_path_MAGIC_CMD"; then
3705 if test -n "$ac_tool_prefix"; then
3706 echo "$as_me:$LINENO: checking for file" >&5
3707 echo $ECHO_N "checking for file... $ECHO_C" >&6
3708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 case $MAGIC_CMD in
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3715 ?:/*)
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/file; then
3725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3726 if test -n "$file_magic_test_file"; then
3727 case $deplibs_check_method in
3728 "file_magic "*)
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3734 else
3735 cat <<EOF 1>&2
3737 *** Warning: the command libtool uses to detect shared libraries,
3738 *** $file_magic_cmd, produces output that libtool cannot recognize.
3739 *** The result is that libtool may fail to recognize shared libraries
3740 *** as such. This will affect the creation of libtool libraries that
3741 *** depend on shared libraries, but programs linked with such libtool
3742 *** libraries will work regardless of this problem. Nevertheless, you
3743 *** may want to report the problem to your system manager and/or to
3744 *** bug-libtool@gnu.org
3747 fi ;;
3748 esac
3750 break
3752 done
3753 IFS="$ac_save_ifs"
3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
3756 esac
3759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760 if test -n "$MAGIC_CMD"; then
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762 echo "${ECHO_T}$MAGIC_CMD" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 else
3769 MAGIC_CMD=:
3775 esac
3777 if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_RANLIB+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 if test -n "$RANLIB"; then
3786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3799 done
3800 done
3804 RANLIB=$ac_cv_prog_RANLIB
3805 if test -n "$RANLIB"; then
3806 echo "$as_me:$LINENO: result: $RANLIB" >&5
3807 echo "${ECHO_T}$RANLIB" >&6
3808 else
3809 echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3814 if test -z "$ac_cv_prog_RANLIB"; then
3815 ac_ct_RANLIB=$RANLIB
3816 # Extract the first word of "ranlib", so it can be a program name with args.
3817 set dummy ranlib; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 if test -n "$ac_ct_RANLIB"; then
3824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_RANLIB="ranlib"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3837 done
3838 done
3840 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3844 if test -n "$ac_ct_RANLIB"; then
3845 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3846 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3852 RANLIB=$ac_ct_RANLIB
3853 else
3854 RANLIB="$ac_cv_prog_RANLIB"
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}strip; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_STRIP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 if test -n "$STRIP"; then
3866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3879 done
3880 done
3884 STRIP=$ac_cv_prog_STRIP
3885 if test -n "$STRIP"; then
3886 echo "$as_me:$LINENO: result: $STRIP" >&5
3887 echo "${ECHO_T}$STRIP" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 if test -z "$ac_cv_prog_STRIP"; then
3895 ac_ct_STRIP=$STRIP
3896 # Extract the first word of "strip", so it can be a program name with args.
3897 set dummy strip; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 if test -n "$ac_ct_STRIP"; then
3904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_ac_ct_STRIP="strip"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3924 if test -n "$ac_ct_STRIP"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3926 echo "${ECHO_T}$ac_ct_STRIP" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 STRIP=$ac_ct_STRIP
3933 else
3934 STRIP="$ac_cv_prog_STRIP"
3938 # Check for any special flags to pass to ltconfig.
3939 libtool_flags="--cache-file=$cache_file"
3940 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3941 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3942 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3943 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3944 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3947 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3948 if test "${enable_libtool_lock+set}" = set; then
3949 enableval="$enable_libtool_lock"
3952 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3953 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3956 # Check whether --with-pic or --without-pic was given.
3957 if test "${with_pic+set}" = set; then
3958 withval="$with_pic"
3959 pic_mode="$withval"
3960 else
3961 pic_mode=default
3963 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3964 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3966 # Some flags need to be propagated to the compiler or linker for good
3967 # libtool support.
3968 case $host in
3969 *-*-irix6*)
3970 # Find out which ABI we are using.
3971 echo '#line 3971 "configure"' > conftest.$ac_ext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; then
3977 if test "$lt_cv_prog_gnu_ld" = yes; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3979 *32-bit*)
3980 LD="${LD-ld} -melf32bsmip"
3982 *N32*)
3983 LD="${LD-ld} -melf32bmipn32"
3985 *64-bit*)
3986 LD="${LD-ld} -melf64bmip"
3988 esac
3989 else
3990 case `/usr/bin/file conftest.$ac_objext` in
3991 *32-bit*)
3992 LD="${LD-ld} -32"
3994 *N32*)
3995 LD="${LD-ld} -n32"
3997 *64-bit*)
3998 LD="${LD-ld} -64"
4000 esac
4003 rm -rf conftest*
4006 ia64-*-hpux*)
4007 # Find out which ABI we are using.
4008 echo 'int i;' > conftest.$ac_ext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010 (eval $ac_compile) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; then
4014 case "`/usr/bin/file conftest.o`" in
4015 *ELF-32*)
4016 HPUX_IA64_MODE="32"
4018 *ELF-64*)
4019 HPUX_IA64_MODE="64"
4021 esac
4023 rm -rf conftest*
4026 *-*-sco3.2v5*)
4027 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4028 SAVE_CFLAGS="$CFLAGS"
4029 CFLAGS="$CFLAGS -belf"
4030 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4031 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4032 if test "${lt_cv_cc_needs_belf+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 main ()
4055 return 0;
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest$ac_exeext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 lt_cv_cc_needs_belf=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 lt_cv_cc_needs_belf=no
4086 rm -f conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4096 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4097 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4098 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4099 CFLAGS="$SAVE_CFLAGS"
4104 esac
4107 # Save cache, so that ltconfig can load it
4108 cat >confcache <<\_ACEOF
4109 # This file is a shell script that caches the results of configure
4110 # tests run on this system so they can be shared between configure
4111 # scripts and configure runs, see configure's option --config-cache.
4112 # It is not useful on other systems. If it contains results you don't
4113 # want to keep, you may remove or edit it.
4115 # config.status only pays attention to the cache file if you give it
4116 # the --recheck option to rerun configure.
4118 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4119 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4120 # following values.
4122 _ACEOF
4124 # The following way of writing the cache mishandles newlines in values,
4125 # but we know of no workaround that is simple, portable, and efficient.
4126 # So, don't put newlines in cache variables' values.
4127 # Ultrix sh set writes to stderr and can't be redirected directly,
4128 # and sets the high bit in the cache file unless we assign to the vars.
4130 (set) 2>&1 |
4131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4132 *ac_space=\ *)
4133 # `set' does not quote correctly, so add quotes (double-quote
4134 # substitution turns \\\\ into \\, and sed turns \\ into \).
4135 sed -n \
4136 "s/'/'\\\\''/g;
4137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4140 # `set' quotes correctly as required by POSIX, so do not add quotes.
4141 sed -n \
4142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4144 esac;
4146 sed '
4147 t clear
4148 : clear
4149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4150 t end
4151 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4152 : end' >>confcache
4153 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4154 if test -w $cache_file; then
4155 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4156 cat confcache >$cache_file
4157 else
4158 echo "not updating unwritable cache $cache_file"
4161 rm -f confcache
4163 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4164 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4165 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4166 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4167 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4168 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4169 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4170 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4171 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4172 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4173 echo "$as_me: error: libtool configure failed" >&2;}
4174 { (exit 1); exit 1; }; }
4176 # Reload cache, that may have been modified by ltconfig
4177 if test -r "$cache_file"; then
4178 # Some versions of bash will fail to source /dev/null (special
4179 # files actually), so we avoid doing that.
4180 if test -f "$cache_file"; then
4181 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4182 echo "$as_me: loading cache $cache_file" >&6;}
4183 case $cache_file in
4184 [\\/]* | ?:[\\/]* ) . $cache_file;;
4185 *) . ./$cache_file;;
4186 esac
4188 else
4189 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4190 echo "$as_me: creating cache $cache_file" >&6;}
4191 >$cache_file
4195 # This can be used to rebuild libtool when needed
4196 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4198 # Always use our own libtool.
4199 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4201 # Redirect the config.log output again, so that the ltconfig log is not
4202 # clobbered by the next message.
4203 exec 5>>./config.log
4211 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4212 if test "${enable_64_bit_bfd+set}" = set; then
4213 enableval="$enable_64_bit_bfd"
4214 case "${enableval}" in
4215 yes) want64=true ;;
4216 no) want64=false ;;
4217 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4218 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4219 { (exit 1); exit 1; }; } ;;
4220 esac
4221 else
4222 want64=false
4223 fi; # Check whether --enable-targets or --disable-targets was given.
4224 if test "${enable_targets+set}" = set; then
4225 enableval="$enable_targets"
4226 case "${enableval}" in
4227 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4228 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4229 { (exit 1); exit 1; }; }
4231 no) enable_targets= ;;
4232 *) enable_targets=$enableval ;;
4233 esac
4234 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4235 if test "${enable_commonbfdlib+set}" = set; then
4236 enableval="$enable_commonbfdlib"
4237 case "${enableval}" in
4238 yes) commonbfdlib=true ;;
4239 no) commonbfdlib=false ;;
4240 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4241 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4242 { (exit 1); exit 1; }; } ;;
4243 esac
4245 # Check whether --with-mmap or --without-mmap was given.
4246 if test "${with_mmap+set}" = set; then
4247 withval="$with_mmap"
4248 case "${withval}" in
4249 yes) want_mmap=true ;;
4250 no) want_mmap=false ;;
4251 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4252 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4253 { (exit 1); exit 1; }; } ;;
4254 esac
4255 else
4256 want_mmap=false
4258 # Check whether --enable-secureplt or --disable-secureplt was given.
4259 if test "${enable_secureplt+set}" = set; then
4260 enableval="$enable_secureplt"
4261 case "${enableval}" in
4262 yes) use_secureplt=true ;;
4263 no) use_secureplt=false ;;
4264 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4265 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4266 { (exit 1); exit 1; }; } ;;
4267 esac
4268 else
4269 use_secureplt=false
4270 fi; if test $use_secureplt = true; then
4272 cat >>confdefs.h <<\_ACEOF
4273 #define USE_SECUREPLT 1
4274 _ACEOF
4279 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4281 # Check whether --enable-werror or --disable-werror was given.
4282 if test "${enable_werror+set}" = set; then
4283 enableval="$enable_werror"
4284 case "${enableval}" in
4285 yes | y) ERROR_ON_WARNING="yes" ;;
4286 no | n) ERROR_ON_WARNING="no" ;;
4287 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4288 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4289 { (exit 1); exit 1; }; } ;;
4290 esac
4293 # Enable -Werror by default when using gcc
4294 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4295 ERROR_ON_WARNING=yes
4298 NO_WERROR=
4299 if test "${ERROR_ON_WARNING}" = yes ; then
4300 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4301 NO_WERROR="-Wno-error"
4304 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4305 if test "${enable_build_warnings+set}" = set; then
4306 enableval="$enable_build_warnings"
4307 case "${enableval}" in
4308 yes) ;;
4309 no) WARN_CFLAGS="-w";;
4310 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4311 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4312 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4313 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4314 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4315 esac
4318 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4319 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4326 ac_config_headers="$ac_config_headers config.h:config.in"
4329 if test -z "$target" ; then
4330 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4331 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4332 { (exit 1); exit 1; }; }
4335 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4336 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4337 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4338 if test "${enable_maintainer_mode+set}" = set; then
4339 enableval="$enable_maintainer_mode"
4340 USE_MAINTAINER_MODE=$enableval
4341 else
4342 USE_MAINTAINER_MODE=no
4344 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4345 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4348 if test $USE_MAINTAINER_MODE = yes; then
4349 MAINTAINER_MODE_TRUE=
4350 MAINTAINER_MODE_FALSE='#'
4351 else
4352 MAINTAINER_MODE_TRUE='#'
4353 MAINTAINER_MODE_FALSE=
4356 MAINT=$MAINTAINER_MODE_TRUE
4359 case ${build_alias} in
4360 "") build_noncanonical=${build} ;;
4361 *) build_noncanonical=${build_alias} ;;
4362 esac
4364 case ${host_alias} in
4365 "") host_noncanonical=${build_noncanonical} ;;
4366 *) host_noncanonical=${host_alias} ;;
4367 esac
4369 case ${target_alias} in
4370 "") target_noncanonical=${host_noncanonical} ;;
4371 *) target_noncanonical=${target_alias} ;;
4372 esac
4374 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4375 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4376 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4377 if test "${enable_install_libbfd+set}" = set; then
4378 enableval="$enable_install_libbfd"
4379 install_libbfd_p=$enableval
4380 else
4381 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4382 install_libbfd_p=yes
4383 else
4384 install_libbfd_p=no
4387 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4388 echo "${ECHO_T}$install_libbfd_p" >&6
4391 if test $install_libbfd_p = yes; then
4392 INSTALL_LIBBFD_TRUE=
4393 INSTALL_LIBBFD_FALSE='#'
4394 else
4395 INSTALL_LIBBFD_TRUE='#'
4396 INSTALL_LIBBFD_FALSE=
4399 # Need _noncanonical variables for this.
4404 # libbfd.a is a host library containing target dependent code
4405 bfdlibdir='$(libdir)'
4406 bfdincludedir='$(includedir)'
4407 if test "${host}" != "${target}"; then
4408 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4409 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4417 host64=false
4418 target64=false
4419 bfd_default_target_size=32
4421 # host stuff:
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_prog_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 if test -n "$CC"; then
4437 ac_cv_prog_CC="$CC" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4450 done
4451 done
4455 CC=$ac_cv_prog_CC
4456 if test -n "$CC"; then
4457 echo "$as_me:$LINENO: result: $CC" >&5
4458 echo "${ECHO_T}$CC" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4465 if test -z "$ac_cv_prog_CC"; then
4466 ac_ct_CC=$CC
4467 # Extract the first word of "gcc", so it can be a program name with args.
4468 set dummy gcc; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 if test -n "$ac_ct_CC"; then
4475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_ac_ct_CC="gcc"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4488 done
4489 done
4493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4494 if test -n "$ac_ct_CC"; then
4495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4496 echo "${ECHO_T}$ac_ct_CC" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 CC=$ac_ct_CC
4503 else
4504 CC="$ac_cv_prog_CC"
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}cc; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_prog_CC+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_CC="${ac_tool_prefix}cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4535 CC=$ac_cv_prog_CC
4536 if test -n "$CC"; then
4537 echo "$as_me:$LINENO: result: $CC" >&5
4538 echo "${ECHO_T}$CC" >&6
4539 else
4540 echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4545 if test -z "$ac_cv_prog_CC"; then
4546 ac_ct_CC=$CC
4547 # Extract the first word of "cc", so it can be a program name with args.
4548 set dummy cc; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 if test -n "$ac_ct_CC"; then
4555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_ac_ct_CC="cc"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4574 if test -n "$ac_ct_CC"; then
4575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4576 echo "${ECHO_T}$ac_ct_CC" >&6
4577 else
4578 echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4582 CC=$ac_ct_CC
4583 else
4584 CC="$ac_cv_prog_CC"
4588 if test -z "$CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590 set dummy cc; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_CC+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599 ac_prog_rejected=no
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected=yes
4609 continue
4611 ac_cv_prog_CC="cc"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4618 if test $ac_prog_rejected = yes; then
4619 # We found a bogon in the path, so make sure we never use it.
4620 set dummy $ac_cv_prog_CC
4621 shift
4622 if test $# != 0; then
4623 # We chose a different compiler from the bogus one.
4624 # However, it has the same basename, so the bogon will be chosen
4625 # first if we set CC to just the basename; use the full file name.
4626 shift
4627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4632 CC=$ac_cv_prog_CC
4633 if test -n "$CC"; then
4634 echo "$as_me:$LINENO: result: $CC" >&5
4635 echo "${ECHO_T}$CC" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4642 if test -z "$CC"; then
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in cl
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
4681 test -n "$CC" && break
4682 done
4684 if test -z "$CC"; then
4685 ac_ct_CC=$CC
4686 for ac_prog in cl
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_ac_ct_CC="$ac_prog"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4717 echo "${ECHO_T}$ac_ct_CC" >&6
4718 else
4719 echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4723 test -n "$ac_ct_CC" && break
4724 done
4726 CC=$ac_ct_CC
4732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." >&2;}
4736 { (exit 1); exit 1; }; }
4738 # Provide some information about the compiler.
4739 echo "$as_me:$LINENO:" \
4740 "checking for C compiler version" >&5
4741 ac_compiler=`set X $ac_compile; echo $2`
4742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4743 (eval $ac_compiler --version </dev/null >&5) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }
4747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4748 (eval $ac_compiler -v </dev/null >&5) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }
4752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4753 (eval $ac_compiler -V </dev/null >&5) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4771 main ()
4773 #ifndef __GNUC__
4774 choke me
4775 #endif
4778 return 0;
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_compiler_gnu=yes
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_compiler_gnu=no
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4813 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4814 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4815 GCC=`test $ac_compiler_gnu = yes && echo yes`
4816 ac_test_CFLAGS=${CFLAGS+set}
4817 ac_save_CFLAGS=$CFLAGS
4818 CFLAGS="-g"
4819 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4821 if test "${ac_cv_prog_cc_g+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4832 main ()
4836 return 0;
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_prog_cc_g=yes
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_cv_prog_cc_g=no
4867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4870 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4871 if test "$ac_test_CFLAGS" = set; then
4872 CFLAGS=$ac_save_CFLAGS
4873 elif test $ac_cv_prog_cc_g = yes; then
4874 if test "$GCC" = yes; then
4875 CFLAGS="-g -O2"
4876 else
4877 CFLAGS="-g"
4879 else
4880 if test "$GCC" = yes; then
4881 CFLAGS="-O2"
4882 else
4883 CFLAGS=
4886 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4887 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4888 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 ac_cv_prog_cc_stdc=no
4892 ac_save_CC=$CC
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h. */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 #include <stdarg.h>
4900 #include <stdio.h>
4901 #include <sys/types.h>
4902 #include <sys/stat.h>
4903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4904 struct buf { int x; };
4905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4906 static char *e (p, i)
4907 char **p;
4908 int i;
4910 return p[i];
4912 static char *f (char * (*g) (char **, int), char **p, ...)
4914 char *s;
4915 va_list v;
4916 va_start (v,p);
4917 s = g (p, va_arg (v,int));
4918 va_end (v);
4919 return s;
4922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4923 function prototypes and stuff, but not '\xHH' hex character constants.
4924 These don't provoke an error unfortunately, instead are silently treated
4925 as 'x'. The following induces an error, until -std1 is added to get
4926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4927 array size at least. It's necessary to write '\x00'==0 to get something
4928 that's true only with -std1. */
4929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4931 int test (int i, double x);
4932 struct s1 {int (*f) (int a);};
4933 struct s2 {int (*f) (double a);};
4934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4935 int argc;
4936 char **argv;
4938 main ()
4940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4942 return 0;
4944 _ACEOF
4945 # Don't try gcc -ansi; that turns off useful extensions and
4946 # breaks some systems' header files.
4947 # AIX -qlanglvl=ansi
4948 # Ultrix and OSF/1 -std1
4949 # HP-UX 10.20 and later -Ae
4950 # HP-UX older versions -Aa -D_HPUX_SOURCE
4951 # SVR4 -Xc -D__EXTENSIONS__
4952 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4954 CC="$ac_save_CC $ac_arg"
4955 rm -f conftest.$ac_objext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
4964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_prog_cc_stdc=$ac_arg
4977 break
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4983 rm -f conftest.err conftest.$ac_objext
4984 done
4985 rm -f conftest.$ac_ext conftest.$ac_objext
4986 CC=$ac_save_CC
4990 case "x$ac_cv_prog_cc_stdc" in
4991 x|xno)
4992 echo "$as_me:$LINENO: result: none needed" >&5
4993 echo "${ECHO_T}none needed" >&6 ;;
4995 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4996 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4997 CC="$CC $ac_cv_prog_cc_stdc" ;;
4998 esac
5000 # Some people use a C++ compiler to compile C. Since we use `exit',
5001 # in C++ we need to declare it. In case someone uses the same compiler
5002 # for both compiling C and C++ we need to have the C++ compiler decide
5003 # the declaration of exit, since it's the most demanding environment.
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #ifndef __cplusplus
5006 choke me
5007 #endif
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 for ac_declaration in \
5031 '' \
5032 'extern "C" void std::exit (int) throw (); using std::exit;' \
5033 'extern "C" void std::exit (int); using std::exit;' \
5034 'extern "C" void exit (int) throw ();' \
5035 'extern "C" void exit (int);' \
5036 'void exit (int);'
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_declaration
5045 #include <stdlib.h>
5047 main ()
5049 exit (42);
5051 return 0;
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 continue
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_declaration
5091 main ()
5093 exit (42);
5095 return 0;
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 break
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126 done
5127 rm -f conftest*
5128 if test -n "$ac_declaration"; then
5129 echo '#ifdef __cplusplus' >>confdefs.h
5130 echo $ac_declaration >>confdefs.h
5131 echo '#endif' >>confdefs.h
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 cat >>confdefs.h <<\_ACEOF
5148 #define _GNU_SOURCE 1
5149 _ACEOF
5153 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5154 if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_prog_RANLIB+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 if test -n "$RANLIB"; then
5163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5181 RANLIB=$ac_cv_prog_RANLIB
5182 if test -n "$RANLIB"; then
5183 echo "$as_me:$LINENO: result: $RANLIB" >&5
5184 echo "${ECHO_T}$RANLIB" >&6
5185 else
5186 echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5191 if test -z "$ac_cv_prog_RANLIB"; then
5192 ac_ct_RANLIB=$RANLIB
5193 # Extract the first word of "ranlib", so it can be a program name with args.
5194 set dummy ranlib; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 if test -n "$ac_ct_RANLIB"; then
5201 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_RANLIB="ranlib"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5217 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5221 if test -n "$ac_ct_RANLIB"; then
5222 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5223 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5224 else
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5229 RANLIB=$ac_ct_RANLIB
5230 else
5231 RANLIB="$ac_cv_prog_RANLIB"
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5241 # On Suns, sometimes $CPP names a directory.
5242 if test -n "$CPP" && test -d "$CPP"; then
5243 CPP=
5245 if test -z "$CPP"; then
5246 if test "${ac_cv_prog_CPP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 # Double quotes because CPP needs to be expanded
5250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5252 ac_preproc_ok=false
5253 for ac_c_preproc_warn_flag in '' yes
5255 # Use a header file that comes with gcc, so configuring glibc
5256 # with a fresh cross-compiler works.
5257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258 # <limits.h> exists even on freestanding compilers.
5259 # On the NeXT, cc -E runs the code through the compiler's parser,
5260 # not just through cpp. "Syntax error" is here to catch this case.
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #ifdef __STDC__
5268 # include <limits.h>
5269 #else
5270 # include <assert.h>
5271 #endif
5272 Syntax error
5273 _ACEOF
5274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5288 else
5289 ac_cpp_err=yes
5291 if test -z "$ac_cpp_err"; then
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 # Broken: fails on valid input.
5298 continue
5300 rm -f conftest.err conftest.$ac_ext
5302 # OK, works on sane cases. Now check whether non-existent headers
5303 # can be detected and how.
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <ac_nonexistent.h>
5311 _ACEOF
5312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev/null; then
5320 if test -s conftest.err; then
5321 ac_cpp_err=$ac_c_preproc_warn_flag
5322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323 else
5324 ac_cpp_err=
5326 else
5327 ac_cpp_err=yes
5329 if test -z "$ac_cpp_err"; then
5330 # Broken: success on invalid input.
5331 continue
5332 else
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5336 # Passes both tests.
5337 ac_preproc_ok=:
5338 break
5340 rm -f conftest.err conftest.$ac_ext
5342 done
5343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344 rm -f conftest.err conftest.$ac_ext
5345 if $ac_preproc_ok; then
5346 break
5349 done
5350 ac_cv_prog_CPP=$CPP
5353 CPP=$ac_cv_prog_CPP
5354 else
5355 ac_cv_prog_CPP=$CPP
5357 echo "$as_me:$LINENO: result: $CPP" >&5
5358 echo "${ECHO_T}$CPP" >&6
5359 ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #ifdef __STDC__
5375 # include <limits.h>
5376 #else
5377 # include <assert.h>
5378 #endif
5379 Syntax error
5380 _ACEOF
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 else
5393 ac_cpp_err=
5395 else
5396 ac_cpp_err=yes
5398 if test -z "$ac_cpp_err"; then
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 # Broken: fails on valid input.
5405 continue
5407 rm -f conftest.err conftest.$ac_ext
5409 # OK, works on sane cases. Now check whether non-existent headers
5410 # can be detected and how.
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <ac_nonexistent.h>
5418 _ACEOF
5419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 else
5431 ac_cpp_err=
5433 else
5434 ac_cpp_err=yes
5436 if test -z "$ac_cpp_err"; then
5437 # Broken: success on invalid input.
5438 continue
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 # Passes both tests.
5444 ac_preproc_ok=:
5445 break
5447 rm -f conftest.err conftest.$ac_ext
5449 done
5450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5451 rm -f conftest.err conftest.$ac_ext
5452 if $ac_preproc_ok; then
5454 else
5455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." >&5
5457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5458 See \`config.log' for more details." >&2;}
5459 { (exit 1); exit 1; }; }
5462 ac_ext=c
5463 ac_cpp='$CPP $CPPFLAGS'
5464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469 echo "$as_me:$LINENO: checking for egrep" >&5
5470 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5471 if test "${ac_cv_prog_egrep+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5475 then ac_cv_prog_egrep='grep -E'
5476 else ac_cv_prog_egrep='egrep'
5479 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5480 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5481 EGREP=$ac_cv_prog_egrep
5484 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5485 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5486 if test "${ac_cv_header_stdc+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <stdlib.h>
5496 #include <stdarg.h>
5497 #include <string.h>
5498 #include <float.h>
5501 main ()
5505 return 0;
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510 (eval $ac_compile) 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_cv_header_stdc=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 ac_cv_header_stdc=no
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5538 if test $ac_cv_header_stdc = yes; then
5539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <string.h>
5548 _ACEOF
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "memchr" >/dev/null 2>&1; then
5552 else
5553 ac_cv_header_stdc=no
5555 rm -f conftest*
5559 if test $ac_cv_header_stdc = yes; then
5560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <stdlib.h>
5569 _ACEOF
5570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5571 $EGREP "free" >/dev/null 2>&1; then
5573 else
5574 ac_cv_header_stdc=no
5576 rm -f conftest*
5580 if test $ac_cv_header_stdc = yes; then
5581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5582 if test "$cross_compiling" = yes; then
5584 else
5585 cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <ctype.h>
5592 #if ((' ' & 0x0FF) == 0x020)
5593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5595 #else
5596 # define ISLOWER(c) \
5597 (('a' <= (c) && (c) <= 'i') \
5598 || ('j' <= (c) && (c) <= 'r') \
5599 || ('s' <= (c) && (c) <= 'z'))
5600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5601 #endif
5603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5605 main ()
5607 int i;
5608 for (i = 0; i < 256; i++)
5609 if (XOR (islower (i), ISLOWER (i))
5610 || toupper (i) != TOUPPER (i))
5611 exit(2);
5612 exit (0);
5614 _ACEOF
5615 rm -f conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5627 else
5628 echo "$as_me: program exited with status $ac_status" >&5
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 ( exit $ac_status )
5633 ac_cv_header_stdc=no
5635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5640 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5641 if test $ac_cv_header_stdc = yes; then
5643 cat >>confdefs.h <<\_ACEOF
5644 #define STDC_HEADERS 1
5645 _ACEOF
5649 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5651 if test "${ac_cv_c_const+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5662 main ()
5664 /* FIXME: Include the comments suggested by Paul. */
5665 #ifndef __cplusplus
5666 /* Ultrix mips cc rejects this. */
5667 typedef int charset[2];
5668 const charset x;
5669 /* SunOS 4.1.1 cc rejects this. */
5670 char const *const *ccp;
5671 char **p;
5672 /* NEC SVR4.0.2 mips cc rejects this. */
5673 struct point {int x, y;};
5674 static struct point const zero = {0,0};
5675 /* AIX XL C 1.02.0.0 rejects this.
5676 It does not let you subtract one const X* pointer from another in
5677 an arm of an if-expression whose if-part is not a constant
5678 expression */
5679 const char *g = "string";
5680 ccp = &g + (g ? g-g : 0);
5681 /* HPUX 7.0 cc rejects these. */
5682 ++ccp;
5683 p = (char**) ccp;
5684 ccp = (char const *const *) p;
5685 { /* SCO 3.2v4 cc rejects this. */
5686 char *t;
5687 char const *s = 0 ? (char *) 0 : (char const *) 0;
5689 *t++ = 0;
5691 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5692 int x[] = {25, 17};
5693 const int *foo = &x[0];
5694 ++foo;
5696 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5697 typedef const int *iptr;
5698 iptr p = 0;
5699 ++p;
5701 { /* AIX XL C 1.02.0.0 rejects this saying
5702 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5703 struct s { int j; const int *ap[3]; };
5704 struct s *b; b->j = 5;
5706 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5707 const int foo = 10;
5709 #endif
5712 return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_c_const=yes
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_c_const=no
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5746 echo "${ECHO_T}$ac_cv_c_const" >&6
5747 if test $ac_cv_c_const = no; then
5749 cat >>confdefs.h <<\_ACEOF
5750 #define const
5751 _ACEOF
5755 echo "$as_me:$LINENO: checking for inline" >&5
5756 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5757 if test "${ac_cv_c_inline+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 ac_cv_c_inline=no
5761 for ac_kw in inline __inline__ __inline; do
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #ifndef __cplusplus
5769 typedef int foo_t;
5770 static $ac_kw foo_t static_foo () {return 0; }
5771 $ac_kw foo_t foo () {return 0; }
5772 #endif
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_cv_c_inline=$ac_kw; break
5797 else
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803 done
5806 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5807 echo "${ECHO_T}$ac_cv_c_inline" >&6
5810 case $ac_cv_c_inline in
5811 inline | yes) ;;
5813 case $ac_cv_c_inline in
5814 no) ac_val=;;
5815 *) ac_val=$ac_cv_c_inline;;
5816 esac
5817 cat >>confdefs.h <<_ACEOF
5818 #ifndef __cplusplus
5819 #define inline $ac_val
5820 #endif
5821 _ACEOF
5823 esac
5825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5836 inttypes.h stdint.h unistd.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5852 #include <$ac_header>
5853 _ACEOF
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5875 eval "$as_ac_Header=yes"
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 eval "$as_ac_Header=no"
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887 cat >>confdefs.h <<_ACEOF
5888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5889 _ACEOF
5893 done
5896 echo "$as_me:$LINENO: checking for off_t" >&5
5897 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5898 if test "${ac_cv_type_off_t+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 $ac_includes_default
5909 main ()
5911 if ((off_t *) 0)
5912 return 0;
5913 if (sizeof (off_t))
5914 return 0;
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_type_off_t=no
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5953 else
5955 cat >>confdefs.h <<_ACEOF
5956 #define off_t long
5957 _ACEOF
5961 echo "$as_me:$LINENO: checking for size_t" >&5
5962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_size_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5974 main ()
5976 if ((size_t *) 0)
5977 return 0;
5978 if (sizeof (size_t))
5979 return 0;
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_type_size_t=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_type_size_t=no
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6015 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6016 if test $ac_cv_type_size_t = yes; then
6018 else
6020 cat >>confdefs.h <<_ACEOF
6021 #define size_t unsigned
6022 _ACEOF
6026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027 # for constant arguments. Useless!
6028 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6030 if test "${ac_cv_working_alloca_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <alloca.h>
6041 main ()
6043 char *p = (char *) alloca (2 * sizeof (int));
6045 return 0;
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_working_alloca_h=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cv_working_alloca_h=no
6076 rm -f conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6080 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6081 if test $ac_cv_working_alloca_h = yes; then
6083 cat >>confdefs.h <<\_ACEOF
6084 #define HAVE_ALLOCA_H 1
6085 _ACEOF
6089 echo "$as_me:$LINENO: checking for alloca" >&5
6090 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6091 if test "${ac_cv_func_alloca_works+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 #ifdef __GNUC__
6101 # define alloca __builtin_alloca
6102 #else
6103 # ifdef _MSC_VER
6104 # include <malloc.h>
6105 # define alloca _alloca
6106 # else
6107 # if HAVE_ALLOCA_H
6108 # include <alloca.h>
6109 # else
6110 # ifdef _AIX
6111 #pragma alloca
6112 # else
6113 # ifndef alloca /* predefined by HP cc +Olibcalls */
6114 char *alloca ();
6115 # endif
6116 # endif
6117 # endif
6118 # endif
6119 #endif
6122 main ()
6124 char *p = (char *) alloca (1);
6126 return 0;
6128 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_func_alloca_works=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_cv_func_alloca_works=no
6157 rm -f conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6161 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6163 if test $ac_cv_func_alloca_works = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define HAVE_ALLOCA 1
6167 _ACEOF
6169 else
6170 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6171 # that cause trouble. Some versions do not even contain alloca or
6172 # contain a buggy version. If you still want to use their alloca,
6173 # use ar to extract alloca.o from them instead of compiling alloca.c.
6175 ALLOCA=alloca.$ac_objext
6177 cat >>confdefs.h <<\_ACEOF
6178 #define C_ALLOCA 1
6179 _ACEOF
6182 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6183 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6184 if test "${ac_cv_os_cray+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #if defined(CRAY) && ! defined(CRAY2)
6194 webecray
6195 #else
6196 wenotbecray
6197 #endif
6199 _ACEOF
6200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6201 $EGREP "webecray" >/dev/null 2>&1; then
6202 ac_cv_os_cray=yes
6203 else
6204 ac_cv_os_cray=no
6206 rm -f conftest*
6209 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6210 echo "${ECHO_T}$ac_cv_os_cray" >&6
6211 if test $ac_cv_os_cray = yes; then
6212 for ac_func in _getb67 GETB67 getb67; do
6213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 echo "$as_me:$LINENO: checking for $ac_func" >&5
6215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_var+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6227 #define $ac_func innocuous_$ac_func
6229 /* System header to define __stub macros and hopefully few prototypes,
6230 which can conflict with char $ac_func (); below.
6231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 <limits.h> exists even on freestanding compilers. */
6234 #ifdef __STDC__
6235 # include <limits.h>
6236 #else
6237 # include <assert.h>
6238 #endif
6240 #undef $ac_func
6242 /* Override any gcc2 internal prototype to avoid an error. */
6243 #ifdef __cplusplus
6244 extern "C"
6246 #endif
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6249 char $ac_func ();
6250 /* The GNU C library defines this for functions which it implements
6251 to always fail with ENOSYS. Some functions are actually named
6252 something starting with __ and the normal name is an alias. */
6253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6254 choke me
6255 #else
6256 char (*f) () = $ac_func;
6257 #endif
6258 #ifdef __cplusplus
6260 #endif
6263 main ()
6265 return f != $ac_func;
6267 return 0;
6269 _ACEOF
6270 rm -f conftest.$ac_objext conftest$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 eval "$as_ac_var=yes"
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 eval "$as_ac_var=no"
6298 rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6303 if test `eval echo '${'$as_ac_var'}'` = yes; then
6305 cat >>confdefs.h <<_ACEOF
6306 #define CRAY_STACKSEG_END $ac_func
6307 _ACEOF
6309 break
6312 done
6315 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6316 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6317 if test "${ac_cv_c_stack_direction+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 if test "$cross_compiling" = yes; then
6321 ac_cv_c_stack_direction=0
6322 else
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6330 find_stack_direction ()
6332 static char *addr = 0;
6333 auto char dummy;
6334 if (addr == 0)
6336 addr = &dummy;
6337 return find_stack_direction ();
6339 else
6340 return (&dummy > addr) ? 1 : -1;
6344 main ()
6346 exit (find_stack_direction () < 0);
6348 _ACEOF
6349 rm -f conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351 (eval $ac_link) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_c_stack_direction=1
6361 else
6362 echo "$as_me: program exited with status $ac_status" >&5
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ( exit $ac_status )
6367 ac_cv_c_stack_direction=-1
6369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6372 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6373 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6375 cat >>confdefs.h <<_ACEOF
6376 #define STACK_DIRECTION $ac_cv_c_stack_direction
6377 _ACEOF
6384 for ac_header in stdlib.h unistd.h
6386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 else
6396 # Is the header compilable?
6397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6406 #include <$ac_header>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_header_compiler=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_header_compiler=no
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6438 echo "${ECHO_T}$ac_header_compiler" >&6
6440 # Is the header present?
6441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 #include <$ac_header>
6450 _ACEOF
6451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } >/dev/null; then
6459 if test -s conftest.err; then
6460 ac_cpp_err=$ac_c_preproc_warn_flag
6461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6462 else
6463 ac_cpp_err=
6465 else
6466 ac_cpp_err=yes
6468 if test -z "$ac_cpp_err"; then
6469 ac_header_preproc=yes
6470 else
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 ac_header_preproc=no
6476 rm -f conftest.err conftest.$ac_ext
6477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6478 echo "${ECHO_T}$ac_header_preproc" >&6
6480 # So? What about this header?
6481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6482 yes:no: )
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6487 ac_header_preproc=yes
6489 no:yes:* )
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6503 cat <<\_ASBOX
6504 ## ------------------------------------------ ##
6505 ## Report this to the AC_PACKAGE_NAME lists. ##
6506 ## ------------------------------------------ ##
6507 _ASBOX
6509 sed "s/^/$as_me: WARNING: /" >&2
6511 esac
6512 echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 eval "$as_ac_Header=\$ac_header_preproc"
6519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6524 cat >>confdefs.h <<_ACEOF
6525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6526 _ACEOF
6530 done
6533 for ac_func in getpagesize
6535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6536 echo "$as_me:$LINENO: checking for $ac_func" >&5
6537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_var+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6549 #define $ac_func innocuous_$ac_func
6551 /* System header to define __stub macros and hopefully few prototypes,
6552 which can conflict with char $ac_func (); below.
6553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6554 <limits.h> exists even on freestanding compilers. */
6556 #ifdef __STDC__
6557 # include <limits.h>
6558 #else
6559 # include <assert.h>
6560 #endif
6562 #undef $ac_func
6564 /* Override any gcc2 internal prototype to avoid an error. */
6565 #ifdef __cplusplus
6566 extern "C"
6568 #endif
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571 char $ac_func ();
6572 /* The GNU C library defines this for functions which it implements
6573 to always fail with ENOSYS. Some functions are actually named
6574 something starting with __ and the normal name is an alias. */
6575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6576 choke me
6577 #else
6578 char (*f) () = $ac_func;
6579 #endif
6580 #ifdef __cplusplus
6582 #endif
6585 main ()
6587 return f != $ac_func;
6589 return 0;
6591 _ACEOF
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 eval "$as_ac_var=yes"
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 eval "$as_ac_var=no"
6620 rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6625 if test `eval echo '${'$as_ac_var'}'` = yes; then
6626 cat >>confdefs.h <<_ACEOF
6627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6628 _ACEOF
6631 done
6633 echo "$as_me:$LINENO: checking for working mmap" >&5
6634 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6635 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 if test "$cross_compiling" = yes; then
6639 ac_cv_func_mmap_fixed_mapped=no
6640 else
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 /* malloc might have been renamed as rpl_malloc. */
6649 #undef malloc
6651 /* Thanks to Mike Haertel and Jim Avera for this test.
6652 Here is a matrix of mmap possibilities:
6653 mmap private not fixed
6654 mmap private fixed at somewhere currently unmapped
6655 mmap private fixed at somewhere already mapped
6656 mmap shared not fixed
6657 mmap shared fixed at somewhere currently unmapped
6658 mmap shared fixed at somewhere already mapped
6659 For private mappings, we should verify that changes cannot be read()
6660 back from the file, nor mmap's back from the file at a different
6661 address. (There have been systems where private was not correctly
6662 implemented like the infamous i386 svr4.0, and systems where the
6663 VM page cache was not coherent with the file system buffer cache
6664 like early versions of FreeBSD and possibly contemporary NetBSD.)
6665 For shared mappings, we should conversely verify that changes get
6666 propagated back to all the places they're supposed to be.
6668 Grep wants private fixed already mapped.
6669 The main things grep needs to know about mmap are:
6670 * does it exist and is it safe to write into the mmap'd area
6671 * how to use it (BSD variants) */
6673 #include <fcntl.h>
6674 #include <sys/mman.h>
6676 #if !STDC_HEADERS && !HAVE_STDLIB_H
6677 char *malloc ();
6678 #endif
6680 /* This mess was copied from the GNU getpagesize.h. */
6681 #if !HAVE_GETPAGESIZE
6682 /* Assume that all systems that can run configure have sys/param.h. */
6683 # if !HAVE_SYS_PARAM_H
6684 # define HAVE_SYS_PARAM_H 1
6685 # endif
6687 # ifdef _SC_PAGESIZE
6688 # define getpagesize() sysconf(_SC_PAGESIZE)
6689 # else /* no _SC_PAGESIZE */
6690 # if HAVE_SYS_PARAM_H
6691 # include <sys/param.h>
6692 # ifdef EXEC_PAGESIZE
6693 # define getpagesize() EXEC_PAGESIZE
6694 # else /* no EXEC_PAGESIZE */
6695 # ifdef NBPG
6696 # define getpagesize() NBPG * CLSIZE
6697 # ifndef CLSIZE
6698 # define CLSIZE 1
6699 # endif /* no CLSIZE */
6700 # else /* no NBPG */
6701 # ifdef NBPC
6702 # define getpagesize() NBPC
6703 # else /* no NBPC */
6704 # ifdef PAGESIZE
6705 # define getpagesize() PAGESIZE
6706 # endif /* PAGESIZE */
6707 # endif /* no NBPC */
6708 # endif /* no NBPG */
6709 # endif /* no EXEC_PAGESIZE */
6710 # else /* no HAVE_SYS_PARAM_H */
6711 # define getpagesize() 8192 /* punt totally */
6712 # endif /* no HAVE_SYS_PARAM_H */
6713 # endif /* no _SC_PAGESIZE */
6715 #endif /* no HAVE_GETPAGESIZE */
6718 main ()
6720 char *data, *data2, *data3;
6721 int i, pagesize;
6722 int fd;
6724 pagesize = getpagesize ();
6726 /* First, make a file with some known garbage in it. */
6727 data = (char *) malloc (pagesize);
6728 if (!data)
6729 exit (1);
6730 for (i = 0; i < pagesize; ++i)
6731 *(data + i) = rand ();
6732 umask (0);
6733 fd = creat ("conftest.mmap", 0600);
6734 if (fd < 0)
6735 exit (1);
6736 if (write (fd, data, pagesize) != pagesize)
6737 exit (1);
6738 close (fd);
6740 /* Next, try to mmap the file at a fixed address which already has
6741 something else allocated at it. If we can, also make sure that
6742 we see the same garbage. */
6743 fd = open ("conftest.mmap", O_RDWR);
6744 if (fd < 0)
6745 exit (1);
6746 data2 = (char *) malloc (2 * pagesize);
6747 if (!data2)
6748 exit (1);
6749 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6750 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6751 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6752 exit (1);
6753 for (i = 0; i < pagesize; ++i)
6754 if (*(data + i) != *(data2 + i))
6755 exit (1);
6757 /* Finally, make sure that changes to the mapped area do not
6758 percolate back to the file as seen by read(). (This is a bug on
6759 some variants of i386 svr4.0.) */
6760 for (i = 0; i < pagesize; ++i)
6761 *(data2 + i) = *(data2 + i) + 1;
6762 data3 = (char *) malloc (pagesize);
6763 if (!data3)
6764 exit (1);
6765 if (read (fd, data3, pagesize) != pagesize)
6766 exit (1);
6767 for (i = 0; i < pagesize; ++i)
6768 if (*(data + i) != *(data3 + i))
6769 exit (1);
6770 close (fd);
6771 exit (0);
6773 _ACEOF
6774 rm -f conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_func_mmap_fixed_mapped=yes
6786 else
6787 echo "$as_me: program exited with status $ac_status" >&5
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ( exit $ac_status )
6792 ac_cv_func_mmap_fixed_mapped=no
6794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6797 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6798 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6799 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6801 cat >>confdefs.h <<\_ACEOF
6802 #define HAVE_MMAP 1
6803 _ACEOF
6806 rm -f conftest.mmap
6818 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6819 unistd.h values.h sys/param.h
6821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823 echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6830 else
6831 # Is the header compilable?
6832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 $ac_includes_default
6841 #include <$ac_header>
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_header_compiler=yes
6865 else
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 ac_header_compiler=no
6871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6873 echo "${ECHO_T}$ac_header_compiler" >&6
6875 # Is the header present?
6876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <$ac_header>
6885 _ACEOF
6886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null; then
6894 if test -s conftest.err; then
6895 ac_cpp_err=$ac_c_preproc_warn_flag
6896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897 else
6898 ac_cpp_err=
6900 else
6901 ac_cpp_err=yes
6903 if test -z "$ac_cpp_err"; then
6904 ac_header_preproc=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_header_preproc=no
6911 rm -f conftest.err conftest.$ac_ext
6912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6913 echo "${ECHO_T}$ac_header_preproc" >&6
6915 # So? What about this header?
6916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6917 yes:no: )
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6922 ac_header_preproc=yes
6924 no:yes:* )
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6938 cat <<\_ASBOX
6939 ## ------------------------------------------ ##
6940 ## Report this to the AC_PACKAGE_NAME lists. ##
6941 ## ------------------------------------------ ##
6942 _ASBOX
6944 sed "s/^/$as_me: WARNING: /" >&2
6946 esac
6947 echo "$as_me:$LINENO: checking for $ac_header" >&5
6948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 eval "$as_ac_Header=\$ac_header_preproc"
6954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961 _ACEOF
6965 done
6977 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6978 __argz_count __argz_stringify __argz_next
6980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6981 echo "$as_me:$LINENO: checking for $ac_func" >&5
6982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6983 if eval "test \"\${$as_ac_var+set}\" = set"; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6994 #define $ac_func innocuous_$ac_func
6996 /* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char $ac_func (); below.
6998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 <limits.h> exists even on freestanding compilers. */
7001 #ifdef __STDC__
7002 # include <limits.h>
7003 #else
7004 # include <assert.h>
7005 #endif
7007 #undef $ac_func
7009 /* Override any gcc2 internal prototype to avoid an error. */
7010 #ifdef __cplusplus
7011 extern "C"
7013 #endif
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char $ac_func ();
7017 /* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021 choke me
7022 #else
7023 char (*f) () = $ac_func;
7024 #endif
7025 #ifdef __cplusplus
7027 #endif
7030 main ()
7032 return f != $ac_func;
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 eval "$as_ac_var=yes"
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 eval "$as_ac_var=no"
7065 rm -f conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7070 if test `eval echo '${'$as_ac_var'}'` = yes; then
7071 cat >>confdefs.h <<_ACEOF
7072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7073 _ACEOF
7076 done
7079 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7081 for ac_func in stpcpy
7083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7084 echo "$as_me:$LINENO: checking for $ac_func" >&5
7085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7086 if eval "test \"\${$as_ac_var+set}\" = set"; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7097 #define $ac_func innocuous_$ac_func
7099 /* System header to define __stub macros and hopefully few prototypes,
7100 which can conflict with char $ac_func (); below.
7101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7102 <limits.h> exists even on freestanding compilers. */
7104 #ifdef __STDC__
7105 # include <limits.h>
7106 #else
7107 # include <assert.h>
7108 #endif
7110 #undef $ac_func
7112 /* Override any gcc2 internal prototype to avoid an error. */
7113 #ifdef __cplusplus
7114 extern "C"
7116 #endif
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7119 char $ac_func ();
7120 /* The GNU C library defines this for functions which it implements
7121 to always fail with ENOSYS. Some functions are actually named
7122 something starting with __ and the normal name is an alias. */
7123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7124 choke me
7125 #else
7126 char (*f) () = $ac_func;
7127 #endif
7128 #ifdef __cplusplus
7130 #endif
7133 main ()
7135 return f != $ac_func;
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142 (eval $ac_link) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 eval "$as_ac_var=yes"
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 eval "$as_ac_var=no"
7168 rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7173 if test `eval echo '${'$as_ac_var'}'` = yes; then
7174 cat >>confdefs.h <<_ACEOF
7175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7176 _ACEOF
7179 done
7182 if test "${ac_cv_func_stpcpy}" = "yes"; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_STPCPY 1
7186 _ACEOF
7190 if test $ac_cv_header_locale_h = yes; then
7191 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7192 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7193 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 #include <locale.h>
7204 main ()
7206 return LC_MESSAGES
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 am_cv_val_LC_MESSAGES=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 am_cv_val_LC_MESSAGES=no
7239 rm -f conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7242 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7243 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7244 if test $am_cv_val_LC_MESSAGES = yes; then
7246 cat >>confdefs.h <<\_ACEOF
7247 #define HAVE_LC_MESSAGES 1
7248 _ACEOF
7252 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7253 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7254 # Check whether --enable-nls or --disable-nls was given.
7255 if test "${enable_nls+set}" = set; then
7256 enableval="$enable_nls"
7257 USE_NLS=$enableval
7258 else
7259 USE_NLS=yes
7261 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7262 echo "${ECHO_T}$USE_NLS" >&6
7265 USE_INCLUDED_LIBINTL=no
7267 if test "$USE_NLS" = "yes"; then
7268 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7269 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7271 # Check whether --with-included-gettext or --without-included-gettext was given.
7272 if test "${with_included_gettext+set}" = set; then
7273 withval="$with_included_gettext"
7274 nls_cv_force_use_gnu_gettext=$withval
7275 else
7276 nls_cv_force_use_gnu_gettext=no
7278 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7279 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7281 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7282 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7283 nls_cv_header_intl=
7284 nls_cv_header_libgt=
7285 CATOBJEXT=
7287 if test "${ac_cv_header_libintl_h+set}" = set; then
7288 echo "$as_me:$LINENO: checking for libintl.h" >&5
7289 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7290 if test "${ac_cv_header_libintl_h+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7294 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7295 else
7296 # Is the header compilable?
7297 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7298 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7306 #include <libintl.h>
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } &&
7323 { ac_try='test -s conftest.$ac_objext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_header_compiler=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_header_compiler=no
7336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6
7340 # Is the header present?
7341 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7342 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <libintl.h>
7350 _ACEOF
7351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } >/dev/null; then
7359 if test -s conftest.err; then
7360 ac_cpp_err=$ac_c_preproc_warn_flag
7361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7362 else
7363 ac_cpp_err=
7365 else
7366 ac_cpp_err=yes
7368 if test -z "$ac_cpp_err"; then
7369 ac_header_preproc=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_header_preproc=no
7376 rm -f conftest.err conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 echo "${ECHO_T}$ac_header_preproc" >&6
7380 # So? What about this header?
7381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 yes:no: )
7383 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7384 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7386 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc=yes
7389 no:yes:* )
7390 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7391 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7393 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7395 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7397 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7401 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7403 cat <<\_ASBOX
7404 ## ------------------------------------------ ##
7405 ## Report this to the AC_PACKAGE_NAME lists. ##
7406 ## ------------------------------------------ ##
7407 _ASBOX
7409 sed "s/^/$as_me: WARNING: /" >&2
7411 esac
7412 echo "$as_me:$LINENO: checking for libintl.h" >&5
7413 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7414 if test "${ac_cv_header_libintl_h+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 ac_cv_header_libintl_h=$ac_header_preproc
7419 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7420 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7423 if test $ac_cv_header_libintl_h = yes; then
7424 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7425 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7426 if test "${gt_cv_func_gettext_libc+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h. */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7435 #include <libintl.h>
7437 main ()
7439 return (int) gettext ("")
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 gt_cv_func_gettext_libc=yes
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 gt_cv_func_gettext_libc=no
7472 rm -f conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7476 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7478 if test "$gt_cv_func_gettext_libc" != "yes"; then
7479 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7480 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7481 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lintl $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7499 char bindtextdomain ();
7501 main ()
7503 bindtextdomain ();
7505 return 0;
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_intl_bindtextdomain=yes
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_lib_intl_bindtextdomain=no
7536 rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS
7540 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7541 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7542 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7543 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7544 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7545 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7556 main ()
7558 return (int) gettext ("")
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 gt_cv_func_gettext_libintl=yes
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 gt_cv_func_gettext_libintl=no
7591 rm -f conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7595 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7600 if test "$gt_cv_func_gettext_libc" = "yes" \
7601 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_GETTEXT 1
7605 _ACEOF
7607 # Extract the first word of "msgfmt", so it can be a program name with args.
7608 set dummy msgfmt; ac_word=$2
7609 echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7611 if test "${ac_cv_path_MSGFMT+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 case "$MSGFMT" in
7616 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7620 for ac_dir in $PATH; do
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/$ac_word; then
7623 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7624 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7625 break
7628 done
7629 IFS="$ac_save_ifs"
7630 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7632 esac
7634 MSGFMT="$ac_cv_path_MSGFMT"
7635 if test -n "$MSGFMT"; then
7636 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7637 echo "${ECHO_T}$MSGFMT" >&6
7638 else
7639 echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7642 if test "$MSGFMT" != "no"; then
7644 for ac_func in dcgettext
7646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647 echo "$as_me:$LINENO: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_var+set}\" = set"; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660 #define $ac_func innocuous_$ac_func
7662 /* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char $ac_func (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7673 #undef $ac_func
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 #ifdef __cplusplus
7677 extern "C"
7679 #endif
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7682 char $ac_func ();
7683 /* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7687 choke me
7688 #else
7689 char (*f) () = $ac_func;
7690 #endif
7691 #ifdef __cplusplus
7693 #endif
7696 main ()
7698 return f != $ac_func;
7700 return 0;
7702 _ACEOF
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; } &&
7718 { ac_try='test -s conftest$ac_exeext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 eval "$as_ac_var=yes"
7725 else
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 eval "$as_ac_var=no"
7731 rm -f conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7736 if test `eval echo '${'$as_ac_var'}'` = yes; then
7737 cat >>confdefs.h <<_ACEOF
7738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7739 _ACEOF
7742 done
7744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7745 set dummy gmsgfmt; ac_word=$2
7746 echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 case $GMSGFMT in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7770 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7772 esac
7774 GMSGFMT=$ac_cv_path_GMSGFMT
7776 if test -n "$GMSGFMT"; then
7777 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7778 echo "${ECHO_T}$GMSGFMT" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6
7784 # Extract the first word of "xgettext", so it can be a program name with args.
7785 set dummy xgettext; ac_word=$2
7786 echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 case "$XGETTEXT" in
7793 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7797 for ac_dir in $PATH; do
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f $ac_dir/$ac_word; then
7800 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7801 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7802 break
7805 done
7806 IFS="$ac_save_ifs"
7807 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7809 esac
7811 XGETTEXT="$ac_cv_path_XGETTEXT"
7812 if test -n "$XGETTEXT"; then
7813 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7814 echo "${ECHO_T}$XGETTEXT" >&6
7815 else
7816 echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7828 main ()
7830 extern int _nl_msg_cat_cntr;
7831 return _nl_msg_cat_cntr
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 CATOBJEXT=.gmo
7858 DATADIRNAME=share
7859 else
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 CATOBJEXT=.mo
7864 DATADIRNAME=lib
7866 rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 INSTOBJEXT=.mo
7877 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7878 # Neither gettext nor catgets in included in the C library.
7879 # Fall back on GNU gettext library (assuming it is present).
7880 nls_cv_use_gnu_gettext=yes
7884 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7885 INTLOBJS="\$(GETTOBJS)"
7886 # Extract the first word of "msgfmt", so it can be a program name with args.
7887 set dummy msgfmt; ac_word=$2
7888 echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890 if test "${ac_cv_path_MSGFMT+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 case "$MSGFMT" in
7895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7899 for ac_dir in $PATH; do
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/$ac_word; then
7902 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7903 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7904 break
7907 done
7908 IFS="$ac_save_ifs"
7909 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7911 esac
7913 MSGFMT="$ac_cv_path_MSGFMT"
7914 if test -n "$MSGFMT"; then
7915 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7916 echo "${ECHO_T}$MSGFMT" >&6
7917 else
7918 echo "$as_me:$LINENO: result: no" >&5
7919 echo "${ECHO_T}no" >&6
7922 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7923 set dummy gmsgfmt; ac_word=$2
7924 echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 case $GMSGFMT in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7948 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7950 esac
7952 GMSGFMT=$ac_cv_path_GMSGFMT
7954 if test -n "$GMSGFMT"; then
7955 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7956 echo "${ECHO_T}$GMSGFMT" >&6
7957 else
7958 echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6
7962 # Extract the first word of "xgettext", so it can be a program name with args.
7963 set dummy xgettext; ac_word=$2
7964 echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7966 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 case "$XGETTEXT" in
7971 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7975 for ac_dir in $PATH; do
7976 test -z "$ac_dir" && ac_dir=.
7977 if test -f $ac_dir/$ac_word; then
7978 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7979 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7980 break
7983 done
7984 IFS="$ac_save_ifs"
7985 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7987 esac
7989 XGETTEXT="$ac_cv_path_XGETTEXT"
7990 if test -n "$XGETTEXT"; then
7991 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7992 echo "${ECHO_T}$XGETTEXT" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7999 USE_INCLUDED_LIBINTL=yes
8000 CATOBJEXT=.gmo
8001 INSTOBJEXT=.mo
8002 DATADIRNAME=share
8003 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8004 INTLLIBS=$INTLDEPS
8005 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8006 nls_cv_header_intl=libintl.h
8007 nls_cv_header_libgt=libgettext.h
8010 if test "$XGETTEXT" != ":"; then
8011 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8013 else
8014 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8015 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8016 XGETTEXT=":"
8020 # We need to process the po/ directory.
8021 POSUB=po
8022 else
8023 DATADIRNAME=share
8024 nls_cv_header_intl=libintl.h
8025 nls_cv_header_libgt=libgettext.h
8028 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8029 # because some of the sources are only built for this goal.
8030 if test "$PACKAGE" = gettext; then
8031 USE_NLS=yes
8032 USE_INCLUDED_LIBINTL=yes
8035 for lang in $ALL_LINGUAS; do
8036 GMOFILES="$GMOFILES $lang.gmo"
8037 POFILES="$POFILES $lang.po"
8038 done
8051 if test "x$CATOBJEXT" != "x"; then
8053 cat >>confdefs.h <<\_ACEOF
8054 #define ENABLE_NLS 1
8055 _ACEOF
8060 if test "x$CATOBJEXT" != "x"; then
8061 if test "x$ALL_LINGUAS" = "x"; then
8062 LINGUAS=
8063 else
8064 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8065 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8066 NEW_LINGUAS=
8067 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8068 case "$ALL_LINGUAS" in
8069 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8070 esac
8071 done
8072 LINGUAS=$NEW_LINGUAS
8073 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8074 echo "${ECHO_T}$LINGUAS" >&6
8077 if test -n "$LINGUAS"; then
8078 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8082 if test $ac_cv_header_locale_h = yes; then
8083 INCLUDE_LOCALE_H="#include <locale.h>"
8084 else
8085 INCLUDE_LOCALE_H="\
8086 /* The system does not provide the header <locale.h>. Take care yourself. */"
8090 if test -f $srcdir/po2tbl.sed.in; then
8091 if test "$CATOBJEXT" = ".cat"; then
8092 if test "${ac_cv_header_linux_version_h+set}" = set; then
8093 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8094 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8095 if test "${ac_cv_header_linux_version_h+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8099 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8100 else
8101 # Is the header compilable?
8102 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8103 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h. */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 $ac_includes_default
8111 #include <linux/version.h>
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_header_compiler=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_header_compiler=no
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8143 echo "${ECHO_T}$ac_header_compiler" >&6
8145 # Is the header present?
8146 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8147 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 #include <linux/version.h>
8155 _ACEOF
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } >/dev/null; then
8164 if test -s conftest.err; then
8165 ac_cpp_err=$ac_c_preproc_warn_flag
8166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8167 else
8168 ac_cpp_err=
8170 else
8171 ac_cpp_err=yes
8173 if test -z "$ac_cpp_err"; then
8174 ac_header_preproc=yes
8175 else
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_header_preproc=no
8181 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6
8185 # So? What about this header?
8186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8187 yes:no: )
8188 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8191 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8192 ac_header_preproc=yes
8194 no:yes:* )
8195 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8200 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8202 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8204 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8206 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8208 cat <<\_ASBOX
8209 ## ------------------------------------------ ##
8210 ## Report this to the AC_PACKAGE_NAME lists. ##
8211 ## ------------------------------------------ ##
8212 _ASBOX
8214 sed "s/^/$as_me: WARNING: /" >&2
8216 esac
8217 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8218 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8219 if test "${ac_cv_header_linux_version_h+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222 ac_cv_header_linux_version_h=$ac_header_preproc
8224 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8225 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8228 if test $ac_cv_header_linux_version_h = yes; then
8229 msgformat=linux
8230 else
8231 msgformat=xopen
8236 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8238 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8239 $srcdir/po2tbl.sed.in > po2tbl.sed
8242 if test "$PACKAGE" = "gettext"; then
8243 GT_NO="#NO#"
8244 GT_YES=
8245 else
8246 GT_NO=
8247 GT_YES="#YES#"
8252 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8258 if test -f $srcdir/po/POTFILES.in; then
8259 test -d po || mkdir po
8260 if test "x$srcdir" != "x."; then
8261 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8262 posrcprefix="$srcdir/"
8263 else
8264 posrcprefix="../$srcdir/"
8266 else
8267 posrcprefix="../"
8269 rm -f po/POTFILES
8270 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8271 < $srcdir/po/POTFILES.in > po/POTFILES
8275 # Permit host specific settings.
8276 . ${srcdir}/configure.host
8279 # Find a good install program. We prefer a C program (faster),
8280 # so one script is as good as another. But avoid the broken or
8281 # incompatible versions:
8282 # SysV /etc/install, /usr/sbin/install
8283 # SunOS /usr/etc/install
8284 # IRIX /sbin/install
8285 # AIX /bin/install
8286 # AmigaOS /C/install, which installs bootblocks on floppy discs
8287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8290 # OS/2's system install, which has a completely different semantic
8291 # ./install, which can be erroneously created by make from ./install.sh.
8292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8294 if test -z "$INSTALL"; then
8295 if test "${ac_cv_path_install+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 # Account for people who put trailing slashes in PATH elements.
8304 case $as_dir/ in
8305 ./ | .// | /cC/* | \
8306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8308 /usr/ucb/* ) ;;
8310 # OSF1 and SCO ODT 3.0 have their own names for install.
8311 # Don't use installbsd from OSF since it installs stuff as root
8312 # by default.
8313 for ac_prog in ginstall scoinst install; do
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8316 if test $ac_prog = install &&
8317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8318 # AIX install. It has an incompatible calling convention.
8320 elif test $ac_prog = install &&
8321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8322 # program-specific install script used by HP pwplus--don't use.
8324 else
8325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8326 break 3
8329 done
8330 done
8332 esac
8333 done
8337 if test "${ac_cv_path_install+set}" = set; then
8338 INSTALL=$ac_cv_path_install
8339 else
8340 # As a last resort, use the slow shell script. We don't cache a
8341 # path for INSTALL within a source directory, because that will
8342 # break other packages using the cache if that directory is
8343 # removed, or if the path is relative.
8344 INSTALL=$ac_install_sh
8347 echo "$as_me:$LINENO: result: $INSTALL" >&5
8348 echo "${ECHO_T}$INSTALL" >&6
8350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8351 # It thinks the first close brace ends the variable substitution.
8352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8359 BFD_HOST_64BIT_LONG=0
8360 BFD_HOST_LONG_LONG=0
8361 BFD_HOST_64_BIT_DEFINED=0
8362 BFD_HOST_64_BIT=
8363 BFD_HOST_U_64_BIT=
8365 echo "$as_me:$LINENO: checking for long long" >&5
8366 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8367 if test "${bfd_cv_has_long_long+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8378 main ()
8380 unsigned long long ll = 18446744073709551615ULL;
8382 return 0;
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 bfd_cv_has_long_long=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 bfd_cv_has_long_long=no
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8416 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8417 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8418 if test $bfd_cv_has_long_long = yes; then
8419 BFD_HOST_LONG_LONG=1
8420 echo "$as_me:$LINENO: checking for long long" >&5
8421 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8422 if test "${ac_cv_type_long_long+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8433 main ()
8435 if ((long long *) 0)
8436 return 0;
8437 if (sizeof (long long))
8438 return 0;
8440 return 0;
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445 (eval $ac_compile) 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_type_long_long=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_type_long_long=no
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8474 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8476 echo "$as_me:$LINENO: checking size of long long" >&5
8477 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8478 if test "${ac_cv_sizeof_long_long+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 if test "$ac_cv_type_long_long" = yes; then
8482 # The cast to unsigned long works around a bug in the HP C Compiler
8483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8485 # This bug is HP SR number 8606223364.
8486 if test "$cross_compiling" = yes; then
8487 # Depending upon the size, compute the lo and hi bounds.
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8496 main ()
8498 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8499 test_array [0] = 0
8502 return 0;
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507 (eval $ac_compile) 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest.$ac_objext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_lo=0 ac_mid=0
8527 while :; do
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 $ac_includes_default
8536 main ()
8538 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8539 test_array [0] = 0
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8566 ac_hi=$ac_mid; break
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_lo=`expr $ac_mid + 1`
8572 if test $ac_lo -le $ac_mid; then
8573 ac_lo= ac_hi=
8574 break
8576 ac_mid=`expr 2 '*' $ac_mid + 1`
8578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579 done
8580 else
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8592 main ()
8594 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8595 test_array [0] = 0
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603 (eval $ac_compile) 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest.$ac_objext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_hi=-1 ac_mid=-1
8623 while :; do
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8632 main ()
8634 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8635 test_array [0] = 0
8638 return 0;
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8643 (eval $ac_compile) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_lo=$ac_mid; break
8663 else
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_hi=`expr '(' $ac_mid ')' - 1`
8668 if test $ac_mid -le $ac_hi; then
8669 ac_lo= ac_hi=
8670 break
8672 ac_mid=`expr 2 '*' $ac_mid`
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 done
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ac_lo= ac_hi=
8682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685 # Binary search between lo and hi bounds.
8686 while test "x$ac_lo" != "x$ac_hi"; do
8687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 $ac_includes_default
8696 main ()
8698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8699 test_array [0] = 0
8702 return 0;
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest.$ac_objext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_hi=$ac_mid
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 ac_lo=`expr '(' $ac_mid ')' + 1`
8733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8734 done
8735 case $ac_lo in
8736 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8737 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8738 See \`config.log' for more details." >&5
8739 echo "$as_me: error: cannot compute sizeof (long long), 77
8740 See \`config.log' for more details." >&2;}
8741 { (exit 1); exit 1; }; } ;;
8742 esac
8743 else
8744 if test "$cross_compiling" = yes; then
8745 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8746 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8747 { (exit 1); exit 1; }; }
8748 else
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 long longval () { return (long) (sizeof (long long)); }
8757 unsigned long ulongval () { return (long) (sizeof (long long)); }
8758 #include <stdio.h>
8759 #include <stdlib.h>
8761 main ()
8764 FILE *f = fopen ("conftest.val", "w");
8765 if (! f)
8766 exit (1);
8767 if (((long) (sizeof (long long))) < 0)
8769 long i = longval ();
8770 if (i != ((long) (sizeof (long long))))
8771 exit (1);
8772 fprintf (f, "%ld\n", i);
8774 else
8776 unsigned long i = ulongval ();
8777 if (i != ((long) (sizeof (long long))))
8778 exit (1);
8779 fprintf (f, "%lu\n", i);
8781 exit (ferror (f) || fclose (f) != 0);
8784 return 0;
8786 _ACEOF
8787 rm -f conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 ac_cv_sizeof_long_long=`cat conftest.val`
8799 else
8800 echo "$as_me: program exited with status $ac_status" >&5
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ( exit $ac_status )
8805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8806 See \`config.log' for more details." >&5
8807 echo "$as_me: error: cannot compute sizeof (long long), 77
8808 See \`config.log' for more details." >&2;}
8809 { (exit 1); exit 1; }; }
8811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8814 rm -f conftest.val
8815 else
8816 ac_cv_sizeof_long_long=0
8819 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8820 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8821 cat >>confdefs.h <<_ACEOF
8822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8823 _ACEOF
8828 echo "$as_me:$LINENO: checking for long" >&5
8829 echo $ECHO_N "checking for long... $ECHO_C" >&6
8830 if test "${ac_cv_type_long+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8841 main ()
8843 if ((long *) 0)
8844 return 0;
8845 if (sizeof (long))
8846 return 0;
8848 return 0;
8850 _ACEOF
8851 rm -f conftest.$ac_objext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853 (eval $ac_compile) 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_type_long=yes
8873 else
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_type_long=no
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8882 echo "${ECHO_T}$ac_cv_type_long" >&6
8884 echo "$as_me:$LINENO: checking size of long" >&5
8885 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8886 if test "${ac_cv_sizeof_long+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 if test "$ac_cv_type_long" = yes; then
8890 # The cast to unsigned long works around a bug in the HP C Compiler
8891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8893 # This bug is HP SR number 8606223364.
8894 if test "$cross_compiling" = yes; then
8895 # Depending upon the size, compute the lo and hi bounds.
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 $ac_includes_default
8904 main ()
8906 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8907 test_array [0] = 0
8910 return 0;
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_lo=0 ac_mid=0
8935 while :; do
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8944 main ()
8946 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8947 test_array [0] = 0
8950 return 0;
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try='test -s conftest.$ac_objext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_hi=$ac_mid; break
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_lo=`expr $ac_mid + 1`
8980 if test $ac_lo -le $ac_mid; then
8981 ac_lo= ac_hi=
8982 break
8984 ac_mid=`expr 2 '*' $ac_mid + 1`
8986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987 done
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 $ac_includes_default
9000 main ()
9002 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9003 test_array [0] = 0
9006 return 0;
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_hi=-1 ac_mid=-1
9031 while :; do
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038 $ac_includes_default
9040 main ()
9042 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9043 test_array [0] = 0
9046 return 0;
9048 _ACEOF
9049 rm -f conftest.$ac_objext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051 (eval $ac_compile) 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest.$ac_objext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_lo=$ac_mid; break
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_hi=`expr '(' $ac_mid ')' - 1`
9076 if test $ac_mid -le $ac_hi; then
9077 ac_lo= ac_hi=
9078 break
9080 ac_mid=`expr 2 '*' $ac_mid`
9082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083 done
9084 else
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9088 ac_lo= ac_hi=
9090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 # Binary search between lo and hi bounds.
9094 while test "x$ac_lo" != "x$ac_hi"; do
9095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9104 main ()
9106 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9107 test_array [0] = 0
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115 (eval $ac_compile) 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_hi=$ac_mid
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_lo=`expr '(' $ac_mid ')' + 1`
9141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9142 done
9143 case $ac_lo in
9144 ?*) ac_cv_sizeof_long=$ac_lo;;
9145 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9146 See \`config.log' for more details." >&5
9147 echo "$as_me: error: cannot compute sizeof (long), 77
9148 See \`config.log' for more details." >&2;}
9149 { (exit 1); exit 1; }; } ;;
9150 esac
9151 else
9152 if test "$cross_compiling" = yes; then
9153 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9154 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9155 { (exit 1); exit 1; }; }
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9164 long longval () { return (long) (sizeof (long)); }
9165 unsigned long ulongval () { return (long) (sizeof (long)); }
9166 #include <stdio.h>
9167 #include <stdlib.h>
9169 main ()
9172 FILE *f = fopen ("conftest.val", "w");
9173 if (! f)
9174 exit (1);
9175 if (((long) (sizeof (long))) < 0)
9177 long i = longval ();
9178 if (i != ((long) (sizeof (long))))
9179 exit (1);
9180 fprintf (f, "%ld\n", i);
9182 else
9184 unsigned long i = ulongval ();
9185 if (i != ((long) (sizeof (long))))
9186 exit (1);
9187 fprintf (f, "%lu\n", i);
9189 exit (ferror (f) || fclose (f) != 0);
9192 return 0;
9194 _ACEOF
9195 rm -f conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_sizeof_long=`cat conftest.val`
9207 else
9208 echo "$as_me: program exited with status $ac_status" >&5
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ( exit $ac_status )
9213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9214 See \`config.log' for more details." >&5
9215 echo "$as_me: error: cannot compute sizeof (long), 77
9216 See \`config.log' for more details." >&2;}
9217 { (exit 1); exit 1; }; }
9219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9222 rm -f conftest.val
9223 else
9224 ac_cv_sizeof_long=0
9227 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9228 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9229 cat >>confdefs.h <<_ACEOF
9230 #define SIZEOF_LONG $ac_cv_sizeof_long
9231 _ACEOF
9234 if test "x${ac_cv_sizeof_long}" = "x8"; then
9235 host64=true
9236 BFD_HOST_64BIT_LONG=1
9237 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9238 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9239 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9240 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9241 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9244 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9245 BFD_HOST_64_BIT_DEFINED=1
9246 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9247 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9256 # Put a plausible default for CC_FOR_BUILD in Makefile.
9257 if test -z "$CC_FOR_BUILD"; then
9258 if test "x$cross_compiling" = "xno"; then
9259 CC_FOR_BUILD='$(CC)'
9260 else
9261 CC_FOR_BUILD=gcc
9265 # Also set EXEEXT_FOR_BUILD.
9266 if test "x$cross_compiling" = "xno"; then
9267 EXEEXT_FOR_BUILD='$(EXEEXT)'
9268 else
9269 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9270 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9271 if test "${bfd_cv_build_exeext+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 rm -f conftest*
9275 echo 'int main () { return 0; }' > conftest.c
9276 bfd_cv_build_exeext=
9277 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9278 for file in conftest.*; do
9279 case $file in
9280 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9281 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9282 esac
9283 done
9284 rm -f conftest*
9285 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9287 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9288 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9289 EXEEXT_FOR_BUILD=""
9290 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9300 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9304 echo "$as_me:$LINENO: checking for $ac_header" >&5
9305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9311 else
9312 # Is the header compilable?
9313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h. */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 $ac_includes_default
9322 #include <$ac_header>
9323 _ACEOF
9324 rm -f conftest.$ac_objext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9326 (eval $ac_compile) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest.$ac_objext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_header_compiler=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_header_compiler=no
9352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9354 echo "${ECHO_T}$ac_header_compiler" >&6
9356 # Is the header present?
9357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <$ac_header>
9366 _ACEOF
9367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } >/dev/null; then
9375 if test -s conftest.err; then
9376 ac_cpp_err=$ac_c_preproc_warn_flag
9377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9378 else
9379 ac_cpp_err=
9381 else
9382 ac_cpp_err=yes
9384 if test -z "$ac_cpp_err"; then
9385 ac_header_preproc=yes
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_header_preproc=no
9392 rm -f conftest.err conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9394 echo "${ECHO_T}$ac_header_preproc" >&6
9396 # So? What about this header?
9397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9398 yes:no: )
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9403 ac_header_preproc=yes
9405 no:yes:* )
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9419 cat <<\_ASBOX
9420 ## ------------------------------------------ ##
9421 ## Report this to the AC_PACKAGE_NAME lists. ##
9422 ## ------------------------------------------ ##
9423 _ASBOX
9425 sed "s/^/$as_me: WARNING: /" >&2
9427 esac
9428 echo "$as_me:$LINENO: checking for $ac_header" >&5
9429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 eval "$as_ac_Header=\$ac_header_preproc"
9435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442 _ACEOF
9446 done
9451 for ac_header in fcntl.h sys/file.h sys/time.h
9453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo "$as_me:$LINENO: checking for $ac_header" >&5
9456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462 else
9463 # Is the header compilable?
9464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 $ac_includes_default
9473 #include <$ac_header>
9474 _ACEOF
9475 rm -f conftest.$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477 (eval $ac_compile) 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest.$ac_objext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 (eval $ac_try) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_header_compiler=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_header_compiler=no
9503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9505 echo "${ECHO_T}$ac_header_compiler" >&6
9507 # Is the header present?
9508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 #include <$ac_header>
9517 _ACEOF
9518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } >/dev/null; then
9526 if test -s conftest.err; then
9527 ac_cpp_err=$ac_c_preproc_warn_flag
9528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9529 else
9530 ac_cpp_err=
9532 else
9533 ac_cpp_err=yes
9535 if test -z "$ac_cpp_err"; then
9536 ac_header_preproc=yes
9537 else
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_header_preproc=no
9543 rm -f conftest.err conftest.$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9545 echo "${ECHO_T}$ac_header_preproc" >&6
9547 # So? What about this header?
9548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9549 yes:no: )
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9554 ac_header_preproc=yes
9556 no:yes:* )
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9570 cat <<\_ASBOX
9571 ## ------------------------------------------ ##
9572 ## Report this to the AC_PACKAGE_NAME lists. ##
9573 ## ------------------------------------------ ##
9574 _ASBOX
9576 sed "s/^/$as_me: WARNING: /" >&2
9578 esac
9579 echo "$as_me:$LINENO: checking for $ac_header" >&5
9580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584 eval "$as_ac_Header=\$ac_header_preproc"
9586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9591 cat >>confdefs.h <<_ACEOF
9592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9593 _ACEOF
9597 done
9599 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9600 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9601 if test "${ac_cv_header_time+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #include <sys/types.h>
9611 #include <sys/time.h>
9612 #include <time.h>
9615 main ()
9617 if ((struct tm *) 0)
9618 return 0;
9620 return 0;
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_cv_header_time=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_header_time=no
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9653 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9654 echo "${ECHO_T}$ac_cv_header_time" >&6
9655 if test $ac_cv_header_time = yes; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define TIME_WITH_SYS_TIME 1
9659 _ACEOF
9668 ac_header_dirent=no
9669 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9670 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9671 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9672 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 #include <sys/types.h>
9683 #include <$ac_hdr>
9686 main ()
9688 if ((DIR *) 0)
9689 return 0;
9691 return 0;
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 eval "$as_ac_Header=yes"
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 eval "$as_ac_Header=no"
9722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9727 cat >>confdefs.h <<_ACEOF
9728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9729 _ACEOF
9731 ac_header_dirent=$ac_hdr; break
9734 done
9735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9736 if test $ac_header_dirent = dirent.h; then
9737 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9739 if test "${ac_cv_search_opendir+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 ac_func_search_save_LIBS=$LIBS
9743 ac_cv_search_opendir=no
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757 char opendir ();
9759 main ()
9761 opendir ();
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_search_opendir="none required"
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9793 rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 if test "$ac_cv_search_opendir" = no; then
9796 for ac_lib in dir; do
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811 char opendir ();
9813 main ()
9815 opendir ();
9817 return 0;
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_search_opendir="-l$ac_lib"
9842 break
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9848 rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 done
9852 LIBS=$ac_func_search_save_LIBS
9854 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9855 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9856 if test "$ac_cv_search_opendir" != no; then
9857 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9861 else
9862 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9864 if test "${ac_cv_search_opendir+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 ac_func_search_save_LIBS=$LIBS
9868 ac_cv_search_opendir=no
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9876 /* Override any gcc2 internal prototype to avoid an error. */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9882 char opendir ();
9884 main ()
9886 opendir ();
9888 return 0;
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_opendir="none required"
9913 else
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_opendir" = no; then
9921 for ac_lib in x; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any gcc2 internal prototype to avoid an error. */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936 char opendir ();
9938 main ()
9940 opendir ();
9942 return 0;
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest$ac_exeext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_search_opendir="-l$ac_lib"
9967 break
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 done
9977 LIBS=$ac_func_search_save_LIBS
9979 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9980 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9981 if test "$ac_cv_search_opendir" != no; then
9982 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9988 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9989 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9990 if test "${gcc_cv_header_string+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 #include <string.h>
10000 #include <strings.h>
10002 main ()
10006 return 0;
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 gcc_cv_header_string=yes
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 gcc_cv_header_string=no
10037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10040 echo "${ECHO_T}$gcc_cv_header_string" >&6
10041 if test $gcc_cv_header_string = yes; then
10043 cat >>confdefs.h <<\_ACEOF
10044 #define STRING_WITH_STRINGS 1
10045 _ACEOF
10056 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059 echo "$as_me:$LINENO: checking for $ac_func" >&5
10060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10061 if eval "test \"\${$as_ac_var+set}\" = set"; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072 #define $ac_func innocuous_$ac_func
10074 /* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char $ac_func (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
10079 #ifdef __STDC__
10080 # include <limits.h>
10081 #else
10082 # include <assert.h>
10083 #endif
10085 #undef $ac_func
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10091 #endif
10092 /* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094 char $ac_func ();
10095 /* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099 choke me
10100 #else
10101 char (*f) () = $ac_func;
10102 #endif
10103 #ifdef __cplusplus
10105 #endif
10108 main ()
10110 return f != $ac_func;
10112 return 0;
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 eval "$as_ac_var=yes"
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 eval "$as_ac_var=no"
10143 rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10148 if test `eval echo '${'$as_ac_var'}'` = yes; then
10149 cat >>confdefs.h <<_ACEOF
10150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10151 _ACEOF
10154 done
10157 for ac_func in strtoull
10159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10160 echo "$as_me:$LINENO: checking for $ac_func" >&5
10161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10162 if eval "test \"\${$as_ac_var+set}\" = set"; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10173 #define $ac_func innocuous_$ac_func
10175 /* System header to define __stub macros and hopefully few prototypes,
10176 which can conflict with char $ac_func (); below.
10177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10178 <limits.h> exists even on freestanding compilers. */
10180 #ifdef __STDC__
10181 # include <limits.h>
10182 #else
10183 # include <assert.h>
10184 #endif
10186 #undef $ac_func
10188 /* Override any gcc2 internal prototype to avoid an error. */
10189 #ifdef __cplusplus
10190 extern "C"
10192 #endif
10193 /* We use char because int might match the return type of a gcc2
10194 builtin and then its argument prototype would still apply. */
10195 char $ac_func ();
10196 /* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10200 choke me
10201 #else
10202 char (*f) () = $ac_func;
10203 #endif
10204 #ifdef __cplusplus
10206 #endif
10209 main ()
10211 return f != $ac_func;
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 eval "$as_ac_var=yes"
10238 else
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 eval "$as_ac_var=no"
10244 rm -f conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10249 if test `eval echo '${'$as_ac_var'}'` = yes; then
10250 cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10252 _ACEOF
10255 done
10258 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10259 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10260 if test "${ac_cv_have_decl_basename+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 $ac_includes_default
10271 main ()
10273 #ifndef basename
10274 char *p = (char *) basename;
10275 #endif
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest.$ac_objext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_have_decl_basename=yes
10303 else
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ac_cv_have_decl_basename=no
10309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10312 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10313 if test $ac_cv_have_decl_basename = yes; then
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_DECL_BASENAME 1
10317 _ACEOF
10320 else
10321 cat >>confdefs.h <<_ACEOF
10322 #define HAVE_DECL_BASENAME 0
10323 _ACEOF
10329 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10330 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10331 if test "${ac_cv_have_decl_ftello+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h. */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10342 main ()
10344 #ifndef ftello
10345 char *p = (char *) ftello;
10346 #endif
10349 return 0;
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 ac_cv_have_decl_ftello=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_cv_have_decl_ftello=no
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10383 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10384 if test $ac_cv_have_decl_ftello = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_DECL_FTELLO 1
10388 _ACEOF
10391 else
10392 cat >>confdefs.h <<_ACEOF
10393 #define HAVE_DECL_FTELLO 0
10394 _ACEOF
10400 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10401 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10402 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 $ac_includes_default
10413 main ()
10415 #ifndef ftello64
10416 char *p = (char *) ftello64;
10417 #endif
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 ac_cv_have_decl_ftello64=yes
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_have_decl_ftello64=no
10451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10454 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10455 if test $ac_cv_have_decl_ftello64 = yes; then
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_DECL_FTELLO64 1
10459 _ACEOF
10462 else
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_DECL_FTELLO64 0
10465 _ACEOF
10471 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10472 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10473 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 $ac_includes_default
10484 main ()
10486 #ifndef fseeko
10487 char *p = (char *) fseeko;
10488 #endif
10491 return 0;
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_have_decl_fseeko=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_have_decl_fseeko=no
10522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10525 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10526 if test $ac_cv_have_decl_fseeko = yes; then
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_DECL_FSEEKO 1
10530 _ACEOF
10533 else
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_DECL_FSEEKO 0
10536 _ACEOF
10542 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10543 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10544 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10555 main ()
10557 #ifndef fseeko64
10558 char *p = (char *) fseeko64;
10559 #endif
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_have_decl_fseeko64=yes
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_cv_have_decl_fseeko64=no
10593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10595 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10596 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10597 if test $ac_cv_have_decl_fseeko64 = yes; then
10599 cat >>confdefs.h <<_ACEOF
10600 #define HAVE_DECL_FSEEKO64 1
10601 _ACEOF
10604 else
10605 cat >>confdefs.h <<_ACEOF
10606 #define HAVE_DECL_FSEEKO64 0
10607 _ACEOF
10615 case "${host}" in
10616 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10618 cat >>confdefs.h <<\_ACEOF
10619 #define USE_BINARY_FOPEN 1
10620 _ACEOF
10622 esac
10624 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10625 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10626 if test "${ac_cv_have_decl_ffs+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629 cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 $ac_includes_default
10637 main ()
10639 #ifndef ffs
10640 char *p = (char *) ffs;
10641 #endif
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_have_decl_ffs=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_have_decl_ffs=no
10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10678 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10679 if test $ac_cv_have_decl_ffs = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_DECL_FFS 1
10683 _ACEOF
10686 else
10687 cat >>confdefs.h <<_ACEOF
10688 #define HAVE_DECL_FFS 0
10689 _ACEOF
10695 echo "$as_me:$LINENO: checking whether free is declared" >&5
10696 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10697 if test "${ac_cv_have_decl_free+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 $ac_includes_default
10708 main ()
10710 #ifndef free
10711 char *p = (char *) free;
10712 #endif
10715 return 0;
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest.$ac_objext'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_have_decl_free=yes
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_cv_have_decl_free=no
10746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10749 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10750 if test $ac_cv_have_decl_free = yes; then
10752 cat >>confdefs.h <<_ACEOF
10753 #define HAVE_DECL_FREE 1
10754 _ACEOF
10757 else
10758 cat >>confdefs.h <<_ACEOF
10759 #define HAVE_DECL_FREE 0
10760 _ACEOF
10766 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10767 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10768 if test "${ac_cv_have_decl_getenv+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h. */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 $ac_includes_default
10779 main ()
10781 #ifndef getenv
10782 char *p = (char *) getenv;
10783 #endif
10786 return 0;
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10791 (eval $ac_compile) 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest.$ac_objext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_have_decl_getenv=yes
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_cv_have_decl_getenv=no
10817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10820 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10821 if test $ac_cv_have_decl_getenv = yes; then
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_GETENV 1
10825 _ACEOF
10828 else
10829 cat >>confdefs.h <<_ACEOF
10830 #define HAVE_DECL_GETENV 0
10831 _ACEOF
10837 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10838 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10839 if test "${ac_cv_have_decl_malloc+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 $ac_includes_default
10850 main ()
10852 #ifndef malloc
10853 char *p = (char *) malloc;
10854 #endif
10857 return 0;
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest.$ac_objext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_have_decl_malloc=yes
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_have_decl_malloc=no
10888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10891 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10892 if test $ac_cv_have_decl_malloc = yes; then
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_DECL_MALLOC 1
10896 _ACEOF
10899 else
10900 cat >>confdefs.h <<_ACEOF
10901 #define HAVE_DECL_MALLOC 0
10902 _ACEOF
10908 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10909 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10910 if test "${ac_cv_have_decl_realloc+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 $ac_includes_default
10921 main ()
10923 #ifndef realloc
10924 char *p = (char *) realloc;
10925 #endif
10928 return 0;
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_have_decl_realloc=yes
10953 else
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_cv_have_decl_realloc=no
10959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10962 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10963 if test $ac_cv_have_decl_realloc = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_DECL_REALLOC 1
10967 _ACEOF
10970 else
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_DECL_REALLOC 0
10973 _ACEOF
10979 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10980 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10981 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h. */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 $ac_includes_default
10992 main ()
10994 #ifndef stpcpy
10995 char *p = (char *) stpcpy;
10996 #endif
10999 return 0;
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_have_decl_stpcpy=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_cv_have_decl_stpcpy=no
11030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11032 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11033 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11034 if test $ac_cv_have_decl_stpcpy = yes; then
11036 cat >>confdefs.h <<_ACEOF
11037 #define HAVE_DECL_STPCPY 1
11038 _ACEOF
11041 else
11042 cat >>confdefs.h <<_ACEOF
11043 #define HAVE_DECL_STPCPY 0
11044 _ACEOF
11050 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11051 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11052 if test "${ac_cv_have_decl_strstr+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 $ac_includes_default
11063 main ()
11065 #ifndef strstr
11066 char *p = (char *) strstr;
11067 #endif
11070 return 0;
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_cv_have_decl_strstr=yes
11095 else
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_cv_have_decl_strstr=no
11101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11104 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11105 if test $ac_cv_have_decl_strstr = yes; then
11107 cat >>confdefs.h <<_ACEOF
11108 #define HAVE_DECL_STRSTR 1
11109 _ACEOF
11112 else
11113 cat >>confdefs.h <<_ACEOF
11114 #define HAVE_DECL_STRSTR 0
11115 _ACEOF
11121 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11122 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11123 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11134 main ()
11136 #ifndef snprintf
11137 char *p = (char *) snprintf;
11138 #endif
11141 return 0;
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146 (eval $ac_compile) 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_have_decl_snprintf=yes
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_cv_have_decl_snprintf=no
11172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11174 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11175 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11176 if test $ac_cv_have_decl_snprintf = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define HAVE_DECL_SNPRINTF 1
11180 _ACEOF
11183 else
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_SNPRINTF 0
11186 _ACEOF
11192 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11193 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11194 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 $ac_includes_default
11205 main ()
11207 #ifndef vsnprintf
11208 char *p = (char *) vsnprintf;
11209 #endif
11212 return 0;
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_have_decl_vsnprintf=yes
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_cv_have_decl_vsnprintf=no
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11246 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11247 if test $ac_cv_have_decl_vsnprintf = yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define HAVE_DECL_VSNPRINTF 1
11251 _ACEOF
11254 else
11255 cat >>confdefs.h <<_ACEOF
11256 #define HAVE_DECL_VSNPRINTF 0
11257 _ACEOF
11264 # If we are configured native, pick a core file support file.
11265 COREFILE=
11266 COREFLAG=
11267 TRAD_HEADER=
11268 if test "${target}" = "${host}"; then
11269 case "${host}" in
11270 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11271 COREFILE=''
11273 alpha*-*-linux-*)
11274 COREFILE=trad-core.lo
11275 TRAD_HEADER='"hosts/alphalinux.h"'
11277 alpha*-*-netbsd* | alpha*-*-openbsd*)
11278 COREFILE=netbsd-core.lo
11280 alpha*-*-*) COREFILE=osf-core.lo ;;
11281 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11282 COREFILE='' ;;
11283 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11284 arm-*-riscix) COREFILE=trad-core.lo ;;
11285 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11286 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11287 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11288 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11289 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11290 hppa*-*-netbsd* | hppa*-*-openbsd*)
11291 COREFILE=netbsd-core.lo
11294 i370-*-*)
11295 COREFILE=trad-core.lo
11296 TRAD_HEADER='"hosts/i370linux.h"'
11299 i[3-7]86-sequent-bsd*)
11300 COREFILE=trad-core.lo
11301 TRAD_HEADER='"hosts/symmetry.h"'
11303 i[3-7]86-sequent-sysv4*) ;;
11304 i[3-7]86-sequent-sysv*)
11305 COREFILE=trad-core.lo
11306 TRAD_HEADER='"hosts/symmetry.h"'
11308 i[3-7]86-*-bsdi)
11309 COREFILE=
11311 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*)
11312 COREFILE=trad-core.lo
11313 TRAD_HEADER='"hosts/i386bsd.h"'
11315 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11316 COREFILE=''
11317 TRAD_HEADER='"hosts/i386bsd.h"'
11319 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11320 COREFILE=netbsd-core.lo
11322 i[3-7]86-esix-sysv3*)
11323 COREFILE=trad-core.lo
11324 TRAD_HEADER='"hosts/esix.h"'
11326 i[3-7]86-*-sco3.2v5*)
11327 COREFILE=sco5-core.lo
11329 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11330 COREFILE=trad-core.lo
11331 TRAD_HEADER='"hosts/i386sco.h"'
11333 i[3-7]86-*-mach3*)
11334 COREFILE=trad-core.lo
11335 TRAD_HEADER='"hosts/i386mach3.h"'
11337 i[3-7]86-*-linux-*)
11338 COREFILE=trad-core.lo
11339 TRAD_HEADER='"hosts/i386linux.h"'
11341 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11342 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11343 i860-*-mach3* | i860-*-osf1*)
11344 COREFILE=trad-core.lo
11345 TRAD_HEADER='"hosts/i860mach3.h"'
11347 mips-*-netbsd* | mips*-*-openbsd*)
11348 COREFILE=netbsd-core.lo
11350 mips-dec-*)
11351 COREFILE=trad-core.lo
11352 TRAD_HEADER='"hosts/decstation.h"'
11354 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11355 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11356 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11357 mips-*-sysv4*) ;;
11358 mips-*-sysv* | mips-*-riscos*)
11359 COREFILE=trad-core.lo
11360 TRAD_HEADER='"hosts/riscos.h"'
11362 mips-sony-bsd*)
11363 COREFILE=trad-core.lo
11364 TRAD_HEADER='"hosts/news-mips.h"'
11366 m68*-bull*-sysv*)
11367 COREFILE=trad-core.lo
11368 TRAD_HEADER='"hosts/dpx2.h"'
11370 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11371 m68*-hp-bsd*)
11372 COREFILE=trad-core.lo
11373 TRAD_HEADER='"hosts/hp300bsd.h"'
11375 m68*-*-linux-*)
11376 COREFILE=trad-core.lo
11377 TRAD_HEADER='"hosts/m68klinux.h"'
11379 m68*-motorola-sysv*)
11380 COREFILE=trad-core.lo
11381 TRAD_HEADER='"hosts/delta68.h"'
11383 m68*-sony-*)
11384 COREFILE=trad-core.lo
11385 TRAD_HEADER='"hosts/news.h"'
11387 m68*-*-netbsd* | m68*-*-openbsd*)
11388 COREFILE=netbsd-core.lo
11390 m68*-apple-aux*)
11391 COREFILE=trad-core.lo
11392 TRAD_HEADER='"hosts/m68kaux.h"'
11394 m88*-*-sysv4*)
11396 m88*-motorola-sysv*)
11397 COREFILE=ptrace-core.lo
11399 m88*-*-mach3*)
11400 COREFILE=trad-core.lo
11401 TRAD_HEADER='"hosts/m88kmach3.h"'
11403 m88*-*-openbsd*)
11404 COREFILE=netbsd-core.lo
11406 ns32k-pc532-mach)
11407 COREFILE=trad-core.lo
11408 TRAD_HEADER='"hosts/pc532mach.h"'
11410 ns32k-*-netbsd* | ns32k-*-openbsd*)
11411 COREFILE=netbsd-core.lo
11413 rs6000-*-lynx*)
11414 COREFILE=lynx-core.lo
11416 rs6000-*-aix5.* | powerpc-*-aix5.*)
11417 COREFILE=rs6000-core.lo
11418 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11420 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11421 COREFILE=rs6000-core.lo
11422 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11423 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11424 # have c_impl as a member of struct core_dumpx
11425 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11426 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <core.h>
11435 main ()
11437 struct core_dumpx c; c.c_impl = 0;
11439 return 0;
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11444 (eval $ac_compile) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_ST_C_IMPL 1
11466 _ACEOF
11468 echo "$as_me:$LINENO: result: yes" >&5
11469 echo "${ECHO_T}yes" >&6
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 echo "$as_me:$LINENO: result: no" >&5
11475 echo "${ECHO_T}no" >&6
11477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11479 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11480 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11481 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11482 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11483 powerpc-*-beos*) ;;
11484 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11485 COREFILE='' ;;
11486 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11487 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11488 s390*-*-*) COREFILE=trad-core.lo ;;
11489 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11490 sparc-*-netbsd* | sparc*-*-openbsd*)
11491 COREFILE=netbsd-core.lo
11493 tahoe-*-*)
11494 COREFILE=trad-core.lo
11495 TRAD_HEADER='"hosts/tahoe.h"'
11497 vax-*-netbsd* | vax-*-openbsd*)
11498 COREFILE=netbsd-core.lo
11500 vax-*-ultrix2*)
11501 COREFILE=trad-core.lo
11502 TRAD_HEADER='"hosts/vaxult2.h"'
11504 vax-*-ultrix*)
11505 COREFILE=trad-core.lo
11506 TRAD_HEADER='"hosts/vaxult2.h"'
11508 vax-*-linux-*)
11509 COREFILE=trad-core.lo
11510 TRAD_HEADER='"hosts/vaxlinux.h"'
11512 vax-*-*)
11513 COREFILE=trad-core.lo
11514 TRAD_HEADER='"hosts/vaxbsd.h"'
11516 x86_64-*-netbsd* | x86_64-*-openbsd*)
11517 COREFILE=netbsd-core.lo
11519 esac
11521 case "$COREFILE" in
11522 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11523 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11524 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11525 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11526 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11527 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11528 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11529 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11530 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11531 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11532 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11533 esac
11535 # ELF corefile support has several flavors, but all of
11536 # them use something called <sys/procfs.h>
11538 for ac_header in sys/procfs.h
11540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11542 echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11549 else
11550 # Is the header compilable?
11551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <$ac_header>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_header_compiler=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_compiler=no
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <$ac_header>
11604 _ACEOF
11605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } >/dev/null; then
11613 if test -s conftest.err; then
11614 ac_cpp_err=$ac_c_preproc_warn_flag
11615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11616 else
11617 ac_cpp_err=
11619 else
11620 ac_cpp_err=yes
11622 if test -z "$ac_cpp_err"; then
11623 ac_header_preproc=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_header_preproc=no
11630 rm -f conftest.err conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11643 no:yes:* )
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11657 cat <<\_ASBOX
11658 ## ------------------------------------------ ##
11659 ## Report this to the AC_PACKAGE_NAME lists. ##
11660 ## ------------------------------------------ ##
11661 _ASBOX
11663 sed "s/^/$as_me: WARNING: /" >&2
11665 esac
11666 echo "$as_me:$LINENO: checking for $ac_header" >&5
11667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671 eval "$as_ac_Header=\$ac_header_preproc"
11673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11680 _ACEOF
11684 done
11686 if test "$ac_cv_header_sys_procfs_h" = yes; then
11687 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11688 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11689 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11699 #define _SYSCALL32
11700 #include <sys/procfs.h>
11702 main ()
11704 prstatus_t avar
11706 return 0;
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711 (eval $ac_compile) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11731 else
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 bfd_cv_have_sys_procfs_type_prstatus_t=no
11738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11741 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11743 cat >>confdefs.h <<\_ACEOF
11744 #define HAVE_PRSTATUS_T 1
11745 _ACEOF
11748 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11749 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11751 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11752 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11753 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 #define _SYSCALL32
11764 #include <sys/procfs.h>
11766 main ()
11768 prstatus32_t avar
11770 return 0;
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest.$ac_objext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11795 else
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 bfd_cv_have_sys_procfs_type_prstatus32_t=no
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11805 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11807 cat >>confdefs.h <<\_ACEOF
11808 #define HAVE_PRSTATUS32_T 1
11809 _ACEOF
11812 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
11813 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
11815 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
11816 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11817 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11827 #define _SYSCALL32
11828 #include <sys/procfs.h>
11830 main ()
11832 prstatus_t avar; void* aref = (void*) &avar.pr_who
11834 return 0;
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11859 else
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11869 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_PRSTATUS_T_PR_WHO 1
11873 _ACEOF
11876 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11877 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
11879 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11880 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11881 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 #define _SYSCALL32
11892 #include <sys/procfs.h>
11894 main ()
11896 prstatus32_t avar; void* aref = (void*) &avar.pr_who
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11933 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_PRSTATUS32_T_PR_WHO 1
11937 _ACEOF
11940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11941 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
11943 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11944 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11945 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11955 #define _SYSCALL32
11956 #include <sys/procfs.h>
11958 main ()
11960 pstatus_t avar
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 bfd_cv_have_sys_procfs_type_pstatus_t=no
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_PSTATUS_T 1
12001 _ACEOF
12004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12005 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12007 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12008 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12009 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12019 #define _SYSCALL32
12020 #include <sys/procfs.h>
12022 main ()
12024 pxstatus_t avar
12026 return 0;
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12051 else
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12061 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_PXSTATUS_T 1
12065 _ACEOF
12068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12069 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12071 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12072 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12073 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12083 #define _SYSCALL32
12084 #include <sys/procfs.h>
12086 main ()
12088 pstatus32_t avar
12090 return 0;
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12125 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_PSTATUS32_T 1
12129 _ACEOF
12132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12133 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12135 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12136 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12137 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 #define _SYSCALL32
12148 #include <sys/procfs.h>
12150 main ()
12152 prpsinfo_t avar
12154 return 0;
12156 _ACEOF
12157 rm -f conftest.$ac_objext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12179 else
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12189 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12191 cat >>confdefs.h <<\_ACEOF
12192 #define HAVE_PRPSINFO_T 1
12193 _ACEOF
12196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12199 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12200 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12201 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204 cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h. */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12211 #define _SYSCALL32
12212 #include <sys/procfs.h>
12214 main ()
12216 prpsinfo32_t avar
12218 return 0;
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12243 else
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12253 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12255 cat >>confdefs.h <<\_ACEOF
12256 #define HAVE_PRPSINFO32_T 1
12257 _ACEOF
12260 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12261 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12263 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12264 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12265 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 #define _SYSCALL32
12276 #include <sys/procfs.h>
12278 main ()
12280 psinfo_t avar
12282 return 0;
12284 _ACEOF
12285 rm -f conftest.$ac_objext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287 (eval $ac_compile) 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest.$ac_objext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 bfd_cv_have_sys_procfs_type_psinfo_t=no
12314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12317 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_PSINFO_T 1
12321 _ACEOF
12324 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12325 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12327 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12328 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12329 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12339 #define _SYSCALL32
12340 #include <sys/procfs.h>
12342 main ()
12344 psinfo32_t avar
12346 return 0;
12348 _ACEOF
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12381 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_PSINFO32_T 1
12385 _ACEOF
12388 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12389 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12391 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12392 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12393 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 #define _SYSCALL32
12404 #include <sys/procfs.h>
12406 main ()
12408 lwpstatus_t avar
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_LWPSTATUS_T 1
12449 _ACEOF
12452 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12453 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12455 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12456 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12457 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 #define _SYSCALL32
12468 #include <sys/procfs.h>
12470 main ()
12472 lwpxstatus_t avar
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12499 else
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12503 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12509 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_LWPXSTATUS_T 1
12513 _ACEOF
12516 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12517 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12519 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12520 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12521 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 #define _SYSCALL32
12532 #include <sys/procfs.h>
12534 main ()
12536 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12538 return 0;
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12573 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12577 _ACEOF
12580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12581 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12583 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12584 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12585 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 #define _SYSCALL32
12596 #include <sys/procfs.h>
12598 main ()
12600 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12602 return 0;
12604 _ACEOF
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_LWPSTATUS_T_PR_REG 1
12641 _ACEOF
12644 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12645 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12647 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12648 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12649 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652 cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h. */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12659 #define _SYSCALL32
12660 #include <sys/procfs.h>
12662 main ()
12664 win32_pstatus_t avar
12666 return 0;
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12701 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12703 cat >>confdefs.h <<\_ACEOF
12704 #define HAVE_WIN32_PSTATUS_T 1
12705 _ACEOF
12708 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12709 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12715 if test -n "$TRAD_HEADER"; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define TRAD_HEADER $TRAD_HEADER
12719 _ACEOF
12723 # Horrible hacks to build DLLs on Windows.
12724 WIN32LDFLAGS=
12725 WIN32LIBADD=
12726 case "${host}" in
12727 *-*-cygwin*)
12728 if test "$enable_shared" = "yes"; then
12729 WIN32LDFLAGS="-no-undefined"
12730 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12733 *-*-linux*)
12734 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12735 # libiberty.a.
12736 case "${host}" in
12737 mips*-*-linux*)
12738 # Linux/MIPS uses PIC by default.
12739 if test "$enable_shared" = "yes"; then
12740 WIN32LIBADD="-L../libiberty -liberty"
12744 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12745 if test -n "$x"; then
12746 WIN32LIBADD="-L../libiberty/pic -liberty"
12749 esac
12751 esac
12755 # target stuff:
12757 # Canonicalize the secondary target names.
12758 if test -n "$enable_targets" ; then
12759 for targ in `echo $enable_targets | sed 's/,/ /g'`
12761 result=`$ac_config_sub $targ 2>/dev/null`
12762 if test -n "$result" ; then
12763 canon_targets="$canon_targets $result"
12764 else
12765 # Allow targets that config.sub doesn't recognize, like "all".
12766 canon_targets="$canon_targets $targ"
12768 done
12771 all_targets=false
12772 defvec=
12773 selvecs=
12774 assocvecs=
12775 selarchs=
12776 TDEFINES=
12777 for targ in $target $canon_targets
12779 if test "x$targ" = "xall"; then
12780 all_targets=true
12781 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12782 else
12783 . $srcdir/config.bfd
12784 if test "x$targ" = "x$target"; then
12785 defvec=$targ_defvec
12787 selvecs="$selvecs $targ_defvec $targ_selvecs"
12788 selarchs="$selarchs $targ_archs"
12789 TDEFINES="$TDEFINES $targ_cflags"
12791 done
12794 # This processing still needs to be done if we're to decide properly whether
12795 # 64-bit support needs to be compiled in. Currently, it will be included if
12796 # the default or any other explicitly requested target requires it; it
12797 # will not be included on a 32-bit host if no 64-bit target is requested, and
12798 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
12799 # used.
12801 # uniq the default and selected vectors in all the configured targets.
12802 f=""
12803 for i in $selvecs ; do
12804 case " $f " in
12805 *" $i "*) ;;
12806 *) f="$f $i" ;;
12807 esac
12808 done
12809 selvecs="$f"
12812 # uniq the associated vectors in all the configured targets.
12813 f=""
12814 for i in $assocvecs ; do
12815 case " $f " in
12816 *" $i "*) ;;
12817 *) f="$f $i" ;;
12818 esac
12819 done
12820 assocvecs="$f"
12823 # uniq the architectures in all the configured targets.
12824 f=""
12825 for i in $selarchs ; do
12826 case " $f " in
12827 *" $i "*) ;;
12828 *) f="$f $i" ;;
12829 esac
12830 done
12831 selarchs="$f"
12833 # Target backend .o files.
12836 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
12838 for vec in $selvecs
12840 target_size=32
12841 case "$vec" in
12842 # This list is alphabetized to make it easy to compare
12843 # with the two vector lists in targets.c. For the same reason,
12844 # use one entry per line, even though this leads to long lines.
12845 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
12846 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
12847 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12848 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12849 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12850 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12851 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
12852 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12853 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12854 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12855 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12856 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12857 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12858 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12859 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12860 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12861 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12862 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12863 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12864 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
12865 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
12866 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
12867 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
12868 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
12869 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12870 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12871 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12872 bfd_elf32_bigarm_symbian_vec)
12873 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12874 bfd_elf32_bigarm_vxworks_vec)
12875 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12876 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12877 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
12878 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12879 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
12880 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12881 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
12882 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
12883 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
12884 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12885 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12886 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
12887 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12888 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12889 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12890 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
12891 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12892 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12893 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12894 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12895 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12896 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
12897 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
12898 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
12899 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
12900 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
12901 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12902 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12903 bfd_elf32_littlearm_symbian_vec)
12904 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12905 bfd_elf32_littlearm_vxworks_vec)
12906 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12907 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12908 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12909 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12910 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12911 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12912 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12913 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12914 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12915 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12916 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12917 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12918 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12919 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12920 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
12921 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
12922 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12923 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12924 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12925 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12926 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
12927 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
12928 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12929 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12930 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12931 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12932 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
12933 # FIXME: We include cofflink.lo not because it's needed for
12934 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12935 # which needs it but does not list it. Should be fixed in right place.
12936 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12937 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12938 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12939 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12940 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12941 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12942 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12943 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12944 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12945 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
12946 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12947 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12948 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12949 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
12950 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12951 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12952 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12953 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
12954 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
12955 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
12956 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12957 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12958 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12959 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12960 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12961 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12962 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12963 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12964 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12965 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12966 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12967 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12968 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12969 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
12970 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12971 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12972 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
12973 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12974 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12975 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12976 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12977 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12978 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12979 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
12980 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12981 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12982 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
12983 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
12984 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12985 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12986 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12987 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12988 cris_aout_vec) tb="$tb aout-cris.lo" ;;
12989 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
12990 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12991 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12992 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12993 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
12994 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12995 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12996 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12997 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12998 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12999 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13000 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13001 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13002 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13003 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13004 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13005 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13006 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13007 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13008 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13009 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13010 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13011 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13012 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13013 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13014 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13015 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13016 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13017 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13018 ieee_vec) tb="$tb ieee.lo" ;;
13019 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13020 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13021 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13022 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13023 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13024 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
13025 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
13026 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13027 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13028 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13029 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13030 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13031 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13032 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13033 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13034 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13035 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13036 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13037 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13038 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13039 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13040 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13041 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13042 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13043 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13044 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13045 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13046 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13047 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13048 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13049 pef_vec) tb="$tb pef.lo" ;;
13050 pef_xlib_vec) tb="$tb pef.lo" ;;
13051 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13052 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13053 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13054 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13055 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13056 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13057 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13058 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13059 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13060 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13061 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13062 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13063 som_vec) tb="$tb som.lo" ;;
13064 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13065 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13066 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13067 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13068 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13069 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13070 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13071 sym_vec) tb="$tb xsym.lo" ;;
13072 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13073 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13074 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13075 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13076 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13077 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13078 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13079 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13080 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13081 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13082 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13083 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13084 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13085 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13086 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13087 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13088 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13089 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13090 versados_vec) tb="$tb versados.lo" ;;
13091 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13092 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13093 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13094 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13095 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
13097 # These appear out of order in targets.c
13098 srec_vec) tb="$tb srec.lo" ;;
13099 symbolsrec_vec) tb="$tb srec.lo" ;;
13100 tekhex_vec) tb="$tb tekhex.lo" ;;
13101 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13102 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13104 "") ;;
13105 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13106 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13107 { (exit 1); exit 1; }; } ;;
13108 esac
13110 if test ${target_size} = 64; then
13111 target64=true
13113 if test x"${vec}" = x"${defvec}"; then
13114 bfd_default_target_size=${target_size}
13116 done
13118 # Target architecture .o files.
13119 # A couple of CPUs use shorter file names to avoid problems on DOS
13120 # filesystems.
13121 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13123 # Weed out duplicate .o files.
13124 f=""
13125 for i in $tb ; do
13126 case " $f " in
13127 *" $i "*) ;;
13128 *) f="$f $i" ;;
13129 esac
13130 done
13131 tb="$f"
13133 f=""
13134 for i in $ta ; do
13135 case " $f " in
13136 *" $i "*) ;;
13137 *) f="$f $i" ;;
13138 esac
13139 done
13140 ta="$f"
13142 bfd_backends="$tb"
13143 bfd_machines="$ta"
13145 if test x${all_targets} = xtrue ; then
13146 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13147 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13148 selvecs=
13149 havevecs=
13150 selarchs=
13151 test -n "$assocvecs" &&
13152 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13153 else # all_targets is true
13154 # Only set these if they will be nonempty, for the clever echo.
13155 havevecs=
13156 assocvecs=
13157 test -n "$selvecs" &&
13158 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13159 test -n "$selvecs" &&
13160 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13161 test -n "$selarchs" &&
13162 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13163 fi # all_targets is true
13165 case ${host64}-${target64}-${want64} in
13166 *true*)
13167 wordsize=64
13168 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13169 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13170 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13171 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13172 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13174 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13176 if test -n "$GCC" ; then
13177 bad_64bit_gcc=no;
13178 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13179 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13180 # Add more tests for gcc versions with non-working 64-bit support here.
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 :__GNUC__:__GNUC_MINOR__:__i386__:
13188 _ACEOF
13189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13190 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13191 bad_64bit_gcc=yes;
13192 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13193 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13194 else
13195 echo "$as_me:$LINENO: result: no" >&5
13196 echo "${ECHO_T}no" >&6
13198 rm -f conftest*
13200 if test $bad_64bit_gcc = yes ; then
13201 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13202 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13203 { (exit 1); exit 1; }; }
13207 false-false-false)
13208 wordsize=32
13209 bfd_libs='$(BFD32_LIBS)'
13210 all_backends='$(BFD32_BACKENDS)'
13212 esac
13221 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13222 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13223 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13224 # Hopefully a reasonable assumption since fseeko et.al. should be
13225 # upward compatible.
13230 for ac_func in ftello ftello64 fseeko fseeko64
13232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13233 echo "$as_me:$LINENO: checking for $ac_func" >&5
13234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13235 if eval "test \"\${$as_ac_var+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13246 #define $ac_func innocuous_$ac_func
13248 /* System header to define __stub macros and hopefully few prototypes,
13249 which can conflict with char $ac_func (); below.
13250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13251 <limits.h> exists even on freestanding compilers. */
13253 #ifdef __STDC__
13254 # include <limits.h>
13255 #else
13256 # include <assert.h>
13257 #endif
13259 #undef $ac_func
13261 /* Override any gcc2 internal prototype to avoid an error. */
13262 #ifdef __cplusplus
13263 extern "C"
13265 #endif
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268 char $ac_func ();
13269 /* The GNU C library defines this for functions which it implements
13270 to always fail with ENOSYS. Some functions are actually named
13271 something starting with __ and the normal name is an alias. */
13272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13273 choke me
13274 #else
13275 char (*f) () = $ac_func;
13276 #endif
13277 #ifdef __cplusplus
13279 #endif
13282 main ()
13284 return f != $ac_func;
13286 return 0;
13288 _ACEOF
13289 rm -f conftest.$ac_objext conftest$ac_exeext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 eval "$as_ac_var=yes"
13311 else
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 eval "$as_ac_var=no"
13317 rm -f conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13322 if test `eval echo '${'$as_ac_var'}'` = yes; then
13323 cat >>confdefs.h <<_ACEOF
13324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325 _ACEOF
13328 done
13330 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13331 echo "$as_me:$LINENO: checking for off_t" >&5
13332 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13333 if test "${ac_cv_type_off_t+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 $ac_includes_default
13344 main ()
13346 if ((off_t *) 0)
13347 return 0;
13348 if (sizeof (off_t))
13349 return 0;
13351 return 0;
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_type_off_t=yes
13376 else
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ac_cv_type_off_t=no
13382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13385 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13387 echo "$as_me:$LINENO: checking size of off_t" >&5
13388 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13389 if test "${ac_cv_sizeof_off_t+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 if test "$ac_cv_type_off_t" = yes; then
13393 # The cast to unsigned long works around a bug in the HP C Compiler
13394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13396 # This bug is HP SR number 8606223364.
13397 if test "$cross_compiling" = yes; then
13398 # Depending upon the size, compute the lo and hi bounds.
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h. */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 $ac_includes_default
13407 main ()
13409 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13410 test_array [0] = 0
13413 return 0;
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_lo=0 ac_mid=0
13438 while :; do
13439 cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h. */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13445 $ac_includes_default
13447 main ()
13449 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13450 test_array [0] = 0
13453 return 0;
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_hi=$ac_mid; break
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_lo=`expr $ac_mid + 1`
13483 if test $ac_lo -le $ac_mid; then
13484 ac_lo= ac_hi=
13485 break
13487 ac_mid=`expr 2 '*' $ac_mid + 1`
13489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13490 done
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 $ac_includes_default
13503 main ()
13505 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13506 test_array [0] = 0
13509 return 0;
13511 _ACEOF
13512 rm -f conftest.$ac_objext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514 (eval $ac_compile) 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_hi=-1 ac_mid=-1
13534 while :; do
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13543 main ()
13545 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13546 test_array [0] = 0
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest.$ac_objext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_lo=$ac_mid; break
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_hi=`expr '(' $ac_mid ')' - 1`
13579 if test $ac_mid -le $ac_hi; then
13580 ac_lo= ac_hi=
13581 break
13583 ac_mid=`expr 2 '*' $ac_mid`
13585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13586 done
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_lo= ac_hi=
13593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 # Binary search between lo and hi bounds.
13597 while test "x$ac_lo" != "x$ac_hi"; do
13598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h. */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 $ac_includes_default
13607 main ()
13609 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13610 test_array [0] = 0
13613 return 0;
13615 _ACEOF
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618 (eval $ac_compile) 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest.$ac_objext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 ac_hi=$ac_mid
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_lo=`expr '(' $ac_mid ')' + 1`
13644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13645 done
13646 case $ac_lo in
13647 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13649 See \`config.log' for more details." >&5
13650 echo "$as_me: error: cannot compute sizeof (off_t), 77
13651 See \`config.log' for more details." >&2;}
13652 { (exit 1); exit 1; }; } ;;
13653 esac
13654 else
13655 if test "$cross_compiling" = yes; then
13656 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13657 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13658 { (exit 1); exit 1; }; }
13659 else
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13667 long longval () { return (long) (sizeof (off_t)); }
13668 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13669 #include <stdio.h>
13670 #include <stdlib.h>
13672 main ()
13675 FILE *f = fopen ("conftest.val", "w");
13676 if (! f)
13677 exit (1);
13678 if (((long) (sizeof (off_t))) < 0)
13680 long i = longval ();
13681 if (i != ((long) (sizeof (off_t))))
13682 exit (1);
13683 fprintf (f, "%ld\n", i);
13685 else
13687 unsigned long i = ulongval ();
13688 if (i != ((long) (sizeof (off_t))))
13689 exit (1);
13690 fprintf (f, "%lu\n", i);
13692 exit (ferror (f) || fclose (f) != 0);
13695 return 0;
13697 _ACEOF
13698 rm -f conftest$ac_exeext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700 (eval $ac_link) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sizeof_off_t=`cat conftest.val`
13710 else
13711 echo "$as_me: program exited with status $ac_status" >&5
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ( exit $ac_status )
13716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13717 See \`config.log' for more details." >&5
13718 echo "$as_me: error: cannot compute sizeof (off_t), 77
13719 See \`config.log' for more details." >&2;}
13720 { (exit 1); exit 1; }; }
13722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13725 rm -f conftest.val
13726 else
13727 ac_cv_sizeof_off_t=0
13730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13731 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13732 cat >>confdefs.h <<_ACEOF
13733 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13734 _ACEOF
13738 echo "$as_me:$LINENO: checking file_ptr type" >&5
13739 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13740 bfd_file_ptr="long"
13741 bfd_ufile_ptr="unsigned long"
13742 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13743 -o x"${ac_cv_sizeof_off_t}" = x8; then
13744 bfd_file_ptr=BFD_HOST_64_BIT
13745 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13747 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13748 echo "${ECHO_T}$bfd_file_ptr" >&6
13753 tdefaults=""
13754 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13755 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13756 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13757 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13758 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13763 for ac_header in stdlib.h unistd.h
13765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13774 else
13775 # Is the header compilable?
13776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13785 #include <$ac_header>
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13808 ac_header_compiler=yes
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_header_compiler=no
13815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6
13819 # Is the header present?
13820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <$ac_header>
13829 _ACEOF
13830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13844 else
13845 ac_cpp_err=yes
13847 if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_header_preproc=no
13855 rm -f conftest.err conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857 echo "${ECHO_T}$ac_header_preproc" >&6
13859 # So? What about this header?
13860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13882 cat <<\_ASBOX
13883 ## ------------------------------------------ ##
13884 ## Report this to the AC_PACKAGE_NAME lists. ##
13885 ## ------------------------------------------ ##
13886 _ASBOX
13888 sed "s/^/$as_me: WARNING: /" >&2
13890 esac
13891 echo "$as_me:$LINENO: checking for $ac_header" >&5
13892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 eval "$as_ac_Header=\$ac_header_preproc"
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 _ACEOF
13909 done
13912 for ac_func in getpagesize
13914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13915 echo "$as_me:$LINENO: checking for $ac_func" >&5
13916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13917 if eval "test \"\${$as_ac_var+set}\" = set"; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h. */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13928 #define $ac_func innocuous_$ac_func
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char $ac_func (); below.
13932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13933 <limits.h> exists even on freestanding compilers. */
13935 #ifdef __STDC__
13936 # include <limits.h>
13937 #else
13938 # include <assert.h>
13939 #endif
13941 #undef $ac_func
13943 /* Override any gcc2 internal prototype to avoid an error. */
13944 #ifdef __cplusplus
13945 extern "C"
13947 #endif
13948 /* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950 char $ac_func ();
13951 /* The GNU C library defines this for functions which it implements
13952 to always fail with ENOSYS. Some functions are actually named
13953 something starting with __ and the normal name is an alias. */
13954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13955 choke me
13956 #else
13957 char (*f) () = $ac_func;
13958 #endif
13959 #ifdef __cplusplus
13961 #endif
13964 main ()
13966 return f != $ac_func;
13968 return 0;
13970 _ACEOF
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973 (eval $ac_link) 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest$ac_exeext'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 eval "$as_ac_var=yes"
13993 else
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13997 eval "$as_ac_var=no"
13999 rm -f conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14004 if test `eval echo '${'$as_ac_var'}'` = yes; then
14005 cat >>confdefs.h <<_ACEOF
14006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007 _ACEOF
14010 done
14012 echo "$as_me:$LINENO: checking for working mmap" >&5
14013 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14014 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 if test "$cross_compiling" = yes; then
14018 ac_cv_func_mmap_fixed_mapped=no
14019 else
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 $ac_includes_default
14027 /* malloc might have been renamed as rpl_malloc. */
14028 #undef malloc
14030 /* Thanks to Mike Haertel and Jim Avera for this test.
14031 Here is a matrix of mmap possibilities:
14032 mmap private not fixed
14033 mmap private fixed at somewhere currently unmapped
14034 mmap private fixed at somewhere already mapped
14035 mmap shared not fixed
14036 mmap shared fixed at somewhere currently unmapped
14037 mmap shared fixed at somewhere already mapped
14038 For private mappings, we should verify that changes cannot be read()
14039 back from the file, nor mmap's back from the file at a different
14040 address. (There have been systems where private was not correctly
14041 implemented like the infamous i386 svr4.0, and systems where the
14042 VM page cache was not coherent with the file system buffer cache
14043 like early versions of FreeBSD and possibly contemporary NetBSD.)
14044 For shared mappings, we should conversely verify that changes get
14045 propagated back to all the places they're supposed to be.
14047 Grep wants private fixed already mapped.
14048 The main things grep needs to know about mmap are:
14049 * does it exist and is it safe to write into the mmap'd area
14050 * how to use it (BSD variants) */
14052 #include <fcntl.h>
14053 #include <sys/mman.h>
14055 #if !STDC_HEADERS && !HAVE_STDLIB_H
14056 char *malloc ();
14057 #endif
14059 /* This mess was copied from the GNU getpagesize.h. */
14060 #if !HAVE_GETPAGESIZE
14061 /* Assume that all systems that can run configure have sys/param.h. */
14062 # if !HAVE_SYS_PARAM_H
14063 # define HAVE_SYS_PARAM_H 1
14064 # endif
14066 # ifdef _SC_PAGESIZE
14067 # define getpagesize() sysconf(_SC_PAGESIZE)
14068 # else /* no _SC_PAGESIZE */
14069 # if HAVE_SYS_PARAM_H
14070 # include <sys/param.h>
14071 # ifdef EXEC_PAGESIZE
14072 # define getpagesize() EXEC_PAGESIZE
14073 # else /* no EXEC_PAGESIZE */
14074 # ifdef NBPG
14075 # define getpagesize() NBPG * CLSIZE
14076 # ifndef CLSIZE
14077 # define CLSIZE 1
14078 # endif /* no CLSIZE */
14079 # else /* no NBPG */
14080 # ifdef NBPC
14081 # define getpagesize() NBPC
14082 # else /* no NBPC */
14083 # ifdef PAGESIZE
14084 # define getpagesize() PAGESIZE
14085 # endif /* PAGESIZE */
14086 # endif /* no NBPC */
14087 # endif /* no NBPG */
14088 # endif /* no EXEC_PAGESIZE */
14089 # else /* no HAVE_SYS_PARAM_H */
14090 # define getpagesize() 8192 /* punt totally */
14091 # endif /* no HAVE_SYS_PARAM_H */
14092 # endif /* no _SC_PAGESIZE */
14094 #endif /* no HAVE_GETPAGESIZE */
14097 main ()
14099 char *data, *data2, *data3;
14100 int i, pagesize;
14101 int fd;
14103 pagesize = getpagesize ();
14105 /* First, make a file with some known garbage in it. */
14106 data = (char *) malloc (pagesize);
14107 if (!data)
14108 exit (1);
14109 for (i = 0; i < pagesize; ++i)
14110 *(data + i) = rand ();
14111 umask (0);
14112 fd = creat ("conftest.mmap", 0600);
14113 if (fd < 0)
14114 exit (1);
14115 if (write (fd, data, pagesize) != pagesize)
14116 exit (1);
14117 close (fd);
14119 /* Next, try to mmap the file at a fixed address which already has
14120 something else allocated at it. If we can, also make sure that
14121 we see the same garbage. */
14122 fd = open ("conftest.mmap", O_RDWR);
14123 if (fd < 0)
14124 exit (1);
14125 data2 = (char *) malloc (2 * pagesize);
14126 if (!data2)
14127 exit (1);
14128 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14129 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14131 exit (1);
14132 for (i = 0; i < pagesize; ++i)
14133 if (*(data + i) != *(data2 + i))
14134 exit (1);
14136 /* Finally, make sure that changes to the mapped area do not
14137 percolate back to the file as seen by read(). (This is a bug on
14138 some variants of i386 svr4.0.) */
14139 for (i = 0; i < pagesize; ++i)
14140 *(data2 + i) = *(data2 + i) + 1;
14141 data3 = (char *) malloc (pagesize);
14142 if (!data3)
14143 exit (1);
14144 if (read (fd, data3, pagesize) != pagesize)
14145 exit (1);
14146 for (i = 0; i < pagesize; ++i)
14147 if (*(data + i) != *(data3 + i))
14148 exit (1);
14149 close (fd);
14150 exit (0);
14152 _ACEOF
14153 rm -f conftest$ac_exeext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_func_mmap_fixed_mapped=yes
14165 else
14166 echo "$as_me: program exited with status $ac_status" >&5
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 ( exit $ac_status )
14171 ac_cv_func_mmap_fixed_mapped=no
14173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14176 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14177 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14180 cat >>confdefs.h <<\_ACEOF
14181 #define HAVE_MMAP 1
14182 _ACEOF
14185 rm -f conftest.mmap
14189 for ac_func in madvise mprotect
14191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14192 echo "$as_me:$LINENO: checking for $ac_func" >&5
14193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_var+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14205 #define $ac_func innocuous_$ac_func
14207 /* System header to define __stub macros and hopefully few prototypes,
14208 which can conflict with char $ac_func (); below.
14209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14210 <limits.h> exists even on freestanding compilers. */
14212 #ifdef __STDC__
14213 # include <limits.h>
14214 #else
14215 # include <assert.h>
14216 #endif
14218 #undef $ac_func
14220 /* Override any gcc2 internal prototype to avoid an error. */
14221 #ifdef __cplusplus
14222 extern "C"
14224 #endif
14225 /* We use char because int might match the return type of a gcc2
14226 builtin and then its argument prototype would still apply. */
14227 char $ac_func ();
14228 /* The GNU C library defines this for functions which it implements
14229 to always fail with ENOSYS. Some functions are actually named
14230 something starting with __ and the normal name is an alias. */
14231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14232 choke me
14233 #else
14234 char (*f) () = $ac_func;
14235 #endif
14236 #ifdef __cplusplus
14238 #endif
14241 main ()
14243 return f != $ac_func;
14245 return 0;
14247 _ACEOF
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; } &&
14263 { ac_try='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 eval "$as_ac_var=yes"
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 eval "$as_ac_var=no"
14276 rm -f conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14281 if test `eval echo '${'$as_ac_var'}'` = yes; then
14282 cat >>confdefs.h <<_ACEOF
14283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14284 _ACEOF
14287 done
14289 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14290 true+yes )
14291 cat >>confdefs.h <<\_ACEOF
14292 #define USE_MMAP 1
14293 _ACEOF
14295 esac
14297 rm -f doc/config.status
14298 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14300 ac_config_commands="$ac_config_commands default"
14302 cat >confcache <<\_ACEOF
14303 # This file is a shell script that caches the results of configure
14304 # tests run on this system so they can be shared between configure
14305 # scripts and configure runs, see configure's option --config-cache.
14306 # It is not useful on other systems. If it contains results you don't
14307 # want to keep, you may remove or edit it.
14309 # config.status only pays attention to the cache file if you give it
14310 # the --recheck option to rerun configure.
14312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14314 # following values.
14316 _ACEOF
14318 # The following way of writing the cache mishandles newlines in values,
14319 # but we know of no workaround that is simple, portable, and efficient.
14320 # So, don't put newlines in cache variables' values.
14321 # Ultrix sh set writes to stderr and can't be redirected directly,
14322 # and sets the high bit in the cache file unless we assign to the vars.
14324 (set) 2>&1 |
14325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14326 *ac_space=\ *)
14327 # `set' does not quote correctly, so add quotes (double-quote
14328 # substitution turns \\\\ into \\, and sed turns \\ into \).
14329 sed -n \
14330 "s/'/'\\\\''/g;
14331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14334 # `set' quotes correctly as required by POSIX, so do not add quotes.
14335 sed -n \
14336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14338 esac;
14340 sed '
14341 t clear
14342 : clear
14343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14344 t end
14345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14346 : end' >>confcache
14347 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14348 if test -w $cache_file; then
14349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14350 cat confcache >$cache_file
14351 else
14352 echo "not updating unwritable cache $cache_file"
14355 rm -f confcache
14357 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14358 # Let make expand exec_prefix.
14359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14363 # trailing colons and then remove the whole line if VPATH becomes empty
14364 # (actually we leave an empty line to preserve line numbers).
14365 if test "x$srcdir" = x.; then
14366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14367 s/:*\$(srcdir):*/:/;
14368 s/:*\${srcdir}:*/:/;
14369 s/:*@srcdir@:*/:/;
14370 s/^\([^=]*=[ ]*\):*/\1/;
14371 s/:*$//;
14372 s/^[^=]*=[ ]*$//;
14376 DEFS=-DHAVE_CONFIG_H
14378 ac_libobjs=
14379 ac_ltlibobjs=
14380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14381 # 1. Remove the extension, and $U if already installed.
14382 ac_i=`echo "$ac_i" |
14383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14384 # 2. Add them.
14385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14387 done
14388 LIBOBJS=$ac_libobjs
14390 LTLIBOBJS=$ac_ltlibobjs
14393 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14394 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14395 Usually this means the macro was only invoked conditionally." >&5
14396 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14397 Usually this means the macro was only invoked conditionally." >&2;}
14398 { (exit 1); exit 1; }; }
14400 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14401 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14402 Usually this means the macro was only invoked conditionally." >&5
14403 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14404 Usually this means the macro was only invoked conditionally." >&2;}
14405 { (exit 1); exit 1; }; }
14407 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14408 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14409 Usually this means the macro was only invoked conditionally." >&5
14410 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14411 Usually this means the macro was only invoked conditionally." >&2;}
14412 { (exit 1); exit 1; }; }
14414 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14415 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14416 Usually this means the macro was only invoked conditionally." >&5
14417 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14418 Usually this means the macro was only invoked conditionally." >&2;}
14419 { (exit 1); exit 1; }; }
14422 : ${CONFIG_STATUS=./config.status}
14423 ac_clean_files_save=$ac_clean_files
14424 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14425 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14426 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14427 cat >$CONFIG_STATUS <<_ACEOF
14428 #! $SHELL
14429 # Generated by $as_me.
14430 # Run this file to recreate the current configuration.
14431 # Compiler output produced by configure, useful for debugging
14432 # configure, is in config.log if it exists.
14434 debug=false
14435 ac_cs_recheck=false
14436 ac_cs_silent=false
14437 SHELL=\${CONFIG_SHELL-$SHELL}
14438 _ACEOF
14440 cat >>$CONFIG_STATUS <<\_ACEOF
14441 ## --------------------- ##
14442 ## M4sh Initialization. ##
14443 ## --------------------- ##
14445 # Be Bourne compatible
14446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14447 emulate sh
14448 NULLCMD=:
14449 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14450 # is contrary to our usage. Disable this feature.
14451 alias -g '${1+"$@"}'='"$@"'
14452 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14453 set -o posix
14455 DUALCASE=1; export DUALCASE # for MKS sh
14457 # Support unset when possible.
14458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14459 as_unset=unset
14460 else
14461 as_unset=false
14465 # Work around bugs in pre-3.0 UWIN ksh.
14466 $as_unset ENV MAIL MAILPATH
14467 PS1='$ '
14468 PS2='> '
14469 PS4='+ '
14471 # NLS nuisances.
14472 for as_var in \
14473 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14474 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14475 LC_TELEPHONE LC_TIME
14477 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14478 eval $as_var=C; export $as_var
14479 else
14480 $as_unset $as_var
14482 done
14484 # Required to use basename.
14485 if expr a : '\(a\)' >/dev/null 2>&1; then
14486 as_expr=expr
14487 else
14488 as_expr=false
14491 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14492 as_basename=basename
14493 else
14494 as_basename=false
14498 # Name of the executable.
14499 as_me=`$as_basename "$0" ||
14500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14501 X"$0" : 'X\(//\)$' \| \
14502 X"$0" : 'X\(/\)$' \| \
14503 . : '\(.\)' 2>/dev/null ||
14504 echo X/"$0" |
14505 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14506 /^X\/\(\/\/\)$/{ s//\1/; q; }
14507 /^X\/\(\/\).*/{ s//\1/; q; }
14508 s/.*/./; q'`
14511 # PATH needs CR, and LINENO needs CR and PATH.
14512 # Avoid depending upon Character Ranges.
14513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14516 as_cr_digits='0123456789'
14517 as_cr_alnum=$as_cr_Letters$as_cr_digits
14519 # The user is always right.
14520 if test "${PATH_SEPARATOR+set}" != set; then
14521 echo "#! /bin/sh" >conf$$.sh
14522 echo "exit 0" >>conf$$.sh
14523 chmod +x conf$$.sh
14524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14525 PATH_SEPARATOR=';'
14526 else
14527 PATH_SEPARATOR=:
14529 rm -f conf$$.sh
14533 as_lineno_1=$LINENO
14534 as_lineno_2=$LINENO
14535 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14536 test "x$as_lineno_1" != "x$as_lineno_2" &&
14537 test "x$as_lineno_3" = "x$as_lineno_2" || {
14538 # Find who we are. Look in the path if we contain no path at all
14539 # relative or not.
14540 case $0 in
14541 *[\\/]* ) as_myself=$0 ;;
14542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14548 done
14551 esac
14552 # We did not find ourselves, most probably we were run as `sh COMMAND'
14553 # in which case we are not to be found in the path.
14554 if test "x$as_myself" = x; then
14555 as_myself=$0
14557 if test ! -f "$as_myself"; then
14558 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14559 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14560 { (exit 1); exit 1; }; }
14562 case $CONFIG_SHELL in
14564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14565 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14567 IFS=$as_save_IFS
14568 test -z "$as_dir" && as_dir=.
14569 for as_base in sh bash ksh sh5; do
14570 case $as_dir in
14572 if ("$as_dir/$as_base" -c '
14573 as_lineno_1=$LINENO
14574 as_lineno_2=$LINENO
14575 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14576 test "x$as_lineno_1" != "x$as_lineno_2" &&
14577 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14578 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14579 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14580 CONFIG_SHELL=$as_dir/$as_base
14581 export CONFIG_SHELL
14582 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14583 fi;;
14584 esac
14585 done
14586 done
14588 esac
14590 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14591 # uniformly replaced by the line number. The first 'sed' inserts a
14592 # line-number line before each line; the second 'sed' does the real
14593 # work. The second script uses 'N' to pair each line-number line
14594 # with the numbered line, and appends trailing '-' during
14595 # substitution so that $LINENO is not a special case at line end.
14596 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14597 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14598 sed '=' <$as_myself |
14599 sed '
14601 s,$,-,
14602 : loop
14603 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14604 t loop
14605 s,-$,,
14606 s,^['$as_cr_digits']*\n,,
14607 ' >$as_me.lineno &&
14608 chmod +x $as_me.lineno ||
14609 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14610 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14611 { (exit 1); exit 1; }; }
14613 # Don't try to exec as it changes $[0], causing all sort of problems
14614 # (the dirname of $[0] is not the place where we might find the
14615 # original and so on. Autoconf is especially sensible to this).
14616 . ./$as_me.lineno
14617 # Exit status is that of the last command.
14618 exit
14622 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14623 *c*,-n*) ECHO_N= ECHO_C='
14624 ' ECHO_T=' ' ;;
14625 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14626 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14627 esac
14629 if expr a : '\(a\)' >/dev/null 2>&1; then
14630 as_expr=expr
14631 else
14632 as_expr=false
14635 rm -f conf$$ conf$$.exe conf$$.file
14636 echo >conf$$.file
14637 if ln -s conf$$.file conf$$ 2>/dev/null; then
14638 # We could just check for DJGPP; but this test a) works b) is more generic
14639 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14640 if test -f conf$$.exe; then
14641 # Don't use ln at all; we don't have any links
14642 as_ln_s='cp -p'
14643 else
14644 as_ln_s='ln -s'
14646 elif ln conf$$.file conf$$ 2>/dev/null; then
14647 as_ln_s=ln
14648 else
14649 as_ln_s='cp -p'
14651 rm -f conf$$ conf$$.exe conf$$.file
14653 if mkdir -p . 2>/dev/null; then
14654 as_mkdir_p=:
14655 else
14656 test -d ./-p && rmdir ./-p
14657 as_mkdir_p=false
14660 as_executable_p="test -f"
14662 # Sed expression to map a string onto a valid CPP name.
14663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14665 # Sed expression to map a string onto a valid variable name.
14666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14669 # IFS
14670 # We need space, tab and new line, in precisely that order.
14671 as_nl='
14673 IFS=" $as_nl"
14675 # CDPATH.
14676 $as_unset CDPATH
14678 exec 6>&1
14680 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14681 # report actual input values of CONFIG_FILES etc. instead of their
14682 # values after options handling. Logging --version etc. is OK.
14683 exec 5>>config.log
14685 echo
14686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14687 ## Running $as_me. ##
14688 _ASBOX
14689 } >&5
14690 cat >&5 <<_CSEOF
14692 This file was extended by $as_me, which was
14693 generated by GNU Autoconf 2.59. Invocation command line was
14695 CONFIG_FILES = $CONFIG_FILES
14696 CONFIG_HEADERS = $CONFIG_HEADERS
14697 CONFIG_LINKS = $CONFIG_LINKS
14698 CONFIG_COMMANDS = $CONFIG_COMMANDS
14699 $ $0 $@
14701 _CSEOF
14702 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14703 echo >&5
14704 _ACEOF
14706 # Files that config.status was made for.
14707 if test -n "$ac_config_files"; then
14708 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14711 if test -n "$ac_config_headers"; then
14712 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14715 if test -n "$ac_config_links"; then
14716 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14719 if test -n "$ac_config_commands"; then
14720 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14723 cat >>$CONFIG_STATUS <<\_ACEOF
14725 ac_cs_usage="\
14726 \`$as_me' instantiates files from templates according to the
14727 current configuration.
14729 Usage: $0 [OPTIONS] [FILE]...
14731 -h, --help print this help, then exit
14732 -V, --version print version number, then exit
14733 -q, --quiet do not print progress messages
14734 -d, --debug don't remove temporary files
14735 --recheck update $as_me by reconfiguring in the same conditions
14736 --file=FILE[:TEMPLATE]
14737 instantiate the configuration file FILE
14738 --header=FILE[:TEMPLATE]
14739 instantiate the configuration header FILE
14741 Configuration files:
14742 $config_files
14744 Configuration headers:
14745 $config_headers
14747 Configuration commands:
14748 $config_commands
14750 Report bugs to <bug-autoconf@gnu.org>."
14751 _ACEOF
14753 cat >>$CONFIG_STATUS <<_ACEOF
14754 ac_cs_version="\\
14755 config.status
14756 configured by $0, generated by GNU Autoconf 2.59,
14757 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14759 Copyright (C) 2003 Free Software Foundation, Inc.
14760 This config.status script is free software; the Free Software Foundation
14761 gives unlimited permission to copy, distribute and modify it."
14762 srcdir=$srcdir
14763 INSTALL="$INSTALL"
14764 _ACEOF
14766 cat >>$CONFIG_STATUS <<\_ACEOF
14767 # If no file are specified by the user, then we need to provide default
14768 # value. By we need to know if files were specified by the user.
14769 ac_need_defaults=:
14770 while test $# != 0
14772 case $1 in
14773 --*=*)
14774 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14775 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14776 ac_shift=:
14779 ac_option=$1
14780 ac_optarg=$2
14781 ac_shift=shift
14783 *) # This is not an option, so the user has probably given explicit
14784 # arguments.
14785 ac_option=$1
14786 ac_need_defaults=false;;
14787 esac
14789 case $ac_option in
14790 # Handling of the options.
14791 _ACEOF
14792 cat >>$CONFIG_STATUS <<\_ACEOF
14793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14794 ac_cs_recheck=: ;;
14795 --version | --vers* | -V )
14796 echo "$ac_cs_version"; exit 0 ;;
14797 --he | --h)
14798 # Conflict between --help and --header
14799 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14800 Try \`$0 --help' for more information." >&5
14801 echo "$as_me: error: ambiguous option: $1
14802 Try \`$0 --help' for more information." >&2;}
14803 { (exit 1); exit 1; }; };;
14804 --help | --hel | -h )
14805 echo "$ac_cs_usage"; exit 0 ;;
14806 --debug | --d* | -d )
14807 debug=: ;;
14808 --file | --fil | --fi | --f )
14809 $ac_shift
14810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14811 ac_need_defaults=false;;
14812 --header | --heade | --head | --hea )
14813 $ac_shift
14814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14815 ac_need_defaults=false;;
14816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14818 ac_cs_silent=: ;;
14820 # This is an error.
14821 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14822 Try \`$0 --help' for more information." >&5
14823 echo "$as_me: error: unrecognized option: $1
14824 Try \`$0 --help' for more information." >&2;}
14825 { (exit 1); exit 1; }; } ;;
14827 *) ac_config_targets="$ac_config_targets $1" ;;
14829 esac
14830 shift
14831 done
14833 ac_configure_extra_args=
14835 if $ac_cs_silent; then
14836 exec 6>/dev/null
14837 ac_configure_extra_args="$ac_configure_extra_args --silent"
14840 _ACEOF
14841 cat >>$CONFIG_STATUS <<_ACEOF
14842 if \$ac_cs_recheck; then
14843 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14844 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14847 _ACEOF
14849 cat >>$CONFIG_STATUS <<_ACEOF
14851 # INIT-COMMANDS section.
14854 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14857 _ACEOF
14861 cat >>$CONFIG_STATUS <<\_ACEOF
14862 for ac_config_target in $ac_config_targets
14864 case "$ac_config_target" in
14865 # Handling of arguments.
14866 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14867 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14868 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
14869 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14870 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14871 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14872 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14873 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14874 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14875 { (exit 1); exit 1; }; };;
14876 esac
14877 done
14879 # If the user did not use the arguments to specify the items to instantiate,
14880 # then the envvar interface is used. Set only those that are not.
14881 # We use the long form for the default assignment because of an extremely
14882 # bizarre bug on SunOS 4.1.3.
14883 if $ac_need_defaults; then
14884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14889 # Have a temporary directory for convenience. Make it in the build tree
14890 # simply because there is no reason to put it here, and in addition,
14891 # creating and moving files from /tmp can sometimes cause problems.
14892 # Create a temporary directory, and hook for its removal unless debugging.
14893 $debug ||
14895 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14896 trap '{ (exit 1); exit 1; }' 1 2 13 15
14899 # Create a (secure) tmp directory for tmp files.
14902 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14903 test -n "$tmp" && test -d "$tmp"
14904 } ||
14906 tmp=./confstat$$-$RANDOM
14907 (umask 077 && mkdir $tmp)
14908 } ||
14910 echo "$me: cannot create a temporary directory in ." >&2
14911 { (exit 1); exit 1; }
14914 _ACEOF
14916 cat >>$CONFIG_STATUS <<_ACEOF
14919 # CONFIG_FILES section.
14922 # No need to generate the scripts if there are no CONFIG_FILES.
14923 # This happens for instance when ./config.status config.h
14924 if test -n "\$CONFIG_FILES"; then
14925 # Protect against being on the right side of a sed subst in config.status.
14926 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14927 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14928 s,@SHELL@,$SHELL,;t t
14929 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14930 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14931 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14932 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14933 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14934 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14935 s,@exec_prefix@,$exec_prefix,;t t
14936 s,@prefix@,$prefix,;t t
14937 s,@program_transform_name@,$program_transform_name,;t t
14938 s,@bindir@,$bindir,;t t
14939 s,@sbindir@,$sbindir,;t t
14940 s,@libexecdir@,$libexecdir,;t t
14941 s,@datadir@,$datadir,;t t
14942 s,@sysconfdir@,$sysconfdir,;t t
14943 s,@sharedstatedir@,$sharedstatedir,;t t
14944 s,@localstatedir@,$localstatedir,;t t
14945 s,@libdir@,$libdir,;t t
14946 s,@includedir@,$includedir,;t t
14947 s,@oldincludedir@,$oldincludedir,;t t
14948 s,@infodir@,$infodir,;t t
14949 s,@mandir@,$mandir,;t t
14950 s,@build_alias@,$build_alias,;t t
14951 s,@host_alias@,$host_alias,;t t
14952 s,@target_alias@,$target_alias,;t t
14953 s,@DEFS@,$DEFS,;t t
14954 s,@ECHO_C@,$ECHO_C,;t t
14955 s,@ECHO_N@,$ECHO_N,;t t
14956 s,@ECHO_T@,$ECHO_T,;t t
14957 s,@LIBS@,$LIBS,;t t
14958 s,@build@,$build,;t t
14959 s,@build_cpu@,$build_cpu,;t t
14960 s,@build_vendor@,$build_vendor,;t t
14961 s,@build_os@,$build_os,;t t
14962 s,@host@,$host,;t t
14963 s,@host_cpu@,$host_cpu,;t t
14964 s,@host_vendor@,$host_vendor,;t t
14965 s,@host_os@,$host_os,;t t
14966 s,@target@,$target,;t t
14967 s,@target_cpu@,$target_cpu,;t t
14968 s,@target_vendor@,$target_vendor,;t t
14969 s,@target_os@,$target_os,;t t
14970 s,@CC@,$CC,;t t
14971 s,@CFLAGS@,$CFLAGS,;t t
14972 s,@LDFLAGS@,$LDFLAGS,;t t
14973 s,@CPPFLAGS@,$CPPFLAGS,;t t
14974 s,@ac_ct_CC@,$ac_ct_CC,;t t
14975 s,@EXEEXT@,$EXEEXT,;t t
14976 s,@OBJEXT@,$OBJEXT,;t t
14977 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14978 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14979 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14980 s,@CYGPATH_W@,$CYGPATH_W,;t t
14981 s,@PACKAGE@,$PACKAGE,;t t
14982 s,@VERSION@,$VERSION,;t t
14983 s,@ACLOCAL@,$ACLOCAL,;t t
14984 s,@AUTOCONF@,$AUTOCONF,;t t
14985 s,@AUTOMAKE@,$AUTOMAKE,;t t
14986 s,@AUTOHEADER@,$AUTOHEADER,;t t
14987 s,@MAKEINFO@,$MAKEINFO,;t t
14988 s,@install_sh@,$install_sh,;t t
14989 s,@STRIP@,$STRIP,;t t
14990 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14991 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14992 s,@mkdir_p@,$mkdir_p,;t t
14993 s,@AWK@,$AWK,;t t
14994 s,@SET_MAKE@,$SET_MAKE,;t t
14995 s,@am__leading_dot@,$am__leading_dot,;t t
14996 s,@AMTAR@,$AMTAR,;t t
14997 s,@am__tar@,$am__tar,;t t
14998 s,@am__untar@,$am__untar,;t t
14999 s,@DEPDIR@,$DEPDIR,;t t
15000 s,@am__include@,$am__include,;t t
15001 s,@am__quote@,$am__quote,;t t
15002 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15003 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15004 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15005 s,@CCDEPMODE@,$CCDEPMODE,;t t
15006 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15007 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15008 s,@AR@,$AR,;t t
15009 s,@ac_ct_AR@,$ac_ct_AR,;t t
15010 s,@RANLIB@,$RANLIB,;t t
15011 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15012 s,@LN_S@,$LN_S,;t t
15013 s,@LIBTOOL@,$LIBTOOL,;t t
15014 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15015 s,@NO_WERROR@,$NO_WERROR,;t t
15016 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15017 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15018 s,@MAINT@,$MAINT,;t t
15019 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15020 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15021 s,@host_noncanonical@,$host_noncanonical,;t t
15022 s,@target_noncanonical@,$target_noncanonical,;t t
15023 s,@bfdlibdir@,$bfdlibdir,;t t
15024 s,@bfdincludedir@,$bfdincludedir,;t t
15025 s,@CPP@,$CPP,;t t
15026 s,@EGREP@,$EGREP,;t t
15027 s,@ALLOCA@,$ALLOCA,;t t
15028 s,@USE_NLS@,$USE_NLS,;t t
15029 s,@MSGFMT@,$MSGFMT,;t t
15030 s,@GMSGFMT@,$GMSGFMT,;t t
15031 s,@XGETTEXT@,$XGETTEXT,;t t
15032 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15033 s,@CATALOGS@,$CATALOGS,;t t
15034 s,@CATOBJEXT@,$CATOBJEXT,;t t
15035 s,@DATADIRNAME@,$DATADIRNAME,;t t
15036 s,@GMOFILES@,$GMOFILES,;t t
15037 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15038 s,@INTLDEPS@,$INTLDEPS,;t t
15039 s,@INTLLIBS@,$INTLLIBS,;t t
15040 s,@INTLOBJS@,$INTLOBJS,;t t
15041 s,@POFILES@,$POFILES,;t t
15042 s,@POSUB@,$POSUB,;t t
15043 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15044 s,@GT_NO@,$GT_NO,;t t
15045 s,@GT_YES@,$GT_YES,;t t
15046 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15047 s,@l@,$l,;t t
15048 s,@HDEFINES@,$HDEFINES,;t t
15049 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15050 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15051 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15052 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15053 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15054 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15055 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15056 s,@COREFILE@,$COREFILE,;t t
15057 s,@COREFLAG@,$COREFLAG,;t t
15058 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15059 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15060 s,@TDEFINES@,$TDEFINES,;t t
15061 s,@wordsize@,$wordsize,;t t
15062 s,@bfd_libs@,$bfd_libs,;t t
15063 s,@all_backends@,$all_backends,;t t
15064 s,@bfd_backends@,$bfd_backends,;t t
15065 s,@bfd_machines@,$bfd_machines,;t t
15066 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15067 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15068 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15069 s,@tdefaults@,$tdefaults,;t t
15070 s,@LIBOBJS@,$LIBOBJS,;t t
15071 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15072 CEOF
15074 _ACEOF
15076 cat >>$CONFIG_STATUS <<\_ACEOF
15077 # Split the substitutions into bite-sized pieces for seds with
15078 # small command number limits, like on Digital OSF/1 and HP-UX.
15079 ac_max_sed_lines=48
15080 ac_sed_frag=1 # Number of current file.
15081 ac_beg=1 # First line for current file.
15082 ac_end=$ac_max_sed_lines # Line after last line for current file.
15083 ac_more_lines=:
15084 ac_sed_cmds=
15085 while $ac_more_lines; do
15086 if test $ac_beg -gt 1; then
15087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15088 else
15089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15091 if test ! -s $tmp/subs.frag; then
15092 ac_more_lines=false
15093 else
15094 # The purpose of the label and of the branching condition is to
15095 # speed up the sed processing (if there are no `@' at all, there
15096 # is no need to browse any of the substitutions).
15097 # These are the two extra sed commands mentioned above.
15098 (echo ':t
15099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15100 if test -z "$ac_sed_cmds"; then
15101 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15102 else
15103 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15105 ac_sed_frag=`expr $ac_sed_frag + 1`
15106 ac_beg=$ac_end
15107 ac_end=`expr $ac_end + $ac_max_sed_lines`
15109 done
15110 if test -z "$ac_sed_cmds"; then
15111 ac_sed_cmds=cat
15113 fi # test -n "$CONFIG_FILES"
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<\_ACEOF
15117 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15119 case $ac_file in
15120 - | *:- | *:-:* ) # input from stdin
15121 cat >$tmp/stdin
15122 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15124 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15126 * ) ac_file_in=$ac_file.in ;;
15127 esac
15129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15132 X"$ac_file" : 'X\(//\)[^/]' \| \
15133 X"$ac_file" : 'X\(//\)$' \| \
15134 X"$ac_file" : 'X\(/\)' \| \
15135 . : '\(.\)' 2>/dev/null ||
15136 echo X"$ac_file" |
15137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15139 /^X\(\/\/\)$/{ s//\1/; q; }
15140 /^X\(\/\).*/{ s//\1/; q; }
15141 s/.*/./; q'`
15142 { if $as_mkdir_p; then
15143 mkdir -p "$ac_dir"
15144 else
15145 as_dir="$ac_dir"
15146 as_dirs=
15147 while test ! -d "$as_dir"; do
15148 as_dirs="$as_dir $as_dirs"
15149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15151 X"$as_dir" : 'X\(//\)[^/]' \| \
15152 X"$as_dir" : 'X\(//\)$' \| \
15153 X"$as_dir" : 'X\(/\)' \| \
15154 . : '\(.\)' 2>/dev/null ||
15155 echo X"$as_dir" |
15156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15158 /^X\(\/\/\)$/{ s//\1/; q; }
15159 /^X\(\/\).*/{ s//\1/; q; }
15160 s/.*/./; q'`
15161 done
15162 test ! -n "$as_dirs" || mkdir $as_dirs
15163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15165 { (exit 1); exit 1; }; }; }
15167 ac_builddir=.
15169 if test "$ac_dir" != .; then
15170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15171 # A "../" for each directory in $ac_dir_suffix.
15172 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15173 else
15174 ac_dir_suffix= ac_top_builddir=
15177 case $srcdir in
15178 .) # No --srcdir option. We are building in place.
15179 ac_srcdir=.
15180 if test -z "$ac_top_builddir"; then
15181 ac_top_srcdir=.
15182 else
15183 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15184 fi ;;
15185 [\\/]* | ?:[\\/]* ) # Absolute path.
15186 ac_srcdir=$srcdir$ac_dir_suffix;
15187 ac_top_srcdir=$srcdir ;;
15188 *) # Relative path.
15189 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15190 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15191 esac
15193 # Do not use `cd foo && pwd` to compute absolute paths, because
15194 # the directories may not exist.
15195 case `pwd` in
15196 .) ac_abs_builddir="$ac_dir";;
15198 case "$ac_dir" in
15199 .) ac_abs_builddir=`pwd`;;
15200 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15201 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15202 esac;;
15203 esac
15204 case $ac_abs_builddir in
15205 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15207 case ${ac_top_builddir}. in
15208 .) ac_abs_top_builddir=$ac_abs_builddir;;
15209 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15210 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15211 esac;;
15212 esac
15213 case $ac_abs_builddir in
15214 .) ac_abs_srcdir=$ac_srcdir;;
15216 case $ac_srcdir in
15217 .) ac_abs_srcdir=$ac_abs_builddir;;
15218 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15219 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15220 esac;;
15221 esac
15222 case $ac_abs_builddir in
15223 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15225 case $ac_top_srcdir in
15226 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15227 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15228 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15229 esac;;
15230 esac
15233 case $INSTALL in
15234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15235 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15236 esac
15238 # Let's still pretend it is `configure' which instantiates (i.e., don't
15239 # use $as_me), people would be surprised to read:
15240 # /* config.h. Generated by config.status. */
15241 if test x"$ac_file" = x-; then
15242 configure_input=
15243 else
15244 configure_input="$ac_file. "
15246 configure_input=$configure_input"Generated from `echo $ac_file_in |
15247 sed 's,.*/,,'` by configure."
15249 # First look for the input files in the build tree, otherwise in the
15250 # src tree.
15251 ac_file_inputs=`IFS=:
15252 for f in $ac_file_in; do
15253 case $f in
15254 -) echo $tmp/stdin ;;
15255 [\\/$]*)
15256 # Absolute (can't be DOS-style, as IFS=:)
15257 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15258 echo "$as_me: error: cannot find input file: $f" >&2;}
15259 { (exit 1); exit 1; }; }
15260 echo "$f";;
15261 *) # Relative
15262 if test -f "$f"; then
15263 # Build tree
15264 echo "$f"
15265 elif test -f "$srcdir/$f"; then
15266 # Source tree
15267 echo "$srcdir/$f"
15268 else
15269 # /dev/null tree
15270 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15271 echo "$as_me: error: cannot find input file: $f" >&2;}
15272 { (exit 1); exit 1; }; }
15273 fi;;
15274 esac
15275 done` || { (exit 1); exit 1; }
15277 if test x"$ac_file" != x-; then
15278 { echo "$as_me:$LINENO: creating $ac_file" >&5
15279 echo "$as_me: creating $ac_file" >&6;}
15280 rm -f "$ac_file"
15282 _ACEOF
15283 cat >>$CONFIG_STATUS <<_ACEOF
15284 sed "$ac_vpsub
15285 $extrasub
15286 _ACEOF
15287 cat >>$CONFIG_STATUS <<\_ACEOF
15289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15290 s,@configure_input@,$configure_input,;t t
15291 s,@srcdir@,$ac_srcdir,;t t
15292 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15293 s,@top_srcdir@,$ac_top_srcdir,;t t
15294 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15295 s,@builddir@,$ac_builddir,;t t
15296 s,@abs_builddir@,$ac_abs_builddir,;t t
15297 s,@top_builddir@,$ac_top_builddir,;t t
15298 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15299 s,@INSTALL@,$ac_INSTALL,;t t
15300 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15301 rm -f $tmp/stdin
15302 if test x"$ac_file" != x-; then
15303 mv $tmp/out $ac_file
15304 else
15305 cat $tmp/out
15306 rm -f $tmp/out
15309 done
15310 _ACEOF
15311 cat >>$CONFIG_STATUS <<\_ACEOF
15314 # CONFIG_HEADER section.
15317 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15318 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15320 # ac_d sets the value in "#define NAME VALUE" lines.
15321 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15322 ac_dB='[ ].*$,\1#\2'
15323 ac_dC=' '
15324 ac_dD=',;t'
15325 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15326 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15327 ac_uB='$,\1#\2define\3'
15328 ac_uC=' '
15329 ac_uD=',;t'
15331 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15333 case $ac_file in
15334 - | *:- | *:-:* ) # input from stdin
15335 cat >$tmp/stdin
15336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15340 * ) ac_file_in=$ac_file.in ;;
15341 esac
15343 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15344 echo "$as_me: creating $ac_file" >&6;}
15346 # First look for the input files in the build tree, otherwise in the
15347 # src tree.
15348 ac_file_inputs=`IFS=:
15349 for f in $ac_file_in; do
15350 case $f in
15351 -) echo $tmp/stdin ;;
15352 [\\/$]*)
15353 # Absolute (can't be DOS-style, as IFS=:)
15354 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15355 echo "$as_me: error: cannot find input file: $f" >&2;}
15356 { (exit 1); exit 1; }; }
15357 # Do quote $f, to prevent DOS paths from being IFS'd.
15358 echo "$f";;
15359 *) # Relative
15360 if test -f "$f"; then
15361 # Build tree
15362 echo "$f"
15363 elif test -f "$srcdir/$f"; then
15364 # Source tree
15365 echo "$srcdir/$f"
15366 else
15367 # /dev/null tree
15368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15369 echo "$as_me: error: cannot find input file: $f" >&2;}
15370 { (exit 1); exit 1; }; }
15371 fi;;
15372 esac
15373 done` || { (exit 1); exit 1; }
15374 # Remove the trailing spaces.
15375 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15377 _ACEOF
15379 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15380 # `conftest.undefs', that substitutes the proper values into
15381 # config.h.in to produce config.h. The first handles `#define'
15382 # templates, and the second `#undef' templates.
15383 # And first: Protect against being on the right side of a sed subst in
15384 # config.status. Protect against being in an unquoted here document
15385 # in config.status.
15386 rm -f conftest.defines conftest.undefs
15387 # Using a here document instead of a string reduces the quoting nightmare.
15388 # Putting comments in sed scripts is not portable.
15390 # `end' is used to avoid that the second main sed command (meant for
15391 # 0-ary CPP macros) applies to n-ary macro definitions.
15392 # See the Autoconf documentation for `clear'.
15393 cat >confdef2sed.sed <<\_ACEOF
15394 s/[\\&,]/\\&/g
15395 s,[\\$`],\\&,g
15396 t clear
15397 : clear
15398 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15399 t end
15400 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15401 : end
15402 _ACEOF
15403 # If some macros were called several times there might be several times
15404 # the same #defines, which is useless. Nevertheless, we may not want to
15405 # sort them, since we want the *last* AC-DEFINE to be honored.
15406 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15407 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15408 rm -f confdef2sed.sed
15410 # This sed command replaces #undef with comments. This is necessary, for
15411 # example, in the case of _POSIX_SOURCE, which is predefined and required
15412 # on some systems where configure will not decide to define it.
15413 cat >>conftest.undefs <<\_ACEOF
15414 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15415 _ACEOF
15417 # Break up conftest.defines because some shells have a limit on the size
15418 # of here documents, and old seds have small limits too (100 cmds).
15419 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15420 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15421 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15422 echo ' :' >>$CONFIG_STATUS
15423 rm -f conftest.tail
15424 while grep . conftest.defines >/dev/null
15426 # Write a limited-size here document to $tmp/defines.sed.
15427 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15428 # Speed up: don't consider the non `#define' lines.
15429 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15430 # Work around the forget-to-reset-the-flag bug.
15431 echo 't clr' >>$CONFIG_STATUS
15432 echo ': clr' >>$CONFIG_STATUS
15433 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15434 echo 'CEOF
15435 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15436 rm -f $tmp/in
15437 mv $tmp/out $tmp/in
15438 ' >>$CONFIG_STATUS
15439 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15440 rm -f conftest.defines
15441 mv conftest.tail conftest.defines
15442 done
15443 rm -f conftest.defines
15444 echo ' fi # grep' >>$CONFIG_STATUS
15445 echo >>$CONFIG_STATUS
15447 # Break up conftest.undefs because some shells have a limit on the size
15448 # of here documents, and old seds have small limits too (100 cmds).
15449 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15450 rm -f conftest.tail
15451 while grep . conftest.undefs >/dev/null
15453 # Write a limited-size here document to $tmp/undefs.sed.
15454 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15455 # Speed up: don't consider the non `#undef'
15456 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15457 # Work around the forget-to-reset-the-flag bug.
15458 echo 't clr' >>$CONFIG_STATUS
15459 echo ': clr' >>$CONFIG_STATUS
15460 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15461 echo 'CEOF
15462 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15463 rm -f $tmp/in
15464 mv $tmp/out $tmp/in
15465 ' >>$CONFIG_STATUS
15466 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15467 rm -f conftest.undefs
15468 mv conftest.tail conftest.undefs
15469 done
15470 rm -f conftest.undefs
15472 cat >>$CONFIG_STATUS <<\_ACEOF
15473 # Let's still pretend it is `configure' which instantiates (i.e., don't
15474 # use $as_me), people would be surprised to read:
15475 # /* config.h. Generated by config.status. */
15476 if test x"$ac_file" = x-; then
15477 echo "/* Generated by configure. */" >$tmp/config.h
15478 else
15479 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15481 cat $tmp/in >>$tmp/config.h
15482 rm -f $tmp/in
15483 if test x"$ac_file" != x-; then
15484 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15485 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15486 echo "$as_me: $ac_file is unchanged" >&6;}
15487 else
15488 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490 X"$ac_file" : 'X\(//\)[^/]' \| \
15491 X"$ac_file" : 'X\(//\)$' \| \
15492 X"$ac_file" : 'X\(/\)' \| \
15493 . : '\(.\)' 2>/dev/null ||
15494 echo X"$ac_file" |
15495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15497 /^X\(\/\/\)$/{ s//\1/; q; }
15498 /^X\(\/\).*/{ s//\1/; q; }
15499 s/.*/./; q'`
15500 { if $as_mkdir_p; then
15501 mkdir -p "$ac_dir"
15502 else
15503 as_dir="$ac_dir"
15504 as_dirs=
15505 while test ! -d "$as_dir"; do
15506 as_dirs="$as_dir $as_dirs"
15507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$as_dir" : 'X\(//\)[^/]' \| \
15510 X"$as_dir" : 'X\(//\)$' \| \
15511 X"$as_dir" : 'X\(/\)' \| \
15512 . : '\(.\)' 2>/dev/null ||
15513 echo X"$as_dir" |
15514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15516 /^X\(\/\/\)$/{ s//\1/; q; }
15517 /^X\(\/\).*/{ s//\1/; q; }
15518 s/.*/./; q'`
15519 done
15520 test ! -n "$as_dirs" || mkdir $as_dirs
15521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15522 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15523 { (exit 1); exit 1; }; }; }
15525 rm -f $ac_file
15526 mv $tmp/config.h $ac_file
15528 else
15529 cat $tmp/config.h
15530 rm -f $tmp/config.h
15532 # Compute $ac_file's index in $config_headers.
15533 _am_stamp_count=1
15534 for _am_header in $config_headers :; do
15535 case $_am_header in
15536 $ac_file | $ac_file:* )
15537 break ;;
15539 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15540 esac
15541 done
15542 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15543 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15544 X$ac_file : 'X\(//\)[^/]' \| \
15545 X$ac_file : 'X\(//\)$' \| \
15546 X$ac_file : 'X\(/\)' \| \
15547 . : '\(.\)' 2>/dev/null ||
15548 echo X$ac_file |
15549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15551 /^X\(\/\/\)$/{ s//\1/; q; }
15552 /^X\(\/\).*/{ s//\1/; q; }
15553 s/.*/./; q'`/stamp-h$_am_stamp_count
15554 done
15555 _ACEOF
15556 cat >>$CONFIG_STATUS <<\_ACEOF
15559 # CONFIG_COMMANDS section.
15561 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15562 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15563 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15564 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15565 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15566 X"$ac_dest" : 'X\(//\)[^/]' \| \
15567 X"$ac_dest" : 'X\(//\)$' \| \
15568 X"$ac_dest" : 'X\(/\)' \| \
15569 . : '\(.\)' 2>/dev/null ||
15570 echo X"$ac_dest" |
15571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15573 /^X\(\/\/\)$/{ s//\1/; q; }
15574 /^X\(\/\).*/{ s//\1/; q; }
15575 s/.*/./; q'`
15576 { if $as_mkdir_p; then
15577 mkdir -p "$ac_dir"
15578 else
15579 as_dir="$ac_dir"
15580 as_dirs=
15581 while test ! -d "$as_dir"; do
15582 as_dirs="$as_dir $as_dirs"
15583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15585 X"$as_dir" : 'X\(//\)[^/]' \| \
15586 X"$as_dir" : 'X\(//\)$' \| \
15587 X"$as_dir" : 'X\(/\)' \| \
15588 . : '\(.\)' 2>/dev/null ||
15589 echo X"$as_dir" |
15590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15592 /^X\(\/\/\)$/{ s//\1/; q; }
15593 /^X\(\/\).*/{ s//\1/; q; }
15594 s/.*/./; q'`
15595 done
15596 test ! -n "$as_dirs" || mkdir $as_dirs
15597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15599 { (exit 1); exit 1; }; }; }
15601 ac_builddir=.
15603 if test "$ac_dir" != .; then
15604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15605 # A "../" for each directory in $ac_dir_suffix.
15606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15607 else
15608 ac_dir_suffix= ac_top_builddir=
15611 case $srcdir in
15612 .) # No --srcdir option. We are building in place.
15613 ac_srcdir=.
15614 if test -z "$ac_top_builddir"; then
15615 ac_top_srcdir=.
15616 else
15617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15618 fi ;;
15619 [\\/]* | ?:[\\/]* ) # Absolute path.
15620 ac_srcdir=$srcdir$ac_dir_suffix;
15621 ac_top_srcdir=$srcdir ;;
15622 *) # Relative path.
15623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15625 esac
15627 # Do not use `cd foo && pwd` to compute absolute paths, because
15628 # the directories may not exist.
15629 case `pwd` in
15630 .) ac_abs_builddir="$ac_dir";;
15632 case "$ac_dir" in
15633 .) ac_abs_builddir=`pwd`;;
15634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15636 esac;;
15637 esac
15638 case $ac_abs_builddir in
15639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15641 case ${ac_top_builddir}. in
15642 .) ac_abs_top_builddir=$ac_abs_builddir;;
15643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15645 esac;;
15646 esac
15647 case $ac_abs_builddir in
15648 .) ac_abs_srcdir=$ac_srcdir;;
15650 case $ac_srcdir in
15651 .) ac_abs_srcdir=$ac_abs_builddir;;
15652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15654 esac;;
15655 esac
15656 case $ac_abs_builddir in
15657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15659 case $ac_top_srcdir in
15660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15663 esac;;
15664 esac
15667 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15668 echo "$as_me: executing $ac_dest commands" >&6;}
15669 case $ac_dest in
15670 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15671 # Strip MF so we end up with the name of the file.
15672 mf=`echo "$mf" | sed -e 's/:.*$//'`
15673 # Check whether this is an Automake generated Makefile or not.
15674 # We used to match only the files named `Makefile.in', but
15675 # some people rename them; so instead we look at the file content.
15676 # Grep'ing the first line is not enough: some people post-process
15677 # each Makefile.in and add a new line on top of each file to say so.
15678 # So let's grep whole file.
15679 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15680 dirpart=`(dirname "$mf") 2>/dev/null ||
15681 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15682 X"$mf" : 'X\(//\)[^/]' \| \
15683 X"$mf" : 'X\(//\)$' \| \
15684 X"$mf" : 'X\(/\)' \| \
15685 . : '\(.\)' 2>/dev/null ||
15686 echo X"$mf" |
15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15689 /^X\(\/\/\)$/{ s//\1/; q; }
15690 /^X\(\/\).*/{ s//\1/; q; }
15691 s/.*/./; q'`
15692 else
15693 continue
15695 # Extract the definition of DEPDIR, am__include, and am__quote
15696 # from the Makefile without running `make'.
15697 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15698 test -z "$DEPDIR" && continue
15699 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15700 test -z "am__include" && continue
15701 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15702 # When using ansi2knr, U may be empty or an underscore; expand it
15703 U=`sed -n 's/^U = //p' < "$mf"`
15704 # Find all dependency output files, they are included files with
15705 # $(DEPDIR) in their names. We invoke sed twice because it is the
15706 # simplest approach to changing $(DEPDIR) to its actual value in the
15707 # expansion.
15708 for file in `sed -n "
15709 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15710 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15711 # Make sure the directory exists.
15712 test -f "$dirpart/$file" && continue
15713 fdir=`(dirname "$file") 2>/dev/null ||
15714 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15715 X"$file" : 'X\(//\)[^/]' \| \
15716 X"$file" : 'X\(//\)$' \| \
15717 X"$file" : 'X\(/\)' \| \
15718 . : '\(.\)' 2>/dev/null ||
15719 echo X"$file" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15722 /^X\(\/\/\)$/{ s//\1/; q; }
15723 /^X\(\/\).*/{ s//\1/; q; }
15724 s/.*/./; q'`
15725 { if $as_mkdir_p; then
15726 mkdir -p $dirpart/$fdir
15727 else
15728 as_dir=$dirpart/$fdir
15729 as_dirs=
15730 while test ! -d "$as_dir"; do
15731 as_dirs="$as_dir $as_dirs"
15732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15734 X"$as_dir" : 'X\(//\)[^/]' \| \
15735 X"$as_dir" : 'X\(//\)$' \| \
15736 X"$as_dir" : 'X\(/\)' \| \
15737 . : '\(.\)' 2>/dev/null ||
15738 echo X"$as_dir" |
15739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15741 /^X\(\/\/\)$/{ s//\1/; q; }
15742 /^X\(\/\).*/{ s//\1/; q; }
15743 s/.*/./; q'`
15744 done
15745 test ! -n "$as_dirs" || mkdir $as_dirs
15746 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15747 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15748 { (exit 1); exit 1; }; }; }
15750 # echo "creating $dirpart/$file"
15751 echo '# dummy' > "$dirpart/$file"
15752 done
15753 done
15755 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15756 esac
15757 done
15758 _ACEOF
15760 cat >>$CONFIG_STATUS <<\_ACEOF
15762 { (exit 0); exit 0; }
15763 _ACEOF
15764 chmod +x $CONFIG_STATUS
15765 ac_clean_files=$ac_clean_files_save
15768 # configure is writing to config.log, and then calls config.status.
15769 # config.status does its own redirection, appending to config.log.
15770 # Unfortunately, on DOS this fails, as config.log is still kept open
15771 # by configure, so config.status won't be able to write to it; its
15772 # output is simply discarded. So we exec the FD to /dev/null,
15773 # effectively closing config.log, so it can be properly (re)opened and
15774 # appended to by config.status. When coming back to configure, we
15775 # need to make the FD available again.
15776 if test "$no_create" != yes; then
15777 ac_cs_success=:
15778 ac_config_status_args=
15779 test "$silent" = yes &&
15780 ac_config_status_args="$ac_config_status_args --quiet"
15781 exec 5>/dev/null
15782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15783 exec 5>>config.log
15784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15785 # would make configure fail if this is the last instruction.
15786 $ac_cs_success || { (exit 1); exit 1; }