* Makefile.am: Add ACLOCAL_AMFLAGS.
[binutils.git] / bfd / configure
blob784e6c84cc7e4050d102ef6e54e44b9c44afa099
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 PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP 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 bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
877 Binutils"
878 --with-bugurl=URL Direct users to URL to report a bug
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
892 _ACEOF
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 cd $ac_popdir
981 done
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 ac_aux_dir=
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1344 done
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1380 build=$ac_cv_build
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1402 host=$ac_cv_host
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking target system type" >&5
1409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410 if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 ac_cv_target_alias=$target_alias
1414 test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423 echo "${ECHO_T}$ac_cv_target" >&6
1424 target=$ac_cv_target
1425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 # The aliases save the names the user supplied, while $host etc.
1431 # will get canonicalized.
1432 test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1434 NONENONEs,x,x, &&
1435 program_prefix=${target_alias}-
1436 ac_ext=c
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1463 done
1464 done
1468 CC=$ac_cv_prog_CC
1469 if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1478 if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1501 done
1502 done
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1515 CC=$ac_ct_CC
1516 else
1517 CC="$ac_cv_prog_CC"
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1548 CC=$ac_cv_prog_CC
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1558 if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1581 done
1582 done
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 CC=$ac_ct_CC
1596 else
1597 CC="$ac_cv_prog_CC"
1601 if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 else
1612 ac_prog_rejected=no
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1628 done
1629 done
1631 if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1680 done
1681 done
1685 CC=$ac_cv_prog_CC
1686 if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688 echo "${ECHO_T}$CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$CC" && break
1695 done
1697 if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1722 done
1723 done
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 test -n "$ac_ct_CC" && break
1737 done
1739 CC=$ac_ct_CC
1745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&5
1747 echo "$as_me: error: no acceptable C compiler found in \$PATH
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1751 # Provide some information about the compiler.
1752 echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754 ac_compiler=`set X $ac_compile; echo $2`
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1771 cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h. */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1779 main ()
1783 return 0;
1785 _ACEOF
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1790 # of exeext.
1791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # resort.
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 ac_cv_exeext=
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1813 conftest.$ac_ext )
1814 # This is the source file.
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 # `rm'.
1897 for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906 done
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1915 rm -f conftest$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1919 rm -f conftest.$ac_ext
1920 EXEEXT=$ac_cv_exeext
1921 ac_exeext=$EXEEXT
1922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924 if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 cat >conftest.$ac_ext <<_ACEOF
1928 /* confdefs.h. */
1929 _ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1935 main ()
1939 return 0;
1941 _ACEOF
1942 rm -f conftest.o conftest.obj
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954 done
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969 echo "${ECHO_T}$ac_cv_objext" >&6
1970 OBJEXT=$ac_cv_objext
1971 ac_objext=$OBJEXT
1972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1985 main ()
1987 #ifndef __GNUC__
1988 choke me
1989 #endif
1992 return 0;
1994 _ACEOF
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_compiler_gnu=no
2024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030 GCC=`test $ac_compiler_gnu = yes && echo yes`
2031 ac_test_CFLAGS=${CFLAGS+set}
2032 ac_save_CFLAGS=$CFLAGS
2033 CFLAGS="-g"
2034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2047 main ()
2051 return 0;
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2081 ac_cv_prog_cc_g=no
2083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2095 else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_cv_prog_cc_stdc=no
2108 ac_save_CC=$CC
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h. */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2115 #include <stdarg.h>
2116 #include <stdio.h>
2117 #include <sys/types.h>
2118 #include <sys/stat.h>
2119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120 struct buf { int x; };
2121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122 static char *e (p, i)
2123 char **p;
2124 int i;
2126 return p[i];
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 int argc;
2152 char **argv;
2154 main ()
2156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2158 return 0;
2160 _ACEOF
2161 # Don't try gcc -ansi; that turns off useful extensions and
2162 # breaks some systems' header files.
2163 # AIX -qlanglvl=ansi
2164 # Ultrix and OSF/1 -std1
2165 # HP-UX 10.20 and later -Ae
2166 # HP-UX older versions -Aa -D_HPUX_SOURCE
2167 # SVR4 -Xc -D__EXTENSIONS__
2168 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194 break
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2200 rm -f conftest.err conftest.$ac_objext
2201 done
2202 rm -f conftest.$ac_ext conftest.$ac_objext
2203 CC=$ac_save_CC
2207 case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 esac
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223 choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 $ac_declaration
2263 #include <stdlib.h>
2265 main ()
2267 exit (42);
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 continue
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 $ac_declaration
2310 main ()
2312 exit (42);
2314 return 0;
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 rm -f conftest*
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369 if test "${ac_cv_search_strerror+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 ac_func_search_save_LIBS=$LIBS
2373 ac_cv_search_strerror=no
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 #ifdef __cplusplus
2383 extern "C"
2384 #endif
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387 char strerror ();
2389 main ()
2391 strerror ();
2393 return 0;
2395 _ACEOF
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_search_strerror="none required"
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426 if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 #ifdef __cplusplus
2438 extern "C"
2439 #endif
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442 char strerror ();
2444 main ()
2446 strerror ();
2448 return 0;
2450 _ACEOF
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474 break
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
2484 LIBS=$ac_func_search_save_LIBS
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2494 am__api_version="1.9"
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2510 if test -z "$INSTALL"; then
2511 if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520 case $as_dir/ in
2521 ./ | .// | /cC/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 /usr/ucb/* ) ;;
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2540 else
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2545 done
2546 done
2548 esac
2549 done
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. We don't cache a
2557 # path for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the path is relative.
2560 INSTALL=$ac_install_sh
2563 echo "$as_me:$LINENO: result: $INSTALL" >&5
2564 echo "${ECHO_T}$INSTALL" >&6
2566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567 # It thinks the first close brace ends the variable substitution.
2568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2576 # Just in case
2577 sleep 1
2578 echo timestamp > conftest.file
2579 # Do `set' in a subshell so we don't clobber the current shell's
2580 # arguments. Must try -L first in case configure is actually a
2581 # symlink; some systems play weird games with the mod time of symlinks
2582 # (eg FreeBSD returns the mod time of the symlink's containing
2583 # directory).
2584 if (
2585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2586 if test "$*" = "X"; then
2587 # -L didn't work.
2588 set X `ls -t $srcdir/configure conftest.file`
2590 rm -f conftest.file
2591 if test "$*" != "X $srcdir/configure conftest.file" \
2592 && test "$*" != "X conftest.file $srcdir/configure"; then
2594 # If neither matched, then we have a broken ls. This can happen
2595 # if, for instance, CONFIG_SHELL is bash and it inherits a
2596 # broken ls alias from the environment. This has actually
2597 # happened. Such a system could not be considered "sane".
2598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&5
2600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2601 alias in your environment" >&2;}
2602 { (exit 1); exit 1; }; }
2605 test "$2" = conftest.file
2607 then
2608 # Ok.
2610 else
2611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2612 Check your system clock" >&5
2613 echo "$as_me: error: newly created file is older than distributed files!
2614 Check your system clock" >&2;}
2615 { (exit 1); exit 1; }; }
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619 test "$program_prefix" != NONE &&
2620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2624 # Double any \ or $. echo might interpret backslashes.
2625 # By default was `s,x,x', remove it if useless.
2626 cat <<\_ACEOF >conftest.sed
2627 s/[\\$]/&&/g;s/;s,x,x,$//
2628 _ACEOF
2629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630 rm conftest.sed
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2636 # Use eval to expand $SHELL
2637 if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639 else
2640 am_missing_run=
2641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2646 # We used to keeping the `.' as first argument, in order to
2647 # allow $(mkdir_p) to be used without argument. As in
2648 # $(mkdir_p) $(somedir)
2649 # where $(somedir) is conditionally defined. However this is wrong
2650 # for two reasons:
2651 # 1. if the package is installed by a user who cannot write `.'
2652 # make install will fail,
2653 # 2. the above comment should most certainly read
2654 # $(mkdir_p) $(DESTDIR)$(somedir)
2655 # so it does not work when $(somedir) is undefined and
2656 # $(DESTDIR) is not.
2657 # To support the latter case, we have to write
2658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2659 # so the `.' trick is pointless.
2660 mkdir_p='mkdir -p --'
2661 else
2662 # On NextStep and OpenStep, the `mkdir' command does not
2663 # recognize any option. It will interpret all options as
2664 # directories to create, and then abort because `.' already
2665 # exists.
2666 for d in ./-p ./--version;
2668 test -d $d && rmdir $d
2669 done
2670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2671 if test -f "$ac_aux_dir/mkinstalldirs"; then
2672 mkdir_p='$(mkinstalldirs)'
2673 else
2674 mkdir_p='$(install_sh) -d'
2678 for ac_prog in gawk mawk nawk awk
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_AWK+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 echo "$as_me:$LINENO: result: $AWK" >&5
2709 echo "${ECHO_T}$AWK" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2715 test -n "$AWK" && break
2716 done
2718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 cat >conftest.make <<\_ACEOF
2725 all:
2726 @echo 'ac_maketemp="$(MAKE)"'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2730 if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_${ac_make}_set=yes
2732 else
2733 eval ac_cv_prog_make_${ac_make}_set=no
2735 rm -f conftest.make
2737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2740 SET_MAKE=
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744 SET_MAKE="MAKE=${MAKE-make}"
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750 am__leading_dot=.
2751 else
2752 am__leading_dot=_
2754 rmdir .tst 2>/dev/null
2756 DEPDIR="${am__leading_dot}deps"
2758 ac_config_commands="$ac_config_commands depfiles"
2761 am_make=${MAKE-make}
2762 cat > confinc << 'END'
2763 am__doit:
2764 @echo done
2765 .PHONY: am__doit
2767 # If we don't find an include directive, just comment out the code.
2768 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770 am__include="#"
2771 am__quote=
2772 _am_result=none
2773 # First try GNU make style include.
2774 echo "include confinc" > confmf
2775 # We grep out `Entering directory' and `Leaving directory'
2776 # messages which can occur if `w' ends up in MAKEFLAGS.
2777 # In particular we don't look at `^make:' because GNU make might
2778 # be invoked under some other name (usually "gmake"), in which
2779 # case it prints its new name instead of `make'.
2780 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 am__include=include
2782 am__quote=
2783 _am_result=GNU
2785 # Now try BSD make style include.
2786 if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789 am__include=.include
2790 am__quote="\""
2791 _am_result=BSD
2796 echo "$as_me:$LINENO: result: $_am_result" >&5
2797 echo "${ECHO_T}$_am_result" >&6
2798 rm -f confinc confmf
2800 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2801 if test "${enable_dependency_tracking+set}" = set; then
2802 enableval="$enable_dependency_tracking"
2805 if test "x$enable_dependency_tracking" != xno; then
2806 am_depcomp="$ac_aux_dir/depcomp"
2807 AMDEPBACKSLASH='\'
2811 if test "x$enable_dependency_tracking" != xno; then
2812 AMDEP_TRUE=
2813 AMDEP_FALSE='#'
2814 else
2815 AMDEP_TRUE='#'
2816 AMDEP_FALSE=
2821 # test to see if srcdir already configured
2822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2823 test -f $srcdir/config.status; then
2824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2826 { (exit 1); exit 1; }; }
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2839 # Define the identity of the package.
2840 PACKAGE=bfd
2841 VERSION=2.17.50
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2853 # Some tools Automake needs.
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2871 # Installed binaries are usually stripped using `strip' when the user
2872 # run `make install-strip'. However `strip' might not be the right
2873 # tool to use in cross-compilation environments, therefore Automake
2874 # will honor the `STRIP' environment variable to overrule this program.
2875 if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2879 echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_STRIP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2903 STRIP=$ac_cv_prog_STRIP
2904 if test -n "$STRIP"; then
2905 echo "$as_me:$LINENO: result: $STRIP" >&5
2906 echo "${ECHO_T}$STRIP" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2936 done
2937 done
2939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2945 echo "${ECHO_T}$ac_ct_STRIP" >&6
2946 else
2947 echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6
2951 STRIP=$ac_ct_STRIP
2952 else
2953 STRIP="$ac_cv_prog_STRIP"
2957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2959 # We need awk for the "check" target. The system "awk" is bad on
2960 # some platforms.
2961 # Always define AMTAR for backward compatibility.
2963 AMTAR=${AMTAR-"${am_missing_run}tar"}
2965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2970 depcc="$CC" am_compiler_list=
2972 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2973 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2978 # We make a subdir and do the tests there. Otherwise we can end up
2979 # making bogus files that we don't know about and never remove. For
2980 # instance it was reported that on HP-UX the gcc test will end up
2981 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # in D'.
2983 mkdir conftest.dir
2984 # Copy depcomp to subdir because otherwise we won't find it if we're
2985 # using a relative directory.
2986 cp "$am_depcomp" conftest.dir
2987 cd conftest.dir
2988 # We will build objects and dependencies in a subdirectory because
2989 # it helps to detect inapplicable dependency modes. For instance
2990 # both Tru64's cc and ICC support -MD to output dependencies as a
2991 # side effect of compilation, but ICC will put the dependencies in
2992 # the current directory while Tru64 will put them in the object
2993 # directory.
2994 mkdir sub
2996 am_cv_CC_dependencies_compiler_type=none
2997 if test "$am_compiler_list" = ""; then
2998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000 for depmode in $am_compiler_list; do
3001 # Setup a source with many dependencies, because some compilers
3002 # like to wrap large dependency lists on column 80 (with \), and
3003 # we should not choose a depcomp mode which is confused by this.
3005 # We need to recreate these files for each test, as the compiler may
3006 # overwrite some of them when testing with obscure command lines.
3007 # This happens at least with the AIX C compiler.
3008 : > sub/conftest.c
3009 for i in 1 2 3 4 5 6; do
3010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3012 # Solaris 8's {/usr,}/bin/sh.
3013 touch sub/conftst$i.h
3014 done
3015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3038 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3040 # icc doesn't choke on unknown options, it will just issue warnings
3041 # or remarks (even with -Werror). So we grep stderr for any message
3042 # that says an option was ignored or not supported.
3043 # When given -MP, icc 7.0 and 7.1 complain thusly:
3044 # icc: Command line warning: ignoring option '-M'; no argument required
3045 # The diagnosis changed in icc 8.0:
3046 # icc: Command line remark: option '-MP' not supported
3047 if (grep 'ignoring option' conftest.err ||
3048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3049 am_cv_CC_dependencies_compiler_type=$depmode
3050 break
3053 done
3055 cd ..
3056 rm -rf conftest.dir
3057 else
3058 am_cv_CC_dependencies_compiler_type=none
3062 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3063 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
3073 else
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ar; ac_word=$2
3084 echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_AR+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -n "$AR"; then
3090 ac_cv_prog_AR="$AR" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3108 AR=$ac_cv_prog_AR
3109 if test -n "$AR"; then
3110 echo "$as_me:$LINENO: result: $AR" >&5
3111 echo "${ECHO_T}$AR" >&6
3112 else
3113 echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3118 if test -z "$ac_cv_prog_AR"; then
3119 ac_ct_AR=$AR
3120 # Extract the first word of "ar", so it can be a program name with args.
3121 set dummy ar; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3141 done
3142 done
3146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3147 if test -n "$ac_ct_AR"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3149 echo "${ECHO_T}$ac_ct_AR" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3155 AR=$ac_ct_AR
3156 else
3157 AR="$ac_cv_prog_AR"
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198 ac_ct_RANLIB=$RANLIB
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 RANLIB=$ac_ct_RANLIB
3236 else
3237 RANLIB="$ac_cv_prog_RANLIB"
3241 # Check whether --enable-shared or --disable-shared was given.
3242 if test "${enable_shared+set}" = set; then
3243 enableval="$enable_shared"
3244 p=${PACKAGE-default}
3245 case $enableval in
3246 yes) enable_shared=yes ;;
3247 no) enable_shared=no ;;
3249 enable_shared=no
3250 # Look at the argument we got. We use all the common list separators.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3252 for pkg in $enableval; do
3253 if test "X$pkg" = "X$p"; then
3254 enable_shared=yes
3256 done
3257 IFS="$ac_save_ifs"
3259 esac
3260 else
3261 enable_shared=no
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272 echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 echo "$as_me:$LINENO: result: $CC" >&5
3299 echo "${ECHO_T}$CC" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3306 if test -z "$ac_cv_prog_CC"; then
3307 ac_ct_CC=$CC
3308 # Extract the first word of "gcc", so it can be a program name with args.
3309 set dummy gcc; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_ac_ct_CC="gcc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3337 echo "${ECHO_T}$ac_ct_CC" >&6
3338 else
3339 echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3343 CC=$ac_ct_CC
3344 else
3345 CC="$ac_cv_prog_CC"
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_CC+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3371 done
3372 done
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378 echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6
3380 else
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3386 if test -z "$ac_cv_prog_CC"; then
3387 ac_ct_CC=$CC
3388 # Extract the first word of "cc", so it can be a program name with args.
3389 set dummy cc; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="cc"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3417 echo "${ECHO_T}$ac_ct_CC" >&6
3418 else
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 CC=$ac_ct_CC
3424 else
3425 CC="$ac_cv_prog_CC"
3429 if test -z "$CC"; then
3430 # Extract the first word of "cc", so it can be a program name with args.
3431 set dummy cc; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_CC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 ac_prog_rejected=no
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected=yes
3450 continue
3452 ac_cv_prog_CC="cc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3462 shift
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3467 shift
3468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3483 if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 for ac_prog in cl
3487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489 echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491 if test "${ac_cv_prog_CC+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3508 done
3509 done
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 echo "$as_me:$LINENO: result: $CC" >&5
3516 echo "${ECHO_T}$CC" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3522 test -n "$CC" && break
3523 done
3525 if test -z "$CC"; then
3526 ac_ct_CC=$CC
3527 for ac_prog in cl
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_ac_ct_CC="$ac_prog"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3550 done
3551 done
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3558 echo "${ECHO_T}$ac_ct_CC" >&6
3559 else
3560 echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3564 test -n "$ac_ct_CC" && break
3565 done
3567 CC=$ac_ct_CC
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO:" \
3581 "checking for C compiler version" >&5
3582 ac_compiler=`set X $ac_compile; echo $2`
3583 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3584 (eval $ac_compiler --version </dev/null >&5) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }
3588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3589 (eval $ac_compiler -v </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3594 (eval $ac_compiler -V </dev/null >&5) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3599 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3600 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3601 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3612 main ()
3614 #ifndef __GNUC__
3615 choke me
3616 #endif
3619 return 0;
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_compiler_gnu=yes
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_compiler_gnu=no
3651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3655 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3656 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3657 GCC=`test $ac_compiler_gnu = yes && echo yes`
3658 ac_test_CFLAGS=${CFLAGS+set}
3659 ac_save_CFLAGS=$CFLAGS
3660 CFLAGS="-g"
3661 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3662 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3663 if test "${ac_cv_prog_cc_g+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3674 main ()
3678 return 0;
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_prog_cc_g=yes
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_prog_cc_g=no
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3718 CFLAGS="-g -O2"
3719 else
3720 CFLAGS="-g"
3722 else
3723 if test "$GCC" = yes; then
3724 CFLAGS="-O2"
3725 else
3726 CFLAGS=
3729 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3730 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3731 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 ac_cv_prog_cc_stdc=no
3735 ac_save_CC=$CC
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750 char **p;
3751 int i;
3753 return p[i];
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std1 is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std1. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774 int test (int i, double x);
3775 struct s1 {int (*f) (int a);};
3776 struct s2 {int (*f) (double a);};
3777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 int argc;
3779 char **argv;
3781 main ()
3783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3785 return 0;
3787 _ACEOF
3788 # Don't try gcc -ansi; that turns off useful extensions and
3789 # breaks some systems' header files.
3790 # AIX -qlanglvl=ansi
3791 # Ultrix and OSF/1 -std1
3792 # HP-UX 10.20 and later -Ae
3793 # HP-UX older versions -Aa -D_HPUX_SOURCE
3794 # SVR4 -Xc -D__EXTENSIONS__
3795 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 CC="$ac_save_CC $ac_arg"
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_cv_prog_cc_stdc=$ac_arg
3821 break
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3827 rm -f conftest.err conftest.$ac_objext
3828 done
3829 rm -f conftest.$ac_ext conftest.$ac_objext
3830 CC=$ac_save_CC
3834 case "x$ac_cv_prog_cc_stdc" in
3835 x|xno)
3836 echo "$as_me:$LINENO: result: none needed" >&5
3837 echo "${ECHO_T}none needed" >&6 ;;
3839 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3840 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3841 CC="$CC $ac_cv_prog_cc_stdc" ;;
3842 esac
3844 # Some people use a C++ compiler to compile C. Since we use `exit',
3845 # in C++ we need to declare it. In case someone uses the same compiler
3846 # for both compiling C and C++ we need to have the C++ compiler decide
3847 # the declaration of exit, since it's the most demanding environment.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #ifndef __cplusplus
3850 choke me
3851 #endif
3852 _ACEOF
3853 rm -f conftest.$ac_objext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 for ac_declaration in \
3876 '' \
3877 'extern "C" void std::exit (int) throw (); using std::exit;' \
3878 'extern "C" void std::exit (int); using std::exit;' \
3879 'extern "C" void exit (int) throw ();' \
3880 'extern "C" void exit (int);' \
3881 'void exit (int);'
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 $ac_declaration
3890 #include <stdlib.h>
3892 main ()
3894 exit (42);
3896 return 0;
3898 _ACEOF
3899 rm -f conftest.$ac_objext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -z "$ac_c_werror_flag"
3909 || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest.$ac_objext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 continue
3928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 $ac_declaration
3937 main ()
3939 exit (42);
3941 return 0;
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try='test -z "$ac_c_werror_flag"
3954 || test ! -s conftest.err'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest.$ac_objext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 break
3967 else
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3973 done
3974 rm -f conftest*
3975 if test -n "$ac_declaration"; then
3976 echo '#ifdef __cplusplus' >>confdefs.h
3977 echo $ac_declaration >>confdefs.h
3978 echo '#endif' >>confdefs.h
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 cat >>confdefs.h <<\_ACEOF
3995 #define _GNU_SOURCE 1
3996 _ACEOF
4000 # Check whether --enable-static or --disable-static was given.
4001 if test "${enable_static+set}" = set; then
4002 enableval="$enable_static"
4003 p=${PACKAGE-default}
4004 case $enableval in
4005 yes) enable_static=yes ;;
4006 no) enable_static=no ;;
4008 enable_static=no
4009 # Look at the argument we got. We use all the common list separators.
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4011 for pkg in $enableval; do
4012 if test "X$pkg" = "X$p"; then
4013 enable_static=yes
4015 done
4016 IFS="$ac_save_ifs"
4018 esac
4019 else
4020 enable_static=yes
4022 # Check whether --enable-fast-install or --disable-fast-install was given.
4023 if test "${enable_fast_install+set}" = set; then
4024 enableval="$enable_fast_install"
4025 p=${PACKAGE-default}
4026 case $enableval in
4027 yes) enable_fast_install=yes ;;
4028 no) enable_fast_install=no ;;
4030 enable_fast_install=no
4031 # Look at the argument we got. We use all the common list separators.
4032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4033 for pkg in $enableval; do
4034 if test "X$pkg" = "X$p"; then
4035 enable_fast_install=yes
4037 done
4038 IFS="$ac_save_ifs"
4040 esac
4041 else
4042 enable_fast_install=yes
4045 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4046 if test "${with_gnu_ld+set}" = set; then
4047 withval="$with_gnu_ld"
4048 test "$withval" = no || with_gnu_ld=yes
4049 else
4050 with_gnu_ld=no
4052 ac_prog=ld
4053 if test "$GCC" = yes; then
4054 # Check if gcc -print-prog-name=ld gives a path.
4055 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4056 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4057 case $host in
4058 *-*-mingw*)
4059 # gcc leaves a trailing carriage return which upsets mingw
4060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4063 esac
4064 case $ac_prog in
4065 # Accept absolute paths.
4066 [\\/]* | [A-Za-z]:[\\/]*)
4067 re_direlt='/[^/][^/]*/\.\./'
4068 # Canonicalize the path of ld
4069 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4071 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4072 done
4073 test -z "$LD" && LD="$ac_prog"
4076 # If it fails, then pretend we aren't using GCC.
4077 ac_prog=ld
4080 # If it is relative, then search for the first ld in PATH.
4081 with_gnu_ld=unknown
4083 esac
4084 elif test "$with_gnu_ld" = yes; then
4085 echo "$as_me:$LINENO: checking for GNU ld" >&5
4086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4087 else
4088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4091 if test "${lt_cv_path_LD+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 if test -z "$LD"; then
4095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4096 for ac_dir in $PATH; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099 lt_cv_path_LD="$ac_dir/$ac_prog"
4100 # Check to see if the program is GNU ld. I'd rather use --version,
4101 # but apparently some GNU ld's only accept -v.
4102 # Break only if it was the GNU/non-GNU ld that we prefer.
4103 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4104 test "$with_gnu_ld" != no && break
4105 else
4106 test "$with_gnu_ld" != yes && break
4109 done
4110 IFS="$ac_save_ifs"
4111 else
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4116 LD="$lt_cv_path_LD"
4117 if test -n "$LD"; then
4118 echo "$as_me:$LINENO: result: $LD" >&5
4119 echo "${ECHO_T}$LD" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4124 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126 { (exit 1); exit 1; }; }
4127 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4129 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4133 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4134 lt_cv_prog_gnu_ld=yes
4135 else
4136 lt_cv_prog_gnu_ld=no
4139 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4140 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4141 with_gnu_ld=$lt_cv_prog_gnu_ld
4144 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4145 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4146 if test "${lt_cv_ld_reload_flag+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 lt_cv_ld_reload_flag='-r'
4151 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4152 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4153 reload_flag=$lt_cv_ld_reload_flag
4154 test -n "$reload_flag" && reload_flag=" $reload_flag"
4156 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4157 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4158 if test "${lt_cv_path_NM+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -n "$NM"; then
4162 # Let the user override the test.
4163 lt_cv_path_NM="$NM"
4164 else
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4167 test -z "$ac_dir" && ac_dir=.
4168 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4169 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4170 # Check to see if the nm accepts a BSD-compat flag.
4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4172 # nm: unknown option "B" ignored
4173 # Tru64's nm complains that /dev/null is an invalid object file
4174 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4175 lt_cv_path_NM="$tmp_nm -B"
4176 break
4177 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4178 lt_cv_path_NM="$tmp_nm -p"
4179 break
4180 else
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4182 continue # so that we can try to find one that supports BSD flags
4185 done
4186 IFS="$ac_save_ifs"
4187 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4191 NM="$lt_cv_path_NM"
4192 echo "$as_me:$LINENO: result: $NM" >&5
4193 echo "${ECHO_T}$NM" >&6
4195 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4196 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4197 LN_S=$as_ln_s
4198 if test "$LN_S" = "ln -s"; then
4199 echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6
4201 else
4202 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4203 echo "${ECHO_T}no, using $LN_S" >&6
4206 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4207 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4208 if test "${lt_cv_deplibs_check_method+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 lt_cv_file_magic_cmd='$MAGIC_CMD'
4212 lt_cv_file_magic_test_file=
4213 lt_cv_deplibs_check_method='unknown'
4214 # Need to set the preceding variable on all platforms that support
4215 # interlibrary dependencies.
4216 # 'none' -- dependencies not supported.
4217 # `unknown' -- same as none, but documents that we really don't know.
4218 # 'pass_all' -- all dependencies passed with no checks.
4219 # 'test_compile' -- check by making test program.
4220 # 'file_magic [regex]' -- check by looking for files in library path
4221 # which responds to the $file_magic_cmd with a given egrep regex.
4222 # If you have `file' or equivalent on your system and you're not sure
4223 # whether `pass_all' will *always* work, you probably want this one.
4225 case $host_os in
4226 aix*)
4227 lt_cv_deplibs_check_method=pass_all
4230 beos*)
4231 lt_cv_deplibs_check_method=pass_all
4234 bsdi4*)
4235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4237 lt_cv_file_magic_test_file=/shlib/libc.so
4240 cygwin* | mingw* |pw32*)
4241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4242 lt_cv_file_magic_cmd='$OBJDUMP -f'
4245 darwin* | rhapsody*)
4246 # this will be overwritten by pass_all, but leave it in just in case
4247 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4248 lt_cv_file_magic_cmd='/usr/bin/file -L'
4249 case "$host_os" in
4250 rhapsody* | darwin1.012)
4251 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4253 *) # Darwin 1.3 on
4254 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4256 esac
4257 lt_cv_deplibs_check_method=pass_all
4260 freebsd* | kfreebsd*-gnu)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 case $host_cpu in
4263 i*86 )
4264 # Not sure whether the presence of OpenBSD here was a mistake.
4265 # Let's accept both of them until this is cleared up.
4266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4270 esac
4271 else
4272 lt_cv_deplibs_check_method=pass_all
4276 gnu*)
4277 lt_cv_deplibs_check_method=pass_all
4280 hpux10.20*|hpux11*)
4281 case $host_cpu in
4282 hppa*)
4283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4287 ia64*)
4288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4292 esac
4295 irix5* | irix6*)
4296 case $host_os in
4297 irix5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 # this will be overridden with pass_all, but let us keep it just in case
4309 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4311 esac
4312 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4313 lt_cv_deplibs_check_method=pass_all
4316 # This must be Linux ELF.
4317 linux-gnu*)
4318 lt_cv_deplibs_check_method=pass_all
4321 netbsd* | knetbsd*-gnu)
4322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4324 else
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4329 newsos6)
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4335 osf3* | osf4* | osf5*)
4336 # this will be overridden with pass_all, but let us keep it just in case
4337 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4338 lt_cv_file_magic_test_file=/shlib/libc.so
4339 lt_cv_deplibs_check_method=pass_all
4342 sco3.2v5*)
4343 lt_cv_deplibs_check_method=pass_all
4346 solaris*)
4347 lt_cv_deplibs_check_method=pass_all
4348 lt_cv_file_magic_test_file=/lib/libc.so
4351 sysv5uw[78]* | sysv4*uw2*)
4352 lt_cv_deplibs_check_method=pass_all
4355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4356 case $host_vendor in
4357 ncr)
4358 lt_cv_deplibs_check_method=pass_all
4360 motorola)
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4364 esac
4366 esac
4369 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4370 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4371 file_magic_cmd=$lt_cv_file_magic_cmd
4372 deplibs_check_method=$lt_cv_deplibs_check_method
4377 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4379 # find the maximum length of command line arguments
4380 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4381 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4382 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4386 teststring="ABCD"
4388 case $build_os in
4389 msdosdjgpp*)
4390 # On DJGPP, this test can blow up pretty badly due to problems in libc
4391 # (any single argument exceeding 2000 bytes causes a buffer overrun
4392 # during glob expansion). Even if it were fixed, the result of this
4393 # check would be larger than it should be.
4394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4397 cygwin* | mingw*)
4398 # On Win9x/ME, this test blows up -- it succeeds, but takes
4399 # about 5 minutes as the teststring grows exponentially.
4400 # Worse, since 9x/ME are not pre-emptively multitasking,
4401 # you end up with a "frozen" computer, even though with patience
4402 # the test eventually succeeds (with a max line length of 256k).
4403 # Instead, let's just punt: use the minimum linelength reported by
4404 # all of the supported platforms: 8192 (on NT/2K/XP).
4405 lt_cv_sys_max_cmd_len=8192;
4408 amigaos*)
4409 # On AmigaOS with pdksh, this test takes hours, literally.
4410 # So we just punt and use a minimum line length of 8192.
4411 lt_cv_sys_max_cmd_len=8192;
4414 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4415 # This has been around since 386BSD, at least. Likely further.
4416 if test -x /sbin/sysctl; then
4417 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4418 elif test -x /usr/sbin/sysctl; then
4419 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4420 else
4421 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4423 # And add a safety zone
4424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4427 esac
4431 if test -n "$lt_cv_sys_max_cmd_len" ; then
4432 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4433 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4434 else
4435 echo "$as_me:$LINENO: result: none" >&5
4436 echo "${ECHO_T}none" >&6
4440 # Only perform the check for file, if the check method requires it
4441 case $deplibs_check_method in
4442 file_magic*)
4443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4444 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4445 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 case $MAGIC_CMD in
4451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4453 ?:/*)
4454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4457 ac_save_MAGIC_CMD="$MAGIC_CMD"
4458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4459 ac_dummy="/usr/bin:$PATH"
4460 for ac_dir in $ac_dummy; do
4461 test -z "$ac_dir" && ac_dir=.
4462 if test -f $ac_dir/${ac_tool_prefix}file; then
4463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4464 if test -n "$file_magic_test_file"; then
4465 case $deplibs_check_method in
4466 "file_magic "*)
4467 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4470 egrep "$file_magic_regex" > /dev/null; then
4472 else
4473 cat <<EOF 1>&2
4475 *** Warning: the command libtool uses to detect shared libraries,
4476 *** $file_magic_cmd, produces output that libtool cannot recognize.
4477 *** The result is that libtool may fail to recognize shared libraries
4478 *** as such. This will affect the creation of libtool libraries that
4479 *** depend on shared libraries, but programs linked with such libtool
4480 *** libraries will work regardless of this problem. Nevertheless, you
4481 *** may want to report the problem to your system manager and/or to
4482 *** bug-libtool@gnu.org
4485 fi ;;
4486 esac
4488 break
4490 done
4491 IFS="$ac_save_ifs"
4492 MAGIC_CMD="$ac_save_MAGIC_CMD"
4494 esac
4497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4498 if test -n "$MAGIC_CMD"; then
4499 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4500 echo "${ECHO_T}$MAGIC_CMD" >&6
4501 else
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 if test -z "$lt_cv_path_MAGIC_CMD"; then
4507 if test -n "$ac_tool_prefix"; then
4508 echo "$as_me:$LINENO: checking for file" >&5
4509 echo $ECHO_N "checking for file... $ECHO_C" >&6
4510 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 case $MAGIC_CMD in
4515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4517 ?:/*)
4518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4521 ac_save_MAGIC_CMD="$MAGIC_CMD"
4522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4523 ac_dummy="/usr/bin:$PATH"
4524 for ac_dir in $ac_dummy; do
4525 test -z "$ac_dir" && ac_dir=.
4526 if test -f $ac_dir/file; then
4527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4528 if test -n "$file_magic_test_file"; then
4529 case $deplibs_check_method in
4530 "file_magic "*)
4531 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4534 egrep "$file_magic_regex" > /dev/null; then
4536 else
4537 cat <<EOF 1>&2
4539 *** Warning: the command libtool uses to detect shared libraries,
4540 *** $file_magic_cmd, produces output that libtool cannot recognize.
4541 *** The result is that libtool may fail to recognize shared libraries
4542 *** as such. This will affect the creation of libtool libraries that
4543 *** depend on shared libraries, but programs linked with such libtool
4544 *** libraries will work regardless of this problem. Nevertheless, you
4545 *** may want to report the problem to your system manager and/or to
4546 *** bug-libtool@gnu.org
4549 fi ;;
4550 esac
4552 break
4554 done
4555 IFS="$ac_save_ifs"
4556 MAGIC_CMD="$ac_save_MAGIC_CMD"
4558 esac
4561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4562 if test -n "$MAGIC_CMD"; then
4563 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4564 echo "${ECHO_T}$MAGIC_CMD" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 else
4571 MAGIC_CMD=:
4577 esac
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_prog_RANLIB+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -n "$RANLIB"; then
4588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608 echo "$as_me:$LINENO: result: $RANLIB" >&5
4609 echo "${ECHO_T}$RANLIB" >&6
4610 else
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4616 if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619 set dummy ranlib; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_ac_ct_RANLIB="ranlib"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4642 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646 if test -n "$ac_ct_RANLIB"; then
4647 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4654 RANLIB=$ac_ct_RANLIB
4655 else
4656 RANLIB="$ac_cv_prog_RANLIB"
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}strip; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_prog_STRIP+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$STRIP"; then
4668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4686 STRIP=$ac_cv_prog_STRIP
4687 if test -n "$STRIP"; then
4688 echo "$as_me:$LINENO: result: $STRIP" >&5
4689 echo "${ECHO_T}$STRIP" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4696 if test -z "$ac_cv_prog_STRIP"; then
4697 ac_ct_STRIP=$STRIP
4698 # Extract the first word of "strip", so it can be a program name with args.
4699 set dummy strip; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 if test -n "$ac_ct_STRIP"; then
4706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_prog_ac_ct_STRIP="strip"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4722 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4726 if test -n "$ac_ct_STRIP"; then
4727 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4728 echo "${ECHO_T}$ac_ct_STRIP" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4734 STRIP=$ac_ct_STRIP
4735 else
4736 STRIP="$ac_cv_prog_STRIP"
4740 # Check for any special flags to pass to ltconfig.
4741 libtool_flags="--cache-file=$cache_file"
4742 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4743 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4744 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4745 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4746 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4749 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4750 if test "${enable_libtool_lock+set}" = set; then
4751 enableval="$enable_libtool_lock"
4754 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4755 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4758 # Check whether --with-pic or --without-pic was given.
4759 if test "${with_pic+set}" = set; then
4760 withval="$with_pic"
4761 pic_mode="$withval"
4762 else
4763 pic_mode=default
4765 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4766 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4768 # Some flags need to be propagated to the compiler or linker for good
4769 # libtool support.
4770 case $host in
4771 *-*-irix6*)
4772 # Find out which ABI we are using.
4773 echo '#line 4773 "configure"' > conftest.$ac_ext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; then
4779 if test "$lt_cv_prog_gnu_ld" = yes; then
4780 case `/usr/bin/file conftest.$ac_objext` in
4781 *32-bit*)
4782 LD="${LD-ld} -melf32bsmip"
4784 *N32*)
4785 LD="${LD-ld} -melf32bmipn32"
4787 *64-bit*)
4788 LD="${LD-ld} -melf64bmip"
4790 esac
4791 else
4792 case `/usr/bin/file conftest.$ac_objext` in
4793 *32-bit*)
4794 LD="${LD-ld} -32"
4796 *N32*)
4797 LD="${LD-ld} -n32"
4799 *64-bit*)
4800 LD="${LD-ld} -64"
4802 esac
4805 rm -rf conftest*
4808 ia64-*-hpux*)
4809 # Find out which ABI we are using.
4810 echo 'int i;' > conftest.$ac_ext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; then
4816 case "`/usr/bin/file conftest.o`" in
4817 *ELF-32*)
4818 HPUX_IA64_MODE="32"
4820 *ELF-64*)
4821 HPUX_IA64_MODE="64"
4823 esac
4825 rm -rf conftest*
4828 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4829 # Find out which ABI we are using.
4830 echo 'int i;' > conftest.$ac_ext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; then
4836 case "`/usr/bin/file conftest.o`" in
4837 *32-bit*)
4838 case $host in
4839 x86_64-*linux*)
4840 LD="${LD-ld} -m elf_i386"
4842 ppc64-*linux*|powerpc64-*linux*)
4843 LD="${LD-ld} -m elf32ppclinux"
4845 s390x-*linux*)
4846 LD="${LD-ld} -m elf_s390"
4848 sparc64-*linux*)
4849 LD="${LD-ld} -m elf32_sparc"
4851 esac
4853 *64-bit*)
4854 case $host in
4855 x86_64-*linux*)
4856 LD="${LD-ld} -m elf_x86_64"
4858 ppc*-*linux*|powerpc*-*linux*)
4859 LD="${LD-ld} -m elf64ppc"
4861 s390*-*linux*)
4862 LD="${LD-ld} -m elf64_s390"
4864 sparc*-*linux*)
4865 LD="${LD-ld} -m elf64_sparc"
4867 esac
4869 esac
4871 rm -rf conftest*
4874 *-*-sco3.2v5*)
4875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4876 SAVE_CFLAGS="$CFLAGS"
4877 CFLAGS="$CFLAGS -belf"
4878 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4879 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4880 if test "${lt_cv_cc_needs_belf+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4899 main ()
4903 return 0;
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest$ac_exeext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 lt_cv_cc_needs_belf=yes
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 lt_cv_cc_needs_belf=no
4935 rm -f conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937 ac_ext=c
4938 ac_cpp='$CPP $CPPFLAGS'
4939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4945 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4946 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4948 CFLAGS="$SAVE_CFLAGS"
4953 esac
4956 # Save cache, so that ltconfig can load it
4957 cat >confcache <<\_ACEOF
4958 # This file is a shell script that caches the results of configure
4959 # tests run on this system so they can be shared between configure
4960 # scripts and configure runs, see configure's option --config-cache.
4961 # It is not useful on other systems. If it contains results you don't
4962 # want to keep, you may remove or edit it.
4964 # config.status only pays attention to the cache file if you give it
4965 # the --recheck option to rerun configure.
4967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4969 # following values.
4971 _ACEOF
4973 # The following way of writing the cache mishandles newlines in values,
4974 # but we know of no workaround that is simple, portable, and efficient.
4975 # So, don't put newlines in cache variables' values.
4976 # Ultrix sh set writes to stderr and can't be redirected directly,
4977 # and sets the high bit in the cache file unless we assign to the vars.
4979 (set) 2>&1 |
4980 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4981 *ac_space=\ *)
4982 # `set' does not quote correctly, so add quotes (double-quote
4983 # substitution turns \\\\ into \\, and sed turns \\ into \).
4984 sed -n \
4985 "s/'/'\\\\''/g;
4986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4989 # `set' quotes correctly as required by POSIX, so do not add quotes.
4990 sed -n \
4991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4993 esac;
4995 sed '
4996 t clear
4997 : clear
4998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4999 t end
5000 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5001 : end' >>confcache
5002 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5003 if test -w $cache_file; then
5004 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5005 cat confcache >$cache_file
5006 else
5007 echo "not updating unwritable cache $cache_file"
5010 rm -f confcache
5012 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5013 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5014 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5015 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5016 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5017 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5018 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5019 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5020 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5021 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5022 echo "$as_me: error: libtool configure failed" >&2;}
5023 { (exit 1); exit 1; }; }
5025 # Reload cache, that may have been modified by ltconfig
5026 if test -r "$cache_file"; then
5027 # Some versions of bash will fail to source /dev/null (special
5028 # files actually), so we avoid doing that.
5029 if test -f "$cache_file"; then
5030 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5031 echo "$as_me: loading cache $cache_file" >&6;}
5032 case $cache_file in
5033 [\\/]* | ?:[\\/]* ) . $cache_file;;
5034 *) . ./$cache_file;;
5035 esac
5037 else
5038 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5039 echo "$as_me: creating cache $cache_file" >&6;}
5040 >$cache_file
5044 # This can be used to rebuild libtool when needed
5045 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5047 # Always use our own libtool.
5048 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5050 # Redirect the config.log output again, so that the ltconfig log is not
5051 # clobbered by the next message.
5052 exec 5>>./config.log
5060 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
5061 if test "${enable_64_bit_bfd+set}" = set; then
5062 enableval="$enable_64_bit_bfd"
5063 case "${enableval}" in
5064 yes) want64=true ;;
5065 no) want64=false ;;
5066 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
5067 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
5068 { (exit 1); exit 1; }; } ;;
5069 esac
5070 else
5071 want64=false
5072 fi; # Check whether --enable-targets or --disable-targets was given.
5073 if test "${enable_targets+set}" = set; then
5074 enableval="$enable_targets"
5075 case "${enableval}" in
5076 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
5077 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
5078 { (exit 1); exit 1; }; }
5080 no) enable_targets= ;;
5081 *) enable_targets=$enableval ;;
5082 esac
5083 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
5084 if test "${enable_commonbfdlib+set}" = set; then
5085 enableval="$enable_commonbfdlib"
5086 case "${enableval}" in
5087 yes) commonbfdlib=true ;;
5088 no) commonbfdlib=false ;;
5089 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
5090 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092 esac
5094 # Check whether --with-mmap or --without-mmap was given.
5095 if test "${with_mmap+set}" = set; then
5096 withval="$with_mmap"
5097 case "${withval}" in
5098 yes) want_mmap=true ;;
5099 no) want_mmap=false ;;
5100 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
5101 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac
5104 else
5105 want_mmap=false
5107 # Check whether --enable-secureplt or --disable-secureplt was given.
5108 if test "${enable_secureplt+set}" = set; then
5109 enableval="$enable_secureplt"
5110 case "${enableval}" in
5111 yes) use_secureplt=true ;;
5112 no) use_secureplt=false ;;
5113 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
5114 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5116 esac
5117 else
5118 use_secureplt=false
5119 fi; if test $use_secureplt = true; then
5121 cat >>confdefs.h <<\_ACEOF
5122 #define USE_SECUREPLT 1
5123 _ACEOF
5129 # Check whether --with-pkgversion or --without-pkgversion was given.
5130 if test "${with_pkgversion+set}" = set; then
5131 withval="$with_pkgversion"
5132 case "$withval" in
5133 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
5134 echo "$as_me: error: package version not specified" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5136 no) PKGVERSION= ;;
5137 *) PKGVERSION="($withval) " ;;
5138 esac
5139 else
5140 PKGVERSION="(GNU Binutils) "
5147 # Check whether --with-bugurl or --without-bugurl was given.
5148 if test "${with_bugurl+set}" = set; then
5149 withval="$with_bugurl"
5150 case "$withval" in
5151 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
5152 echo "$as_me: error: bug URL not specified" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154 no) BUGURL=
5156 *) BUGURL="$withval"
5158 esac
5159 else
5160 BUGURL="http://www.sourceware.org/bugzilla/"
5163 case ${BUGURL} in
5165 REPORT_BUGS_TO=
5166 REPORT_BUGS_TEXI=
5169 REPORT_BUGS_TO="<$BUGURL>"
5170 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5172 esac;
5178 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
5180 # Check whether --enable-werror or --disable-werror was given.
5181 if test "${enable_werror+set}" = set; then
5182 enableval="$enable_werror"
5183 case "${enableval}" in
5184 yes | y) ERROR_ON_WARNING="yes" ;;
5185 no | n) ERROR_ON_WARNING="no" ;;
5186 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
5187 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5189 esac
5192 # Enable -Werror by default when using gcc
5193 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5194 ERROR_ON_WARNING=yes
5197 NO_WERROR=
5198 if test "${ERROR_ON_WARNING}" = yes ; then
5199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
5200 NO_WERROR="-Wno-error"
5203 if test "${GCC}" = yes ; then
5204 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
5207 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5208 if test "${enable_build_warnings+set}" = set; then
5209 enableval="$enable_build_warnings"
5210 case "${enableval}" in
5211 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
5212 no) if test "${GCC}" = yes ; then
5213 WARN_CFLAGS="-w"
5214 fi;;
5215 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5216 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
5217 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5218 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
5219 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5220 esac
5223 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
5224 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
5231 ac_config_headers="$ac_config_headers config.h:config.in"
5234 if test -z "$target" ; then
5235 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
5236 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
5237 { (exit 1); exit 1; }; }
5240 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5241 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5242 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5243 if test "${enable_maintainer_mode+set}" = set; then
5244 enableval="$enable_maintainer_mode"
5245 USE_MAINTAINER_MODE=$enableval
5246 else
5247 USE_MAINTAINER_MODE=no
5249 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5250 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5253 if test $USE_MAINTAINER_MODE = yes; then
5254 MAINTAINER_MODE_TRUE=
5255 MAINTAINER_MODE_FALSE='#'
5256 else
5257 MAINTAINER_MODE_TRUE='#'
5258 MAINTAINER_MODE_FALSE=
5261 MAINT=$MAINTAINER_MODE_TRUE
5266 if false; then
5267 GENINSRC_NEVER_TRUE=
5268 GENINSRC_NEVER_FALSE='#'
5269 else
5270 GENINSRC_NEVER_TRUE='#'
5271 GENINSRC_NEVER_FALSE=
5274 case ${build_alias} in
5275 "") build_noncanonical=${build} ;;
5276 *) build_noncanonical=${build_alias} ;;
5277 esac
5279 case ${host_alias} in
5280 "") host_noncanonical=${build_noncanonical} ;;
5281 *) host_noncanonical=${host_alias} ;;
5282 esac
5284 case ${target_alias} in
5285 "") target_noncanonical=${host_noncanonical} ;;
5286 *) target_noncanonical=${target_alias} ;;
5287 esac
5289 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
5290 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
5291 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
5292 if test "${enable_install_libbfd+set}" = set; then
5293 enableval="$enable_install_libbfd"
5294 install_libbfd_p=$enableval
5295 else
5296 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
5297 install_libbfd_p=yes
5298 else
5299 install_libbfd_p=no
5302 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
5303 echo "${ECHO_T}$install_libbfd_p" >&6
5306 if test $install_libbfd_p = yes; then
5307 INSTALL_LIBBFD_TRUE=
5308 INSTALL_LIBBFD_FALSE='#'
5309 else
5310 INSTALL_LIBBFD_TRUE='#'
5311 INSTALL_LIBBFD_FALSE=
5314 # Need _noncanonical variables for this.
5319 # libbfd.a is a host library containing target dependent code
5320 bfdlibdir='$(libdir)'
5321 bfdincludedir='$(includedir)'
5322 if test "${host}" != "${target}"; then
5323 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
5324 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
5332 host64=false
5333 target64=false
5334 bfd_default_target_size=32
5336 # host stuff:
5338 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5339 # If we haven't got the data from the intl directory,
5340 # assume NLS is disabled.
5341 USE_NLS=no
5342 LIBINTL=
5343 LIBINTL_DEP=
5344 INCINTL=
5345 XGETTEXT=
5346 GMSGFMT=
5347 POSUB=
5349 if test -f ../intl/config.intl; then
5350 . ../intl/config.intl
5352 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5353 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5354 if test x"$USE_NLS" != xyes; then
5355 echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 else
5358 echo "$as_me:$LINENO: result: yes" >&5
5359 echo "${ECHO_T}yes" >&6
5361 cat >>confdefs.h <<\_ACEOF
5362 #define ENABLE_NLS 1
5363 _ACEOF
5366 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5367 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5368 # Look for .po and .gmo files in the source directory.
5369 CATALOGS=
5370 XLINGUAS=
5371 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5372 # If there aren't any .gmo files the shell will give us the
5373 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5374 # weeded out.
5375 case "$cat" in *\**)
5376 continue;;
5377 esac
5378 # The quadruple backslash is collapsed to a double backslash
5379 # by the backticks, then collapsed again by the double quotes,
5380 # leaving us with one backslash in the sed expression (right
5381 # before the dot that mustn't act as a wildcard).
5382 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5383 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5384 # The user is allowed to set LINGUAS to a list of languages to
5385 # install catalogs for. If it's empty that means "all of them."
5386 if test "x$LINGUAS" = x; then
5387 CATALOGS="$CATALOGS $cat"
5388 XLINGUAS="$XLINGUAS $lang"
5389 else
5390 case "$LINGUAS" in *$lang*)
5391 CATALOGS="$CATALOGS $cat"
5392 XLINGUAS="$XLINGUAS $lang"
5394 esac
5396 done
5397 LINGUAS="$XLINGUAS"
5398 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5399 echo "${ECHO_T}$LINGUAS" >&6
5402 DATADIRNAME=share
5404 INSTOBJEXT=.mo
5406 GENCAT=gencat
5408 CATOBJEXT=.gmo
5412 MKINSTALLDIRS=
5413 if test -n "$ac_aux_dir"; then
5414 case "$ac_aux_dir" in
5415 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5416 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5417 esac
5419 if test -z "$MKINSTALLDIRS"; then
5420 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5425 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5426 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5427 # Check whether --enable-nls or --disable-nls was given.
5428 if test "${enable_nls+set}" = set; then
5429 enableval="$enable_nls"
5430 USE_NLS=$enableval
5431 else
5432 USE_NLS=yes
5434 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5435 echo "${ECHO_T}$USE_NLS" >&6
5442 # Prepare PATH_SEPARATOR.
5443 # The user is always right.
5444 if test "${PATH_SEPARATOR+set}" != set; then
5445 echo "#! /bin/sh" >conf$$.sh
5446 echo "exit 0" >>conf$$.sh
5447 chmod +x conf$$.sh
5448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5449 PATH_SEPARATOR=';'
5450 else
5451 PATH_SEPARATOR=:
5453 rm -f conf$$.sh
5456 # Find out how to test for executable files. Don't use a zero-byte file,
5457 # as systems may use methods other than mode bits to determine executability.
5458 cat >conf$$.file <<_ASEOF
5459 #! /bin/sh
5460 exit 0
5461 _ASEOF
5462 chmod +x conf$$.file
5463 if test -x conf$$.file >/dev/null 2>&1; then
5464 ac_executable_p="test -x"
5465 else
5466 ac_executable_p="test -f"
5468 rm -f conf$$.file
5470 # Extract the first word of "msgfmt", so it can be a program name with args.
5471 set dummy msgfmt; ac_word=$2
5472 echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474 if test "${ac_cv_path_MSGFMT+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 case "$MSGFMT" in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5482 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5483 for ac_dir in $PATH; do
5484 IFS="$ac_save_IFS"
5485 test -z "$ac_dir" && ac_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5488 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5489 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5490 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5491 break 2
5494 done
5495 done
5496 IFS="$ac_save_IFS"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5499 esac
5501 MSGFMT="$ac_cv_path_MSGFMT"
5502 if test "$MSGFMT" != ":"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504 echo "${ECHO_T}$MSGFMT" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511 set dummy gmsgfmt; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5538 esac
5540 GMSGFMT=$ac_cv_path_GMSGFMT
5542 if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544 echo "${ECHO_T}$GMSGFMT" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5552 # Prepare PATH_SEPARATOR.
5553 # The user is always right.
5554 if test "${PATH_SEPARATOR+set}" != set; then
5555 echo "#! /bin/sh" >conf$$.sh
5556 echo "exit 0" >>conf$$.sh
5557 chmod +x conf$$.sh
5558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5559 PATH_SEPARATOR=';'
5560 else
5561 PATH_SEPARATOR=:
5563 rm -f conf$$.sh
5566 # Find out how to test for executable files. Don't use a zero-byte file,
5567 # as systems may use methods other than mode bits to determine executability.
5568 cat >conf$$.file <<_ASEOF
5569 #! /bin/sh
5570 exit 0
5571 _ASEOF
5572 chmod +x conf$$.file
5573 if test -x conf$$.file >/dev/null 2>&1; then
5574 ac_executable_p="test -x"
5575 else
5576 ac_executable_p="test -f"
5578 rm -f conf$$.file
5580 # Extract the first word of "xgettext", so it can be a program name with args.
5581 set dummy xgettext; ac_word=$2
5582 echo "$as_me:$LINENO: checking for $ac_word" >&5
5583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5584 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 case "$XGETTEXT" in
5588 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5592 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5593 for ac_dir in $PATH; do
5594 IFS="$ac_save_IFS"
5595 test -z "$ac_dir" && ac_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5598 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5599 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5600 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5601 break 2
5604 done
5605 done
5606 IFS="$ac_save_IFS"
5607 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5609 esac
5611 XGETTEXT="$ac_cv_path_XGETTEXT"
5612 if test "$XGETTEXT" != ":"; then
5613 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5614 echo "${ECHO_T}$XGETTEXT" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5620 rm -f messages.po
5623 # Prepare PATH_SEPARATOR.
5624 # The user is always right.
5625 if test "${PATH_SEPARATOR+set}" != set; then
5626 echo "#! /bin/sh" >conf$$.sh
5627 echo "exit 0" >>conf$$.sh
5628 chmod +x conf$$.sh
5629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5630 PATH_SEPARATOR=';'
5631 else
5632 PATH_SEPARATOR=:
5634 rm -f conf$$.sh
5637 # Find out how to test for executable files. Don't use a zero-byte file,
5638 # as systems may use methods other than mode bits to determine executability.
5639 cat >conf$$.file <<_ASEOF
5640 #! /bin/sh
5641 exit 0
5642 _ASEOF
5643 chmod +x conf$$.file
5644 if test -x conf$$.file >/dev/null 2>&1; then
5645 ac_executable_p="test -x"
5646 else
5647 ac_executable_p="test -f"
5649 rm -f conf$$.file
5651 # Extract the first word of "msgmerge", so it can be a program name with args.
5652 set dummy msgmerge; ac_word=$2
5653 echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 case "$MSGMERGE" in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5663 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5664 for ac_dir in $PATH; do
5665 IFS="$ac_save_IFS"
5666 test -z "$ac_dir" && ac_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5669 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5670 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5671 break 2
5674 done
5675 done
5676 IFS="$ac_save_IFS"
5677 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5679 esac
5681 MSGMERGE="$ac_cv_path_MSGMERGE"
5682 if test "$MSGMERGE" != ":"; then
5683 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5684 echo "${ECHO_T}$MSGMERGE" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5691 if test "$GMSGFMT" != ":"; then
5692 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5693 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5695 else
5696 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5697 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5698 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5699 GMSGFMT=":"
5703 if test "$XGETTEXT" != ":"; then
5704 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5705 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5707 else
5708 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5709 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5710 XGETTEXT=":"
5712 rm -f messages.po
5715 ac_config_commands="$ac_config_commands default-1"
5719 # Permit host specific settings.
5720 . ${srcdir}/configure.host
5723 # Find a good install program. We prefer a C program (faster),
5724 # so one script is as good as another. But avoid the broken or
5725 # incompatible versions:
5726 # SysV /etc/install, /usr/sbin/install
5727 # SunOS /usr/etc/install
5728 # IRIX /sbin/install
5729 # AIX /bin/install
5730 # AmigaOS /C/install, which installs bootblocks on floppy discs
5731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5734 # OS/2's system install, which has a completely different semantic
5735 # ./install, which can be erroneously created by make from ./install.sh.
5736 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5737 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5738 if test -z "$INSTALL"; then
5739 if test "${ac_cv_path_install+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 # Account for people who put trailing slashes in PATH elements.
5748 case $as_dir/ in
5749 ./ | .// | /cC/* | \
5750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5752 /usr/ucb/* ) ;;
5754 # OSF1 and SCO ODT 3.0 have their own names for install.
5755 # Don't use installbsd from OSF since it installs stuff as root
5756 # by default.
5757 for ac_prog in ginstall scoinst install; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5760 if test $ac_prog = install &&
5761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5762 # AIX install. It has an incompatible calling convention.
5764 elif test $ac_prog = install &&
5765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5766 # program-specific install script used by HP pwplus--don't use.
5768 else
5769 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5770 break 3
5773 done
5774 done
5776 esac
5777 done
5781 if test "${ac_cv_path_install+set}" = set; then
5782 INSTALL=$ac_cv_path_install
5783 else
5784 # As a last resort, use the slow shell script. We don't cache a
5785 # path for INSTALL within a source directory, because that will
5786 # break other packages using the cache if that directory is
5787 # removed, or if the path is relative.
5788 INSTALL=$ac_install_sh
5791 echo "$as_me:$LINENO: result: $INSTALL" >&5
5792 echo "${ECHO_T}$INSTALL" >&6
5794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5795 # It thinks the first close brace ends the variable substitution.
5796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5803 BFD_HOST_64BIT_LONG=0
5804 BFD_HOST_LONG_LONG=0
5805 BFD_HOST_64_BIT_DEFINED=0
5806 BFD_HOST_64_BIT=
5807 BFD_HOST_U_64_BIT=
5809 echo "$as_me:$LINENO: checking for long long" >&5
5810 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5811 if test "${bfd_cv_has_long_long+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5822 main ()
5824 unsigned long long ll = 18446744073709551615ULL;
5826 return 0;
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 bfd_cv_has_long_long=yes
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 bfd_cv_has_long_long=no
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5861 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5862 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5863 if test $bfd_cv_has_long_long = yes; then
5864 BFD_HOST_LONG_LONG=1
5865 ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5872 # On Suns, sometimes $CPP names a directory.
5873 if test -n "$CPP" && test -d "$CPP"; then
5874 CPP=
5876 if test -z "$CPP"; then
5877 if test "${ac_cv_prog_CPP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 # Double quotes because CPP needs to be expanded
5881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5883 ac_preproc_ok=false
5884 for ac_c_preproc_warn_flag in '' yes
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #ifdef __STDC__
5899 # include <limits.h>
5900 #else
5901 # include <assert.h>
5902 #endif
5903 Syntax error
5904 _ACEOF
5905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null; then
5913 if test -s conftest.err; then
5914 ac_cpp_err=$ac_c_preproc_warn_flag
5915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 else
5917 ac_cpp_err=
5919 else
5920 ac_cpp_err=yes
5922 if test -z "$ac_cpp_err"; then
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 # Broken: fails on valid input.
5929 continue
5931 rm -f conftest.err conftest.$ac_ext
5933 # OK, works on sane cases. Now check whether non-existent headers
5934 # can be detected and how.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <ac_nonexistent.h>
5942 _ACEOF
5943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 else
5955 ac_cpp_err=
5957 else
5958 ac_cpp_err=yes
5960 if test -z "$ac_cpp_err"; then
5961 # Broken: success on invalid input.
5962 continue
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 # Passes both tests.
5968 ac_preproc_ok=:
5969 break
5971 rm -f conftest.err conftest.$ac_ext
5973 done
5974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975 rm -f conftest.err conftest.$ac_ext
5976 if $ac_preproc_ok; then
5977 break
5980 done
5981 ac_cv_prog_CPP=$CPP
5984 CPP=$ac_cv_prog_CPP
5985 else
5986 ac_cv_prog_CPP=$CPP
5988 echo "$as_me:$LINENO: result: $CPP" >&5
5989 echo "${ECHO_T}$CPP" >&6
5990 ac_preproc_ok=false
5991 for ac_c_preproc_warn_flag in '' yes
5993 # Use a header file that comes with gcc, so configuring glibc
5994 # with a fresh cross-compiler works.
5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996 # <limits.h> exists even on freestanding compilers.
5997 # On the NeXT, cc -E runs the code through the compiler's parser,
5998 # not just through cpp. "Syntax error" is here to catch this case.
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #ifdef __STDC__
6006 # include <limits.h>
6007 #else
6008 # include <assert.h>
6009 #endif
6010 Syntax error
6011 _ACEOF
6012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023 else
6024 ac_cpp_err=
6026 else
6027 ac_cpp_err=yes
6029 if test -z "$ac_cpp_err"; then
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 # Broken: fails on valid input.
6036 continue
6038 rm -f conftest.err conftest.$ac_ext
6040 # OK, works on sane cases. Now check whether non-existent headers
6041 # can be detected and how.
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <ac_nonexistent.h>
6049 _ACEOF
6050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null; then
6058 if test -s conftest.err; then
6059 ac_cpp_err=$ac_c_preproc_warn_flag
6060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061 else
6062 ac_cpp_err=
6064 else
6065 ac_cpp_err=yes
6067 if test -z "$ac_cpp_err"; then
6068 # Broken: success on invalid input.
6069 continue
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 # Passes both tests.
6075 ac_preproc_ok=:
6076 break
6078 rm -f conftest.err conftest.$ac_ext
6080 done
6081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6082 rm -f conftest.err conftest.$ac_ext
6083 if $ac_preproc_ok; then
6085 else
6086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6087 See \`config.log' for more details." >&5
6088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6089 See \`config.log' for more details." >&2;}
6090 { (exit 1); exit 1; }; }
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100 echo "$as_me:$LINENO: checking for egrep" >&5
6101 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6102 if test "${ac_cv_prog_egrep+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6106 then ac_cv_prog_egrep='grep -E'
6107 else ac_cv_prog_egrep='egrep'
6110 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6111 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6112 EGREP=$ac_cv_prog_egrep
6115 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6117 if test "${ac_cv_header_stdc+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <stdlib.h>
6127 #include <stdarg.h>
6128 #include <string.h>
6129 #include <float.h>
6132 main ()
6136 return 0;
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_header_stdc=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_cv_header_stdc=no
6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6170 if test $ac_cv_header_stdc = yes; then
6171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <string.h>
6180 _ACEOF
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "memchr" >/dev/null 2>&1; then
6184 else
6185 ac_cv_header_stdc=no
6187 rm -f conftest*
6191 if test $ac_cv_header_stdc = yes; then
6192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #include <stdlib.h>
6201 _ACEOF
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "free" >/dev/null 2>&1; then
6205 else
6206 ac_cv_header_stdc=no
6208 rm -f conftest*
6212 if test $ac_cv_header_stdc = yes; then
6213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6214 if test "$cross_compiling" = yes; then
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <ctype.h>
6224 #if ((' ' & 0x0FF) == 0x020)
6225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6227 #else
6228 # define ISLOWER(c) \
6229 (('a' <= (c) && (c) <= 'i') \
6230 || ('j' <= (c) && (c) <= 'r') \
6231 || ('s' <= (c) && (c) <= 'z'))
6232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6233 #endif
6235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6237 main ()
6239 int i;
6240 for (i = 0; i < 256; i++)
6241 if (XOR (islower (i), ISLOWER (i))
6242 || toupper (i) != TOUPPER (i))
6243 exit(2);
6244 exit (0);
6246 _ACEOF
6247 rm -f conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6259 else
6260 echo "$as_me: program exited with status $ac_status" >&5
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ( exit $ac_status )
6265 ac_cv_header_stdc=no
6267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6271 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6272 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6273 if test $ac_cv_header_stdc = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276 #define STDC_HEADERS 1
6277 _ACEOF
6281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6292 inttypes.h stdint.h unistd.h
6294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 echo "$as_me:$LINENO: checking for $ac_header" >&5
6296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6308 #include <$ac_header>
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 eval "$as_ac_Header=yes"
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 eval "$as_ac_Header=no"
6339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6344 cat >>confdefs.h <<_ACEOF
6345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346 _ACEOF
6350 done
6353 echo "$as_me:$LINENO: checking for long long" >&5
6354 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6355 if test "${ac_cv_type_long_long+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 $ac_includes_default
6366 main ()
6368 if ((long long *) 0)
6369 return 0;
6370 if (sizeof (long long))
6371 return 0;
6373 return 0;
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_type_long_long=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_cv_type_long_long=no
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6408 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6410 echo "$as_me:$LINENO: checking size of long long" >&5
6411 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6412 if test "${ac_cv_sizeof_long_long+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 if test "$ac_cv_type_long_long" = yes; then
6416 # The cast to unsigned long works around a bug in the HP C Compiler
6417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419 # This bug is HP SR number 8606223364.
6420 if test "$cross_compiling" = yes; then
6421 # Depending upon the size, compute the lo and hi bounds.
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6430 main ()
6432 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6433 test_array [0] = 0
6436 return 0;
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_lo=0 ac_mid=0
6462 while :; do
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6471 main ()
6473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6474 test_array [0] = 0
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_hi=$ac_mid; break
6503 else
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_lo=`expr $ac_mid + 1`
6508 if test $ac_lo -le $ac_mid; then
6509 ac_lo= ac_hi=
6510 break
6512 ac_mid=`expr 2 '*' $ac_mid + 1`
6514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515 done
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6528 main ()
6530 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6531 test_array [0] = 0
6534 return 0;
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -z "$ac_c_werror_flag"
6547 || test ! -s conftest.err'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_hi=-1 ac_mid=-1
6560 while :; do
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6569 main ()
6571 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6572 test_array [0] = 0
6575 return 0;
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_lo=$ac_mid; break
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_hi=`expr '(' $ac_mid ')' - 1`
6606 if test $ac_mid -le $ac_hi; then
6607 ac_lo= ac_hi=
6608 break
6610 ac_mid=`expr 2 '*' $ac_mid`
6612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 done
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_lo= ac_hi=
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 # Binary search between lo and hi bounds.
6624 while test "x$ac_lo" != "x$ac_hi"; do
6625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 $ac_includes_default
6634 main ()
6636 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6637 test_array [0] = 0
6640 return 0;
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_hi=$ac_mid
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_lo=`expr '(' $ac_mid ')' + 1`
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 done
6674 case $ac_lo in
6675 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6676 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6677 See \`config.log' for more details." >&5
6678 echo "$as_me: error: cannot compute sizeof (long long), 77
6679 See \`config.log' for more details." >&2;}
6680 { (exit 1); exit 1; }; } ;;
6681 esac
6682 else
6683 if test "$cross_compiling" = yes; then
6684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6685 See \`config.log' for more details." >&5
6686 echo "$as_me: error: cannot run test program while cross compiling
6687 See \`config.log' for more details." >&2;}
6688 { (exit 1); exit 1; }; }
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 long longval () { return (long) (sizeof (long long)); }
6698 unsigned long ulongval () { return (long) (sizeof (long long)); }
6699 #include <stdio.h>
6700 #include <stdlib.h>
6702 main ()
6705 FILE *f = fopen ("conftest.val", "w");
6706 if (! f)
6707 exit (1);
6708 if (((long) (sizeof (long long))) < 0)
6710 long i = longval ();
6711 if (i != ((long) (sizeof (long long))))
6712 exit (1);
6713 fprintf (f, "%ld\n", i);
6715 else
6717 unsigned long i = ulongval ();
6718 if (i != ((long) (sizeof (long long))))
6719 exit (1);
6720 fprintf (f, "%lu\n", i);
6722 exit (ferror (f) || fclose (f) != 0);
6725 return 0;
6727 _ACEOF
6728 rm -f conftest$ac_exeext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6730 (eval $ac_link) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_sizeof_long_long=`cat conftest.val`
6740 else
6741 echo "$as_me: program exited with status $ac_status" >&5
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ( exit $ac_status )
6746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6747 See \`config.log' for more details." >&5
6748 echo "$as_me: error: cannot compute sizeof (long long), 77
6749 See \`config.log' for more details." >&2;}
6750 { (exit 1); exit 1; }; }
6752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6755 rm -f conftest.val
6756 else
6757 ac_cv_sizeof_long_long=0
6760 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6761 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6762 cat >>confdefs.h <<_ACEOF
6763 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6764 _ACEOF
6769 echo "$as_me:$LINENO: checking for long" >&5
6770 echo $ECHO_N "checking for long... $ECHO_C" >&6
6771 if test "${ac_cv_type_long+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 $ac_includes_default
6782 main ()
6784 if ((long *) 0)
6785 return 0;
6786 if (sizeof (long))
6787 return 0;
6789 return 0;
6791 _ACEOF
6792 rm -f conftest.$ac_objext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_cv_type_long=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_cv_type_long=no
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6823 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6824 echo "${ECHO_T}$ac_cv_type_long" >&6
6826 echo "$as_me:$LINENO: checking size of long" >&5
6827 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6828 if test "${ac_cv_sizeof_long+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 if test "$ac_cv_type_long" = yes; then
6832 # The cast to unsigned long works around a bug in the HP C Compiler
6833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6835 # This bug is HP SR number 8606223364.
6836 if test "$cross_compiling" = yes; then
6837 # Depending upon the size, compute the lo and hi bounds.
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6846 main ()
6848 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6849 test_array [0] = 0
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_lo=0 ac_mid=0
6878 while :; do
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6887 main ()
6889 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6890 test_array [0] = 0
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_hi=$ac_mid; break
6919 else
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_lo=`expr $ac_mid + 1`
6924 if test $ac_lo -le $ac_mid; then
6925 ac_lo= ac_hi=
6926 break
6928 ac_mid=`expr 2 '*' $ac_mid + 1`
6930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 done
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6944 main ()
6946 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6947 test_array [0] = 0
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_hi=-1 ac_mid=-1
6976 while :; do
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6985 main ()
6987 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6988 test_array [0] = 0
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_lo=$ac_mid; break
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_hi=`expr '(' $ac_mid ')' - 1`
7022 if test $ac_mid -le $ac_hi; then
7023 ac_lo= ac_hi=
7024 break
7026 ac_mid=`expr 2 '*' $ac_mid`
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 done
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_lo= ac_hi=
7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 # Binary search between lo and hi bounds.
7040 while test "x$ac_lo" != "x$ac_hi"; do
7041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 $ac_includes_default
7050 main ()
7052 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7053 test_array [0] = 0
7056 return 0;
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_c_werror_flag"
7069 || test ! -s conftest.err'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest.$ac_objext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_hi=$ac_mid
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_lo=`expr '(' $ac_mid ')' + 1`
7088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089 done
7090 case $ac_lo in
7091 ?*) ac_cv_sizeof_long=$ac_lo;;
7092 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7093 See \`config.log' for more details." >&5
7094 echo "$as_me: error: cannot compute sizeof (long), 77
7095 See \`config.log' for more details." >&2;}
7096 { (exit 1); exit 1; }; } ;;
7097 esac
7098 else
7099 if test "$cross_compiling" = yes; then
7100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7101 See \`config.log' for more details." >&5
7102 echo "$as_me: error: cannot run test program while cross compiling
7103 See \`config.log' for more details." >&2;}
7104 { (exit 1); exit 1; }; }
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 long longval () { return (long) (sizeof (long)); }
7114 unsigned long ulongval () { return (long) (sizeof (long)); }
7115 #include <stdio.h>
7116 #include <stdlib.h>
7118 main ()
7121 FILE *f = fopen ("conftest.val", "w");
7122 if (! f)
7123 exit (1);
7124 if (((long) (sizeof (long))) < 0)
7126 long i = longval ();
7127 if (i != ((long) (sizeof (long))))
7128 exit (1);
7129 fprintf (f, "%ld\n", i);
7131 else
7133 unsigned long i = ulongval ();
7134 if (i != ((long) (sizeof (long))))
7135 exit (1);
7136 fprintf (f, "%lu\n", i);
7138 exit (ferror (f) || fclose (f) != 0);
7141 return 0;
7143 _ACEOF
7144 rm -f conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
7155 ac_cv_sizeof_long=`cat conftest.val`
7156 else
7157 echo "$as_me: program exited with status $ac_status" >&5
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ( exit $ac_status )
7162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7163 See \`config.log' for more details." >&5
7164 echo "$as_me: error: cannot compute sizeof (long), 77
7165 See \`config.log' for more details." >&2;}
7166 { (exit 1); exit 1; }; }
7168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7171 rm -f conftest.val
7172 else
7173 ac_cv_sizeof_long=0
7176 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7177 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7178 cat >>confdefs.h <<_ACEOF
7179 #define SIZEOF_LONG $ac_cv_sizeof_long
7180 _ACEOF
7183 if test "x${ac_cv_sizeof_long}" = "x8"; then
7184 host64=true
7185 BFD_HOST_64BIT_LONG=1
7186 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7187 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7188 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7189 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7190 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7193 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7194 BFD_HOST_64_BIT_DEFINED=1
7195 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7196 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7205 # Put a plausible default for CC_FOR_BUILD in Makefile.
7206 if test -z "$CC_FOR_BUILD"; then
7207 if test "x$cross_compiling" = "xno"; then
7208 CC_FOR_BUILD='$(CC)'
7209 else
7210 CC_FOR_BUILD=gcc
7214 # Also set EXEEXT_FOR_BUILD.
7215 if test "x$cross_compiling" = "xno"; then
7216 EXEEXT_FOR_BUILD='$(EXEEXT)'
7217 else
7218 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7219 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7220 if test "${bfd_cv_build_exeext+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 rm -f conftest*
7224 echo 'int main () { return 0; }' > conftest.c
7225 bfd_cv_build_exeext=
7226 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7227 for file in conftest.*; do
7228 case $file in
7229 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7230 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7231 esac
7232 done
7233 rm -f conftest*
7234 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7236 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7237 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7238 EXEEXT_FOR_BUILD=""
7239 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7249 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260 else
7261 # Is the header compilable?
7262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7271 #include <$ac_header>
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_header_compiler=yes
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_header_compiler=no
7302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7304 echo "${ECHO_T}$ac_header_compiler" >&6
7306 # Is the header present?
7307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 #include <$ac_header>
7316 _ACEOF
7317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } >/dev/null; then
7325 if test -s conftest.err; then
7326 ac_cpp_err=$ac_c_preproc_warn_flag
7327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7328 else
7329 ac_cpp_err=
7331 else
7332 ac_cpp_err=yes
7334 if test -z "$ac_cpp_err"; then
7335 ac_header_preproc=yes
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_header_preproc=no
7342 rm -f conftest.err conftest.$ac_ext
7343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7344 echo "${ECHO_T}$ac_header_preproc" >&6
7346 # So? What about this header?
7347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7348 yes:no: )
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7353 ac_header_preproc=yes
7355 no:yes:* )
7356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7369 cat <<\_ASBOX
7370 ## ------------------------------------------ ##
7371 ## Report this to the AC_PACKAGE_NAME lists. ##
7372 ## ------------------------------------------ ##
7373 _ASBOX
7375 sed "s/^/$as_me: WARNING: /" >&2
7377 esac
7378 echo "$as_me:$LINENO: checking for $ac_header" >&5
7379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 eval "$as_ac_Header=\$ac_header_preproc"
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392 _ACEOF
7396 done
7401 for ac_header in fcntl.h sys/file.h sys/time.h
7403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412 else
7413 # Is the header compilable?
7414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 $ac_includes_default
7423 #include <$ac_header>
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -z "$ac_c_werror_flag"
7435 || test ! -s conftest.err'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; } &&
7441 { ac_try='test -s conftest.$ac_objext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_header_compiler=yes
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_header_compiler=no
7454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7456 echo "${ECHO_T}$ac_header_compiler" >&6
7458 # Is the header present?
7459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 #include <$ac_header>
7468 _ACEOF
7469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } >/dev/null; then
7477 if test -s conftest.err; then
7478 ac_cpp_err=$ac_c_preproc_warn_flag
7479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7480 else
7481 ac_cpp_err=
7483 else
7484 ac_cpp_err=yes
7486 if test -z "$ac_cpp_err"; then
7487 ac_header_preproc=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_header_preproc=no
7494 rm -f conftest.err conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496 echo "${ECHO_T}$ac_header_preproc" >&6
7498 # So? What about this header?
7499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7500 yes:no: )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7505 ac_header_preproc=yes
7507 no:yes:* )
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7521 cat <<\_ASBOX
7522 ## ------------------------------------------ ##
7523 ## Report this to the AC_PACKAGE_NAME lists. ##
7524 ## ------------------------------------------ ##
7525 _ASBOX
7527 sed "s/^/$as_me: WARNING: /" >&2
7529 esac
7530 echo "$as_me:$LINENO: checking for $ac_header" >&5
7531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 eval "$as_ac_Header=\$ac_header_preproc"
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544 _ACEOF
7548 done
7550 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7551 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7552 if test "${ac_cv_header_time+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 #include <sys/types.h>
7562 #include <sys/time.h>
7563 #include <time.h>
7566 main ()
7568 if ((struct tm *) 0)
7569 return 0;
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try='test -z "$ac_c_werror_flag"
7584 || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_header_time=yes
7597 else
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7601 ac_cv_header_time=no
7603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7605 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7606 echo "${ECHO_T}$ac_cv_header_time" >&6
7607 if test $ac_cv_header_time = yes; then
7609 cat >>confdefs.h <<\_ACEOF
7610 #define TIME_WITH_SYS_TIME 1
7611 _ACEOF
7620 ac_header_dirent=no
7621 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7622 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7623 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7624 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 #include <sys/types.h>
7635 #include <$ac_hdr>
7638 main ()
7640 if ((DIR *) 0)
7641 return 0;
7643 return 0;
7645 _ACEOF
7646 rm -f conftest.$ac_objext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try='test -z "$ac_c_werror_flag"
7656 || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 eval "$as_ac_Header=yes"
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 eval "$as_ac_Header=no"
7675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7682 _ACEOF
7684 ac_header_dirent=$ac_hdr; break
7687 done
7688 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7689 if test $ac_header_dirent = dirent.h; then
7690 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7691 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7692 if test "${ac_cv_search_opendir+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 ac_func_search_save_LIBS=$LIBS
7696 ac_cv_search_opendir=no
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 #ifdef __cplusplus
7706 extern "C"
7707 #endif
7708 /* We use char because int might match the return type of a gcc2
7709 builtin and then its argument prototype would still apply. */
7710 char opendir ();
7712 main ()
7714 opendir ();
7716 return 0;
7718 _ACEOF
7719 rm -f conftest.$ac_objext conftest$ac_exeext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721 (eval $ac_link) 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_search_opendir="none required"
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7747 rm -f conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 if test "$ac_cv_search_opendir" = no; then
7750 for ac_lib in dir; do
7751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7759 /* Override any gcc2 internal prototype to avoid an error. */
7760 #ifdef __cplusplus
7761 extern "C"
7762 #endif
7763 /* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7765 char opendir ();
7767 main ()
7769 opendir ();
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 ac_cv_search_opendir="-l$ac_lib"
7797 break
7798 else
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7803 rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 done
7807 LIBS=$ac_func_search_save_LIBS
7809 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7810 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7811 if test "$ac_cv_search_opendir" != no; then
7812 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7816 else
7817 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7818 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7819 if test "${ac_cv_search_opendir+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822 ac_func_search_save_LIBS=$LIBS
7823 ac_cv_search_opendir=no
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h. */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7837 char opendir ();
7839 main ()
7841 opendir ();
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_cv_search_opendir="none required"
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7874 rm -f conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 if test "$ac_cv_search_opendir" = no; then
7877 for ac_lib in x; do
7878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892 char opendir ();
7894 main ()
7896 opendir ();
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_search_opendir="-l$ac_lib"
7924 break
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 done
7934 LIBS=$ac_func_search_save_LIBS
7936 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7937 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7938 if test "$ac_cv_search_opendir" != no; then
7939 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7945 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7946 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7947 if test "${gcc_cv_header_string+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <string.h>
7957 #include <strings.h>
7959 main ()
7963 return 0;
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag"
7976 || test ! -s conftest.err'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; } &&
7982 { ac_try='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 gcc_cv_header_string=yes
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 gcc_cv_header_string=no
7995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7998 echo "${ECHO_T}$gcc_cv_header_string" >&6
7999 if test $gcc_cv_header_string = yes; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define STRING_WITH_STRINGS 1
8003 _ACEOF
8014 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
8016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017 echo "$as_me:$LINENO: checking for $ac_func" >&5
8018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_var+set}\" = set"; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8030 #define $ac_func innocuous_$ac_func
8032 /* System header to define __stub macros and hopefully few prototypes,
8033 which can conflict with char $ac_func (); below.
8034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8035 <limits.h> exists even on freestanding compilers. */
8037 #ifdef __STDC__
8038 # include <limits.h>
8039 #else
8040 # include <assert.h>
8041 #endif
8043 #undef $ac_func
8045 /* Override any gcc2 internal prototype to avoid an error. */
8046 #ifdef __cplusplus
8047 extern "C"
8049 #endif
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8052 char $ac_func ();
8053 /* The GNU C library defines this for functions which it implements
8054 to always fail with ENOSYS. Some functions are actually named
8055 something starting with __ and the normal name is an alias. */
8056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8057 choke me
8058 #else
8059 char (*f) () = $ac_func;
8060 #endif
8061 #ifdef __cplusplus
8063 #endif
8066 main ()
8068 return f != $ac_func;
8070 return 0;
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 eval "$as_ac_var=yes"
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 eval "$as_ac_var=no"
8102 rm -f conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8107 if test `eval echo '${'$as_ac_var'}'` = yes; then
8108 cat >>confdefs.h <<_ACEOF
8109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8110 _ACEOF
8113 done
8116 for ac_func in strtoull
8118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8119 echo "$as_me:$LINENO: checking for $ac_func" >&5
8120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8121 if eval "test \"\${$as_ac_var+set}\" = set"; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8132 #define $ac_func innocuous_$ac_func
8134 /* System header to define __stub macros and hopefully few prototypes,
8135 which can conflict with char $ac_func (); below.
8136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137 <limits.h> exists even on freestanding compilers. */
8139 #ifdef __STDC__
8140 # include <limits.h>
8141 #else
8142 # include <assert.h>
8143 #endif
8145 #undef $ac_func
8147 /* Override any gcc2 internal prototype to avoid an error. */
8148 #ifdef __cplusplus
8149 extern "C"
8151 #endif
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8154 char $ac_func ();
8155 /* The GNU C library defines this for functions which it implements
8156 to always fail with ENOSYS. Some functions are actually named
8157 something starting with __ and the normal name is an alias. */
8158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8159 choke me
8160 #else
8161 char (*f) () = $ac_func;
8162 #endif
8163 #ifdef __cplusplus
8165 #endif
8168 main ()
8170 return f != $ac_func;
8172 return 0;
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -z "$ac_c_werror_flag"
8185 || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 eval "$as_ac_var=yes"
8198 else
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 eval "$as_ac_var=no"
8204 rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8209 if test `eval echo '${'$as_ac_var'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8212 _ACEOF
8215 done
8218 echo "$as_me:$LINENO: checking whether basename is declared" >&5
8219 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8220 if test "${ac_cv_have_decl_basename+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8231 main ()
8233 #ifndef basename
8234 char *p = (char *) basename;
8235 #endif
8238 return 0;
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243 (eval $ac_compile) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_have_decl_basename=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 ac_cv_have_decl_basename=no
8270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8273 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8274 if test $ac_cv_have_decl_basename = yes; then
8276 cat >>confdefs.h <<_ACEOF
8277 #define HAVE_DECL_BASENAME 1
8278 _ACEOF
8281 else
8282 cat >>confdefs.h <<_ACEOF
8283 #define HAVE_DECL_BASENAME 0
8284 _ACEOF
8290 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8291 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8292 if test "${ac_cv_have_decl_ftello+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8303 main ()
8305 #ifndef ftello
8306 char *p = (char *) ftello;
8307 #endif
8310 return 0;
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest.$ac_objext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_have_decl_ftello=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_have_decl_ftello=no
8342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8345 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8346 if test $ac_cv_have_decl_ftello = yes; then
8348 cat >>confdefs.h <<_ACEOF
8349 #define HAVE_DECL_FTELLO 1
8350 _ACEOF
8353 else
8354 cat >>confdefs.h <<_ACEOF
8355 #define HAVE_DECL_FTELLO 0
8356 _ACEOF
8362 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8363 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8364 if test "${ac_cv_have_decl_ftello64+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8375 main ()
8377 #ifndef ftello64
8378 char *p = (char *) ftello64;
8379 #endif
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"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_have_decl_ftello64=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_have_decl_ftello64=no
8414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8416 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8417 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8418 if test $ac_cv_have_decl_ftello64 = yes; then
8420 cat >>confdefs.h <<_ACEOF
8421 #define HAVE_DECL_FTELLO64 1
8422 _ACEOF
8425 else
8426 cat >>confdefs.h <<_ACEOF
8427 #define HAVE_DECL_FTELLO64 0
8428 _ACEOF
8434 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8435 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8436 if test "${ac_cv_have_decl_fseeko+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8447 main ()
8449 #ifndef fseeko
8450 char *p = (char *) fseeko;
8451 #endif
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_have_decl_fseeko=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 ac_cv_have_decl_fseeko=no
8486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8489 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8490 if test $ac_cv_have_decl_fseeko = yes; then
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_DECL_FSEEKO 1
8494 _ACEOF
8497 else
8498 cat >>confdefs.h <<_ACEOF
8499 #define HAVE_DECL_FSEEKO 0
8500 _ACEOF
8506 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8507 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8508 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8519 main ()
8521 #ifndef fseeko64
8522 char *p = (char *) fseeko64;
8523 #endif
8526 return 0;
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_have_decl_fseeko64=yes
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_have_decl_fseeko64=no
8558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8561 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8562 if test $ac_cv_have_decl_fseeko64 = yes; then
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_DECL_FSEEKO64 1
8566 _ACEOF
8569 else
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_DECL_FSEEKO64 0
8572 _ACEOF
8580 case "${host}" in
8581 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8583 cat >>confdefs.h <<\_ACEOF
8584 #define USE_BINARY_FOPEN 1
8585 _ACEOF
8587 esac
8589 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8590 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8591 if test "${ac_cv_have_decl_ffs+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8602 main ()
8604 #ifndef ffs
8605 char *p = (char *) ffs;
8606 #endif
8609 return 0;
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_have_decl_ffs=yes
8635 else
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 ac_cv_have_decl_ffs=no
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8644 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8645 if test $ac_cv_have_decl_ffs = yes; then
8647 cat >>confdefs.h <<_ACEOF
8648 #define HAVE_DECL_FFS 1
8649 _ACEOF
8652 else
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_DECL_FFS 0
8655 _ACEOF
8661 echo "$as_me:$LINENO: checking whether free is declared" >&5
8662 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8663 if test "${ac_cv_have_decl_free+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h. */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 $ac_includes_default
8674 main ()
8676 #ifndef free
8677 char *p = (char *) free;
8678 #endif
8681 return 0;
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_have_decl_free=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_have_decl_free=no
8713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8716 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8717 if test $ac_cv_have_decl_free = yes; then
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_DECL_FREE 1
8721 _ACEOF
8724 else
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_DECL_FREE 0
8727 _ACEOF
8733 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8734 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8735 if test "${ac_cv_have_decl_getenv+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8746 main ()
8748 #ifndef getenv
8749 char *p = (char *) getenv;
8750 #endif
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_have_decl_getenv=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_have_decl_getenv=no
8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8787 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8788 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8789 if test $ac_cv_have_decl_getenv = yes; then
8791 cat >>confdefs.h <<_ACEOF
8792 #define HAVE_DECL_GETENV 1
8793 _ACEOF
8796 else
8797 cat >>confdefs.h <<_ACEOF
8798 #define HAVE_DECL_GETENV 0
8799 _ACEOF
8805 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8806 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8807 if test "${ac_cv_have_decl_malloc+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h. */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8816 $ac_includes_default
8818 main ()
8820 #ifndef malloc
8821 char *p = (char *) malloc;
8822 #endif
8825 return 0;
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_have_decl_malloc=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_cv_have_decl_malloc=no
8857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8860 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8861 if test $ac_cv_have_decl_malloc = yes; then
8863 cat >>confdefs.h <<_ACEOF
8864 #define HAVE_DECL_MALLOC 1
8865 _ACEOF
8868 else
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_DECL_MALLOC 0
8871 _ACEOF
8877 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8878 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8879 if test "${ac_cv_have_decl_realloc+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8890 main ()
8892 #ifndef realloc
8893 char *p = (char *) realloc;
8894 #endif
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest.$ac_objext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_have_decl_realloc=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_have_decl_realloc=no
8929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8932 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8933 if test $ac_cv_have_decl_realloc = yes; then
8935 cat >>confdefs.h <<_ACEOF
8936 #define HAVE_DECL_REALLOC 1
8937 _ACEOF
8940 else
8941 cat >>confdefs.h <<_ACEOF
8942 #define HAVE_DECL_REALLOC 0
8943 _ACEOF
8949 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8950 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8951 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 $ac_includes_default
8962 main ()
8964 #ifndef stpcpy
8965 char *p = (char *) stpcpy;
8966 #endif
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_have_decl_stpcpy=yes
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_cv_have_decl_stpcpy=no
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9004 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9005 if test $ac_cv_have_decl_stpcpy = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_DECL_STPCPY 1
9009 _ACEOF
9012 else
9013 cat >>confdefs.h <<_ACEOF
9014 #define HAVE_DECL_STPCPY 0
9015 _ACEOF
9021 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9022 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9023 if test "${ac_cv_have_decl_strstr+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 $ac_includes_default
9034 main ()
9036 #ifndef strstr
9037 char *p = (char *) strstr;
9038 #endif
9041 return 0;
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_have_decl_strstr=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_have_decl_strstr=no
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9076 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9077 if test $ac_cv_have_decl_strstr = yes; then
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_DECL_STRSTR 1
9081 _ACEOF
9084 else
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DECL_STRSTR 0
9087 _ACEOF
9093 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9094 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9095 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9106 main ()
9108 #ifndef snprintf
9109 char *p = (char *) snprintf;
9110 #endif
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_have_decl_snprintf=yes
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_cv_have_decl_snprintf=no
9145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9148 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9149 if test $ac_cv_have_decl_snprintf = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152 #define HAVE_DECL_SNPRINTF 1
9153 _ACEOF
9156 else
9157 cat >>confdefs.h <<_ACEOF
9158 #define HAVE_DECL_SNPRINTF 0
9159 _ACEOF
9165 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9166 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9167 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9178 main ()
9180 #ifndef vsnprintf
9181 char *p = (char *) vsnprintf;
9182 #endif
9185 return 0;
9187 _ACEOF
9188 rm -f conftest.$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_have_decl_vsnprintf=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_cv_have_decl_vsnprintf=no
9217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9220 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9221 if test $ac_cv_have_decl_vsnprintf = yes; then
9223 cat >>confdefs.h <<_ACEOF
9224 #define HAVE_DECL_VSNPRINTF 1
9225 _ACEOF
9228 else
9229 cat >>confdefs.h <<_ACEOF
9230 #define HAVE_DECL_VSNPRINTF 0
9231 _ACEOF
9238 # If we are configured native, pick a core file support file.
9239 COREFILE=
9240 COREFLAG=
9241 TRAD_HEADER=
9242 if test "${target}" = "${host}"; then
9243 case "${host}" in
9244 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9245 COREFILE=''
9247 alpha*-*-linux-*)
9248 COREFILE=trad-core.lo
9249 TRAD_HEADER='"hosts/alphalinux.h"'
9251 alpha*-*-netbsd* | alpha*-*-openbsd*)
9252 COREFILE=netbsd-core.lo
9254 alpha*-*-*) COREFILE=osf-core.lo ;;
9255 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9256 COREFILE='' ;;
9257 arm-*-netbsd* | arm-*-openbsd*)
9258 COREFILE=netbsd-core.lo
9260 arm-*-riscix) COREFILE=trad-core.lo ;;
9261 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9262 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9263 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9264 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9265 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9266 hppa*-*-netbsd* | hppa*-*-openbsd*)
9267 COREFILE=netbsd-core.lo
9270 i370-*-*)
9271 COREFILE=trad-core.lo
9272 TRAD_HEADER='"hosts/i370linux.h"'
9275 i[3-7]86-sequent-bsd*)
9276 COREFILE=trad-core.lo
9277 TRAD_HEADER='"hosts/symmetry.h"'
9279 i[3-7]86-sequent-sysv4*) ;;
9280 i[3-7]86-sequent-sysv*)
9281 COREFILE=trad-core.lo
9282 TRAD_HEADER='"hosts/symmetry.h"'
9284 i[3-7]86-*-bsdi)
9285 COREFILE=
9287 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*)
9288 COREFILE=trad-core.lo
9289 TRAD_HEADER='"hosts/i386bsd.h"'
9291 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9292 COREFILE=''
9293 TRAD_HEADER='"hosts/i386bsd.h"'
9295 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9296 COREFILE=netbsd-core.lo
9298 i[3-7]86-esix-sysv3*)
9299 COREFILE=trad-core.lo
9300 TRAD_HEADER='"hosts/esix.h"'
9302 i[3-7]86-*-sco3.2v5*)
9303 COREFILE=sco5-core.lo
9305 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9306 COREFILE=trad-core.lo
9307 TRAD_HEADER='"hosts/i386sco.h"'
9309 i[3-7]86-*-mach3*)
9310 COREFILE=trad-core.lo
9311 TRAD_HEADER='"hosts/i386mach3.h"'
9313 i[3-7]86-*-linux-*)
9314 COREFILE=trad-core.lo
9315 TRAD_HEADER='"hosts/i386linux.h"'
9317 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9318 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9319 i860-*-mach3* | i860-*-osf1*)
9320 COREFILE=trad-core.lo
9321 TRAD_HEADER='"hosts/i860mach3.h"'
9323 mips-*-netbsd* | mips*-*-openbsd*)
9324 COREFILE=netbsd-core.lo
9326 mips-dec-*)
9327 COREFILE=trad-core.lo
9328 TRAD_HEADER='"hosts/decstation.h"'
9330 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9331 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9332 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9333 mips-*-sysv4*) ;;
9334 mips-*-sysv* | mips-*-riscos*)
9335 COREFILE=trad-core.lo
9336 TRAD_HEADER='"hosts/riscos.h"'
9338 mips-sony-bsd*)
9339 COREFILE=trad-core.lo
9340 TRAD_HEADER='"hosts/news-mips.h"'
9342 m68*-bull*-sysv*)
9343 COREFILE=trad-core.lo
9344 TRAD_HEADER='"hosts/dpx2.h"'
9346 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9347 m68*-hp-bsd*)
9348 COREFILE=trad-core.lo
9349 TRAD_HEADER='"hosts/hp300bsd.h"'
9351 m68*-*-linux-*)
9352 COREFILE=trad-core.lo
9353 TRAD_HEADER='"hosts/m68klinux.h"'
9355 m68*-motorola-sysv*)
9356 COREFILE=trad-core.lo
9357 TRAD_HEADER='"hosts/delta68.h"'
9359 m68*-sony-*)
9360 COREFILE=trad-core.lo
9361 TRAD_HEADER='"hosts/news.h"'
9363 m68*-*-netbsd* | m68*-*-openbsd*)
9364 COREFILE=netbsd-core.lo
9366 m68*-apple-aux*)
9367 COREFILE=trad-core.lo
9368 TRAD_HEADER='"hosts/m68kaux.h"'
9370 m88*-*-sysv4*)
9372 m88*-motorola-sysv*)
9373 COREFILE=ptrace-core.lo
9375 m88*-*-mach3*)
9376 COREFILE=trad-core.lo
9377 TRAD_HEADER='"hosts/m88kmach3.h"'
9379 m88*-*-openbsd*)
9380 COREFILE=netbsd-core.lo
9382 ns32k-pc532-mach)
9383 COREFILE=trad-core.lo
9384 TRAD_HEADER='"hosts/pc532mach.h"'
9386 ns32k-*-netbsd* | ns32k-*-openbsd*)
9387 COREFILE=netbsd-core.lo
9389 rs6000-*-lynx*)
9390 COREFILE=lynx-core.lo
9392 rs6000-*-aix5.* | powerpc-*-aix5.*)
9393 COREFILE=rs6000-core.lo
9394 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9396 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9397 COREFILE=rs6000-core.lo
9398 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9399 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9400 # have c_impl as a member of struct core_dumpx
9401 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9402 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 #include <core.h>
9411 main ()
9413 struct core_dumpx c; c.c_impl = 0;
9415 return 0;
9417 _ACEOF
9418 rm -f conftest.$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420 (eval $ac_compile) 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try='test -z "$ac_c_werror_flag"
9428 || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest.$ac_objext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define HAVE_ST_C_IMPL 1
9443 _ACEOF
9445 echo "$as_me:$LINENO: result: yes" >&5
9446 echo "${ECHO_T}yes" >&6
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6
9454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9456 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9457 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9458 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9459 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9460 powerpc-*-beos*) ;;
9461 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9462 COREFILE='' ;;
9463 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9464 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9465 s390*-*-*) COREFILE=trad-core.lo ;;
9466 sh*-*-netbsd* | sh*-*-openbsd*)
9467 COREFILE=netbsd-core.lo
9469 sparc-*-netbsd* | sparc*-*-openbsd*)
9470 COREFILE=netbsd-core.lo
9472 tahoe-*-*)
9473 COREFILE=trad-core.lo
9474 TRAD_HEADER='"hosts/tahoe.h"'
9476 vax-*-netbsd* | vax-*-openbsd*)
9477 COREFILE=netbsd-core.lo
9479 vax-*-ultrix2*)
9480 COREFILE=trad-core.lo
9481 TRAD_HEADER='"hosts/vaxult2.h"'
9483 vax-*-ultrix*)
9484 COREFILE=trad-core.lo
9485 TRAD_HEADER='"hosts/vaxult2.h"'
9487 vax-*-linux-*)
9488 COREFILE=trad-core.lo
9489 TRAD_HEADER='"hosts/vaxlinux.h"'
9491 vax-*-*)
9492 COREFILE=trad-core.lo
9493 TRAD_HEADER='"hosts/vaxbsd.h"'
9495 x86_64-*-netbsd* | x86_64-*-openbsd*)
9496 COREFILE=netbsd-core.lo
9498 esac
9500 case "$COREFILE" in
9501 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9502 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9503 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9504 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9505 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9506 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9507 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9508 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9509 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9510 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9511 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9512 esac
9514 # ELF corefile support has several flavors, but all of
9515 # them use something called <sys/procfs.h>
9517 for ac_header in sys/procfs.h
9519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9521 echo "$as_me:$LINENO: checking for $ac_header" >&5
9522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9528 else
9529 # Is the header compilable?
9530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9539 #include <$ac_header>
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543 (eval $ac_compile) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_header_compiler=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_header_compiler=no
9570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 #include <$ac_header>
9584 _ACEOF
9585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev/null; then
9593 if test -s conftest.err; then
9594 ac_cpp_err=$ac_c_preproc_warn_flag
9595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9596 else
9597 ac_cpp_err=
9599 else
9600 ac_cpp_err=yes
9602 if test -z "$ac_cpp_err"; then
9603 ac_header_preproc=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_preproc=no
9610 rm -f conftest.err conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9614 # So? What about this header?
9615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9616 yes:no: )
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9621 ac_header_preproc=yes
9623 no:yes:* )
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9637 cat <<\_ASBOX
9638 ## ------------------------------------------ ##
9639 ## Report this to the AC_PACKAGE_NAME lists. ##
9640 ## ------------------------------------------ ##
9641 _ASBOX
9643 sed "s/^/$as_me: WARNING: /" >&2
9645 esac
9646 echo "$as_me:$LINENO: checking for $ac_header" >&5
9647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651 eval "$as_ac_Header=\$ac_header_preproc"
9653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9658 cat >>confdefs.h <<_ACEOF
9659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660 _ACEOF
9664 done
9666 if test "$ac_cv_header_sys_procfs_h" = yes; then
9667 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9668 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9669 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9679 #define _SYSCALL32
9680 #include <sys/procfs.h>
9682 main ()
9684 prstatus_t avar
9686 return 0;
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 bfd_cv_have_sys_procfs_type_prstatus_t=no
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9722 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9724 cat >>confdefs.h <<\_ACEOF
9725 #define HAVE_PRSTATUS_T 1
9726 _ACEOF
9729 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9730 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
9732 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9733 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9734 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 #define _SYSCALL32
9745 #include <sys/procfs.h>
9747 main ()
9749 prstatus32_t avar
9751 return 0;
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 bfd_cv_have_sys_procfs_type_prstatus32_t=no
9784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9787 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_PRSTATUS32_T 1
9791 _ACEOF
9794 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9795 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
9797 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9798 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9799 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9809 #define _SYSCALL32
9810 #include <sys/procfs.h>
9812 main ()
9814 prstatus_t avar; void* aref = (void*) &avar.pr_who
9816 return 0;
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || 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_objext'
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 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9852 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_PRSTATUS_T_PR_WHO 1
9856 _ACEOF
9859 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9860 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
9862 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9863 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9864 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 #define _SYSCALL32
9875 #include <sys/procfs.h>
9877 main ()
9879 prstatus32_t avar; void* aref = (void*) &avar.pr_who
9881 return 0;
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9906 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9917 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_PRSTATUS32_T_PR_WHO 1
9921 _ACEOF
9924 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9925 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
9927 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9928 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9929 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 #define _SYSCALL32
9940 #include <sys/procfs.h>
9942 main ()
9944 pstatus_t avar
9946 return 0;
9948 _ACEOF
9949 rm -f conftest.$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 bfd_cv_have_sys_procfs_type_pstatus_t=no
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
9984 cat >>confdefs.h <<\_ACEOF
9985 #define HAVE_PSTATUS_T 1
9986 _ACEOF
9989 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9990 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
9992 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9993 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9994 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10004 #define _SYSCALL32
10005 #include <sys/procfs.h>
10007 main ()
10009 pxstatus_t avar
10011 return 0;
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
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); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_PXSTATUS_T 1
10051 _ACEOF
10054 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10055 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10057 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10058 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10059 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10069 #define _SYSCALL32
10070 #include <sys/procfs.h>
10072 main ()
10074 pstatus32_t avar
10076 return 0;
10078 _ACEOF
10079 rm -f conftest.$ac_objext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10081 (eval $ac_compile) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest.$ac_objext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10114 cat >>confdefs.h <<\_ACEOF
10115 #define HAVE_PSTATUS32_T 1
10116 _ACEOF
10119 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10120 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10122 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10123 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10124 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 #define _SYSCALL32
10135 #include <sys/procfs.h>
10137 main ()
10139 prpsinfo_t avar
10141 return 0;
10143 _ACEOF
10144 rm -f conftest.$ac_objext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146 (eval $ac_compile) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try='test -z "$ac_c_werror_flag"
10154 || test ! -s conftest.err'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10167 else
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10177 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_PRPSINFO_T 1
10181 _ACEOF
10184 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10185 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10187 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10188 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10189 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10199 #define _SYSCALL32
10200 #include <sys/procfs.h>
10202 main ()
10204 prpsinfo32_t avar
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10231 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10242 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10244 cat >>confdefs.h <<\_ACEOF
10245 #define HAVE_PRPSINFO32_T 1
10246 _ACEOF
10249 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10250 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10252 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10253 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10254 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h. */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10264 #define _SYSCALL32
10265 #include <sys/procfs.h>
10267 main ()
10269 psinfo_t avar
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10296 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 bfd_cv_have_sys_procfs_type_psinfo_t=no
10304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10307 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10309 cat >>confdefs.h <<\_ACEOF
10310 #define HAVE_PSINFO_T 1
10311 _ACEOF
10314 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10315 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10317 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10318 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10319 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 #define _SYSCALL32
10330 #include <sys/procfs.h>
10332 main ()
10334 psinfo32_t avar
10336 return 0;
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10372 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10374 cat >>confdefs.h <<\_ACEOF
10375 #define HAVE_PSINFO32_T 1
10376 _ACEOF
10379 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10380 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10382 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10383 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10384 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387 cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10394 #define _SYSCALL32
10395 #include <sys/procfs.h>
10397 main ()
10399 lwpstatus_t avar
10401 return 0;
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
10413 { ac_try='test -z "$ac_c_werror_flag"
10414 || test ! -s conftest.err'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest.$ac_objext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
10426 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10427 else
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10439 cat >>confdefs.h <<\_ACEOF
10440 #define HAVE_LWPSTATUS_T 1
10441 _ACEOF
10444 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10445 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10447 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10448 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10449 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10459 #define _SYSCALL32
10460 #include <sys/procfs.h>
10462 main ()
10464 lwpxstatus_t avar
10466 return 0;
10468 _ACEOF
10469 rm -f conftest.$ac_objext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -z "$ac_c_werror_flag"
10479 || test ! -s conftest.err'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10502 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10504 cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_LWPXSTATUS_T 1
10506 _ACEOF
10509 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10510 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10512 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10513 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10514 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10524 #define _SYSCALL32
10525 #include <sys/procfs.h>
10527 main ()
10529 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10531 return 0;
10533 _ACEOF
10534 rm -f conftest.$ac_objext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10536 (eval $ac_compile) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10569 cat >>confdefs.h <<\_ACEOF
10570 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10571 _ACEOF
10574 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10575 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10577 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10578 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10579 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10589 #define _SYSCALL32
10590 #include <sys/procfs.h>
10592 main ()
10594 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>conftest.er1
10602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -z "$ac_c_werror_flag"
10609 || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest.$ac_objext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10622 else
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10632 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_LWPSTATUS_T_PR_REG 1
10636 _ACEOF
10639 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10640 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10642 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10643 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10644 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10654 #define _SYSCALL32
10655 #include <sys/procfs.h>
10657 main ()
10659 win32_pstatus_t avar
10661 return 0;
10663 _ACEOF
10664 rm -f conftest.$ac_objext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666 (eval $ac_compile) 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest.$ac_objext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10687 else
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10697 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_WIN32_PSTATUS_T 1
10701 _ACEOF
10704 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10705 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10711 if test -n "$TRAD_HEADER"; then
10713 cat >>confdefs.h <<_ACEOF
10714 #define TRAD_HEADER $TRAD_HEADER
10715 _ACEOF
10719 # Horrible hacks to build DLLs on Windows.
10720 WIN32LDFLAGS=
10721 WIN32LIBADD=
10722 case "${host}" in
10723 *-*-cygwin*)
10724 if test "$enable_shared" = "yes"; then
10725 WIN32LDFLAGS="-no-undefined"
10726 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10729 *-*-linux*)
10730 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10731 # libiberty.a.
10732 case "${host}" in
10733 mips*-*-linux*)
10734 # Linux/MIPS uses PIC by default.
10735 if test "$enable_shared" = "yes"; then
10736 WIN32LIBADD="-L../libiberty -liberty"
10740 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
10741 if test -n "$x"; then
10742 WIN32LIBADD="-L../libiberty/pic -liberty"
10745 esac
10747 esac
10751 # target stuff:
10753 # Canonicalize the secondary target names.
10754 if test -n "$enable_targets" ; then
10755 for targ in `echo $enable_targets | sed 's/,/ /g'`
10757 result=`$ac_config_sub $targ 2>/dev/null`
10758 if test -n "$result" ; then
10759 canon_targets="$canon_targets $result"
10760 else
10761 # Allow targets that config.sub doesn't recognize, like "all".
10762 canon_targets="$canon_targets $targ"
10764 done
10767 all_targets=false
10768 defvec=
10769 selvecs=
10770 assocvecs=
10771 selarchs=
10772 TDEFINES=
10773 for targ in $target $canon_targets
10775 if test "x$targ" = "xall"; then
10776 all_targets=true
10777 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
10778 else
10779 . $srcdir/config.bfd
10780 if test "x$targ" = "x$target"; then
10781 defvec=$targ_defvec
10783 selvecs="$selvecs $targ_defvec $targ_selvecs"
10784 selarchs="$selarchs $targ_archs"
10785 TDEFINES="$TDEFINES $targ_cflags"
10787 done
10790 # This processing still needs to be done if we're to decide properly whether
10791 # 64-bit support needs to be compiled in. Currently, it will be included if
10792 # the default or any other explicitly requested target requires it; it
10793 # will not be included on a 32-bit host if no 64-bit target is requested, and
10794 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
10795 # used.
10797 # uniq the default and selected vectors in all the configured targets.
10798 f=""
10799 for i in $selvecs ; do
10800 case " $f " in
10801 *" $i "*) ;;
10802 *) f="$f $i" ;;
10803 esac
10804 done
10805 selvecs="$f"
10808 # uniq the associated vectors in all the configured targets.
10809 f=""
10810 for i in $assocvecs ; do
10811 case " $f " in
10812 *" $i "*) ;;
10813 *) f="$f $i" ;;
10814 esac
10815 done
10816 assocvecs="$f"
10819 # uniq the architectures in all the configured targets.
10820 f=""
10821 for i in $selarchs ; do
10822 case " $f " in
10823 *" $i "*) ;;
10824 *) f="$f $i" ;;
10825 esac
10826 done
10827 selarchs="$f"
10829 # Target backend .o files.
10832 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
10834 for vec in $selvecs
10836 target_size=32
10837 case "$vec" in
10838 # This list is alphabetized to make it easy to compare
10839 # with the two vector lists in targets.c. For the same reason,
10840 # use one entry per line, even though this leads to long lines.
10841 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
10842 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
10843 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10844 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10845 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10846 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
10847 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10848 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10849 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10850 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10851 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10852 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10853 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10854 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10855 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10856 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10857 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10858 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10859 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10860 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10861 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10862 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10863 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
10864 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
10865 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
10866 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
10867 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
10868 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
10869 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10870 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10871 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10872 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10873 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10874 bfd_elf32_bigarm_symbian_vec)
10875 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10876 bfd_elf32_bigarm_vxworks_vec)
10877 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10878 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10879 bfd_elf32_bigmips_vxworks_vec)
10880 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10881 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
10882 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10883 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
10884 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10885 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
10886 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
10887 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
10888 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10889 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10890 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
10891 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10892 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10893 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10894 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
10895 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10896 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10897 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10898 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10899 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10900 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
10901 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
10902 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
10903 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
10904 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
10905 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10906 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10907 bfd_elf32_littlearm_symbian_vec)
10908 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10909 bfd_elf32_littlearm_vxworks_vec)
10910 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10911 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10912 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10913 bfd_elf32_littlemips_vxworks_vec)
10914 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10915 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
10916 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10917 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10918 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10919 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10920 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10921 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10922 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10923 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10924 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10925 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10926 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10927 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10928 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10929 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
10930 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
10931 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
10932 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10933 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10934 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10935 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10936 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
10937 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
10938 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10939 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10940 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10941 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10942 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10943 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
10944 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10945 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10946 # FIXME: We include cofflink.lo not because it's needed for
10947 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10948 # which needs it but does not list it. Should be fixed in right place.
10949 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10950 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10951 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10952 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10953 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10954 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10955 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10956 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10957 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10958 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10959 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10960 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10961 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10962 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10963 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10964 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10965 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10966 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
10967 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10968 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10969 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10970 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
10971 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
10972 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
10973 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
10974 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10975 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10976 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10977 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10978 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10979 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10980 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10981 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10982 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10983 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10984 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10985 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10986 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10987 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
10988 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10989 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10990 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
10991 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10992 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10993 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10994 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10995 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10996 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10997 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10998 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10999 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11000 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11001 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11002 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11003 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
11004 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11005 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11006 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11007 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11008 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11009 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11010 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11011 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11012 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11013 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11014 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11015 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11016 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11017 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11018 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11019 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11020 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11021 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11022 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11023 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11024 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
11025 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11026 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11027 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11028 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11029 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11030 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11031 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11032 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11033 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11034 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11035 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11036 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11037 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11038 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11039 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11040 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11041 ieee_vec) tb="$tb ieee.lo" ;;
11042 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11043 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11044 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11045 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11046 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11047 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11048 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11049 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11050 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11051 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11052 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
11053 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11054 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11055 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11056 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11057 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11058 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11059 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11060 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11061 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11062 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11063 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11064 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11065 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11066 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11067 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11068 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11069 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11070 pef_vec) tb="$tb pef.lo" ;;
11071 pef_xlib_vec) tb="$tb pef.lo" ;;
11072 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11073 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11074 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11075 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11076 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11077 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11078 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11079 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11080 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11081 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11082 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11083 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11084 som_vec) tb="$tb som.lo" ;;
11085 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11086 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11087 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11088 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11089 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11090 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11091 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11092 sym_vec) tb="$tb xsym.lo" ;;
11093 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11094 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11095 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11096 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11097 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11098 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11099 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11100 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11101 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11102 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11103 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11104 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11105 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11106 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11107 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11108 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11109 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11110 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11111 versados_vec) tb="$tb versados.lo" ;;
11112 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11113 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11114 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11115 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11116 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
11117 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
11119 # These appear out of order in targets.c
11120 srec_vec) tb="$tb srec.lo" ;;
11121 symbolsrec_vec) tb="$tb srec.lo" ;;
11122 tekhex_vec) tb="$tb tekhex.lo" ;;
11123 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11124 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11126 "") ;;
11127 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11128 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11129 { (exit 1); exit 1; }; } ;;
11130 esac
11132 if test ${target_size} = 64; then
11133 target64=true
11135 if test x"${vec}" = x"${defvec}"; then
11136 bfd_default_target_size=${target_size}
11138 done
11140 # Target architecture .o files.
11141 # A couple of CPUs use shorter file names to avoid problems on DOS
11142 # filesystems.
11143 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11145 # Weed out duplicate .o files.
11146 f=""
11147 for i in $tb ; do
11148 case " $f " in
11149 *" $i "*) ;;
11150 *) f="$f $i" ;;
11151 esac
11152 done
11153 tb="$f"
11155 f=""
11156 for i in $ta ; do
11157 case " $f " in
11158 *" $i "*) ;;
11159 *) f="$f $i" ;;
11160 esac
11161 done
11162 ta="$f"
11164 bfd_backends="$tb"
11165 bfd_machines="$ta"
11167 if test x${all_targets} = xtrue ; then
11168 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11169 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11170 selvecs=
11171 havevecs=
11172 selarchs=
11173 test -n "$assocvecs" &&
11174 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11175 else # all_targets is true
11176 # Only set these if they will be nonempty, for the clever echo.
11177 havevecs=
11178 assocvecs=
11179 test -n "$selvecs" &&
11180 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11181 test -n "$selvecs" &&
11182 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11183 test -n "$selarchs" &&
11184 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11185 fi # all_targets is true
11187 case ${host64}-${target64}-${want64} in
11188 *true*)
11189 wordsize=64
11190 bfd64_libs='$(BFD64_LIBS)'
11191 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11192 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11193 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11194 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11196 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11198 if test -n "$GCC" ; then
11199 bad_64bit_gcc=no;
11200 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11201 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11202 # Add more tests for gcc versions with non-working 64-bit support here.
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 :__GNUC__:__GNUC_MINOR__:__i386__:
11210 _ACEOF
11211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11212 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11213 bad_64bit_gcc=yes;
11214 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11215 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11216 else
11217 echo "$as_me:$LINENO: result: no" >&5
11218 echo "${ECHO_T}no" >&6
11220 rm -f conftest*
11222 if test $bad_64bit_gcc = yes ; then
11223 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11224 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11225 { (exit 1); exit 1; }; }
11229 false-false-false)
11230 wordsize=32
11231 all_backends='$(BFD32_BACKENDS)'
11233 esac
11242 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11243 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11244 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11245 # Hopefully a reasonable assumption since fseeko et.al. should be
11246 # upward compatible.
11252 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
11254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h. */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11268 #define $ac_func innocuous_$ac_func
11270 /* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func (); below.
11272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273 <limits.h> exists even on freestanding compilers. */
11275 #ifdef __STDC__
11276 # include <limits.h>
11277 #else
11278 # include <assert.h>
11279 #endif
11281 #undef $ac_func
11283 /* Override any gcc2 internal prototype to avoid an error. */
11284 #ifdef __cplusplus
11285 extern "C"
11287 #endif
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290 char $ac_func ();
11291 /* The GNU C library defines this for functions which it implements
11292 to always fail with ENOSYS. Some functions are actually named
11293 something starting with __ and the normal name is an alias. */
11294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11295 choke me
11296 #else
11297 char (*f) () = $ac_func;
11298 #endif
11299 #ifdef __cplusplus
11301 #endif
11304 main ()
11306 return f != $ac_func;
11308 return 0;
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313 (eval $ac_link) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest$ac_exeext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 eval "$as_ac_var=yes"
11334 else
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 eval "$as_ac_var=no"
11340 rm -f conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11345 if test `eval echo '${'$as_ac_var'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11348 _ACEOF
11351 done
11353 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11354 echo "$as_me:$LINENO: checking for off_t" >&5
11355 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11356 if test "${ac_cv_type_off_t+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 $ac_includes_default
11367 main ()
11369 if ((off_t *) 0)
11370 return 0;
11371 if (sizeof (off_t))
11372 return 0;
11374 return 0;
11376 _ACEOF
11377 rm -f conftest.$ac_objext
11378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11379 (eval $ac_compile) 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -z "$ac_c_werror_flag"
11387 || test ! -s conftest.err'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 ac_cv_type_off_t=yes
11400 else
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 ac_cv_type_off_t=no
11406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11409 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11411 echo "$as_me:$LINENO: checking size of off_t" >&5
11412 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11413 if test "${ac_cv_sizeof_off_t+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 if test "$ac_cv_type_off_t" = yes; then
11417 # The cast to unsigned long works around a bug in the HP C Compiler
11418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11420 # This bug is HP SR number 8606223364.
11421 if test "$cross_compiling" = yes; then
11422 # Depending upon the size, compute the lo and hi bounds.
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 $ac_includes_default
11431 main ()
11433 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11434 test_array [0] = 0
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag"
11450 || test ! -s conftest.err'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_lo=0 ac_mid=0
11463 while :; do
11464 cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h. */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11470 $ac_includes_default
11472 main ()
11474 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11475 test_array [0] = 0
11478 return 0;
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11483 (eval $ac_compile) 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest.$ac_objext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_hi=$ac_mid; break
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_lo=`expr $ac_mid + 1`
11509 if test $ac_lo -le $ac_mid; then
11510 ac_lo= ac_hi=
11511 break
11513 ac_mid=`expr 2 '*' $ac_mid + 1`
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516 done
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 $ac_includes_default
11529 main ()
11531 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11532 test_array [0] = 0
11535 return 0;
11537 _ACEOF
11538 rm -f conftest.$ac_objext
11539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11540 (eval $ac_compile) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -z "$ac_c_werror_flag"
11548 || test ! -s conftest.err'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; } &&
11554 { ac_try='test -s conftest.$ac_objext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_hi=-1 ac_mid=-1
11561 while :; do
11562 cat >conftest.$ac_ext <<_ACEOF
11563 /* confdefs.h. */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 $ac_includes_default
11570 main ()
11572 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11573 test_array [0] = 0
11576 return 0;
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest.$ac_objext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_lo=$ac_mid; break
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_hi=`expr '(' $ac_mid ')' - 1`
11607 if test $ac_mid -le $ac_hi; then
11608 ac_lo= ac_hi=
11609 break
11611 ac_mid=`expr 2 '*' $ac_mid`
11613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 done
11615 else
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_lo= ac_hi=
11621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11624 # Binary search between lo and hi bounds.
11625 while test "x$ac_lo" != "x$ac_hi"; do
11626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11627 cat >conftest.$ac_ext <<_ACEOF
11628 /* confdefs.h. */
11629 _ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 $ac_includes_default
11635 main ()
11637 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11638 test_array [0] = 0
11641 return 0;
11643 _ACEOF
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -z "$ac_c_werror_flag"
11654 || test ! -s conftest.err'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_hi=$ac_mid
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_lo=`expr '(' $ac_mid ')' + 1`
11673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 done
11675 case $ac_lo in
11676 ?*) ac_cv_sizeof_off_t=$ac_lo;;
11677 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11678 See \`config.log' for more details." >&5
11679 echo "$as_me: error: cannot compute sizeof (off_t), 77
11680 See \`config.log' for more details." >&2;}
11681 { (exit 1); exit 1; }; } ;;
11682 esac
11683 else
11684 if test "$cross_compiling" = yes; then
11685 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11686 See \`config.log' for more details." >&5
11687 echo "$as_me: error: cannot run test program while cross compiling
11688 See \`config.log' for more details." >&2;}
11689 { (exit 1); exit 1; }; }
11690 else
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 $ac_includes_default
11698 long longval () { return (long) (sizeof (off_t)); }
11699 unsigned long ulongval () { return (long) (sizeof (off_t)); }
11700 #include <stdio.h>
11701 #include <stdlib.h>
11703 main ()
11706 FILE *f = fopen ("conftest.val", "w");
11707 if (! f)
11708 exit (1);
11709 if (((long) (sizeof (off_t))) < 0)
11711 long i = longval ();
11712 if (i != ((long) (sizeof (off_t))))
11713 exit (1);
11714 fprintf (f, "%ld\n", i);
11716 else
11718 unsigned long i = ulongval ();
11719 if (i != ((long) (sizeof (off_t))))
11720 exit (1);
11721 fprintf (f, "%lu\n", i);
11723 exit (ferror (f) || fclose (f) != 0);
11726 return 0;
11728 _ACEOF
11729 rm -f conftest$ac_exeext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_sizeof_off_t=`cat conftest.val`
11741 else
11742 echo "$as_me: program exited with status $ac_status" >&5
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ( exit $ac_status )
11747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11748 See \`config.log' for more details." >&5
11749 echo "$as_me: error: cannot compute sizeof (off_t), 77
11750 See \`config.log' for more details." >&2;}
11751 { (exit 1); exit 1; }; }
11753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11756 rm -f conftest.val
11757 else
11758 ac_cv_sizeof_off_t=0
11761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11762 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11763 cat >>confdefs.h <<_ACEOF
11764 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11765 _ACEOF
11769 echo "$as_me:$LINENO: checking file_ptr type" >&5
11770 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11771 bfd_file_ptr="long"
11772 bfd_ufile_ptr="unsigned long"
11773 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11774 -o x"${ac_cv_sizeof_off_t}" = x8; then
11775 bfd_file_ptr=BFD_HOST_64_BIT
11776 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11778 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11779 echo "${ECHO_T}$bfd_file_ptr" >&6
11784 tdefaults=""
11785 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11786 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11787 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11788 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11789 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11794 for ac_header in stdlib.h unistd.h
11796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11798 echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11805 else
11806 # Is the header compilable?
11807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 #include <$ac_header>
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820 (eval $ac_compile) 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -z "$ac_c_werror_flag"
11828 || test ! -s conftest.err'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_header_compiler=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_header_compiler=no
11847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849 echo "${ECHO_T}$ac_header_compiler" >&6
11851 # Is the header present?
11852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #include <$ac_header>
11861 _ACEOF
11862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } >/dev/null; then
11870 if test -s conftest.err; then
11871 ac_cpp_err=$ac_c_preproc_warn_flag
11872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11873 else
11874 ac_cpp_err=
11876 else
11877 ac_cpp_err=yes
11879 if test -z "$ac_cpp_err"; then
11880 ac_header_preproc=yes
11881 else
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_header_preproc=no
11887 rm -f conftest.err conftest.$ac_ext
11888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889 echo "${ECHO_T}$ac_header_preproc" >&6
11891 # So? What about this header?
11892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 yes:no: )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
11900 no:yes:* )
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11914 cat <<\_ASBOX
11915 ## ------------------------------------------ ##
11916 ## Report this to the AC_PACKAGE_NAME lists. ##
11917 ## ------------------------------------------ ##
11918 _ASBOX
11920 sed "s/^/$as_me: WARNING: /" >&2
11922 esac
11923 echo "$as_me:$LINENO: checking for $ac_header" >&5
11924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 eval "$as_ac_Header=\$ac_header_preproc"
11930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937 _ACEOF
11941 done
11944 for ac_func in getpagesize
11946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11947 echo "$as_me:$LINENO: checking for $ac_func" >&5
11948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11949 if eval "test \"\${$as_ac_var+set}\" = set"; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11960 #define $ac_func innocuous_$ac_func
11962 /* System header to define __stub macros and hopefully few prototypes,
11963 which can conflict with char $ac_func (); below.
11964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11965 <limits.h> exists even on freestanding compilers. */
11967 #ifdef __STDC__
11968 # include <limits.h>
11969 #else
11970 # include <assert.h>
11971 #endif
11973 #undef $ac_func
11975 /* Override any gcc2 internal prototype to avoid an error. */
11976 #ifdef __cplusplus
11977 extern "C"
11979 #endif
11980 /* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11982 char $ac_func ();
11983 /* The GNU C library defines this for functions which it implements
11984 to always fail with ENOSYS. Some functions are actually named
11985 something starting with __ and the normal name is an alias. */
11986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11987 choke me
11988 #else
11989 char (*f) () = $ac_func;
11990 #endif
11991 #ifdef __cplusplus
11993 #endif
11996 main ()
11998 return f != $ac_func;
12000 return 0;
12002 _ACEOF
12003 rm -f conftest.$ac_objext conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12032 rm -f conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12037 if test `eval echo '${'$as_ac_var'}'` = yes; then
12038 cat >>confdefs.h <<_ACEOF
12039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12040 _ACEOF
12043 done
12045 echo "$as_me:$LINENO: checking for working mmap" >&5
12046 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12047 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 if test "$cross_compiling" = yes; then
12051 ac_cv_func_mmap_fixed_mapped=no
12052 else
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12060 /* malloc might have been renamed as rpl_malloc. */
12061 #undef malloc
12063 /* Thanks to Mike Haertel and Jim Avera for this test.
12064 Here is a matrix of mmap possibilities:
12065 mmap private not fixed
12066 mmap private fixed at somewhere currently unmapped
12067 mmap private fixed at somewhere already mapped
12068 mmap shared not fixed
12069 mmap shared fixed at somewhere currently unmapped
12070 mmap shared fixed at somewhere already mapped
12071 For private mappings, we should verify that changes cannot be read()
12072 back from the file, nor mmap's back from the file at a different
12073 address. (There have been systems where private was not correctly
12074 implemented like the infamous i386 svr4.0, and systems where the
12075 VM page cache was not coherent with the file system buffer cache
12076 like early versions of FreeBSD and possibly contemporary NetBSD.)
12077 For shared mappings, we should conversely verify that changes get
12078 propagated back to all the places they're supposed to be.
12080 Grep wants private fixed already mapped.
12081 The main things grep needs to know about mmap are:
12082 * does it exist and is it safe to write into the mmap'd area
12083 * how to use it (BSD variants) */
12085 #include <fcntl.h>
12086 #include <sys/mman.h>
12088 #if !STDC_HEADERS && !HAVE_STDLIB_H
12089 char *malloc ();
12090 #endif
12092 /* This mess was copied from the GNU getpagesize.h. */
12093 #if !HAVE_GETPAGESIZE
12094 /* Assume that all systems that can run configure have sys/param.h. */
12095 # if !HAVE_SYS_PARAM_H
12096 # define HAVE_SYS_PARAM_H 1
12097 # endif
12099 # ifdef _SC_PAGESIZE
12100 # define getpagesize() sysconf(_SC_PAGESIZE)
12101 # else /* no _SC_PAGESIZE */
12102 # if HAVE_SYS_PARAM_H
12103 # include <sys/param.h>
12104 # ifdef EXEC_PAGESIZE
12105 # define getpagesize() EXEC_PAGESIZE
12106 # else /* no EXEC_PAGESIZE */
12107 # ifdef NBPG
12108 # define getpagesize() NBPG * CLSIZE
12109 # ifndef CLSIZE
12110 # define CLSIZE 1
12111 # endif /* no CLSIZE */
12112 # else /* no NBPG */
12113 # ifdef NBPC
12114 # define getpagesize() NBPC
12115 # else /* no NBPC */
12116 # ifdef PAGESIZE
12117 # define getpagesize() PAGESIZE
12118 # endif /* PAGESIZE */
12119 # endif /* no NBPC */
12120 # endif /* no NBPG */
12121 # endif /* no EXEC_PAGESIZE */
12122 # else /* no HAVE_SYS_PARAM_H */
12123 # define getpagesize() 8192 /* punt totally */
12124 # endif /* no HAVE_SYS_PARAM_H */
12125 # endif /* no _SC_PAGESIZE */
12127 #endif /* no HAVE_GETPAGESIZE */
12130 main ()
12132 char *data, *data2, *data3;
12133 int i, pagesize;
12134 int fd;
12136 pagesize = getpagesize ();
12138 /* First, make a file with some known garbage in it. */
12139 data = (char *) malloc (pagesize);
12140 if (!data)
12141 exit (1);
12142 for (i = 0; i < pagesize; ++i)
12143 *(data + i) = rand ();
12144 umask (0);
12145 fd = creat ("conftest.mmap", 0600);
12146 if (fd < 0)
12147 exit (1);
12148 if (write (fd, data, pagesize) != pagesize)
12149 exit (1);
12150 close (fd);
12152 /* Next, try to mmap the file at a fixed address which already has
12153 something else allocated at it. If we can, also make sure that
12154 we see the same garbage. */
12155 fd = open ("conftest.mmap", O_RDWR);
12156 if (fd < 0)
12157 exit (1);
12158 data2 = (char *) malloc (2 * pagesize);
12159 if (!data2)
12160 exit (1);
12161 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12162 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12163 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12164 exit (1);
12165 for (i = 0; i < pagesize; ++i)
12166 if (*(data + i) != *(data2 + i))
12167 exit (1);
12169 /* Finally, make sure that changes to the mapped area do not
12170 percolate back to the file as seen by read(). (This is a bug on
12171 some variants of i386 svr4.0.) */
12172 for (i = 0; i < pagesize; ++i)
12173 *(data2 + i) = *(data2 + i) + 1;
12174 data3 = (char *) malloc (pagesize);
12175 if (!data3)
12176 exit (1);
12177 if (read (fd, data3, pagesize) != pagesize)
12178 exit (1);
12179 for (i = 0; i < pagesize; ++i)
12180 if (*(data + i) != *(data3 + i))
12181 exit (1);
12182 close (fd);
12183 exit (0);
12185 _ACEOF
12186 rm -f conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_func_mmap_fixed_mapped=yes
12198 else
12199 echo "$as_me: program exited with status $ac_status" >&5
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 ( exit $ac_status )
12204 ac_cv_func_mmap_fixed_mapped=no
12206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12209 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12210 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12211 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12213 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_MMAP 1
12215 _ACEOF
12218 rm -f conftest.mmap
12222 for ac_func in madvise mprotect
12224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12225 echo "$as_me:$LINENO: checking for $ac_func" >&5
12226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12227 if eval "test \"\${$as_ac_var+set}\" = set"; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12238 #define $ac_func innocuous_$ac_func
12240 /* System header to define __stub macros and hopefully few prototypes,
12241 which can conflict with char $ac_func (); below.
12242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12243 <limits.h> exists even on freestanding compilers. */
12245 #ifdef __STDC__
12246 # include <limits.h>
12247 #else
12248 # include <assert.h>
12249 #endif
12251 #undef $ac_func
12253 /* Override any gcc2 internal prototype to avoid an error. */
12254 #ifdef __cplusplus
12255 extern "C"
12257 #endif
12258 /* We use char because int might match the return type of a gcc2
12259 builtin and then its argument prototype would still apply. */
12260 char $ac_func ();
12261 /* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
12264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12265 choke me
12266 #else
12267 char (*f) () = $ac_func;
12268 #endif
12269 #ifdef __cplusplus
12271 #endif
12274 main ()
12276 return f != $ac_func;
12278 return 0;
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12283 (eval $ac_link) 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "$as_ac_var=yes"
12304 else
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 eval "$as_ac_var=no"
12310 rm -f conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12315 if test `eval echo '${'$as_ac_var'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12318 _ACEOF
12321 done
12323 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12324 true+yes )
12325 cat >>confdefs.h <<\_ACEOF
12326 #define USE_MMAP 1
12327 _ACEOF
12329 esac
12331 rm -f doc/config.status
12332 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12335 ac_config_commands="$ac_config_commands default"
12342 cat >confcache <<\_ACEOF
12343 # This file is a shell script that caches the results of configure
12344 # tests run on this system so they can be shared between configure
12345 # scripts and configure runs, see configure's option --config-cache.
12346 # It is not useful on other systems. If it contains results you don't
12347 # want to keep, you may remove or edit it.
12349 # config.status only pays attention to the cache file if you give it
12350 # the --recheck option to rerun configure.
12352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12354 # following values.
12356 _ACEOF
12358 # The following way of writing the cache mishandles newlines in values,
12359 # but we know of no workaround that is simple, portable, and efficient.
12360 # So, don't put newlines in cache variables' values.
12361 # Ultrix sh set writes to stderr and can't be redirected directly,
12362 # and sets the high bit in the cache file unless we assign to the vars.
12364 (set) 2>&1 |
12365 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12366 *ac_space=\ *)
12367 # `set' does not quote correctly, so add quotes (double-quote
12368 # substitution turns \\\\ into \\, and sed turns \\ into \).
12369 sed -n \
12370 "s/'/'\\\\''/g;
12371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12374 # `set' quotes correctly as required by POSIX, so do not add quotes.
12375 sed -n \
12376 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12378 esac;
12380 sed '
12381 t clear
12382 : clear
12383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12384 t end
12385 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12386 : end' >>confcache
12387 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12388 if test -w $cache_file; then
12389 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12390 cat confcache >$cache_file
12391 else
12392 echo "not updating unwritable cache $cache_file"
12395 rm -f confcache
12397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12398 # Let make expand exec_prefix.
12399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12403 # trailing colons and then remove the whole line if VPATH becomes empty
12404 # (actually we leave an empty line to preserve line numbers).
12405 if test "x$srcdir" = x.; then
12406 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12407 s/:*\$(srcdir):*/:/;
12408 s/:*\${srcdir}:*/:/;
12409 s/:*@srcdir@:*/:/;
12410 s/^\([^=]*=[ ]*\):*/\1/;
12411 s/:*$//;
12412 s/^[^=]*=[ ]*$//;
12416 DEFS=-DHAVE_CONFIG_H
12418 ac_libobjs=
12419 ac_ltlibobjs=
12420 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12421 # 1. Remove the extension, and $U if already installed.
12422 ac_i=`echo "$ac_i" |
12423 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12424 # 2. Add them.
12425 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12426 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12427 done
12428 LIBOBJS=$ac_libobjs
12430 LTLIBOBJS=$ac_ltlibobjs
12433 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12434 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12435 Usually this means the macro was only invoked conditionally." >&5
12436 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12437 Usually this means the macro was only invoked conditionally." >&2;}
12438 { (exit 1); exit 1; }; }
12440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12441 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12442 Usually this means the macro was only invoked conditionally." >&5
12443 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12444 Usually this means the macro was only invoked conditionally." >&2;}
12445 { (exit 1); exit 1; }; }
12447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12448 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12449 Usually this means the macro was only invoked conditionally." >&5
12450 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12451 Usually this means the macro was only invoked conditionally." >&2;}
12452 { (exit 1); exit 1; }; }
12454 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12455 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12456 Usually this means the macro was only invoked conditionally." >&5
12457 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12458 Usually this means the macro was only invoked conditionally." >&2;}
12459 { (exit 1); exit 1; }; }
12461 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12462 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12463 Usually this means the macro was only invoked conditionally." >&5
12464 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12465 Usually this means the macro was only invoked conditionally." >&2;}
12466 { (exit 1); exit 1; }; }
12469 : ${CONFIG_STATUS=./config.status}
12470 ac_clean_files_save=$ac_clean_files
12471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12472 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12473 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12474 cat >$CONFIG_STATUS <<_ACEOF
12475 #! $SHELL
12476 # Generated by $as_me.
12477 # Run this file to recreate the current configuration.
12478 # Compiler output produced by configure, useful for debugging
12479 # configure, is in config.log if it exists.
12481 debug=false
12482 ac_cs_recheck=false
12483 ac_cs_silent=false
12484 SHELL=\${CONFIG_SHELL-$SHELL}
12485 _ACEOF
12487 cat >>$CONFIG_STATUS <<\_ACEOF
12488 ## --------------------- ##
12489 ## M4sh Initialization. ##
12490 ## --------------------- ##
12492 # Be Bourne compatible
12493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12494 emulate sh
12495 NULLCMD=:
12496 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12497 # is contrary to our usage. Disable this feature.
12498 alias -g '${1+"$@"}'='"$@"'
12499 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12500 set -o posix
12502 DUALCASE=1; export DUALCASE # for MKS sh
12504 # Support unset when possible.
12505 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12506 as_unset=unset
12507 else
12508 as_unset=false
12512 # Work around bugs in pre-3.0 UWIN ksh.
12513 $as_unset ENV MAIL MAILPATH
12514 PS1='$ '
12515 PS2='> '
12516 PS4='+ '
12518 # NLS nuisances.
12519 for as_var in \
12520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12522 LC_TELEPHONE LC_TIME
12524 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12525 eval $as_var=C; export $as_var
12526 else
12527 $as_unset $as_var
12529 done
12531 # Required to use basename.
12532 if expr a : '\(a\)' >/dev/null 2>&1; then
12533 as_expr=expr
12534 else
12535 as_expr=false
12538 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12539 as_basename=basename
12540 else
12541 as_basename=false
12545 # Name of the executable.
12546 as_me=`$as_basename "$0" ||
12547 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12548 X"$0" : 'X\(//\)$' \| \
12549 X"$0" : 'X\(/\)$' \| \
12550 . : '\(.\)' 2>/dev/null ||
12551 echo X/"$0" |
12552 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12553 /^X\/\(\/\/\)$/{ s//\1/; q; }
12554 /^X\/\(\/\).*/{ s//\1/; q; }
12555 s/.*/./; q'`
12558 # PATH needs CR, and LINENO needs CR and PATH.
12559 # Avoid depending upon Character Ranges.
12560 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12561 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12562 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12563 as_cr_digits='0123456789'
12564 as_cr_alnum=$as_cr_Letters$as_cr_digits
12566 # The user is always right.
12567 if test "${PATH_SEPARATOR+set}" != set; then
12568 echo "#! /bin/sh" >conf$$.sh
12569 echo "exit 0" >>conf$$.sh
12570 chmod +x conf$$.sh
12571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12572 PATH_SEPARATOR=';'
12573 else
12574 PATH_SEPARATOR=:
12576 rm -f conf$$.sh
12580 as_lineno_1=$LINENO
12581 as_lineno_2=$LINENO
12582 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12583 test "x$as_lineno_1" != "x$as_lineno_2" &&
12584 test "x$as_lineno_3" = "x$as_lineno_2" || {
12585 # Find who we are. Look in the path if we contain no path at all
12586 # relative or not.
12587 case $0 in
12588 *[\\/]* ) as_myself=$0 ;;
12589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12595 done
12598 esac
12599 # We did not find ourselves, most probably we were run as `sh COMMAND'
12600 # in which case we are not to be found in the path.
12601 if test "x$as_myself" = x; then
12602 as_myself=$0
12604 if test ! -f "$as_myself"; then
12605 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12606 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12607 { (exit 1); exit 1; }; }
12609 case $CONFIG_SHELL in
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for as_base in sh bash ksh sh5; do
12617 case $as_dir in
12619 if ("$as_dir/$as_base" -c '
12620 as_lineno_1=$LINENO
12621 as_lineno_2=$LINENO
12622 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12623 test "x$as_lineno_1" != "x$as_lineno_2" &&
12624 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12625 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12626 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12627 CONFIG_SHELL=$as_dir/$as_base
12628 export CONFIG_SHELL
12629 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12630 fi;;
12631 esac
12632 done
12633 done
12635 esac
12637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12638 # uniformly replaced by the line number. The first 'sed' inserts a
12639 # line-number line before each line; the second 'sed' does the real
12640 # work. The second script uses 'N' to pair each line-number line
12641 # with the numbered line, and appends trailing '-' during
12642 # substitution so that $LINENO is not a special case at line end.
12643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12644 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12645 sed '=' <$as_myself |
12646 sed '
12648 s,$,-,
12649 : loop
12650 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12651 t loop
12652 s,-$,,
12653 s,^['$as_cr_digits']*\n,,
12654 ' >$as_me.lineno &&
12655 chmod +x $as_me.lineno ||
12656 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12657 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12658 { (exit 1); exit 1; }; }
12660 # Don't try to exec as it changes $[0], causing all sort of problems
12661 # (the dirname of $[0] is not the place where we might find the
12662 # original and so on. Autoconf is especially sensible to this).
12663 . ./$as_me.lineno
12664 # Exit status is that of the last command.
12665 exit
12669 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12670 *c*,-n*) ECHO_N= ECHO_C='
12671 ' ECHO_T=' ' ;;
12672 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12673 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12674 esac
12676 if expr a : '\(a\)' >/dev/null 2>&1; then
12677 as_expr=expr
12678 else
12679 as_expr=false
12682 rm -f conf$$ conf$$.exe conf$$.file
12683 echo >conf$$.file
12684 if ln -s conf$$.file conf$$ 2>/dev/null; then
12685 # We could just check for DJGPP; but this test a) works b) is more generic
12686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12687 if test -f conf$$.exe; then
12688 # Don't use ln at all; we don't have any links
12689 as_ln_s='cp -p'
12690 else
12691 as_ln_s='ln -s'
12693 elif ln conf$$.file conf$$ 2>/dev/null; then
12694 as_ln_s=ln
12695 else
12696 as_ln_s='cp -p'
12698 rm -f conf$$ conf$$.exe conf$$.file
12700 if mkdir -p . 2>/dev/null; then
12701 as_mkdir_p=:
12702 else
12703 test -d ./-p && rmdir ./-p
12704 as_mkdir_p=false
12707 as_executable_p="test -f"
12709 # Sed expression to map a string onto a valid CPP name.
12710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12712 # Sed expression to map a string onto a valid variable name.
12713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12716 # IFS
12717 # We need space, tab and new line, in precisely that order.
12718 as_nl='
12720 IFS=" $as_nl"
12722 # CDPATH.
12723 $as_unset CDPATH
12725 exec 6>&1
12727 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12728 # report actual input values of CONFIG_FILES etc. instead of their
12729 # values after options handling. Logging --version etc. is OK.
12730 exec 5>>config.log
12732 echo
12733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12734 ## Running $as_me. ##
12735 _ASBOX
12736 } >&5
12737 cat >&5 <<_CSEOF
12739 This file was extended by $as_me, which was
12740 generated by GNU Autoconf 2.59. Invocation command line was
12742 CONFIG_FILES = $CONFIG_FILES
12743 CONFIG_HEADERS = $CONFIG_HEADERS
12744 CONFIG_LINKS = $CONFIG_LINKS
12745 CONFIG_COMMANDS = $CONFIG_COMMANDS
12746 $ $0 $@
12748 _CSEOF
12749 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12750 echo >&5
12751 _ACEOF
12753 # Files that config.status was made for.
12754 if test -n "$ac_config_files"; then
12755 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12758 if test -n "$ac_config_headers"; then
12759 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12762 if test -n "$ac_config_links"; then
12763 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12766 if test -n "$ac_config_commands"; then
12767 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12770 cat >>$CONFIG_STATUS <<\_ACEOF
12772 ac_cs_usage="\
12773 \`$as_me' instantiates files from templates according to the
12774 current configuration.
12776 Usage: $0 [OPTIONS] [FILE]...
12778 -h, --help print this help, then exit
12779 -V, --version print version number, then exit
12780 -q, --quiet do not print progress messages
12781 -d, --debug don't remove temporary files
12782 --recheck update $as_me by reconfiguring in the same conditions
12783 --file=FILE[:TEMPLATE]
12784 instantiate the configuration file FILE
12785 --header=FILE[:TEMPLATE]
12786 instantiate the configuration header FILE
12788 Configuration files:
12789 $config_files
12791 Configuration headers:
12792 $config_headers
12794 Configuration commands:
12795 $config_commands
12797 Report bugs to <bug-autoconf@gnu.org>."
12798 _ACEOF
12800 cat >>$CONFIG_STATUS <<_ACEOF
12801 ac_cs_version="\\
12802 config.status
12803 configured by $0, generated by GNU Autoconf 2.59,
12804 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12806 Copyright (C) 2003 Free Software Foundation, Inc.
12807 This config.status script is free software; the Free Software Foundation
12808 gives unlimited permission to copy, distribute and modify it."
12809 srcdir=$srcdir
12810 INSTALL="$INSTALL"
12811 _ACEOF
12813 cat >>$CONFIG_STATUS <<\_ACEOF
12814 # If no file are specified by the user, then we need to provide default
12815 # value. By we need to know if files were specified by the user.
12816 ac_need_defaults=:
12817 while test $# != 0
12819 case $1 in
12820 --*=*)
12821 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12822 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12823 ac_shift=:
12826 ac_option=$1
12827 ac_optarg=$2
12828 ac_shift=shift
12830 *) # This is not an option, so the user has probably given explicit
12831 # arguments.
12832 ac_option=$1
12833 ac_need_defaults=false;;
12834 esac
12836 case $ac_option in
12837 # Handling of the options.
12838 _ACEOF
12839 cat >>$CONFIG_STATUS <<\_ACEOF
12840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12841 ac_cs_recheck=: ;;
12842 --version | --vers* | -V )
12843 echo "$ac_cs_version"; exit 0 ;;
12844 --he | --h)
12845 # Conflict between --help and --header
12846 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12847 Try \`$0 --help' for more information." >&5
12848 echo "$as_me: error: ambiguous option: $1
12849 Try \`$0 --help' for more information." >&2;}
12850 { (exit 1); exit 1; }; };;
12851 --help | --hel | -h )
12852 echo "$ac_cs_usage"; exit 0 ;;
12853 --debug | --d* | -d )
12854 debug=: ;;
12855 --file | --fil | --fi | --f )
12856 $ac_shift
12857 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12858 ac_need_defaults=false;;
12859 --header | --heade | --head | --hea )
12860 $ac_shift
12861 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12862 ac_need_defaults=false;;
12863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12864 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12865 ac_cs_silent=: ;;
12867 # This is an error.
12868 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12869 Try \`$0 --help' for more information." >&5
12870 echo "$as_me: error: unrecognized option: $1
12871 Try \`$0 --help' for more information." >&2;}
12872 { (exit 1); exit 1; }; } ;;
12874 *) ac_config_targets="$ac_config_targets $1" ;;
12876 esac
12877 shift
12878 done
12880 ac_configure_extra_args=
12882 if $ac_cs_silent; then
12883 exec 6>/dev/null
12884 ac_configure_extra_args="$ac_configure_extra_args --silent"
12887 _ACEOF
12888 cat >>$CONFIG_STATUS <<_ACEOF
12889 if \$ac_cs_recheck; then
12890 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12891 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12894 _ACEOF
12896 cat >>$CONFIG_STATUS <<_ACEOF
12898 # INIT-COMMANDS section.
12901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12902 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12903 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12904 # from automake.
12905 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12906 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12907 LINGUAS="${LINGUAS-%UNSET%}"
12911 _ACEOF
12915 cat >>$CONFIG_STATUS <<\_ACEOF
12916 for ac_config_target in $ac_config_targets
12918 case "$ac_config_target" in
12919 # Handling of arguments.
12920 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12921 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12922 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12923 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12924 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12925 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12926 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12927 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12930 { (exit 1); exit 1; }; };;
12931 esac
12932 done
12934 # If the user did not use the arguments to specify the items to instantiate,
12935 # then the envvar interface is used. Set only those that are not.
12936 # We use the long form for the default assignment because of an extremely
12937 # bizarre bug on SunOS 4.1.3.
12938 if $ac_need_defaults; then
12939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12944 # Have a temporary directory for convenience. Make it in the build tree
12945 # simply because there is no reason to put it here, and in addition,
12946 # creating and moving files from /tmp can sometimes cause problems.
12947 # Create a temporary directory, and hook for its removal unless debugging.
12948 $debug ||
12950 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12951 trap '{ (exit 1); exit 1; }' 1 2 13 15
12954 # Create a (secure) tmp directory for tmp files.
12957 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12958 test -n "$tmp" && test -d "$tmp"
12959 } ||
12961 tmp=./confstat$$-$RANDOM
12962 (umask 077 && mkdir $tmp)
12963 } ||
12965 echo "$me: cannot create a temporary directory in ." >&2
12966 { (exit 1); exit 1; }
12969 _ACEOF
12971 cat >>$CONFIG_STATUS <<_ACEOF
12974 # CONFIG_FILES section.
12977 # No need to generate the scripts if there are no CONFIG_FILES.
12978 # This happens for instance when ./config.status config.h
12979 if test -n "\$CONFIG_FILES"; then
12980 # Protect against being on the right side of a sed subst in config.status.
12981 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12982 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12983 s,@SHELL@,$SHELL,;t t
12984 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12985 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12986 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12987 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12988 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12989 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12990 s,@exec_prefix@,$exec_prefix,;t t
12991 s,@prefix@,$prefix,;t t
12992 s,@program_transform_name@,$program_transform_name,;t t
12993 s,@bindir@,$bindir,;t t
12994 s,@sbindir@,$sbindir,;t t
12995 s,@libexecdir@,$libexecdir,;t t
12996 s,@datadir@,$datadir,;t t
12997 s,@sysconfdir@,$sysconfdir,;t t
12998 s,@sharedstatedir@,$sharedstatedir,;t t
12999 s,@localstatedir@,$localstatedir,;t t
13000 s,@libdir@,$libdir,;t t
13001 s,@includedir@,$includedir,;t t
13002 s,@oldincludedir@,$oldincludedir,;t t
13003 s,@infodir@,$infodir,;t t
13004 s,@mandir@,$mandir,;t t
13005 s,@build_alias@,$build_alias,;t t
13006 s,@host_alias@,$host_alias,;t t
13007 s,@target_alias@,$target_alias,;t t
13008 s,@DEFS@,$DEFS,;t t
13009 s,@ECHO_C@,$ECHO_C,;t t
13010 s,@ECHO_N@,$ECHO_N,;t t
13011 s,@ECHO_T@,$ECHO_T,;t t
13012 s,@LIBS@,$LIBS,;t t
13013 s,@build@,$build,;t t
13014 s,@build_cpu@,$build_cpu,;t t
13015 s,@build_vendor@,$build_vendor,;t t
13016 s,@build_os@,$build_os,;t t
13017 s,@host@,$host,;t t
13018 s,@host_cpu@,$host_cpu,;t t
13019 s,@host_vendor@,$host_vendor,;t t
13020 s,@host_os@,$host_os,;t t
13021 s,@target@,$target,;t t
13022 s,@target_cpu@,$target_cpu,;t t
13023 s,@target_vendor@,$target_vendor,;t t
13024 s,@target_os@,$target_os,;t t
13025 s,@CC@,$CC,;t t
13026 s,@CFLAGS@,$CFLAGS,;t t
13027 s,@LDFLAGS@,$LDFLAGS,;t t
13028 s,@CPPFLAGS@,$CPPFLAGS,;t t
13029 s,@ac_ct_CC@,$ac_ct_CC,;t t
13030 s,@EXEEXT@,$EXEEXT,;t t
13031 s,@OBJEXT@,$OBJEXT,;t t
13032 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13033 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13034 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13035 s,@CYGPATH_W@,$CYGPATH_W,;t t
13036 s,@PACKAGE@,$PACKAGE,;t t
13037 s,@VERSION@,$VERSION,;t t
13038 s,@ACLOCAL@,$ACLOCAL,;t t
13039 s,@AUTOCONF@,$AUTOCONF,;t t
13040 s,@AUTOMAKE@,$AUTOMAKE,;t t
13041 s,@AUTOHEADER@,$AUTOHEADER,;t t
13042 s,@MAKEINFO@,$MAKEINFO,;t t
13043 s,@install_sh@,$install_sh,;t t
13044 s,@STRIP@,$STRIP,;t t
13045 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13046 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13047 s,@mkdir_p@,$mkdir_p,;t t
13048 s,@AWK@,$AWK,;t t
13049 s,@SET_MAKE@,$SET_MAKE,;t t
13050 s,@am__leading_dot@,$am__leading_dot,;t t
13051 s,@AMTAR@,$AMTAR,;t t
13052 s,@am__tar@,$am__tar,;t t
13053 s,@am__untar@,$am__untar,;t t
13054 s,@DEPDIR@,$DEPDIR,;t t
13055 s,@am__include@,$am__include,;t t
13056 s,@am__quote@,$am__quote,;t t
13057 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13058 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13059 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13060 s,@CCDEPMODE@,$CCDEPMODE,;t t
13061 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13062 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13063 s,@AR@,$AR,;t t
13064 s,@ac_ct_AR@,$ac_ct_AR,;t t
13065 s,@RANLIB@,$RANLIB,;t t
13066 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13067 s,@LN_S@,$LN_S,;t t
13068 s,@LIBTOOL@,$LIBTOOL,;t t
13069 s,@PKGVERSION@,$PKGVERSION,;t t
13070 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
13071 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
13072 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13073 s,@NO_WERROR@,$NO_WERROR,;t t
13074 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13075 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13076 s,@MAINT@,$MAINT,;t t
13077 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13078 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13079 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13080 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13081 s,@host_noncanonical@,$host_noncanonical,;t t
13082 s,@target_noncanonical@,$target_noncanonical,;t t
13083 s,@bfdlibdir@,$bfdlibdir,;t t
13084 s,@bfdincludedir@,$bfdincludedir,;t t
13085 s,@USE_NLS@,$USE_NLS,;t t
13086 s,@LIBINTL@,$LIBINTL,;t t
13087 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13088 s,@INCINTL@,$INCINTL,;t t
13089 s,@XGETTEXT@,$XGETTEXT,;t t
13090 s,@GMSGFMT@,$GMSGFMT,;t t
13091 s,@POSUB@,$POSUB,;t t
13092 s,@CATALOGS@,$CATALOGS,;t t
13093 s,@DATADIRNAME@,$DATADIRNAME,;t t
13094 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13095 s,@GENCAT@,$GENCAT,;t t
13096 s,@CATOBJEXT@,$CATOBJEXT,;t t
13097 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13098 s,@MSGFMT@,$MSGFMT,;t t
13099 s,@MSGMERGE@,$MSGMERGE,;t t
13100 s,@HDEFINES@,$HDEFINES,;t t
13101 s,@CPP@,$CPP,;t t
13102 s,@EGREP@,$EGREP,;t t
13103 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13104 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13105 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13106 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13107 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13108 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13109 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13110 s,@COREFILE@,$COREFILE,;t t
13111 s,@COREFLAG@,$COREFLAG,;t t
13112 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13113 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13114 s,@TDEFINES@,$TDEFINES,;t t
13115 s,@wordsize@,$wordsize,;t t
13116 s,@bfd64_libs@,$bfd64_libs,;t t
13117 s,@all_backends@,$all_backends,;t t
13118 s,@bfd_backends@,$bfd_backends,;t t
13119 s,@bfd_machines@,$bfd_machines,;t t
13120 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13121 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13122 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13123 s,@tdefaults@,$tdefaults,;t t
13124 s,@datarootdir@,$datarootdir,;t t
13125 s,@docdir@,$docdir,;t t
13126 s,@htmldir@,$htmldir,;t t
13127 s,@LIBOBJS@,$LIBOBJS,;t t
13128 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13129 CEOF
13131 _ACEOF
13133 cat >>$CONFIG_STATUS <<\_ACEOF
13134 # Split the substitutions into bite-sized pieces for seds with
13135 # small command number limits, like on Digital OSF/1 and HP-UX.
13136 ac_max_sed_lines=48
13137 ac_sed_frag=1 # Number of current file.
13138 ac_beg=1 # First line for current file.
13139 ac_end=$ac_max_sed_lines # Line after last line for current file.
13140 ac_more_lines=:
13141 ac_sed_cmds=
13142 while $ac_more_lines; do
13143 if test $ac_beg -gt 1; then
13144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13145 else
13146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13148 if test ! -s $tmp/subs.frag; then
13149 ac_more_lines=false
13150 else
13151 # The purpose of the label and of the branching condition is to
13152 # speed up the sed processing (if there are no `@' at all, there
13153 # is no need to browse any of the substitutions).
13154 # These are the two extra sed commands mentioned above.
13155 (echo ':t
13156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13157 if test -z "$ac_sed_cmds"; then
13158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13159 else
13160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13162 ac_sed_frag=`expr $ac_sed_frag + 1`
13163 ac_beg=$ac_end
13164 ac_end=`expr $ac_end + $ac_max_sed_lines`
13166 done
13167 if test -z "$ac_sed_cmds"; then
13168 ac_sed_cmds=cat
13170 fi # test -n "$CONFIG_FILES"
13172 _ACEOF
13173 cat >>$CONFIG_STATUS <<\_ACEOF
13174 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13176 case $ac_file in
13177 - | *:- | *:-:* ) # input from stdin
13178 cat >$tmp/stdin
13179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13183 * ) ac_file_in=$ac_file.in ;;
13184 esac
13186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13189 X"$ac_file" : 'X\(//\)[^/]' \| \
13190 X"$ac_file" : 'X\(//\)$' \| \
13191 X"$ac_file" : 'X\(/\)' \| \
13192 . : '\(.\)' 2>/dev/null ||
13193 echo X"$ac_file" |
13194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13196 /^X\(\/\/\)$/{ s//\1/; q; }
13197 /^X\(\/\).*/{ s//\1/; q; }
13198 s/.*/./; q'`
13199 { if $as_mkdir_p; then
13200 mkdir -p "$ac_dir"
13201 else
13202 as_dir="$ac_dir"
13203 as_dirs=
13204 while test ! -d "$as_dir"; do
13205 as_dirs="$as_dir $as_dirs"
13206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13208 X"$as_dir" : 'X\(//\)[^/]' \| \
13209 X"$as_dir" : 'X\(//\)$' \| \
13210 X"$as_dir" : 'X\(/\)' \| \
13211 . : '\(.\)' 2>/dev/null ||
13212 echo X"$as_dir" |
13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13215 /^X\(\/\/\)$/{ s//\1/; q; }
13216 /^X\(\/\).*/{ s//\1/; q; }
13217 s/.*/./; q'`
13218 done
13219 test ! -n "$as_dirs" || mkdir $as_dirs
13220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13222 { (exit 1); exit 1; }; }; }
13224 ac_builddir=.
13226 if test "$ac_dir" != .; then
13227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13228 # A "../" for each directory in $ac_dir_suffix.
13229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13230 else
13231 ac_dir_suffix= ac_top_builddir=
13234 case $srcdir in
13235 .) # No --srcdir option. We are building in place.
13236 ac_srcdir=.
13237 if test -z "$ac_top_builddir"; then
13238 ac_top_srcdir=.
13239 else
13240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13241 fi ;;
13242 [\\/]* | ?:[\\/]* ) # Absolute path.
13243 ac_srcdir=$srcdir$ac_dir_suffix;
13244 ac_top_srcdir=$srcdir ;;
13245 *) # Relative path.
13246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13248 esac
13250 # Do not use `cd foo && pwd` to compute absolute paths, because
13251 # the directories may not exist.
13252 case `pwd` in
13253 .) ac_abs_builddir="$ac_dir";;
13255 case "$ac_dir" in
13256 .) ac_abs_builddir=`pwd`;;
13257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13259 esac;;
13260 esac
13261 case $ac_abs_builddir in
13262 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13264 case ${ac_top_builddir}. in
13265 .) ac_abs_top_builddir=$ac_abs_builddir;;
13266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13268 esac;;
13269 esac
13270 case $ac_abs_builddir in
13271 .) ac_abs_srcdir=$ac_srcdir;;
13273 case $ac_srcdir in
13274 .) ac_abs_srcdir=$ac_abs_builddir;;
13275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13277 esac;;
13278 esac
13279 case $ac_abs_builddir in
13280 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13282 case $ac_top_srcdir in
13283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13286 esac;;
13287 esac
13290 case $INSTALL in
13291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13293 esac
13295 if test x"$ac_file" != x-; then
13296 { echo "$as_me:$LINENO: creating $ac_file" >&5
13297 echo "$as_me: creating $ac_file" >&6;}
13298 rm -f "$ac_file"
13300 # Let's still pretend it is `configure' which instantiates (i.e., don't
13301 # use $as_me), people would be surprised to read:
13302 # /* config.h. Generated by config.status. */
13303 if test x"$ac_file" = x-; then
13304 configure_input=
13305 else
13306 configure_input="$ac_file. "
13308 configure_input=$configure_input"Generated from `echo $ac_file_in |
13309 sed 's,.*/,,'` by configure."
13311 # First look for the input files in the build tree, otherwise in the
13312 # src tree.
13313 ac_file_inputs=`IFS=:
13314 for f in $ac_file_in; do
13315 case $f in
13316 -) echo $tmp/stdin ;;
13317 [\\/$]*)
13318 # Absolute (can't be DOS-style, as IFS=:)
13319 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13320 echo "$as_me: error: cannot find input file: $f" >&2;}
13321 { (exit 1); exit 1; }; }
13322 echo "$f";;
13323 *) # Relative
13324 if test -f "$f"; then
13325 # Build tree
13326 echo "$f"
13327 elif test -f "$srcdir/$f"; then
13328 # Source tree
13329 echo "$srcdir/$f"
13330 else
13331 # /dev/null tree
13332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13333 echo "$as_me: error: cannot find input file: $f" >&2;}
13334 { (exit 1); exit 1; }; }
13335 fi;;
13336 esac
13337 done` || { (exit 1); exit 1; }
13338 _ACEOF
13339 cat >>$CONFIG_STATUS <<_ACEOF
13340 sed "$ac_vpsub
13341 $extrasub
13342 _ACEOF
13343 cat >>$CONFIG_STATUS <<\_ACEOF
13345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13346 s,@configure_input@,$configure_input,;t t
13347 s,@srcdir@,$ac_srcdir,;t t
13348 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13349 s,@top_srcdir@,$ac_top_srcdir,;t t
13350 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13351 s,@builddir@,$ac_builddir,;t t
13352 s,@abs_builddir@,$ac_abs_builddir,;t t
13353 s,@top_builddir@,$ac_top_builddir,;t t
13354 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13355 s,@INSTALL@,$ac_INSTALL,;t t
13356 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13357 rm -f $tmp/stdin
13358 if test x"$ac_file" != x-; then
13359 mv $tmp/out $ac_file
13360 else
13361 cat $tmp/out
13362 rm -f $tmp/out
13365 done
13366 _ACEOF
13367 cat >>$CONFIG_STATUS <<\_ACEOF
13370 # CONFIG_HEADER section.
13373 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13374 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13376 # ac_d sets the value in "#define NAME VALUE" lines.
13377 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13378 ac_dB='[ ].*$,\1#\2'
13379 ac_dC=' '
13380 ac_dD=',;t'
13381 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13382 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13383 ac_uB='$,\1#\2define\3'
13384 ac_uC=' '
13385 ac_uD=',;t'
13387 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13389 case $ac_file in
13390 - | *:- | *:-:* ) # input from stdin
13391 cat >$tmp/stdin
13392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13396 * ) ac_file_in=$ac_file.in ;;
13397 esac
13399 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13400 echo "$as_me: creating $ac_file" >&6;}
13402 # First look for the input files in the build tree, otherwise in the
13403 # src tree.
13404 ac_file_inputs=`IFS=:
13405 for f in $ac_file_in; do
13406 case $f in
13407 -) echo $tmp/stdin ;;
13408 [\\/$]*)
13409 # Absolute (can't be DOS-style, as IFS=:)
13410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13411 echo "$as_me: error: cannot find input file: $f" >&2;}
13412 { (exit 1); exit 1; }; }
13413 # Do quote $f, to prevent DOS paths from being IFS'd.
13414 echo "$f";;
13415 *) # Relative
13416 if test -f "$f"; then
13417 # Build tree
13418 echo "$f"
13419 elif test -f "$srcdir/$f"; then
13420 # Source tree
13421 echo "$srcdir/$f"
13422 else
13423 # /dev/null tree
13424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13425 echo "$as_me: error: cannot find input file: $f" >&2;}
13426 { (exit 1); exit 1; }; }
13427 fi;;
13428 esac
13429 done` || { (exit 1); exit 1; }
13430 # Remove the trailing spaces.
13431 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13433 _ACEOF
13435 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13436 # `conftest.undefs', that substitutes the proper values into
13437 # config.h.in to produce config.h. The first handles `#define'
13438 # templates, and the second `#undef' templates.
13439 # And first: Protect against being on the right side of a sed subst in
13440 # config.status. Protect against being in an unquoted here document
13441 # in config.status.
13442 rm -f conftest.defines conftest.undefs
13443 # Using a here document instead of a string reduces the quoting nightmare.
13444 # Putting comments in sed scripts is not portable.
13446 # `end' is used to avoid that the second main sed command (meant for
13447 # 0-ary CPP macros) applies to n-ary macro definitions.
13448 # See the Autoconf documentation for `clear'.
13449 cat >confdef2sed.sed <<\_ACEOF
13450 s/[\\&,]/\\&/g
13451 s,[\\$`],\\&,g
13452 t clear
13453 : clear
13454 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13455 t end
13456 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13457 : end
13458 _ACEOF
13459 # If some macros were called several times there might be several times
13460 # the same #defines, which is useless. Nevertheless, we may not want to
13461 # sort them, since we want the *last* AC-DEFINE to be honored.
13462 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13463 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13464 rm -f confdef2sed.sed
13466 # This sed command replaces #undef with comments. This is necessary, for
13467 # example, in the case of _POSIX_SOURCE, which is predefined and required
13468 # on some systems where configure will not decide to define it.
13469 cat >>conftest.undefs <<\_ACEOF
13470 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13471 _ACEOF
13473 # Break up conftest.defines because some shells have a limit on the size
13474 # of here documents, and old seds have small limits too (100 cmds).
13475 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13476 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13477 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13478 echo ' :' >>$CONFIG_STATUS
13479 rm -f conftest.tail
13480 while grep . conftest.defines >/dev/null
13482 # Write a limited-size here document to $tmp/defines.sed.
13483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13484 # Speed up: don't consider the non `#define' lines.
13485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13486 # Work around the forget-to-reset-the-flag bug.
13487 echo 't clr' >>$CONFIG_STATUS
13488 echo ': clr' >>$CONFIG_STATUS
13489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13490 echo 'CEOF
13491 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13492 rm -f $tmp/in
13493 mv $tmp/out $tmp/in
13494 ' >>$CONFIG_STATUS
13495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13496 rm -f conftest.defines
13497 mv conftest.tail conftest.defines
13498 done
13499 rm -f conftest.defines
13500 echo ' fi # grep' >>$CONFIG_STATUS
13501 echo >>$CONFIG_STATUS
13503 # Break up conftest.undefs because some shells have a limit on the size
13504 # of here documents, and old seds have small limits too (100 cmds).
13505 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13506 rm -f conftest.tail
13507 while grep . conftest.undefs >/dev/null
13509 # Write a limited-size here document to $tmp/undefs.sed.
13510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13511 # Speed up: don't consider the non `#undef'
13512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13513 # Work around the forget-to-reset-the-flag bug.
13514 echo 't clr' >>$CONFIG_STATUS
13515 echo ': clr' >>$CONFIG_STATUS
13516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13517 echo 'CEOF
13518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13519 rm -f $tmp/in
13520 mv $tmp/out $tmp/in
13521 ' >>$CONFIG_STATUS
13522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13523 rm -f conftest.undefs
13524 mv conftest.tail conftest.undefs
13525 done
13526 rm -f conftest.undefs
13528 cat >>$CONFIG_STATUS <<\_ACEOF
13529 # Let's still pretend it is `configure' which instantiates (i.e., don't
13530 # use $as_me), people would be surprised to read:
13531 # /* config.h. Generated by config.status. */
13532 if test x"$ac_file" = x-; then
13533 echo "/* Generated by configure. */" >$tmp/config.h
13534 else
13535 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13537 cat $tmp/in >>$tmp/config.h
13538 rm -f $tmp/in
13539 if test x"$ac_file" != x-; then
13540 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13541 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13542 echo "$as_me: $ac_file is unchanged" >&6;}
13543 else
13544 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13546 X"$ac_file" : 'X\(//\)[^/]' \| \
13547 X"$ac_file" : 'X\(//\)$' \| \
13548 X"$ac_file" : 'X\(/\)' \| \
13549 . : '\(.\)' 2>/dev/null ||
13550 echo X"$ac_file" |
13551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13553 /^X\(\/\/\)$/{ s//\1/; q; }
13554 /^X\(\/\).*/{ s//\1/; q; }
13555 s/.*/./; q'`
13556 { if $as_mkdir_p; then
13557 mkdir -p "$ac_dir"
13558 else
13559 as_dir="$ac_dir"
13560 as_dirs=
13561 while test ! -d "$as_dir"; do
13562 as_dirs="$as_dir $as_dirs"
13563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13565 X"$as_dir" : 'X\(//\)[^/]' \| \
13566 X"$as_dir" : 'X\(//\)$' \| \
13567 X"$as_dir" : 'X\(/\)' \| \
13568 . : '\(.\)' 2>/dev/null ||
13569 echo X"$as_dir" |
13570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13572 /^X\(\/\/\)$/{ s//\1/; q; }
13573 /^X\(\/\).*/{ s//\1/; q; }
13574 s/.*/./; q'`
13575 done
13576 test ! -n "$as_dirs" || mkdir $as_dirs
13577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13578 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13579 { (exit 1); exit 1; }; }; }
13581 rm -f $ac_file
13582 mv $tmp/config.h $ac_file
13584 else
13585 cat $tmp/config.h
13586 rm -f $tmp/config.h
13588 # Compute $ac_file's index in $config_headers.
13589 _am_stamp_count=1
13590 for _am_header in $config_headers :; do
13591 case $_am_header in
13592 $ac_file | $ac_file:* )
13593 break ;;
13595 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13596 esac
13597 done
13598 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13599 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600 X$ac_file : 'X\(//\)[^/]' \| \
13601 X$ac_file : 'X\(//\)$' \| \
13602 X$ac_file : 'X\(/\)' \| \
13603 . : '\(.\)' 2>/dev/null ||
13604 echo X$ac_file |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13607 /^X\(\/\/\)$/{ s//\1/; q; }
13608 /^X\(\/\).*/{ s//\1/; q; }
13609 s/.*/./; q'`/stamp-h$_am_stamp_count
13610 done
13611 _ACEOF
13612 cat >>$CONFIG_STATUS <<\_ACEOF
13615 # CONFIG_COMMANDS section.
13617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13622 X"$ac_dest" : 'X\(//\)[^/]' \| \
13623 X"$ac_dest" : 'X\(//\)$' \| \
13624 X"$ac_dest" : 'X\(/\)' \| \
13625 . : '\(.\)' 2>/dev/null ||
13626 echo X"$ac_dest" |
13627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13629 /^X\(\/\/\)$/{ s//\1/; q; }
13630 /^X\(\/\).*/{ s//\1/; q; }
13631 s/.*/./; q'`
13632 { if $as_mkdir_p; then
13633 mkdir -p "$ac_dir"
13634 else
13635 as_dir="$ac_dir"
13636 as_dirs=
13637 while test ! -d "$as_dir"; do
13638 as_dirs="$as_dir $as_dirs"
13639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13641 X"$as_dir" : 'X\(//\)[^/]' \| \
13642 X"$as_dir" : 'X\(//\)$' \| \
13643 X"$as_dir" : 'X\(/\)' \| \
13644 . : '\(.\)' 2>/dev/null ||
13645 echo X"$as_dir" |
13646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13648 /^X\(\/\/\)$/{ s//\1/; q; }
13649 /^X\(\/\).*/{ s//\1/; q; }
13650 s/.*/./; q'`
13651 done
13652 test ! -n "$as_dirs" || mkdir $as_dirs
13653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13655 { (exit 1); exit 1; }; }; }
13657 ac_builddir=.
13659 if test "$ac_dir" != .; then
13660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13661 # A "../" for each directory in $ac_dir_suffix.
13662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13663 else
13664 ac_dir_suffix= ac_top_builddir=
13667 case $srcdir in
13668 .) # No --srcdir option. We are building in place.
13669 ac_srcdir=.
13670 if test -z "$ac_top_builddir"; then
13671 ac_top_srcdir=.
13672 else
13673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13674 fi ;;
13675 [\\/]* | ?:[\\/]* ) # Absolute path.
13676 ac_srcdir=$srcdir$ac_dir_suffix;
13677 ac_top_srcdir=$srcdir ;;
13678 *) # Relative path.
13679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13680 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13681 esac
13683 # Do not use `cd foo && pwd` to compute absolute paths, because
13684 # the directories may not exist.
13685 case `pwd` in
13686 .) ac_abs_builddir="$ac_dir";;
13688 case "$ac_dir" in
13689 .) ac_abs_builddir=`pwd`;;
13690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13691 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13692 esac;;
13693 esac
13694 case $ac_abs_builddir in
13695 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13697 case ${ac_top_builddir}. in
13698 .) ac_abs_top_builddir=$ac_abs_builddir;;
13699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13701 esac;;
13702 esac
13703 case $ac_abs_builddir in
13704 .) ac_abs_srcdir=$ac_srcdir;;
13706 case $ac_srcdir in
13707 .) ac_abs_srcdir=$ac_abs_builddir;;
13708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13710 esac;;
13711 esac
13712 case $ac_abs_builddir in
13713 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13715 case $ac_top_srcdir in
13716 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13719 esac;;
13720 esac
13723 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13724 echo "$as_me: executing $ac_dest commands" >&6;}
13725 case $ac_dest in
13726 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13727 # Strip MF so we end up with the name of the file.
13728 mf=`echo "$mf" | sed -e 's/:.*$//'`
13729 # Check whether this is an Automake generated Makefile or not.
13730 # We used to match only the files named `Makefile.in', but
13731 # some people rename them; so instead we look at the file content.
13732 # Grep'ing the first line is not enough: some people post-process
13733 # each Makefile.in and add a new line on top of each file to say so.
13734 # So let's grep whole file.
13735 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13736 dirpart=`(dirname "$mf") 2>/dev/null ||
13737 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13738 X"$mf" : 'X\(//\)[^/]' \| \
13739 X"$mf" : 'X\(//\)$' \| \
13740 X"$mf" : 'X\(/\)' \| \
13741 . : '\(.\)' 2>/dev/null ||
13742 echo X"$mf" |
13743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13745 /^X\(\/\/\)$/{ s//\1/; q; }
13746 /^X\(\/\).*/{ s//\1/; q; }
13747 s/.*/./; q'`
13748 else
13749 continue
13751 # Extract the definition of DEPDIR, am__include, and am__quote
13752 # from the Makefile without running `make'.
13753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13754 test -z "$DEPDIR" && continue
13755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13756 test -z "am__include" && continue
13757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13758 # When using ansi2knr, U may be empty or an underscore; expand it
13759 U=`sed -n 's/^U = //p' < "$mf"`
13760 # Find all dependency output files, they are included files with
13761 # $(DEPDIR) in their names. We invoke sed twice because it is the
13762 # simplest approach to changing $(DEPDIR) to its actual value in the
13763 # expansion.
13764 for file in `sed -n "
13765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13767 # Make sure the directory exists.
13768 test -f "$dirpart/$file" && continue
13769 fdir=`(dirname "$file") 2>/dev/null ||
13770 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13771 X"$file" : 'X\(//\)[^/]' \| \
13772 X"$file" : 'X\(//\)$' \| \
13773 X"$file" : 'X\(/\)' \| \
13774 . : '\(.\)' 2>/dev/null ||
13775 echo X"$file" |
13776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13778 /^X\(\/\/\)$/{ s//\1/; q; }
13779 /^X\(\/\).*/{ s//\1/; q; }
13780 s/.*/./; q'`
13781 { if $as_mkdir_p; then
13782 mkdir -p $dirpart/$fdir
13783 else
13784 as_dir=$dirpart/$fdir
13785 as_dirs=
13786 while test ! -d "$as_dir"; do
13787 as_dirs="$as_dir $as_dirs"
13788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790 X"$as_dir" : 'X\(//\)[^/]' \| \
13791 X"$as_dir" : 'X\(//\)$' \| \
13792 X"$as_dir" : 'X\(/\)' \| \
13793 . : '\(.\)' 2>/dev/null ||
13794 echo X"$as_dir" |
13795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13797 /^X\(\/\/\)$/{ s//\1/; q; }
13798 /^X\(\/\).*/{ s//\1/; q; }
13799 s/.*/./; q'`
13800 done
13801 test ! -n "$as_dirs" || mkdir $as_dirs
13802 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13803 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13804 { (exit 1); exit 1; }; }; }
13806 # echo "creating $dirpart/$file"
13807 echo '# dummy' > "$dirpart/$file"
13808 done
13809 done
13811 default-1 )
13812 for ac_file in $CONFIG_FILES; do
13813 # Support "outfile[:infile[:infile...]]"
13814 case "$ac_file" in
13815 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13816 esac
13817 # PO directories have a Makefile.in generated from Makefile.in.in.
13818 case "$ac_file" in */Makefile.in)
13819 # Adjust a relative srcdir.
13820 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13821 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13822 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13823 # In autoconf-2.13 it is called $ac_given_srcdir.
13824 # In autoconf-2.50 it is called $srcdir.
13825 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13826 case "$ac_given_srcdir" in
13827 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13828 /*) top_srcdir="$ac_given_srcdir" ;;
13829 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13830 esac
13831 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13832 rm -f "$ac_dir/POTFILES"
13833 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13834 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13835 POMAKEFILEDEPS="POTFILES.in"
13836 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13837 # on $ac_dir but don't depend on user-specified configuration
13838 # parameters.
13839 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13840 # The LINGUAS file contains the set of available languages.
13841 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13842 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13844 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13845 # Hide the ALL_LINGUAS assigment from automake.
13846 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13847 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13848 else
13849 # The set of available languages was given in configure.in.
13850 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13852 case "$ac_given_srcdir" in
13853 .) srcdirpre= ;;
13854 *) srcdirpre='$(srcdir)/' ;;
13855 esac
13856 POFILES=
13857 GMOFILES=
13858 UPDATEPOFILES=
13859 DUMMYPOFILES=
13860 for lang in $ALL_LINGUAS; do
13861 POFILES="$POFILES $srcdirpre$lang.po"
13862 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13863 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13864 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13865 done
13866 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13867 # environment variable.
13868 INST_LINGUAS=
13869 if test -n "$ALL_LINGUAS"; then
13870 for presentlang in $ALL_LINGUAS; do
13871 useit=no
13872 if test "%UNSET%" != "$LINGUAS"; then
13873 desiredlanguages="$LINGUAS"
13874 else
13875 desiredlanguages="$ALL_LINGUAS"
13877 for desiredlang in $desiredlanguages; do
13878 # Use the presentlang catalog if desiredlang is
13879 # a. equal to presentlang, or
13880 # b. a variant of presentlang (because in this case,
13881 # presentlang can be used as a fallback for messages
13882 # which are not translated in the desiredlang catalog).
13883 case "$desiredlang" in
13884 "$presentlang"*) useit=yes;;
13885 esac
13886 done
13887 if test $useit = yes; then
13888 INST_LINGUAS="$INST_LINGUAS $presentlang"
13890 done
13892 CATALOGS=
13893 if test -n "$INST_LINGUAS"; then
13894 for lang in $INST_LINGUAS; do
13895 CATALOGS="$CATALOGS $lang.gmo"
13896 done
13898 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13899 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13900 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13901 if test -f "$f"; then
13902 case "$f" in
13903 *.orig | *.bak | *~) ;;
13904 *) cat "$f" >> "$ac_dir/Makefile" ;;
13905 esac
13907 done
13910 esac
13911 done ;;
13912 default )
13913 case "$srcdir" in
13914 .) srcdirpre= ;;
13915 *) srcdirpre='$(srcdir)/' ;;
13916 esac
13917 POFILES=
13918 GMOFILES=
13919 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13920 if test $lang != dummy; then
13921 POFILES="$POFILES $srcdirpre$lang.po"
13922 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13924 done
13925 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13926 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13927 -e "s,@POFILES@,$POFILES," \
13928 -e "s,@GMOFILES@,$GMOFILES," \
13929 po/Makefile.in > po/Makefile ;;
13930 esac
13931 done
13932 _ACEOF
13934 cat >>$CONFIG_STATUS <<\_ACEOF
13936 { (exit 0); exit 0; }
13937 _ACEOF
13938 chmod +x $CONFIG_STATUS
13939 ac_clean_files=$ac_clean_files_save
13942 # configure is writing to config.log, and then calls config.status.
13943 # config.status does its own redirection, appending to config.log.
13944 # Unfortunately, on DOS this fails, as config.log is still kept open
13945 # by configure, so config.status won't be able to write to it; its
13946 # output is simply discarded. So we exec the FD to /dev/null,
13947 # effectively closing config.log, so it can be properly (re)opened and
13948 # appended to by config.status. When coming back to configure, we
13949 # need to make the FD available again.
13950 if test "$no_create" != yes; then
13951 ac_cs_success=:
13952 ac_config_status_args=
13953 test "$silent" = yes &&
13954 ac_config_status_args="$ac_config_status_args --quiet"
13955 exec 5>/dev/null
13956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13957 exec 5>>config.log
13958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13959 # would make configure fail if this is the last instruction.
13960 $ac_cs_success || { (exit 1); exit 1; }