bfd:
[binutils.git] / bfd / configure
blobbb651a599a94c056dc4ff2e252bb22b9db99aa02
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 Add PKG to the version string
877 --with-bugurl=URL Direct users to URL to report a bug
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 _ACEOF
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 cd $ac_popdir
980 done
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991 exit 0
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1001 $ $0 $@
1003 _ACEOF
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 _ASUNAME
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035 done
1037 } >&5
1039 cat >&5 <<_ACEOF
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1046 _ACEOF
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_configure_args=
1055 ac_configure_args0=
1056 ac_configure_args1=
1057 ac_sep=
1058 ac_must_keep_next=false
1059 for ac_pass in 1 2
1061 for ac_arg
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1094 esac
1095 done
1096 done
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1108 echo
1110 cat <<\_ASBOX
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1114 _ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 esac;
1131 echo
1133 cat <<\_ASBOX
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148 ## ------------- ##
1149 ## Output files. ##
1150 ## ------------- ##
1151 _ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163 ## ----------- ##
1164 ## confdefs.h. ##
1165 ## ----------- ##
1166 _ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 done
1182 ac_signal=0
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 echo >confdefs.h
1189 # Predefined preprocessor variables.
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 _ACEOF
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1232 done
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1245 else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1251 # Check that the precious variables saved in the cache have kept the same
1252 # value.
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1293 done
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_aux_dir=
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Make sure we can run config.sub.
1354 $ac_config_sub sun4 >/dev/null 2>&1 ||
1355 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1356 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1357 { (exit 1); exit 1; }; }
1359 echo "$as_me:$LINENO: checking build system type" >&5
1360 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1361 if test "${ac_cv_build+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 ac_cv_build_alias=$build_alias
1365 test -z "$ac_cv_build_alias" &&
1366 ac_cv_build_alias=`$ac_config_guess`
1367 test -z "$ac_cv_build_alias" &&
1368 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1369 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1370 { (exit 1); exit 1; }; }
1371 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1378 echo "${ECHO_T}$ac_cv_build" >&6
1379 build=$ac_cv_build
1380 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 echo "$as_me:$LINENO: checking host system type" >&5
1386 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1387 if test "${ac_cv_host+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390 ac_cv_host_alias=$host_alias
1391 test -z "$ac_cv_host_alias" &&
1392 ac_cv_host_alias=$ac_cv_build_alias
1393 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1400 echo "${ECHO_T}$ac_cv_host" >&6
1401 host=$ac_cv_host
1402 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:$LINENO: checking target system type" >&5
1408 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1409 if test "${ac_cv_target+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 ac_cv_target_alias=$target_alias
1413 test "x$ac_cv_target_alias" = "x" &&
1414 ac_cv_target_alias=$ac_cv_host_alias
1415 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1422 echo "${ECHO_T}$ac_cv_target" >&6
1423 target=$ac_cv_target
1424 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 # The aliases save the names the user supplied, while $host etc.
1430 # will get canonicalized.
1431 test -n "$target_alias" &&
1432 test "$program_prefix$program_suffix$program_transform_name" = \
1433 NONENONEs,x,x, &&
1434 program_prefix=${target_alias}-
1435 ac_ext=c
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1500 done
1501 done
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1514 CC=$ac_ct_CC
1515 else
1516 CC="$ac_cv_prog_CC"
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1542 done
1543 done
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1580 done
1581 done
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 CC=$ac_ct_CC
1595 else
1596 CC="$ac_cv_prog_CC"
1600 if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602 set dummy cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 ac_prog_rejected=no
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1630 if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
1634 if test $# != 0; then
1635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$CC" && break
1694 done
1696 if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701 set dummy $ac_prog; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1721 done
1722 done
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 test -n "$ac_ct_CC" && break
1736 done
1738 CC=$ac_ct_CC
1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: no acceptable C compiler found in \$PATH
1747 See \`config.log' for more details." >&2;}
1748 { (exit 1); exit 1; }; }
1750 # Provide some information about the compiler.
1751 echo "$as_me:$LINENO:" \
1752 "checking for C compiler version" >&5
1753 ac_compiler=`set X $ac_compile; echo $2`
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1755 (eval $ac_compiler --version </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1760 (eval $ac_compiler -v </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1765 (eval $ac_compiler -V </dev/null >&5) 2>&5
1766 ac_status=$?
1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768 (exit $ac_status); }
1770 cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h. */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1778 main ()
1782 return 0;
1784 _ACEOF
1785 ac_clean_files_save=$ac_clean_files
1786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1789 # of exeext.
1790 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # resort.
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 ac_cv_exeext=
1805 # b.out is created by i960 compilers.
1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 conftest.$ac_ext )
1813 # This is the source file.
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1827 break;;
1828 esac
1829 done
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877 ac_clean_files=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 # `rm'.
1896 for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905 done
1906 else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.$ac_ext
1919 EXEEXT=$ac_cv_exeext
1920 ac_exeext=$EXEEXT
1921 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1923 if test "${ac_cv_objext+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926 cat >conftest.$ac_ext <<_ACEOF
1927 /* confdefs.h. */
1928 _ACEOF
1929 cat confdefs.h >>conftest.$ac_ext
1930 cat >>conftest.$ac_ext <<_ACEOF
1931 /* end confdefs.h. */
1934 main ()
1938 return 0;
1940 _ACEOF
1941 rm -f conftest.o conftest.obj
1942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 break;;
1952 esac
1953 done
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1961 See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1968 echo "${ECHO_T}$ac_cv_objext" >&6
1969 OBJEXT=$ac_cv_objext
1970 ac_objext=$OBJEXT
1971 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 cat >conftest.$ac_ext <<_ACEOF
1977 /* confdefs.h. */
1978 _ACEOF
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1984 main ()
1986 #ifndef __GNUC__
1987 choke me
1988 #endif
1991 return 0;
1993 _ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>conftest.er1
1997 ac_status=$?
1998 grep -v '^ *+' conftest.er1 >conftest.err
1999 rm -f conftest.er1
2000 cat conftest.err >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -z "$ac_c_werror_flag"
2004 || test ! -s conftest.err'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 ac_compiler_gnu=yes
2017 else
2018 echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_compiler_gnu=no
2023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2027 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2028 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2029 GCC=`test $ac_compiler_gnu = yes && echo yes`
2030 ac_test_CFLAGS=${CFLAGS+set}
2031 ac_save_CFLAGS=$CFLAGS
2032 CFLAGS="-g"
2033 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2035 if test "${ac_cv_prog_cc_g+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 cat >conftest.$ac_ext <<_ACEOF
2039 /* confdefs.h. */
2040 _ACEOF
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h. */
2046 main ()
2050 return 0;
2052 _ACEOF
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2056 ac_status=$?
2057 grep -v '^ *+' conftest.er1 >conftest.err
2058 rm -f conftest.er1
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_g=yes
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_cv_prog_cc_g=no
2082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2086 if test "$ac_test_CFLAGS" = set; then
2087 CFLAGS=$ac_save_CFLAGS
2088 elif test $ac_cv_prog_cc_g = yes; then
2089 if test "$GCC" = yes; then
2090 CFLAGS="-g -O2"
2091 else
2092 CFLAGS="-g"
2094 else
2095 if test "$GCC" = yes; then
2096 CFLAGS="-O2"
2097 else
2098 CFLAGS=
2101 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2102 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2103 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 ac_cv_prog_cc_stdc=no
2107 ac_save_CC=$CC
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2114 #include <stdarg.h>
2115 #include <stdio.h>
2116 #include <sys/types.h>
2117 #include <sys/stat.h>
2118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2119 struct buf { int x; };
2120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2121 static char *e (p, i)
2122 char **p;
2123 int i;
2125 return p[i];
2127 static char *f (char * (*g) (char **, int), char **p, ...)
2129 char *s;
2130 va_list v;
2131 va_start (v,p);
2132 s = g (p, va_arg (v,int));
2133 va_end (v);
2134 return s;
2137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2138 function prototypes and stuff, but not '\xHH' hex character constants.
2139 These don't provoke an error unfortunately, instead are silently treated
2140 as 'x'. The following induces an error, until -std1 is added to get
2141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2142 array size at least. It's necessary to write '\x00'==0 to get something
2143 that's true only with -std1. */
2144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146 int test (int i, double x);
2147 struct s1 {int (*f) (int a);};
2148 struct s2 {int (*f) (double a);};
2149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2150 int argc;
2151 char **argv;
2153 main ()
2155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 return 0;
2159 _ACEOF
2160 # Don't try gcc -ansi; that turns off useful extensions and
2161 # breaks some systems' header files.
2162 # AIX -qlanglvl=ansi
2163 # Ultrix and OSF/1 -std1
2164 # HP-UX 10.20 and later -Ae
2165 # HP-UX older versions -Aa -D_HPUX_SOURCE
2166 # SVR4 -Xc -D__EXTENSIONS__
2167 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169 CC="$ac_save_CC $ac_arg"
2170 rm -f conftest.$ac_objext
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_cv_prog_cc_stdc=$ac_arg
2193 break
2194 else
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2199 rm -f conftest.err conftest.$ac_objext
2200 done
2201 rm -f conftest.$ac_ext conftest.$ac_objext
2202 CC=$ac_save_CC
2206 case "x$ac_cv_prog_cc_stdc" in
2207 x|xno)
2208 echo "$as_me:$LINENO: result: none needed" >&5
2209 echo "${ECHO_T}none needed" >&6 ;;
2211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2212 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2213 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 esac
2216 # Some people use a C++ compiler to compile C. Since we use `exit',
2217 # in C++ we need to declare it. In case someone uses the same compiler
2218 # for both compiling C and C++ we need to have the C++ compiler decide
2219 # the declaration of exit, since it's the most demanding environment.
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #ifndef __cplusplus
2222 choke me
2223 #endif
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 for ac_declaration in \
2248 '' \
2249 'extern "C" void std::exit (int) throw (); using std::exit;' \
2250 'extern "C" void std::exit (int); using std::exit;' \
2251 'extern "C" void exit (int) throw ();' \
2252 'extern "C" void exit (int);' \
2253 'void exit (int);'
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261 $ac_declaration
2262 #include <stdlib.h>
2264 main ()
2266 exit (42);
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2274 ac_status=$?
2275 grep -v '^ *+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -z "$ac_c_werror_flag"
2281 || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 continue
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2307 $ac_declaration
2309 main ()
2311 exit (42);
2313 return 0;
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>conftest.er1
2319 ac_status=$?
2320 grep -v '^ *+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -z "$ac_c_werror_flag"
2326 || test ! -s conftest.err'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 break
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 done
2346 rm -f conftest*
2347 if test -n "$ac_declaration"; then
2348 echo '#ifdef __cplusplus' >>confdefs.h
2349 echo $ac_declaration >>confdefs.h
2350 echo '#endif' >>confdefs.h
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2367 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2368 if test "${ac_cv_search_strerror+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 ac_func_search_save_LIBS=$LIBS
2372 ac_cv_search_strerror=no
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 #ifdef __cplusplus
2382 extern "C"
2383 #endif
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386 char strerror ();
2388 main ()
2390 strerror ();
2392 return 0;
2394 _ACEOF
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest$ac_exeext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_cv_search_strerror="none required"
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f conftest.err conftest.$ac_objext \
2424 conftest$ac_exeext conftest.$ac_ext
2425 if test "$ac_cv_search_strerror" = no; then
2426 for ac_lib in cposix; do
2427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 #ifdef __cplusplus
2437 extern "C"
2438 #endif
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char strerror ();
2443 main ()
2445 strerror ();
2447 return 0;
2449 _ACEOF
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2452 (eval $ac_link) 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest$ac_exeext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_search_strerror="-l$ac_lib"
2473 break
2474 else
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2479 rm -f conftest.err conftest.$ac_objext \
2480 conftest$ac_exeext conftest.$ac_ext
2481 done
2483 LIBS=$ac_func_search_save_LIBS
2485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487 if test "$ac_cv_search_strerror" != no; then
2488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2493 am__api_version="1.9"
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2500 # AIX /bin/install
2501 # AmigaOS /C/install, which installs bootblocks on floppy discs
2502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505 # OS/2's system install, which has a completely different semantic
2506 # ./install, which can be erroneously created by make from ./install.sh.
2507 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2508 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2509 if test -z "$INSTALL"; then
2510 if test "${ac_cv_path_install+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519 case $as_dir/ in
2520 ./ | .// | /cC/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2523 /usr/ucb/* ) ;;
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2531 if test $ac_prog = install &&
2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # AIX install. It has an incompatible calling convention.
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2539 else
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 break 3
2544 done
2545 done
2547 esac
2548 done
2552 if test "${ac_cv_path_install+set}" = set; then
2553 INSTALL=$ac_cv_path_install
2554 else
2555 # As a last resort, use the slow shell script. We don't cache a
2556 # path for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the path is relative.
2559 INSTALL=$ac_install_sh
2562 echo "$as_me:$LINENO: result: $INSTALL" >&5
2563 echo "${ECHO_T}$INSTALL" >&6
2565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566 # It thinks the first close brace ends the variable substitution.
2567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2574 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2575 # Just in case
2576 sleep 1
2577 echo timestamp > conftest.file
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2586 # -L didn't work.
2587 set X `ls -t $srcdir/configure conftest.file`
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&5
2599 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
2604 test "$2" = conftest.file
2606 then
2607 # Ok.
2609 else
2610 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2611 Check your system clock" >&5
2612 echo "$as_me: error: newly created file is older than distributed files!
2613 Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
2616 echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2623 # Double any \ or $. echo might interpret backslashes.
2624 # By default was `s,x,x', remove it if useless.
2625 cat <<\_ACEOF >conftest.sed
2626 s/[\\$]/&&/g;s/;s,x,x,$//
2627 _ACEOF
2628 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2629 rm conftest.sed
2631 # expand $ac_aux_dir to an absolute path
2632 am_aux_dir=`cd $ac_aux_dir && pwd`
2634 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2635 # Use eval to expand $SHELL
2636 if eval "$MISSING --run true"; then
2637 am_missing_run="$MISSING --run "
2638 else
2639 am_missing_run=
2640 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2641 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2645 # We used to keeping the `.' as first argument, in order to
2646 # allow $(mkdir_p) to be used without argument. As in
2647 # $(mkdir_p) $(somedir)
2648 # where $(somedir) is conditionally defined. However this is wrong
2649 # for two reasons:
2650 # 1. if the package is installed by a user who cannot write `.'
2651 # make install will fail,
2652 # 2. the above comment should most certainly read
2653 # $(mkdir_p) $(DESTDIR)$(somedir)
2654 # so it does not work when $(somedir) is undefined and
2655 # $(DESTDIR) is not.
2656 # To support the latter case, we have to write
2657 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2658 # so the `.' trick is pointless.
2659 mkdir_p='mkdir -p --'
2660 else
2661 # On NextStep and OpenStep, the `mkdir' command does not
2662 # recognize any option. It will interpret all options as
2663 # directories to create, and then abort because `.' already
2664 # exists.
2665 for d in ./-p ./--version;
2667 test -d $d && rmdir $d
2668 done
2669 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2670 if test -f "$ac_aux_dir/mkinstalldirs"; then
2671 mkdir_p='$(mkinstalldirs)'
2672 else
2673 mkdir_p='$(install_sh) -d'
2677 for ac_prog in gawk mawk nawk awk
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_prog_AWK+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2705 AWK=$ac_cv_prog_AWK
2706 if test -n "$AWK"; then
2707 echo "$as_me:$LINENO: result: $AWK" >&5
2708 echo "${ECHO_T}$AWK" >&6
2709 else
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2714 test -n "$AWK" && break
2715 done
2717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.make <<\_ACEOF
2724 all:
2725 @echo 'ac_maketemp="$(MAKE)"'
2726 _ACEOF
2727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2729 if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_${ac_make}_set=yes
2731 else
2732 eval ac_cv_prog_make_${ac_make}_set=no
2734 rm -f conftest.make
2736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738 echo "${ECHO_T}yes" >&6
2739 SET_MAKE=
2740 else
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743 SET_MAKE="MAKE=${MAKE-make}"
2746 rm -rf .tst 2>/dev/null
2747 mkdir .tst 2>/dev/null
2748 if test -d .tst; then
2749 am__leading_dot=.
2750 else
2751 am__leading_dot=_
2753 rmdir .tst 2>/dev/null
2755 DEPDIR="${am__leading_dot}deps"
2757 ac_config_commands="$ac_config_commands depfiles"
2760 am_make=${MAKE-make}
2761 cat > confinc << 'END'
2762 am__doit:
2763 @echo done
2764 .PHONY: am__doit
2766 # If we don't find an include directive, just comment out the code.
2767 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2768 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2769 am__include="#"
2770 am__quote=
2771 _am_result=none
2772 # First try GNU make style include.
2773 echo "include confinc" > confmf
2774 # We grep out `Entering directory' and `Leaving directory'
2775 # messages which can occur if `w' ends up in MAKEFLAGS.
2776 # In particular we don't look at `^make:' because GNU make might
2777 # be invoked under some other name (usually "gmake"), in which
2778 # case it prints its new name instead of `make'.
2779 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2780 am__include=include
2781 am__quote=
2782 _am_result=GNU
2784 # Now try BSD make style include.
2785 if test "$am__include" = "#"; then
2786 echo '.include "confinc"' > confmf
2787 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2788 am__include=.include
2789 am__quote="\""
2790 _am_result=BSD
2795 echo "$as_me:$LINENO: result: $_am_result" >&5
2796 echo "${ECHO_T}$_am_result" >&6
2797 rm -f confinc confmf
2799 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2800 if test "${enable_dependency_tracking+set}" = set; then
2801 enableval="$enable_dependency_tracking"
2804 if test "x$enable_dependency_tracking" != xno; then
2805 am_depcomp="$ac_aux_dir/depcomp"
2806 AMDEPBACKSLASH='\'
2810 if test "x$enable_dependency_tracking" != xno; then
2811 AMDEP_TRUE=
2812 AMDEP_FALSE='#'
2813 else
2814 AMDEP_TRUE='#'
2815 AMDEP_FALSE=
2820 # test to see if srcdir already configured
2821 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2822 test -f $srcdir/config.status; then
2823 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2824 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2825 { (exit 1); exit 1; }; }
2828 # test whether we have cygpath
2829 if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2832 else
2833 CYGPATH_W=echo
2838 # Define the identity of the package.
2839 PACKAGE=bfd
2840 VERSION=2.17.50
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE "$PACKAGE"
2845 _ACEOF
2848 cat >>confdefs.h <<_ACEOF
2849 #define VERSION "$VERSION"
2850 _ACEOF
2852 # Some tools Automake needs.
2854 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2870 # Installed binaries are usually stripped using `strip' when the user
2871 # run `make install-strip'. However `strip' might not be the right
2872 # tool to use in cross-compilation environments, therefore Automake
2873 # will honor the `STRIP' environment variable to overrule this program.
2874 if test "$cross_compiling" != no; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}strip; ac_word=$2
2878 echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880 if test "${ac_cv_prog_STRIP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -n "$STRIP"; then
2884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 echo "$as_me:$LINENO: result: $STRIP" >&5
2905 echo "${ECHO_T}$STRIP" >&6
2906 else
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2912 if test -z "$ac_cv_prog_STRIP"; then
2913 ac_ct_STRIP=$STRIP
2914 # Extract the first word of "strip", so it can be a program name with args.
2915 set dummy strip; ac_word=$2
2916 echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 if test -n "$ac_ct_STRIP"; then
2922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_ac_ct_STRIP="strip"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2942 if test -n "$ac_ct_STRIP"; then
2943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2944 echo "${ECHO_T}$ac_ct_STRIP" >&6
2945 else
2946 echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2950 STRIP=$ac_ct_STRIP
2951 else
2952 STRIP="$ac_cv_prog_STRIP"
2956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958 # We need awk for the "check" target. The system "awk" is bad on
2959 # some platforms.
2960 # Always define AMTAR for backward compatibility.
2962 AMTAR=${AMTAR-"${am_missing_run}tar"}
2964 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2969 depcc="$CC" am_compiler_list=
2971 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2972 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2973 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2977 # We make a subdir and do the tests there. Otherwise we can end up
2978 # making bogus files that we don't know about and never remove. For
2979 # instance it was reported that on HP-UX the gcc test will end up
2980 # making a dummy file named `D' -- because `-MD' means `put the output
2981 # in D'.
2982 mkdir conftest.dir
2983 # Copy depcomp to subdir because otherwise we won't find it if we're
2984 # using a relative directory.
2985 cp "$am_depcomp" conftest.dir
2986 cd conftest.dir
2987 # We will build objects and dependencies in a subdirectory because
2988 # it helps to detect inapplicable dependency modes. For instance
2989 # both Tru64's cc and ICC support -MD to output dependencies as a
2990 # side effect of compilation, but ICC will put the dependencies in
2991 # the current directory while Tru64 will put them in the object
2992 # directory.
2993 mkdir sub
2995 am_cv_CC_dependencies_compiler_type=none
2996 if test "$am_compiler_list" = ""; then
2997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 for depmode in $am_compiler_list; do
3000 # Setup a source with many dependencies, because some compilers
3001 # like to wrap large dependency lists on column 80 (with \), and
3002 # we should not choose a depcomp mode which is confused by this.
3004 # We need to recreate these files for each test, as the compiler may
3005 # overwrite some of them when testing with obscure command lines.
3006 # This happens at least with the AIX C compiler.
3007 : > sub/conftest.c
3008 for i in 1 2 3 4 5 6; do
3009 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3010 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3011 # Solaris 8's {/usr,}/bin/sh.
3012 touch sub/conftst$i.h
3013 done
3014 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016 case $depmode in
3017 nosideeffect)
3018 # after this tag, mechanisms are not by side-effect, so they'll
3019 # only be used when explicitly requested
3020 if test "x$enable_dependency_tracking" = xyes; then
3021 continue
3022 else
3023 break
3026 none) break ;;
3027 esac
3028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3029 # mode. It turns out that the SunPro C++ compiler does not properly
3030 # handle `-M -o', and we need to detect this.
3031 if depmode=$depmode \
3032 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3034 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3035 >/dev/null 2>conftest.err &&
3036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3037 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3039 # icc doesn't choke on unknown options, it will just issue warnings
3040 # or remarks (even with -Werror). So we grep stderr for any message
3041 # that says an option was ignored or not supported.
3042 # When given -MP, icc 7.0 and 7.1 complain thusly:
3043 # icc: Command line warning: ignoring option '-M'; no argument required
3044 # The diagnosis changed in icc 8.0:
3045 # icc: Command line remark: option '-MP' not supported
3046 if (grep 'ignoring option' conftest.err ||
3047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3048 am_cv_CC_dependencies_compiler_type=$depmode
3049 break
3052 done
3054 cd ..
3055 rm -rf conftest.dir
3056 else
3057 am_cv_CC_dependencies_compiler_type=none
3061 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3062 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3068 test "x$enable_dependency_tracking" != xno \
3069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3070 am__fastdepCC_TRUE=
3071 am__fastdepCC_FALSE='#'
3072 else
3073 am__fastdepCC_TRUE='#'
3074 am__fastdepCC_FALSE=
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}ar; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_AR+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -n "$AR"; then
3089 ac_cv_prog_AR="$AR" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_AR="${ac_tool_prefix}ar"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3107 AR=$ac_cv_prog_AR
3108 if test -n "$AR"; then
3109 echo "$as_me:$LINENO: result: $AR" >&5
3110 echo "${ECHO_T}$AR" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3117 if test -z "$ac_cv_prog_AR"; then
3118 ac_ct_AR=$AR
3119 # Extract the first word of "ar", so it can be a program name with args.
3120 set dummy ar; ac_word=$2
3121 echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 if test -n "$ac_ct_AR"; then
3127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_AR="ar"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3146 if test -n "$ac_ct_AR"; then
3147 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3148 echo "${ECHO_T}$ac_ct_AR" >&6
3149 else
3150 echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3154 AR=$ac_ct_AR
3155 else
3156 AR="$ac_cv_prog_AR"
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_RANLIB+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3186 RANLIB=$ac_cv_prog_RANLIB
3187 if test -n "$RANLIB"; then
3188 echo "$as_me:$LINENO: result: $RANLIB" >&5
3189 echo "${ECHO_T}$RANLIB" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$ac_cv_prog_RANLIB"; then
3197 ac_ct_RANLIB=$RANLIB
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 if test -n "$ac_ct_RANLIB"; then
3206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_RANLIB="ranlib"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3226 if test -n "$ac_ct_RANLIB"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 RANLIB=$ac_ct_RANLIB
3235 else
3236 RANLIB="$ac_cv_prog_RANLIB"
3240 # Check whether --enable-shared or --disable-shared was given.
3241 if test "${enable_shared+set}" = set; then
3242 enableval="$enable_shared"
3243 p=${PACKAGE-default}
3244 case $enableval in
3245 yes) enable_shared=yes ;;
3246 no) enable_shared=no ;;
3248 enable_shared=no
3249 # Look at the argument we got. We use all the common list separators.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3251 for pkg in $enableval; do
3252 if test "X$pkg" = "X$p"; then
3253 enable_shared=yes
3255 done
3256 IFS="$ac_save_ifs"
3258 esac
3259 else
3260 enable_shared=no
3263 # Check whether --enable-static or --disable-static was given.
3264 if test "${enable_static+set}" = set; then
3265 enableval="$enable_static"
3266 p=${PACKAGE-default}
3267 case $enableval in
3268 yes) enable_static=yes ;;
3269 no) enable_static=no ;;
3271 enable_static=no
3272 # Look at the argument we got. We use all the common list separators.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3274 for pkg in $enableval; do
3275 if test "X$pkg" = "X$p"; then
3276 enable_static=yes
3278 done
3279 IFS="$ac_save_ifs"
3281 esac
3282 else
3283 enable_static=yes
3285 # Check whether --enable-fast-install or --disable-fast-install was given.
3286 if test "${enable_fast_install+set}" = set; then
3287 enableval="$enable_fast_install"
3288 p=${PACKAGE-default}
3289 case $enableval in
3290 yes) enable_fast_install=yes ;;
3291 no) enable_fast_install=no ;;
3293 enable_fast_install=no
3294 # Look at the argument we got. We use all the common list separators.
3295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3296 for pkg in $enableval; do
3297 if test "X$pkg" = "X$p"; then
3298 enable_fast_install=yes
3300 done
3301 IFS="$ac_save_ifs"
3303 esac
3304 else
3305 enable_fast_install=yes
3308 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3309 if test "${with_gnu_ld+set}" = set; then
3310 withval="$with_gnu_ld"
3311 test "$withval" = no || with_gnu_ld=yes
3312 else
3313 with_gnu_ld=no
3315 ac_prog=ld
3316 if test "$GCC" = yes; then
3317 # Check if gcc -print-prog-name=ld gives a path.
3318 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3319 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3320 case $host in
3321 *-*-mingw*)
3322 # gcc leaves a trailing carriage return which upsets mingw
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3326 esac
3327 case $ac_prog in
3328 # Accept absolute paths.
3329 [\\/]* | [A-Za-z]:[\\/]*)
3330 re_direlt='/[^/][^/]*/\.\./'
3331 # Canonicalize the path of ld
3332 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3334 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3335 done
3336 test -z "$LD" && LD="$ac_prog"
3339 # If it fails, then pretend we aren't using GCC.
3340 ac_prog=ld
3343 # If it is relative, then search for the first ld in PATH.
3344 with_gnu_ld=unknown
3346 esac
3347 elif test "$with_gnu_ld" = yes; then
3348 echo "$as_me:$LINENO: checking for GNU ld" >&5
3349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3350 else
3351 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_path_LD+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -z "$LD"; then
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3359 for ac_dir in $PATH; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3362 lt_cv_path_LD="$ac_dir/$ac_prog"
3363 # Check to see if the program is GNU ld. I'd rather use --version,
3364 # but apparently some GNU ld's only accept -v.
3365 # Break only if it was the GNU/non-GNU ld that we prefer.
3366 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3367 test "$with_gnu_ld" != no && break
3368 else
3369 test "$with_gnu_ld" != yes && break
3372 done
3373 IFS="$ac_save_ifs"
3374 else
3375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3379 LD="$lt_cv_path_LD"
3380 if test -n "$LD"; then
3381 echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3397 lt_cv_prog_gnu_ld=yes
3398 else
3399 lt_cv_prog_gnu_ld=no
3402 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3403 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3404 with_gnu_ld=$lt_cv_prog_gnu_ld
3407 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3408 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3409 if test "${lt_cv_ld_reload_flag+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 lt_cv_ld_reload_flag='-r'
3414 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3415 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3416 reload_flag=$lt_cv_ld_reload_flag
3417 test -n "$reload_flag" && reload_flag=" $reload_flag"
3419 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3421 if test "${lt_cv_path_NM+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$NM"; then
3425 # Let the user override the test.
3426 lt_cv_path_NM="$NM"
3427 else
3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3429 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3430 test -z "$ac_dir" && ac_dir=.
3431 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3432 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3433 # Check to see if the nm accepts a BSD-compat flag.
3434 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3435 # nm: unknown option "B" ignored
3436 # Tru64's nm complains that /dev/null is an invalid object file
3437 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3438 lt_cv_path_NM="$tmp_nm -B"
3439 break
3440 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3441 lt_cv_path_NM="$tmp_nm -p"
3442 break
3443 else
3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3445 continue # so that we can try to find one that supports BSD flags
3448 done
3449 IFS="$ac_save_ifs"
3450 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3454 NM="$lt_cv_path_NM"
3455 echo "$as_me:$LINENO: result: $NM" >&5
3456 echo "${ECHO_T}$NM" >&6
3458 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3460 LN_S=$as_ln_s
3461 if test "$LN_S" = "ln -s"; then
3462 echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 else
3465 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3466 echo "${ECHO_T}no, using $LN_S" >&6
3469 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3470 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3471 if test "${lt_cv_deplibs_check_method+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 lt_cv_file_magic_cmd='$MAGIC_CMD'
3475 lt_cv_file_magic_test_file=
3476 lt_cv_deplibs_check_method='unknown'
3477 # Need to set the preceding variable on all platforms that support
3478 # interlibrary dependencies.
3479 # 'none' -- dependencies not supported.
3480 # `unknown' -- same as none, but documents that we really don't know.
3481 # 'pass_all' -- all dependencies passed with no checks.
3482 # 'test_compile' -- check by making test program.
3483 # 'file_magic [regex]' -- check by looking for files in library path
3484 # which responds to the $file_magic_cmd with a given egrep regex.
3485 # If you have `file' or equivalent on your system and you're not sure
3486 # whether `pass_all' will *always* work, you probably want this one.
3488 case $host_os in
3489 aix*)
3490 lt_cv_deplibs_check_method=pass_all
3493 beos*)
3494 lt_cv_deplibs_check_method=pass_all
3497 bsdi4*)
3498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 lt_cv_file_magic_test_file=/shlib/libc.so
3503 cygwin* | mingw* |pw32*)
3504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 darwin* | rhapsody*)
3509 # this will be overwritten by pass_all, but leave it in just in case
3510 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3511 lt_cv_file_magic_cmd='/usr/bin/file -L'
3512 case "$host_os" in
3513 rhapsody* | darwin1.012)
3514 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 *) # Darwin 1.3 on
3517 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 esac
3520 lt_cv_deplibs_check_method=pass_all
3523 freebsd* | kfreebsd*-gnu)
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 case $host_cpu in
3526 i*86 )
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3539 gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3543 hpux10.20*|hpux11*)
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3555 esac
3558 irix5* | irix6*)
3559 case $host_os in
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3565 case $LD in
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3579 # This must be Linux ELF.
3580 linux-gnu*)
3581 lt_cv_deplibs_check_method=pass_all
3584 netbsd* | knetbsd*-gnu)
3585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3587 else
3588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3592 newsos6)
3593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3594 lt_cv_file_magic_cmd=/usr/bin/file
3595 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598 osf3* | osf4* | osf5*)
3599 # this will be overridden with pass_all, but let us keep it just in case
3600 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3601 lt_cv_file_magic_test_file=/shlib/libc.so
3602 lt_cv_deplibs_check_method=pass_all
3605 sco3.2v5*)
3606 lt_cv_deplibs_check_method=pass_all
3609 solaris*)
3610 lt_cv_deplibs_check_method=pass_all
3611 lt_cv_file_magic_test_file=/lib/libc.so
3614 sysv5uw[78]* | sysv4*uw2*)
3615 lt_cv_deplibs_check_method=pass_all
3618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3619 case $host_vendor in
3620 ncr)
3621 lt_cv_deplibs_check_method=pass_all
3623 motorola)
3624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3627 esac
3629 esac
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3640 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3642 # find the maximum length of command line arguments
3643 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3644 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3645 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3649 teststring="ABCD"
3651 case $build_os in
3652 msdosdjgpp*)
3653 # On DJGPP, this test can blow up pretty badly due to problems in libc
3654 # (any single argument exceeding 2000 bytes causes a buffer overrun
3655 # during glob expansion). Even if it were fixed, the result of this
3656 # check would be larger than it should be.
3657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3660 cygwin* | mingw*)
3661 # On Win9x/ME, this test blows up -- it succeeds, but takes
3662 # about 5 minutes as the teststring grows exponentially.
3663 # Worse, since 9x/ME are not pre-emptively multitasking,
3664 # you end up with a "frozen" computer, even though with patience
3665 # the test eventually succeeds (with a max line length of 256k).
3666 # Instead, let's just punt: use the minimum linelength reported by
3667 # all of the supported platforms: 8192 (on NT/2K/XP).
3668 lt_cv_sys_max_cmd_len=8192;
3671 amigaos*)
3672 # On AmigaOS with pdksh, this test takes hours, literally.
3673 # So we just punt and use a minimum line length of 8192.
3674 lt_cv_sys_max_cmd_len=8192;
3677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3678 # This has been around since 386BSD, at least. Likely further.
3679 if test -x /sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3681 elif test -x /usr/sbin/sysctl; then
3682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3683 else
3684 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3686 # And add a safety zone
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3690 esac
3694 if test -n "$lt_cv_sys_max_cmd_len" ; then
3695 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3696 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3697 else
3698 echo "$as_me:$LINENO: result: none" >&5
3699 echo "${ECHO_T}none" >&6
3703 # Only perform the check for file, if the check method requires it
3704 case $deplibs_check_method in
3705 file_magic*)
3706 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3707 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3708 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 case $MAGIC_CMD in
3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3716 ?:/*)
3717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3720 ac_save_MAGIC_CMD="$MAGIC_CMD"
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3722 ac_dummy="/usr/bin:$PATH"
3723 for ac_dir in $ac_dummy; do
3724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/${ac_tool_prefix}file; then
3726 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3727 if test -n "$file_magic_test_file"; then
3728 case $deplibs_check_method in
3729 "file_magic "*)
3730 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3733 egrep "$file_magic_regex" > /dev/null; then
3735 else
3736 cat <<EOF 1>&2
3738 *** Warning: the command libtool uses to detect shared libraries,
3739 *** $file_magic_cmd, produces output that libtool cannot recognize.
3740 *** The result is that libtool may fail to recognize shared libraries
3741 *** as such. This will affect the creation of libtool libraries that
3742 *** depend on shared libraries, but programs linked with such libtool
3743 *** libraries will work regardless of this problem. Nevertheless, you
3744 *** may want to report the problem to your system manager and/or to
3745 *** bug-libtool@gnu.org
3748 fi ;;
3749 esac
3751 break
3753 done
3754 IFS="$ac_save_ifs"
3755 MAGIC_CMD="$ac_save_MAGIC_CMD"
3757 esac
3760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3761 if test -n "$MAGIC_CMD"; then
3762 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3763 echo "${ECHO_T}$MAGIC_CMD" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 if test -z "$lt_cv_path_MAGIC_CMD"; then
3770 if test -n "$ac_tool_prefix"; then
3771 echo "$as_me:$LINENO: checking for file" >&5
3772 echo $ECHO_N "checking for file... $ECHO_C" >&6
3773 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 case $MAGIC_CMD in
3778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3780 ?:/*)
3781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3784 ac_save_MAGIC_CMD="$MAGIC_CMD"
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3786 ac_dummy="/usr/bin:$PATH"
3787 for ac_dir in $ac_dummy; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f $ac_dir/file; then
3790 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3791 if test -n "$file_magic_test_file"; then
3792 case $deplibs_check_method in
3793 "file_magic "*)
3794 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3797 egrep "$file_magic_regex" > /dev/null; then
3799 else
3800 cat <<EOF 1>&2
3802 *** Warning: the command libtool uses to detect shared libraries,
3803 *** $file_magic_cmd, produces output that libtool cannot recognize.
3804 *** The result is that libtool may fail to recognize shared libraries
3805 *** as such. This will affect the creation of libtool libraries that
3806 *** depend on shared libraries, but programs linked with such libtool
3807 *** libraries will work regardless of this problem. Nevertheless, you
3808 *** may want to report the problem to your system manager and/or to
3809 *** bug-libtool@gnu.org
3812 fi ;;
3813 esac
3815 break
3817 done
3818 IFS="$ac_save_ifs"
3819 MAGIC_CMD="$ac_save_MAGIC_CMD"
3821 esac
3824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3825 if test -n "$MAGIC_CMD"; then
3826 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3827 echo "${ECHO_T}$MAGIC_CMD" >&6
3828 else
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3833 else
3834 MAGIC_CMD=:
3840 esac
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_RANLIB+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 if test -n "$RANLIB"; then
3851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3869 RANLIB=$ac_cv_prog_RANLIB
3870 if test -n "$RANLIB"; then
3871 echo "$as_me:$LINENO: result: $RANLIB" >&5
3872 echo "${ECHO_T}$RANLIB" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3879 if test -z "$ac_cv_prog_RANLIB"; then
3880 ac_ct_RANLIB=$RANLIB
3881 # Extract the first word of "ranlib", so it can be a program name with args.
3882 set dummy ranlib; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$ac_ct_RANLIB"; then
3889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_RANLIB="ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3905 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3909 if test -n "$ac_ct_RANLIB"; then
3910 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3911 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 RANLIB=$ac_ct_RANLIB
3918 else
3919 RANLIB="$ac_cv_prog_RANLIB"
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}strip; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_prog_STRIP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 if test -n "$STRIP"; then
3931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3949 STRIP=$ac_cv_prog_STRIP
3950 if test -n "$STRIP"; then
3951 echo "$as_me:$LINENO: result: $STRIP" >&5
3952 echo "${ECHO_T}$STRIP" >&6
3953 else
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3959 if test -z "$ac_cv_prog_STRIP"; then
3960 ac_ct_STRIP=$STRIP
3961 # Extract the first word of "strip", so it can be a program name with args.
3962 set dummy strip; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$ac_ct_STRIP"; then
3969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_STRIP="strip"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3989 if test -n "$ac_ct_STRIP"; then
3990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3991 echo "${ECHO_T}$ac_ct_STRIP" >&6
3992 else
3993 echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3997 STRIP=$ac_ct_STRIP
3998 else
3999 STRIP="$ac_cv_prog_STRIP"
4003 # Check for any special flags to pass to ltconfig.
4004 libtool_flags="--cache-file=$cache_file"
4005 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4006 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4007 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4008 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4009 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4012 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013 if test "${enable_libtool_lock+set}" = set; then
4014 enableval="$enable_libtool_lock"
4017 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4018 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4021 # Check whether --with-pic or --without-pic was given.
4022 if test "${with_pic+set}" = set; then
4023 withval="$with_pic"
4024 pic_mode="$withval"
4025 else
4026 pic_mode=default
4028 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4029 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4031 # Some flags need to be propagated to the compiler or linker for good
4032 # libtool support.
4033 case $host in
4034 *-*-irix6*)
4035 # Find out which ABI we are using.
4036 echo '#line 4036 "configure"' > conftest.$ac_ext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
4042 if test "$lt_cv_prog_gnu_ld" = yes; then
4043 case `/usr/bin/file conftest.$ac_objext` in
4044 *32-bit*)
4045 LD="${LD-ld} -melf32bsmip"
4047 *N32*)
4048 LD="${LD-ld} -melf32bmipn32"
4050 *64-bit*)
4051 LD="${LD-ld} -melf64bmip"
4053 esac
4054 else
4055 case `/usr/bin/file conftest.$ac_objext` in
4056 *32-bit*)
4057 LD="${LD-ld} -32"
4059 *N32*)
4060 LD="${LD-ld} -n32"
4062 *64-bit*)
4063 LD="${LD-ld} -64"
4065 esac
4068 rm -rf conftest*
4071 ia64-*-hpux*)
4072 # Find out which ABI we are using.
4073 echo 'int i;' > conftest.$ac_ext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4079 case "`/usr/bin/file conftest.o`" in
4080 *ELF-32*)
4081 HPUX_IA64_MODE="32"
4083 *ELF-64*)
4084 HPUX_IA64_MODE="64"
4086 esac
4088 rm -rf conftest*
4091 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4092 # Find out which ABI we are using.
4093 echo 'int i;' > conftest.$ac_ext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; then
4099 case "`/usr/bin/file conftest.o`" in
4100 *32-bit*)
4101 case $host in
4102 x86_64-*linux*)
4103 LD="${LD-ld} -m elf_i386"
4105 ppc64-*linux*|powerpc64-*linux*)
4106 LD="${LD-ld} -m elf32ppclinux"
4108 s390x-*linux*)
4109 LD="${LD-ld} -m elf_s390"
4111 sparc64-*linux*)
4112 LD="${LD-ld} -m elf32_sparc"
4114 esac
4116 *64-bit*)
4117 case $host in
4118 x86_64-*linux*)
4119 LD="${LD-ld} -m elf_x86_64"
4121 ppc*-*linux*|powerpc*-*linux*)
4122 LD="${LD-ld} -m elf64ppc"
4124 s390*-*linux*)
4125 LD="${LD-ld} -m elf64_s390"
4127 sparc*-*linux*)
4128 LD="${LD-ld} -m elf64_sparc"
4130 esac
4132 esac
4134 rm -rf conftest*
4137 *-*-sco3.2v5*)
4138 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4139 SAVE_CFLAGS="$CFLAGS"
4140 CFLAGS="$CFLAGS -belf"
4141 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4142 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4143 if test "${lt_cv_cc_needs_belf+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4148 ac_ext=c
4149 ac_cpp='$CPP $CPPFLAGS'
4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4162 main ()
4166 return 0;
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 lt_cv_cc_needs_belf=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 lt_cv_cc_needs_belf=no
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4208 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4211 CFLAGS="$SAVE_CFLAGS"
4216 esac
4219 # Save cache, so that ltconfig can load it
4220 cat >confcache <<\_ACEOF
4221 # This file is a shell script that caches the results of configure
4222 # tests run on this system so they can be shared between configure
4223 # scripts and configure runs, see configure's option --config-cache.
4224 # It is not useful on other systems. If it contains results you don't
4225 # want to keep, you may remove or edit it.
4227 # config.status only pays attention to the cache file if you give it
4228 # the --recheck option to rerun configure.
4230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4232 # following values.
4234 _ACEOF
4236 # The following way of writing the cache mishandles newlines in values,
4237 # but we know of no workaround that is simple, portable, and efficient.
4238 # So, don't put newlines in cache variables' values.
4239 # Ultrix sh set writes to stderr and can't be redirected directly,
4240 # and sets the high bit in the cache file unless we assign to the vars.
4242 (set) 2>&1 |
4243 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4244 *ac_space=\ *)
4245 # `set' does not quote correctly, so add quotes (double-quote
4246 # substitution turns \\\\ into \\, and sed turns \\ into \).
4247 sed -n \
4248 "s/'/'\\\\''/g;
4249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4252 # `set' quotes correctly as required by POSIX, so do not add quotes.
4253 sed -n \
4254 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4256 esac;
4258 sed '
4259 t clear
4260 : clear
4261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 t end
4263 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 : end' >>confcache
4265 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4266 if test -w $cache_file; then
4267 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4268 cat confcache >$cache_file
4269 else
4270 echo "not updating unwritable cache $cache_file"
4273 rm -f confcache
4275 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4276 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4277 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4278 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4279 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4280 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4281 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4282 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4283 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4284 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4285 echo "$as_me: error: libtool configure failed" >&2;}
4286 { (exit 1); exit 1; }; }
4288 # Reload cache, that may have been modified by ltconfig
4289 if test -r "$cache_file"; then
4290 # Some versions of bash will fail to source /dev/null (special
4291 # files actually), so we avoid doing that.
4292 if test -f "$cache_file"; then
4293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4294 echo "$as_me: loading cache $cache_file" >&6;}
4295 case $cache_file in
4296 [\\/]* | ?:[\\/]* ) . $cache_file;;
4297 *) . ./$cache_file;;
4298 esac
4300 else
4301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4302 echo "$as_me: creating cache $cache_file" >&6;}
4303 >$cache_file
4307 # This can be used to rebuild libtool when needed
4308 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4310 # Always use our own libtool.
4311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4313 # Redirect the config.log output again, so that the ltconfig log is not
4314 # clobbered by the next message.
4315 exec 5>>./config.log
4323 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4324 if test "${enable_64_bit_bfd+set}" = set; then
4325 enableval="$enable_64_bit_bfd"
4326 case "${enableval}" in
4327 yes) want64=true ;;
4328 no) want64=false ;;
4329 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4330 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4331 { (exit 1); exit 1; }; } ;;
4332 esac
4333 else
4334 want64=false
4335 fi; # Check whether --enable-targets or --disable-targets was given.
4336 if test "${enable_targets+set}" = set; then
4337 enableval="$enable_targets"
4338 case "${enableval}" in
4339 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4340 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4341 { (exit 1); exit 1; }; }
4343 no) enable_targets= ;;
4344 *) enable_targets=$enableval ;;
4345 esac
4346 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4347 if test "${enable_commonbfdlib+set}" = set; then
4348 enableval="$enable_commonbfdlib"
4349 case "${enableval}" in
4350 yes) commonbfdlib=true ;;
4351 no) commonbfdlib=false ;;
4352 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4353 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355 esac
4357 # Check whether --with-mmap or --without-mmap was given.
4358 if test "${with_mmap+set}" = set; then
4359 withval="$with_mmap"
4360 case "${withval}" in
4361 yes) want_mmap=true ;;
4362 no) want_mmap=false ;;
4363 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4364 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366 esac
4367 else
4368 want_mmap=false
4370 # Check whether --enable-secureplt or --disable-secureplt was given.
4371 if test "${enable_secureplt+set}" = set; then
4372 enableval="$enable_secureplt"
4373 case "${enableval}" in
4374 yes) use_secureplt=true ;;
4375 no) use_secureplt=false ;;
4376 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4377 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379 esac
4380 else
4381 use_secureplt=false
4382 fi; if test $use_secureplt = true; then
4384 cat >>confdefs.h <<\_ACEOF
4385 #define USE_SECUREPLT 1
4386 _ACEOF
4390 # Package version. For an official FSF release, it is empty.
4392 # Check whether --with-pkgversion or --without-pkgversion was given.
4393 if test "${with_pkgversion+set}" = set; then
4394 withval="$with_pkgversion"
4395 case "$withval" in
4396 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4397 echo "$as_me: error: package version not specified" >&2;}
4398 { (exit 1); exit 1; }; } ;;
4399 no) PKGVERSION= ;;
4400 *) PKGVERSION="($withval) " ;;
4401 esac
4402 else
4403 PKGVERSION="(GNU Binutils) "
4408 # The location to which bugs should be reported.
4410 # Check whether --with-bugurl or --without-bugurl was given.
4411 if test "${with_bugurl+set}" = set; then
4412 withval="$with_bugurl"
4413 case "$withval" in
4414 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4415 echo "$as_me: error: bug URL not specified" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4417 no) REPORT_BUGS_TO="";
4418 REPORT_BUGS_TEXI=""
4420 *) REPORT_BUGS_TO="<$withval>"
4421 REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
4423 esac
4424 else
4425 REPORT_BUGS_TO="<http://www.sourceware.org/bugzilla/>"
4426 REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}"
4433 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4435 # Check whether --enable-werror or --disable-werror was given.
4436 if test "${enable_werror+set}" = set; then
4437 enableval="$enable_werror"
4438 case "${enableval}" in
4439 yes | y) ERROR_ON_WARNING="yes" ;;
4440 no | n) ERROR_ON_WARNING="no" ;;
4441 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4442 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4443 { (exit 1); exit 1; }; } ;;
4444 esac
4447 # Enable -Werror by default when using gcc
4448 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4449 ERROR_ON_WARNING=yes
4452 NO_WERROR=
4453 if test "${ERROR_ON_WARNING}" = yes ; then
4454 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4455 NO_WERROR="-Wno-error"
4458 if test "${GCC}" = yes ; then
4459 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4462 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4463 if test "${enable_build_warnings+set}" = set; then
4464 enableval="$enable_build_warnings"
4465 case "${enableval}" in
4466 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4467 no) if test "${GCC}" = yes ; then
4468 WARN_CFLAGS="-w"
4469 fi;;
4470 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4471 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4472 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4473 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4474 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4475 esac
4478 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4479 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4486 ac_config_headers="$ac_config_headers config.h:config.in"
4489 if test -z "$target" ; then
4490 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4491 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4492 { (exit 1); exit 1; }; }
4495 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4496 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4497 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4498 if test "${enable_maintainer_mode+set}" = set; then
4499 enableval="$enable_maintainer_mode"
4500 USE_MAINTAINER_MODE=$enableval
4501 else
4502 USE_MAINTAINER_MODE=no
4504 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4505 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4508 if test $USE_MAINTAINER_MODE = yes; then
4509 MAINTAINER_MODE_TRUE=
4510 MAINTAINER_MODE_FALSE='#'
4511 else
4512 MAINTAINER_MODE_TRUE='#'
4513 MAINTAINER_MODE_FALSE=
4516 MAINT=$MAINTAINER_MODE_TRUE
4521 if false; then
4522 GENINSRC_NEVER_TRUE=
4523 GENINSRC_NEVER_FALSE='#'
4524 else
4525 GENINSRC_NEVER_TRUE='#'
4526 GENINSRC_NEVER_FALSE=
4529 case ${build_alias} in
4530 "") build_noncanonical=${build} ;;
4531 *) build_noncanonical=${build_alias} ;;
4532 esac
4534 case ${host_alias} in
4535 "") host_noncanonical=${build_noncanonical} ;;
4536 *) host_noncanonical=${host_alias} ;;
4537 esac
4539 case ${target_alias} in
4540 "") target_noncanonical=${host_noncanonical} ;;
4541 *) target_noncanonical=${target_alias} ;;
4542 esac
4544 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4545 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4546 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4547 if test "${enable_install_libbfd+set}" = set; then
4548 enableval="$enable_install_libbfd"
4549 install_libbfd_p=$enableval
4550 else
4551 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4552 install_libbfd_p=yes
4553 else
4554 install_libbfd_p=no
4557 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4558 echo "${ECHO_T}$install_libbfd_p" >&6
4561 if test $install_libbfd_p = yes; then
4562 INSTALL_LIBBFD_TRUE=
4563 INSTALL_LIBBFD_FALSE='#'
4564 else
4565 INSTALL_LIBBFD_TRUE='#'
4566 INSTALL_LIBBFD_FALSE=
4569 # Need _noncanonical variables for this.
4574 # libbfd.a is a host library containing target dependent code
4575 bfdlibdir='$(libdir)'
4576 bfdincludedir='$(includedir)'
4577 if test "${host}" != "${target}"; then
4578 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4579 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4587 host64=false
4588 target64=false
4589 bfd_default_target_size=32
4591 # host stuff:
4593 ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4601 echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4603 if test "${ac_cv_prog_CC+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 if test -n "$CC"; then
4607 ac_cv_prog_CC="$CC" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627 echo "$as_me:$LINENO: result: $CC" >&5
4628 echo "${ECHO_T}$CC" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4635 if test -z "$ac_cv_prog_CC"; then
4636 ac_ct_CC=$CC
4637 # Extract the first word of "gcc", so it can be a program name with args.
4638 set dummy gcc; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CC="gcc"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4664 if test -n "$ac_ct_CC"; then
4665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4666 echo "${ECHO_T}$ac_ct_CC" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 CC=$ac_ct_CC
4673 else
4674 CC="$ac_cv_prog_CC"
4677 if test -z "$CC"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4680 set dummy ${ac_tool_prefix}cc; ac_word=$2
4681 echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683 if test "${ac_cv_prog_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696 ac_cv_prog_CC="${ac_tool_prefix}cc"
4697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4700 done
4701 done
4705 CC=$ac_cv_prog_CC
4706 if test -n "$CC"; then
4707 echo "$as_me:$LINENO: result: $CC" >&5
4708 echo "${ECHO_T}$CC" >&6
4709 else
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4715 if test -z "$ac_cv_prog_CC"; then
4716 ac_ct_CC=$CC
4717 # Extract the first word of "cc", so it can be a program name with args.
4718 set dummy cc; ac_word=$2
4719 echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test -n "$ac_ct_CC"; then
4725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_ac_ct_CC="cc"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4738 done
4739 done
4743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4746 echo "${ECHO_T}$ac_ct_CC" >&6
4747 else
4748 echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6
4752 CC=$ac_ct_CC
4753 else
4754 CC="$ac_cv_prog_CC"
4758 if test -z "$CC"; then
4759 # Extract the first word of "cc", so it can be a program name with args.
4760 set dummy cc; ac_word=$2
4761 echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763 if test "${ac_cv_prog_CC+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 if test -n "$CC"; then
4767 ac_cv_prog_CC="$CC" # Let the user override the test.
4768 else
4769 ac_prog_rejected=no
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4778 ac_prog_rejected=yes
4779 continue
4781 ac_cv_prog_CC="cc"
4782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4788 if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy $ac_cv_prog_CC
4791 shift
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set CC to just the basename; use the full file name.
4796 shift
4797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4802 CC=$ac_cv_prog_CC
4803 if test -n "$CC"; then
4804 echo "$as_me:$LINENO: result: $CC" >&5
4805 echo "${ECHO_T}$CC" >&6
4806 else
4807 echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4812 if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog in cl
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_CC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4842 CC=$ac_cv_prog_CC
4843 if test -n "$CC"; then
4844 echo "$as_me:$LINENO: result: $CC" >&5
4845 echo "${ECHO_T}$CC" >&6
4846 else
4847 echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4851 test -n "$CC" && break
4852 done
4854 if test -z "$CC"; then
4855 ac_ct_CC=$CC
4856 for ac_prog in cl
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_ac_ct_CC="$ac_prog"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4885 if test -n "$ac_ct_CC"; then
4886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4887 echo "${ECHO_T}$ac_ct_CC" >&6
4888 else
4889 echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4893 test -n "$ac_ct_CC" && break
4894 done
4896 CC=$ac_ct_CC
4902 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4903 See \`config.log' for more details." >&5
4904 echo "$as_me: error: no acceptable C compiler found in \$PATH
4905 See \`config.log' for more details." >&2;}
4906 { (exit 1); exit 1; }; }
4908 # Provide some information about the compiler.
4909 echo "$as_me:$LINENO:" \
4910 "checking for C compiler version" >&5
4911 ac_compiler=`set X $ac_compile; echo $2`
4912 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4913 (eval $ac_compiler --version </dev/null >&5) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }
4917 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4918 (eval $ac_compiler -v </dev/null >&5) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }
4922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4923 (eval $ac_compiler -V </dev/null >&5) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }
4928 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4941 main ()
4943 #ifndef __GNUC__
4944 choke me
4945 #endif
4948 return 0;
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag"
4961 || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_compiler_gnu=yes
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 ac_compiler_gnu=no
4980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4984 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4985 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4986 GCC=`test $ac_compiler_gnu = yes && echo yes`
4987 ac_test_CFLAGS=${CFLAGS+set}
4988 ac_save_CFLAGS=$CFLAGS
4989 CFLAGS="-g"
4990 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4991 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4992 if test "${ac_cv_prog_cc_g+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5003 main ()
5007 return 0;
5009 _ACEOF
5010 rm -f conftest.$ac_objext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_prog_cc_g=yes
5033 else
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5037 ac_cv_prog_cc_g=no
5039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5042 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5043 if test "$ac_test_CFLAGS" = set; then
5044 CFLAGS=$ac_save_CFLAGS
5045 elif test $ac_cv_prog_cc_g = yes; then
5046 if test "$GCC" = yes; then
5047 CFLAGS="-g -O2"
5048 else
5049 CFLAGS="-g"
5051 else
5052 if test "$GCC" = yes; then
5053 CFLAGS="-O2"
5054 else
5055 CFLAGS=
5058 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5059 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5060 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 ac_cv_prog_cc_stdc=no
5064 ac_save_CC=$CC
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <stdarg.h>
5072 #include <stdio.h>
5073 #include <sys/types.h>
5074 #include <sys/stat.h>
5075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5076 struct buf { int x; };
5077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5078 static char *e (p, i)
5079 char **p;
5080 int i;
5082 return p[i];
5084 static char *f (char * (*g) (char **, int), char **p, ...)
5086 char *s;
5087 va_list v;
5088 va_start (v,p);
5089 s = g (p, va_arg (v,int));
5090 va_end (v);
5091 return s;
5094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5095 function prototypes and stuff, but not '\xHH' hex character constants.
5096 These don't provoke an error unfortunately, instead are silently treated
5097 as 'x'. The following induces an error, until -std1 is added to get
5098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5099 array size at least. It's necessary to write '\x00'==0 to get something
5100 that's true only with -std1. */
5101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5103 int test (int i, double x);
5104 struct s1 {int (*f) (int a);};
5105 struct s2 {int (*f) (double a);};
5106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5107 int argc;
5108 char **argv;
5110 main ()
5112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5114 return 0;
5116 _ACEOF
5117 # Don't try gcc -ansi; that turns off useful extensions and
5118 # breaks some systems' header files.
5119 # AIX -qlanglvl=ansi
5120 # Ultrix and OSF/1 -std1
5121 # HP-UX 10.20 and later -Ae
5122 # HP-UX older versions -Aa -D_HPUX_SOURCE
5123 # SVR4 -Xc -D__EXTENSIONS__
5124 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5126 CC="$ac_save_CC $ac_arg"
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_prog_cc_stdc=$ac_arg
5150 break
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5156 rm -f conftest.err conftest.$ac_objext
5157 done
5158 rm -f conftest.$ac_ext conftest.$ac_objext
5159 CC=$ac_save_CC
5163 case "x$ac_cv_prog_cc_stdc" in
5164 x|xno)
5165 echo "$as_me:$LINENO: result: none needed" >&5
5166 echo "${ECHO_T}none needed" >&6 ;;
5168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5169 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5170 CC="$CC $ac_cv_prog_cc_stdc" ;;
5171 esac
5173 # Some people use a C++ compiler to compile C. Since we use `exit',
5174 # in C++ we need to declare it. In case someone uses the same compiler
5175 # for both compiling C and C++ we need to have the C++ compiler decide
5176 # the declaration of exit, since it's the most demanding environment.
5177 cat >conftest.$ac_ext <<_ACEOF
5178 #ifndef __cplusplus
5179 choke me
5180 #endif
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 for ac_declaration in \
5205 '' \
5206 'extern "C" void std::exit (int) throw (); using std::exit;' \
5207 'extern "C" void std::exit (int); using std::exit;' \
5208 'extern "C" void exit (int) throw ();' \
5209 'extern "C" void exit (int);' \
5210 'void exit (int);'
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 $ac_declaration
5219 #include <stdlib.h>
5221 main ()
5223 exit (42);
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 continue
5257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_declaration
5266 main ()
5268 exit (42);
5270 return 0;
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 break
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 done
5303 rm -f conftest*
5304 if test -n "$ac_declaration"; then
5305 echo '#ifdef __cplusplus' >>confdefs.h
5306 echo $ac_declaration >>confdefs.h
5307 echo '#endif' >>confdefs.h
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5316 ac_ext=c
5317 ac_cpp='$CPP $CPPFLAGS'
5318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323 cat >>confdefs.h <<\_ACEOF
5324 #define _GNU_SOURCE 1
5325 _ACEOF
5329 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5330 # If we haven't got the data from the intl directory,
5331 # assume NLS is disabled.
5332 USE_NLS=no
5333 LIBINTL=
5334 LIBINTL_DEP=
5335 INCINTL=
5336 XGETTEXT=
5337 GMSGFMT=
5338 POSUB=
5340 if test -f ../intl/config.intl; then
5341 . ../intl/config.intl
5343 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5344 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5345 if test x"$USE_NLS" != xyes; then
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5348 else
5349 echo "$as_me:$LINENO: result: yes" >&5
5350 echo "${ECHO_T}yes" >&6
5352 cat >>confdefs.h <<\_ACEOF
5353 #define ENABLE_NLS 1
5354 _ACEOF
5357 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5358 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5359 # Look for .po and .gmo files in the source directory.
5360 CATALOGS=
5361 XLINGUAS=
5362 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5363 # If there aren't any .gmo files the shell will give us the
5364 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5365 # weeded out.
5366 case "$cat" in *\**)
5367 continue;;
5368 esac
5369 # The quadruple backslash is collapsed to a double backslash
5370 # by the backticks, then collapsed again by the double quotes,
5371 # leaving us with one backslash in the sed expression (right
5372 # before the dot that mustn't act as a wildcard).
5373 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5374 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5375 # The user is allowed to set LINGUAS to a list of languages to
5376 # install catalogs for. If it's empty that means "all of them."
5377 if test "x$LINGUAS" = x; then
5378 CATALOGS="$CATALOGS $cat"
5379 XLINGUAS="$XLINGUAS $lang"
5380 else
5381 case "$LINGUAS" in *$lang*)
5382 CATALOGS="$CATALOGS $cat"
5383 XLINGUAS="$XLINGUAS $lang"
5385 esac
5387 done
5388 LINGUAS="$XLINGUAS"
5389 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5390 echo "${ECHO_T}$LINGUAS" >&6
5393 DATADIRNAME=share
5395 INSTOBJEXT=.mo
5397 GENCAT=gencat
5399 CATOBJEXT=.gmo
5403 MKINSTALLDIRS=
5404 if test -n "$ac_aux_dir"; then
5405 case "$ac_aux_dir" in
5406 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5407 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5408 esac
5410 if test -z "$MKINSTALLDIRS"; then
5411 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5416 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5418 # Check whether --enable-nls or --disable-nls was given.
5419 if test "${enable_nls+set}" = set; then
5420 enableval="$enable_nls"
5421 USE_NLS=$enableval
5422 else
5423 USE_NLS=yes
5425 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5426 echo "${ECHO_T}$USE_NLS" >&6
5433 # Prepare PATH_SEPARATOR.
5434 # The user is always right.
5435 if test "${PATH_SEPARATOR+set}" != set; then
5436 echo "#! /bin/sh" >conf$$.sh
5437 echo "exit 0" >>conf$$.sh
5438 chmod +x conf$$.sh
5439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5440 PATH_SEPARATOR=';'
5441 else
5442 PATH_SEPARATOR=:
5444 rm -f conf$$.sh
5447 # Find out how to test for executable files. Don't use a zero-byte file,
5448 # as systems may use methods other than mode bits to determine executability.
5449 cat >conf$$.file <<_ASEOF
5450 #! /bin/sh
5451 exit 0
5452 _ASEOF
5453 chmod +x conf$$.file
5454 if test -x conf$$.file >/dev/null 2>&1; then
5455 ac_executable_p="test -x"
5456 else
5457 ac_executable_p="test -f"
5459 rm -f conf$$.file
5461 # Extract the first word of "msgfmt", so it can be a program name with args.
5462 set dummy msgfmt; ac_word=$2
5463 echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465 if test "${ac_cv_path_MSGFMT+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 case "$MSGFMT" in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH; do
5475 IFS="$ac_save_IFS"
5476 test -z "$ac_dir" && ac_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5479 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5480 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5481 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5482 break 2
5485 done
5486 done
5487 IFS="$ac_save_IFS"
5488 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5490 esac
5492 MSGFMT="$ac_cv_path_MSGFMT"
5493 if test "$MSGFMT" != ":"; then
5494 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5495 echo "${ECHO_T}$MSGFMT" >&6
5496 else
5497 echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5501 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5502 set dummy gmsgfmt; ac_word=$2
5503 echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5505 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508 case $GMSGFMT in
5509 [\\/]* | ?:[\\/]*)
5510 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5527 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5529 esac
5531 GMSGFMT=$ac_cv_path_GMSGFMT
5533 if test -n "$GMSGFMT"; then
5534 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5535 echo "${ECHO_T}$GMSGFMT" >&6
5536 else
5537 echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5543 # Prepare PATH_SEPARATOR.
5544 # The user is always right.
5545 if test "${PATH_SEPARATOR+set}" != set; then
5546 echo "#! /bin/sh" >conf$$.sh
5547 echo "exit 0" >>conf$$.sh
5548 chmod +x conf$$.sh
5549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5550 PATH_SEPARATOR=';'
5551 else
5552 PATH_SEPARATOR=:
5554 rm -f conf$$.sh
5557 # Find out how to test for executable files. Don't use a zero-byte file,
5558 # as systems may use methods other than mode bits to determine executability.
5559 cat >conf$$.file <<_ASEOF
5560 #! /bin/sh
5561 exit 0
5562 _ASEOF
5563 chmod +x conf$$.file
5564 if test -x conf$$.file >/dev/null 2>&1; then
5565 ac_executable_p="test -x"
5566 else
5567 ac_executable_p="test -f"
5569 rm -f conf$$.file
5571 # Extract the first word of "xgettext", so it can be a program name with args.
5572 set dummy xgettext; ac_word=$2
5573 echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 case "$XGETTEXT" in
5579 [\\/]* | ?:[\\/]*)
5580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5583 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5584 for ac_dir in $PATH; do
5585 IFS="$ac_save_IFS"
5586 test -z "$ac_dir" && ac_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5589 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5590 (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
5591 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5592 break 2
5595 done
5596 done
5597 IFS="$ac_save_IFS"
5598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5600 esac
5602 XGETTEXT="$ac_cv_path_XGETTEXT"
5603 if test "$XGETTEXT" != ":"; then
5604 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5605 echo "${ECHO_T}$XGETTEXT" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5611 rm -f messages.po
5614 # Prepare PATH_SEPARATOR.
5615 # The user is always right.
5616 if test "${PATH_SEPARATOR+set}" != set; then
5617 echo "#! /bin/sh" >conf$$.sh
5618 echo "exit 0" >>conf$$.sh
5619 chmod +x conf$$.sh
5620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5621 PATH_SEPARATOR=';'
5622 else
5623 PATH_SEPARATOR=:
5625 rm -f conf$$.sh
5628 # Find out how to test for executable files. Don't use a zero-byte file,
5629 # as systems may use methods other than mode bits to determine executability.
5630 cat >conf$$.file <<_ASEOF
5631 #! /bin/sh
5632 exit 0
5633 _ASEOF
5634 chmod +x conf$$.file
5635 if test -x conf$$.file >/dev/null 2>&1; then
5636 ac_executable_p="test -x"
5637 else
5638 ac_executable_p="test -f"
5640 rm -f conf$$.file
5642 # Extract the first word of "msgmerge", so it can be a program name with args.
5643 set dummy msgmerge; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 case "$MSGMERGE" in
5650 [\\/]* | ?:[\\/]*)
5651 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5655 for ac_dir in $PATH; do
5656 IFS="$ac_save_IFS"
5657 test -z "$ac_dir" && ac_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5660 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5661 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5662 break 2
5665 done
5666 done
5667 IFS="$ac_save_IFS"
5668 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5670 esac
5672 MSGMERGE="$ac_cv_path_MSGMERGE"
5673 if test "$MSGMERGE" != ":"; then
5674 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5675 echo "${ECHO_T}$MSGMERGE" >&6
5676 else
5677 echo "$as_me:$LINENO: result: no" >&5
5678 echo "${ECHO_T}no" >&6
5682 if test "$GMSGFMT" != ":"; then
5683 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5684 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5686 else
5687 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5688 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5689 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5690 GMSGFMT=":"
5694 if test "$XGETTEXT" != ":"; then
5695 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5696 (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
5698 else
5699 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5700 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5701 XGETTEXT=":"
5703 rm -f messages.po
5706 ac_config_commands="$ac_config_commands default-1"
5710 # Permit host specific settings.
5711 . ${srcdir}/configure.host
5714 # Find a good install program. We prefer a C program (faster),
5715 # so one script is as good as another. But avoid the broken or
5716 # incompatible versions:
5717 # SysV /etc/install, /usr/sbin/install
5718 # SunOS /usr/etc/install
5719 # IRIX /sbin/install
5720 # AIX /bin/install
5721 # AmigaOS /C/install, which installs bootblocks on floppy discs
5722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5725 # OS/2's system install, which has a completely different semantic
5726 # ./install, which can be erroneously created by make from ./install.sh.
5727 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5728 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5729 if test -z "$INSTALL"; then
5730 if test "${ac_cv_path_install+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 # Account for people who put trailing slashes in PATH elements.
5739 case $as_dir/ in
5740 ./ | .// | /cC/* | \
5741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5743 /usr/ucb/* ) ;;
5745 # OSF1 and SCO ODT 3.0 have their own names for install.
5746 # Don't use installbsd from OSF since it installs stuff as root
5747 # by default.
5748 for ac_prog in ginstall scoinst install; do
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5751 if test $ac_prog = install &&
5752 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5753 # AIX install. It has an incompatible calling convention.
5755 elif test $ac_prog = install &&
5756 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5757 # program-specific install script used by HP pwplus--don't use.
5759 else
5760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5761 break 3
5764 done
5765 done
5767 esac
5768 done
5772 if test "${ac_cv_path_install+set}" = set; then
5773 INSTALL=$ac_cv_path_install
5774 else
5775 # As a last resort, use the slow shell script. We don't cache a
5776 # path for INSTALL within a source directory, because that will
5777 # break other packages using the cache if that directory is
5778 # removed, or if the path is relative.
5779 INSTALL=$ac_install_sh
5782 echo "$as_me:$LINENO: result: $INSTALL" >&5
5783 echo "${ECHO_T}$INSTALL" >&6
5785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5786 # It thinks the first close brace ends the variable substitution.
5787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5794 BFD_HOST_64BIT_LONG=0
5795 BFD_HOST_LONG_LONG=0
5796 BFD_HOST_64_BIT_DEFINED=0
5797 BFD_HOST_64_BIT=
5798 BFD_HOST_U_64_BIT=
5800 echo "$as_me:$LINENO: checking for long long" >&5
5801 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5802 if test "${bfd_cv_has_long_long+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5813 main ()
5815 unsigned long long ll = 18446744073709551615ULL;
5817 return 0;
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 bfd_cv_has_long_long=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 bfd_cv_has_long_long=no
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5853 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5854 if test $bfd_cv_has_long_long = yes; then
5855 BFD_HOST_LONG_LONG=1
5856 ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5862 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5863 # On Suns, sometimes $CPP names a directory.
5864 if test -n "$CPP" && test -d "$CPP"; then
5865 CPP=
5867 if test -z "$CPP"; then
5868 if test "${ac_cv_prog_CPP+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 # Double quotes because CPP needs to be expanded
5872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5874 ac_preproc_ok=false
5875 for ac_c_preproc_warn_flag in '' yes
5877 # Use a header file that comes with gcc, so configuring glibc
5878 # with a fresh cross-compiler works.
5879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5880 # <limits.h> exists even on freestanding compilers.
5881 # On the NeXT, cc -E runs the code through the compiler's parser,
5882 # not just through cpp. "Syntax error" is here to catch this case.
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #ifdef __STDC__
5890 # include <limits.h>
5891 #else
5892 # include <assert.h>
5893 #endif
5894 Syntax error
5895 _ACEOF
5896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev/null; then
5904 if test -s conftest.err; then
5905 ac_cpp_err=$ac_c_preproc_warn_flag
5906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5907 else
5908 ac_cpp_err=
5910 else
5911 ac_cpp_err=yes
5913 if test -z "$ac_cpp_err"; then
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5919 # Broken: fails on valid input.
5920 continue
5922 rm -f conftest.err conftest.$ac_ext
5924 # OK, works on sane cases. Now check whether non-existent headers
5925 # can be detected and how.
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #include <ac_nonexistent.h>
5933 _ACEOF
5934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } >/dev/null; then
5942 if test -s conftest.err; then
5943 ac_cpp_err=$ac_c_preproc_warn_flag
5944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5945 else
5946 ac_cpp_err=
5948 else
5949 ac_cpp_err=yes
5951 if test -z "$ac_cpp_err"; then
5952 # Broken: success on invalid input.
5953 continue
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 # Passes both tests.
5959 ac_preproc_ok=:
5960 break
5962 rm -f conftest.err conftest.$ac_ext
5964 done
5965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5966 rm -f conftest.err conftest.$ac_ext
5967 if $ac_preproc_ok; then
5968 break
5971 done
5972 ac_cv_prog_CPP=$CPP
5975 CPP=$ac_cv_prog_CPP
5976 else
5977 ac_cv_prog_CPP=$CPP
5979 echo "$as_me:$LINENO: result: $CPP" >&5
5980 echo "${ECHO_T}$CPP" >&6
5981 ac_preproc_ok=false
5982 for ac_c_preproc_warn_flag in '' yes
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #ifdef __STDC__
5997 # include <limits.h>
5998 #else
5999 # include <assert.h>
6000 #endif
6001 Syntax error
6002 _ACEOF
6003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null; then
6011 if test -s conftest.err; then
6012 ac_cpp_err=$ac_c_preproc_warn_flag
6013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014 else
6015 ac_cpp_err=
6017 else
6018 ac_cpp_err=yes
6020 if test -z "$ac_cpp_err"; then
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 # Broken: fails on valid input.
6027 continue
6029 rm -f conftest.err conftest.$ac_ext
6031 # OK, works on sane cases. Now check whether non-existent headers
6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <ac_nonexistent.h>
6040 _ACEOF
6041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } >/dev/null; then
6049 if test -s conftest.err; then
6050 ac_cpp_err=$ac_c_preproc_warn_flag
6051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6052 else
6053 ac_cpp_err=
6055 else
6056 ac_cpp_err=yes
6058 if test -z "$ac_cpp_err"; then
6059 # Broken: success on invalid input.
6060 continue
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 # Passes both tests.
6066 ac_preproc_ok=:
6067 break
6069 rm -f conftest.err conftest.$ac_ext
6071 done
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then
6076 else
6077 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6078 See \`config.log' for more details." >&5
6079 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6080 See \`config.log' for more details." >&2;}
6081 { (exit 1); exit 1; }; }
6084 ac_ext=c
6085 ac_cpp='$CPP $CPPFLAGS'
6086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091 echo "$as_me:$LINENO: checking for egrep" >&5
6092 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6093 if test "${ac_cv_prog_egrep+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6097 then ac_cv_prog_egrep='grep -E'
6098 else ac_cv_prog_egrep='egrep'
6101 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6102 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6103 EGREP=$ac_cv_prog_egrep
6106 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6108 if test "${ac_cv_header_stdc+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #include <stdlib.h>
6118 #include <stdarg.h>
6119 #include <string.h>
6120 #include <float.h>
6123 main ()
6127 return 0;
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_header_stdc=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 ac_cv_header_stdc=no
6159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 if test $ac_cv_header_stdc = yes; then
6162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <string.h>
6171 _ACEOF
6172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6173 $EGREP "memchr" >/dev/null 2>&1; then
6175 else
6176 ac_cv_header_stdc=no
6178 rm -f conftest*
6182 if test $ac_cv_header_stdc = yes; then
6183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 #include <stdlib.h>
6192 _ACEOF
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "free" >/dev/null 2>&1; then
6196 else
6197 ac_cv_header_stdc=no
6199 rm -f conftest*
6203 if test $ac_cv_header_stdc = yes; then
6204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6205 if test "$cross_compiling" = yes; then
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 #include <ctype.h>
6215 #if ((' ' & 0x0FF) == 0x020)
6216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6218 #else
6219 # define ISLOWER(c) \
6220 (('a' <= (c) && (c) <= 'i') \
6221 || ('j' <= (c) && (c) <= 'r') \
6222 || ('s' <= (c) && (c) <= 'z'))
6223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6224 #endif
6226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6228 main ()
6230 int i;
6231 for (i = 0; i < 256; i++)
6232 if (XOR (islower (i), ISLOWER (i))
6233 || toupper (i) != TOUPPER (i))
6234 exit(2);
6235 exit (0);
6237 _ACEOF
6238 rm -f conftest$ac_exeext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240 (eval $ac_link) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6250 else
6251 echo "$as_me: program exited with status $ac_status" >&5
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ( exit $ac_status )
6256 ac_cv_header_stdc=no
6258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6263 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6264 if test $ac_cv_header_stdc = yes; then
6266 cat >>confdefs.h <<\_ACEOF
6267 #define STDC_HEADERS 1
6268 _ACEOF
6272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6283 inttypes.h stdint.h unistd.h
6285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6286 echo "$as_me:$LINENO: checking for $ac_header" >&5
6287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 $ac_includes_default
6299 #include <$ac_header>
6300 _ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 eval "$as_ac_Header=yes"
6324 else
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 eval "$as_ac_Header=no"
6330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6335 cat >>confdefs.h <<_ACEOF
6336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6337 _ACEOF
6341 done
6344 echo "$as_me:$LINENO: checking for long long" >&5
6345 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6346 if test "${ac_cv_type_long_long+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6357 main ()
6359 if ((long long *) 0)
6360 return 0;
6361 if (sizeof (long long))
6362 return 0;
6364 return 0;
6366 _ACEOF
6367 rm -f conftest.$ac_objext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest.$ac_objext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_type_long_long=yes
6390 else
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6394 ac_cv_type_long_long=no
6396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6399 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6401 echo "$as_me:$LINENO: checking size of long long" >&5
6402 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6403 if test "${ac_cv_sizeof_long_long+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 if test "$ac_cv_type_long_long" = yes; then
6407 # The cast to unsigned long works around a bug in the HP C Compiler
6408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6410 # This bug is HP SR number 8606223364.
6411 if test "$cross_compiling" = yes; then
6412 # Depending upon the size, compute the lo and hi bounds.
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6421 main ()
6423 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6424 test_array [0] = 0
6427 return 0;
6429 _ACEOF
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432 (eval $ac_compile) 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_c_werror_flag"
6440 || test ! -s conftest.err'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_lo=0 ac_mid=0
6453 while :; do
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 $ac_includes_default
6462 main ()
6464 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6465 test_array [0] = 0
6468 return 0;
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 ac_hi=$ac_mid; break
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 ac_lo=`expr $ac_mid + 1`
6499 if test $ac_lo -le $ac_mid; then
6500 ac_lo= ac_hi=
6501 break
6503 ac_mid=`expr 2 '*' $ac_mid + 1`
6505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6506 done
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6519 main ()
6521 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6522 test_array [0] = 0
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_hi=-1 ac_mid=-1
6551 while :; do
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6560 main ()
6562 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6563 test_array [0] = 0
6566 return 0;
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_lo=$ac_mid; break
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 ac_hi=`expr '(' $ac_mid ')' - 1`
6597 if test $ac_mid -le $ac_hi; then
6598 ac_lo= ac_hi=
6599 break
6601 ac_mid=`expr 2 '*' $ac_mid`
6603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604 done
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_lo= ac_hi=
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614 # Binary search between lo and hi bounds.
6615 while test "x$ac_lo" != "x$ac_hi"; do
6616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h. */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 $ac_includes_default
6625 main ()
6627 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6628 test_array [0] = 0
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_hi=$ac_mid
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_lo=`expr '(' $ac_mid ')' + 1`
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 done
6665 case $ac_lo in
6666 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6667 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6668 See \`config.log' for more details." >&5
6669 echo "$as_me: error: cannot compute sizeof (long long), 77
6670 See \`config.log' for more details." >&2;}
6671 { (exit 1); exit 1; }; } ;;
6672 esac
6673 else
6674 if test "$cross_compiling" = yes; then
6675 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6676 See \`config.log' for more details." >&5
6677 echo "$as_me: error: cannot run test program while cross compiling
6678 See \`config.log' for more details." >&2;}
6679 { (exit 1); exit 1; }; }
6680 else
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6688 long longval () { return (long) (sizeof (long long)); }
6689 unsigned long ulongval () { return (long) (sizeof (long long)); }
6690 #include <stdio.h>
6691 #include <stdlib.h>
6693 main ()
6696 FILE *f = fopen ("conftest.val", "w");
6697 if (! f)
6698 exit (1);
6699 if (((long) (sizeof (long long))) < 0)
6701 long i = longval ();
6702 if (i != ((long) (sizeof (long long))))
6703 exit (1);
6704 fprintf (f, "%ld\n", i);
6706 else
6708 unsigned long i = ulongval ();
6709 if (i != ((long) (sizeof (long long))))
6710 exit (1);
6711 fprintf (f, "%lu\n", i);
6713 exit (ferror (f) || fclose (f) != 0);
6716 return 0;
6718 _ACEOF
6719 rm -f conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_sizeof_long_long=`cat conftest.val`
6731 else
6732 echo "$as_me: program exited with status $ac_status" >&5
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 ( exit $ac_status )
6737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6738 See \`config.log' for more details." >&5
6739 echo "$as_me: error: cannot compute sizeof (long long), 77
6740 See \`config.log' for more details." >&2;}
6741 { (exit 1); exit 1; }; }
6743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6746 rm -f conftest.val
6747 else
6748 ac_cv_sizeof_long_long=0
6751 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6752 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6753 cat >>confdefs.h <<_ACEOF
6754 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6755 _ACEOF
6760 echo "$as_me:$LINENO: checking for long" >&5
6761 echo $ECHO_N "checking for long... $ECHO_C" >&6
6762 if test "${ac_cv_type_long+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 $ac_includes_default
6773 main ()
6775 if ((long *) 0)
6776 return 0;
6777 if (sizeof (long))
6778 return 0;
6780 return 0;
6782 _ACEOF
6783 rm -f conftest.$ac_objext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785 (eval $ac_compile) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -z "$ac_c_werror_flag"
6793 || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_type_long=yes
6806 else
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_type_long=no
6812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6815 echo "${ECHO_T}$ac_cv_type_long" >&6
6817 echo "$as_me:$LINENO: checking size of long" >&5
6818 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6819 if test "${ac_cv_sizeof_long+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 if test "$ac_cv_type_long" = yes; then
6823 # The cast to unsigned long works around a bug in the HP C Compiler
6824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6826 # This bug is HP SR number 8606223364.
6827 if test "$cross_compiling" = yes; then
6828 # Depending upon the size, compute the lo and hi bounds.
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6837 main ()
6839 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6840 test_array [0] = 0
6843 return 0;
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -z "$ac_c_werror_flag"
6856 || test ! -s conftest.err'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 ac_lo=0 ac_mid=0
6869 while :; do
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6878 main ()
6880 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6881 test_array [0] = 0
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_hi=$ac_mid; break
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_lo=`expr $ac_mid + 1`
6915 if test $ac_lo -le $ac_mid; then
6916 ac_lo= ac_hi=
6917 break
6919 ac_mid=`expr 2 '*' $ac_mid + 1`
6921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 done
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6935 main ()
6937 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6938 test_array [0] = 0
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag"
6954 || test ! -s conftest.err'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_hi=-1 ac_mid=-1
6967 while :; do
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6976 main ()
6978 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6979 test_array [0] = 0
6982 return 0;
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -z "$ac_c_werror_flag"
6995 || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_lo=$ac_mid; break
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_hi=`expr '(' $ac_mid ')' - 1`
7013 if test $ac_mid -le $ac_hi; then
7014 ac_lo= ac_hi=
7015 break
7017 ac_mid=`expr 2 '*' $ac_mid`
7019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7020 done
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_lo= ac_hi=
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 # Binary search between lo and hi bounds.
7031 while test "x$ac_lo" != "x$ac_hi"; do
7032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 $ac_includes_default
7041 main ()
7043 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7044 test_array [0] = 0
7047 return 0;
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_c_werror_flag"
7060 || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_hi=$ac_mid
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7077 ac_lo=`expr '(' $ac_mid ')' + 1`
7079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080 done
7081 case $ac_lo in
7082 ?*) ac_cv_sizeof_long=$ac_lo;;
7083 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7084 See \`config.log' for more details." >&5
7085 echo "$as_me: error: cannot compute sizeof (long), 77
7086 See \`config.log' for more details." >&2;}
7087 { (exit 1); exit 1; }; } ;;
7088 esac
7089 else
7090 if test "$cross_compiling" = yes; then
7091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7092 See \`config.log' for more details." >&5
7093 echo "$as_me: error: cannot run test program while cross compiling
7094 See \`config.log' for more details." >&2;}
7095 { (exit 1); exit 1; }; }
7096 else
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 $ac_includes_default
7104 long longval () { return (long) (sizeof (long)); }
7105 unsigned long ulongval () { return (long) (sizeof (long)); }
7106 #include <stdio.h>
7107 #include <stdlib.h>
7109 main ()
7112 FILE *f = fopen ("conftest.val", "w");
7113 if (! f)
7114 exit (1);
7115 if (((long) (sizeof (long))) < 0)
7117 long i = longval ();
7118 if (i != ((long) (sizeof (long))))
7119 exit (1);
7120 fprintf (f, "%ld\n", i);
7122 else
7124 unsigned long i = ulongval ();
7125 if (i != ((long) (sizeof (long))))
7126 exit (1);
7127 fprintf (f, "%lu\n", i);
7129 exit (ferror (f) || fclose (f) != 0);
7132 return 0;
7134 _ACEOF
7135 rm -f conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_sizeof_long=`cat conftest.val`
7147 else
7148 echo "$as_me: program exited with status $ac_status" >&5
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ( exit $ac_status )
7153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7154 See \`config.log' for more details." >&5
7155 echo "$as_me: error: cannot compute sizeof (long), 77
7156 See \`config.log' for more details." >&2;}
7157 { (exit 1); exit 1; }; }
7159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162 rm -f conftest.val
7163 else
7164 ac_cv_sizeof_long=0
7167 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7168 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7169 cat >>confdefs.h <<_ACEOF
7170 #define SIZEOF_LONG $ac_cv_sizeof_long
7171 _ACEOF
7174 if test "x${ac_cv_sizeof_long}" = "x8"; then
7175 host64=true
7176 BFD_HOST_64BIT_LONG=1
7177 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7178 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7179 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7180 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7181 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7184 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7185 BFD_HOST_64_BIT_DEFINED=1
7186 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7187 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7196 # Put a plausible default for CC_FOR_BUILD in Makefile.
7197 if test -z "$CC_FOR_BUILD"; then
7198 if test "x$cross_compiling" = "xno"; then
7199 CC_FOR_BUILD='$(CC)'
7200 else
7201 CC_FOR_BUILD=gcc
7205 # Also set EXEEXT_FOR_BUILD.
7206 if test "x$cross_compiling" = "xno"; then
7207 EXEEXT_FOR_BUILD='$(EXEEXT)'
7208 else
7209 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7210 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7211 if test "${bfd_cv_build_exeext+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 rm -f conftest*
7215 echo 'int main () { return 0; }' > conftest.c
7216 bfd_cv_build_exeext=
7217 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7218 for file in conftest.*; do
7219 case $file in
7220 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7221 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7222 esac
7223 done
7224 rm -f conftest*
7225 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7227 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7228 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7229 EXEEXT_FOR_BUILD=""
7230 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7240 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244 echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251 else
7252 # Is the header compilable?
7253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7262 #include <$ac_header>
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_header_compiler=yes
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 ac_header_compiler=no
7293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7295 echo "${ECHO_T}$ac_header_compiler" >&6
7297 # Is the header present?
7298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 #include <$ac_header>
7307 _ACEOF
7308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } >/dev/null; then
7316 if test -s conftest.err; then
7317 ac_cpp_err=$ac_c_preproc_warn_flag
7318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7319 else
7320 ac_cpp_err=
7322 else
7323 ac_cpp_err=yes
7325 if test -z "$ac_cpp_err"; then
7326 ac_header_preproc=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_header_preproc=no
7333 rm -f conftest.err conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7335 echo "${ECHO_T}$ac_header_preproc" >&6
7337 # So? What about this header?
7338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7339 yes:no: )
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7344 ac_header_preproc=yes
7346 no:yes:* )
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7360 cat <<\_ASBOX
7361 ## ------------------------------------------ ##
7362 ## Report this to the AC_PACKAGE_NAME lists. ##
7363 ## ------------------------------------------ ##
7364 _ASBOX
7366 sed "s/^/$as_me: WARNING: /" >&2
7368 esac
7369 echo "$as_me:$LINENO: checking for $ac_header" >&5
7370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 eval "$as_ac_Header=\$ac_header_preproc"
7376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381 cat >>confdefs.h <<_ACEOF
7382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 _ACEOF
7387 done
7392 for ac_header in fcntl.h sys/file.h sys/time.h
7394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7396 echo "$as_me:$LINENO: checking for $ac_header" >&5
7397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7403 else
7404 # Is the header compilable?
7405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 $ac_includes_default
7414 #include <$ac_header>
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_header_compiler=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_header_compiler=no
7445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7447 echo "${ECHO_T}$ac_header_compiler" >&6
7449 # Is the header present?
7450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #include <$ac_header>
7459 _ACEOF
7460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } >/dev/null; then
7468 if test -s conftest.err; then
7469 ac_cpp_err=$ac_c_preproc_warn_flag
7470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7471 else
7472 ac_cpp_err=
7474 else
7475 ac_cpp_err=yes
7477 if test -z "$ac_cpp_err"; then
7478 ac_header_preproc=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 ac_header_preproc=no
7485 rm -f conftest.err conftest.$ac_ext
7486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7487 echo "${ECHO_T}$ac_header_preproc" >&6
7489 # So? What about this header?
7490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7491 yes:no: )
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7496 ac_header_preproc=yes
7498 no:yes:* )
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7512 cat <<\_ASBOX
7513 ## ------------------------------------------ ##
7514 ## Report this to the AC_PACKAGE_NAME lists. ##
7515 ## ------------------------------------------ ##
7516 _ASBOX
7518 sed "s/^/$as_me: WARNING: /" >&2
7520 esac
7521 echo "$as_me:$LINENO: checking for $ac_header" >&5
7522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526 eval "$as_ac_Header=\$ac_header_preproc"
7528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533 cat >>confdefs.h <<_ACEOF
7534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7535 _ACEOF
7539 done
7541 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7542 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7543 if test "${ac_cv_header_time+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 #include <sys/types.h>
7553 #include <sys/time.h>
7554 #include <time.h>
7557 main ()
7559 if ((struct tm *) 0)
7560 return 0;
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag"
7575 || test ! -s conftest.err'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest.$ac_objext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_header_time=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_cv_header_time=no
7594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7596 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7597 echo "${ECHO_T}$ac_cv_header_time" >&6
7598 if test $ac_cv_header_time = yes; then
7600 cat >>confdefs.h <<\_ACEOF
7601 #define TIME_WITH_SYS_TIME 1
7602 _ACEOF
7611 ac_header_dirent=no
7612 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7613 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7614 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7615 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <sys/types.h>
7626 #include <$ac_hdr>
7629 main ()
7631 if ((DIR *) 0)
7632 return 0;
7634 return 0;
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 eval "$as_ac_Header=yes"
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 eval "$as_ac_Header=no"
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7673 _ACEOF
7675 ac_header_dirent=$ac_hdr; break
7678 done
7679 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7680 if test $ac_header_dirent = dirent.h; then
7681 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7683 if test "${ac_cv_search_opendir+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 ac_func_search_save_LIBS=$LIBS
7687 ac_cv_search_opendir=no
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 #ifdef __cplusplus
7697 extern "C"
7698 #endif
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char opendir ();
7703 main ()
7705 opendir ();
7707 return 0;
7709 _ACEOF
7710 rm -f conftest.$ac_objext conftest$ac_exeext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_cv_search_opendir="none required"
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7738 rm -f conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740 if test "$ac_cv_search_opendir" = no; then
7741 for ac_lib in dir; do
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7750 /* Override any gcc2 internal prototype to avoid an error. */
7751 #ifdef __cplusplus
7752 extern "C"
7753 #endif
7754 /* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7756 char opendir ();
7758 main ()
7760 opendir ();
7762 return 0;
7764 _ACEOF
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -z "$ac_c_werror_flag"
7775 || test ! -s conftest.err'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 ac_cv_search_opendir="-l$ac_lib"
7788 break
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7794 rm -f conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796 done
7798 LIBS=$ac_func_search_save_LIBS
7800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7802 if test "$ac_cv_search_opendir" != no; then
7803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7807 else
7808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7810 if test "${ac_cv_search_opendir+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 ac_func_search_save_LIBS=$LIBS
7814 ac_cv_search_opendir=no
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828 char opendir ();
7830 main ()
7832 opendir ();
7834 return 0;
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_search_opendir="none required"
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7865 rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 if test "$ac_cv_search_opendir" = no; then
7868 for ac_lib in x; do
7869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7877 /* Override any gcc2 internal prototype to avoid an error. */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char opendir ();
7885 main ()
7887 opendir ();
7889 return 0;
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_search_opendir="-l$ac_lib"
7915 break
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7921 rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 done
7925 LIBS=$ac_func_search_save_LIBS
7927 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7928 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7929 if test "$ac_cv_search_opendir" != no; then
7930 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7936 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7937 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7938 if test "${gcc_cv_header_string+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <string.h>
7948 #include <strings.h>
7950 main ()
7954 return 0;
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag"
7967 || test ! -s conftest.err'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try='test -s conftest.$ac_objext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 gcc_cv_header_string=yes
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 gcc_cv_header_string=no
7986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7989 echo "${ECHO_T}$gcc_cv_header_string" >&6
7990 if test $gcc_cv_header_string = yes; then
7992 cat >>confdefs.h <<\_ACEOF
7993 #define STRING_WITH_STRINGS 1
7994 _ACEOF
8005 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
8007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8008 echo "$as_me:$LINENO: checking for $ac_func" >&5
8009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8010 if eval "test \"\${$as_ac_var+set}\" = set"; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8021 #define $ac_func innocuous_$ac_func
8023 /* System header to define __stub macros and hopefully few prototypes,
8024 which can conflict with char $ac_func (); below.
8025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8026 <limits.h> exists even on freestanding compilers. */
8028 #ifdef __STDC__
8029 # include <limits.h>
8030 #else
8031 # include <assert.h>
8032 #endif
8034 #undef $ac_func
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 #ifdef __cplusplus
8038 extern "C"
8040 #endif
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8043 char $ac_func ();
8044 /* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048 choke me
8049 #else
8050 char (*f) () = $ac_func;
8051 #endif
8052 #ifdef __cplusplus
8054 #endif
8057 main ()
8059 return f != $ac_func;
8061 return 0;
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066 (eval $ac_link) 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag"
8074 || test ! -s conftest.err'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 eval "$as_ac_var=yes"
8087 else
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 eval "$as_ac_var=no"
8093 rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8098 if test `eval echo '${'$as_ac_var'}'` = yes; then
8099 cat >>confdefs.h <<_ACEOF
8100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8101 _ACEOF
8104 done
8107 for ac_func in strtoull
8109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8110 echo "$as_me:$LINENO: checking for $ac_func" >&5
8111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8112 if eval "test \"\${$as_ac_var+set}\" = set"; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8123 #define $ac_func innocuous_$ac_func
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8130 #ifdef __STDC__
8131 # include <limits.h>
8132 #else
8133 # include <assert.h>
8134 #endif
8136 #undef $ac_func
8138 /* Override any gcc2 internal prototype to avoid an error. */
8139 #ifdef __cplusplus
8140 extern "C"
8142 #endif
8143 /* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145 char $ac_func ();
8146 /* The GNU C library defines this for functions which it implements
8147 to always fail with ENOSYS. Some functions are actually named
8148 something starting with __ and the normal name is an alias. */
8149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8150 choke me
8151 #else
8152 char (*f) () = $ac_func;
8153 #endif
8154 #ifdef __cplusplus
8156 #endif
8159 main ()
8161 return f != $ac_func;
8163 return 0;
8165 _ACEOF
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8168 (eval $ac_link) 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest$ac_exeext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 eval "$as_ac_var=yes"
8189 else
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 eval "$as_ac_var=no"
8195 rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8200 if test `eval echo '${'$as_ac_var'}'` = yes; then
8201 cat >>confdefs.h <<_ACEOF
8202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8203 _ACEOF
8206 done
8209 echo "$as_me:$LINENO: checking whether basename is declared" >&5
8210 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8211 if test "${ac_cv_have_decl_basename+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h. */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 $ac_includes_default
8222 main ()
8224 #ifndef basename
8225 char *p = (char *) basename;
8226 #endif
8229 return 0;
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_have_decl_basename=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_have_decl_basename=no
8261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8263 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8264 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8265 if test $ac_cv_have_decl_basename = yes; then
8267 cat >>confdefs.h <<_ACEOF
8268 #define HAVE_DECL_BASENAME 1
8269 _ACEOF
8272 else
8273 cat >>confdefs.h <<_ACEOF
8274 #define HAVE_DECL_BASENAME 0
8275 _ACEOF
8281 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8282 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8283 if test "${ac_cv_have_decl_ftello+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8294 main ()
8296 #ifndef ftello
8297 char *p = (char *) ftello;
8298 #endif
8301 return 0;
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306 (eval $ac_compile) 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag"
8314 || test ! -s conftest.err'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest.$ac_objext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_have_decl_ftello=yes
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_cv_have_decl_ftello=no
8333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8335 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8336 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8337 if test $ac_cv_have_decl_ftello = yes; then
8339 cat >>confdefs.h <<_ACEOF
8340 #define HAVE_DECL_FTELLO 1
8341 _ACEOF
8344 else
8345 cat >>confdefs.h <<_ACEOF
8346 #define HAVE_DECL_FTELLO 0
8347 _ACEOF
8353 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8354 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8355 if test "${ac_cv_have_decl_ftello64+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8366 main ()
8368 #ifndef ftello64
8369 char *p = (char *) ftello64;
8370 #endif
8373 return 0;
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_cv_have_decl_ftello64=yes
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_cv_have_decl_ftello64=no
8405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8407 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8408 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8409 if test $ac_cv_have_decl_ftello64 = yes; then
8411 cat >>confdefs.h <<_ACEOF
8412 #define HAVE_DECL_FTELLO64 1
8413 _ACEOF
8416 else
8417 cat >>confdefs.h <<_ACEOF
8418 #define HAVE_DECL_FTELLO64 0
8419 _ACEOF
8425 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8426 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8427 if test "${ac_cv_have_decl_fseeko+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h. */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8438 main ()
8440 #ifndef fseeko
8441 char *p = (char *) fseeko;
8442 #endif
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_have_decl_fseeko=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_have_decl_fseeko=no
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8480 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8481 if test $ac_cv_have_decl_fseeko = yes; then
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_DECL_FSEEKO 1
8485 _ACEOF
8488 else
8489 cat >>confdefs.h <<_ACEOF
8490 #define HAVE_DECL_FSEEKO 0
8491 _ACEOF
8497 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8498 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8499 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8510 main ()
8512 #ifndef fseeko64
8513 char *p = (char *) fseeko64;
8514 #endif
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_have_decl_fseeko64=yes
8543 else
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_cv_have_decl_fseeko64=no
8549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8552 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8553 if test $ac_cv_have_decl_fseeko64 = yes; then
8555 cat >>confdefs.h <<_ACEOF
8556 #define HAVE_DECL_FSEEKO64 1
8557 _ACEOF
8560 else
8561 cat >>confdefs.h <<_ACEOF
8562 #define HAVE_DECL_FSEEKO64 0
8563 _ACEOF
8571 case "${host}" in
8572 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8574 cat >>confdefs.h <<\_ACEOF
8575 #define USE_BINARY_FOPEN 1
8576 _ACEOF
8578 esac
8580 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8581 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8582 if test "${ac_cv_have_decl_ffs+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8593 main ()
8595 #ifndef ffs
8596 char *p = (char *) ffs;
8597 #endif
8600 return 0;
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_have_decl_ffs=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_cv_have_decl_ffs=no
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8635 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8636 if test $ac_cv_have_decl_ffs = yes; then
8638 cat >>confdefs.h <<_ACEOF
8639 #define HAVE_DECL_FFS 1
8640 _ACEOF
8643 else
8644 cat >>confdefs.h <<_ACEOF
8645 #define HAVE_DECL_FFS 0
8646 _ACEOF
8652 echo "$as_me:$LINENO: checking whether free is declared" >&5
8653 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8654 if test "${ac_cv_have_decl_free+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8665 main ()
8667 #ifndef free
8668 char *p = (char *) free;
8669 #endif
8672 return 0;
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677 (eval $ac_compile) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest.$ac_objext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_have_decl_free=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_cv_have_decl_free=no
8704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8707 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8708 if test $ac_cv_have_decl_free = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DECL_FREE 1
8712 _ACEOF
8715 else
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_DECL_FREE 0
8718 _ACEOF
8724 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8725 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8726 if test "${ac_cv_have_decl_getenv+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 $ac_includes_default
8737 main ()
8739 #ifndef getenv
8740 char *p = (char *) getenv;
8741 #endif
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_have_decl_getenv=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_have_decl_getenv=no
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8779 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8780 if test $ac_cv_have_decl_getenv = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_DECL_GETENV 1
8784 _ACEOF
8787 else
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_DECL_GETENV 0
8790 _ACEOF
8796 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8797 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8798 if test "${ac_cv_have_decl_malloc+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8809 main ()
8811 #ifndef malloc
8812 char *p = (char *) malloc;
8813 #endif
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest.$ac_objext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_have_decl_malloc=yes
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_have_decl_malloc=no
8848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8850 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8851 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8852 if test $ac_cv_have_decl_malloc = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_DECL_MALLOC 1
8856 _ACEOF
8859 else
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_DECL_MALLOC 0
8862 _ACEOF
8868 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8869 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8870 if test "${ac_cv_have_decl_realloc+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 $ac_includes_default
8881 main ()
8883 #ifndef realloc
8884 char *p = (char *) realloc;
8885 #endif
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_have_decl_realloc=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_cv_have_decl_realloc=no
8920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8923 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8924 if test $ac_cv_have_decl_realloc = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_DECL_REALLOC 1
8928 _ACEOF
8931 else
8932 cat >>confdefs.h <<_ACEOF
8933 #define HAVE_DECL_REALLOC 0
8934 _ACEOF
8940 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8941 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8942 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 $ac_includes_default
8953 main ()
8955 #ifndef stpcpy
8956 char *p = (char *) stpcpy;
8957 #endif
8960 return 0;
8962 _ACEOF
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965 (eval $ac_compile) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_have_decl_stpcpy=yes
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_cv_have_decl_stpcpy=no
8992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8995 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8996 if test $ac_cv_have_decl_stpcpy = yes; then
8998 cat >>confdefs.h <<_ACEOF
8999 #define HAVE_DECL_STPCPY 1
9000 _ACEOF
9003 else
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_DECL_STPCPY 0
9006 _ACEOF
9012 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9013 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9014 if test "${ac_cv_have_decl_strstr+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h. */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9025 main ()
9027 #ifndef strstr
9028 char *p = (char *) strstr;
9029 #endif
9032 return 0;
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037 (eval $ac_compile) 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -z "$ac_c_werror_flag"
9045 || test ! -s conftest.err'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest.$ac_objext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 ac_cv_have_decl_strstr=yes
9058 else
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 ac_cv_have_decl_strstr=no
9064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9067 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9068 if test $ac_cv_have_decl_strstr = yes; then
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_DECL_STRSTR 1
9072 _ACEOF
9075 else
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_DECL_STRSTR 0
9078 _ACEOF
9084 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9085 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9086 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9097 main ()
9099 #ifndef snprintf
9100 char *p = (char *) snprintf;
9101 #endif
9104 return 0;
9106 _ACEOF
9107 rm -f conftest.$ac_objext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_have_decl_snprintf=yes
9130 else
9131 echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9134 ac_cv_have_decl_snprintf=no
9136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9139 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9140 if test $ac_cv_have_decl_snprintf = yes; then
9142 cat >>confdefs.h <<_ACEOF
9143 #define HAVE_DECL_SNPRINTF 1
9144 _ACEOF
9147 else
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL_SNPRINTF 0
9150 _ACEOF
9156 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9157 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9158 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 $ac_includes_default
9169 main ()
9171 #ifndef vsnprintf
9172 char *p = (char *) vsnprintf;
9173 #endif
9176 return 0;
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -z "$ac_c_werror_flag"
9189 || test ! -s conftest.err'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest.$ac_objext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 ac_cv_have_decl_vsnprintf=yes
9202 else
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 ac_cv_have_decl_vsnprintf=no
9208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9211 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9212 if test $ac_cv_have_decl_vsnprintf = yes; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define HAVE_DECL_VSNPRINTF 1
9216 _ACEOF
9219 else
9220 cat >>confdefs.h <<_ACEOF
9221 #define HAVE_DECL_VSNPRINTF 0
9222 _ACEOF
9229 # If we are configured native, pick a core file support file.
9230 COREFILE=
9231 COREFLAG=
9232 TRAD_HEADER=
9233 if test "${target}" = "${host}"; then
9234 case "${host}" in
9235 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9236 COREFILE=''
9238 alpha*-*-linux-*)
9239 COREFILE=trad-core.lo
9240 TRAD_HEADER='"hosts/alphalinux.h"'
9242 alpha*-*-netbsd* | alpha*-*-openbsd*)
9243 COREFILE=netbsd-core.lo
9245 alpha*-*-*) COREFILE=osf-core.lo ;;
9246 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9247 COREFILE='' ;;
9248 arm-*-netbsd* | arm-*-openbsd*)
9249 COREFILE=netbsd-core.lo
9251 arm-*-riscix) COREFILE=trad-core.lo ;;
9252 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9253 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9254 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9255 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9256 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9257 hppa*-*-netbsd* | hppa*-*-openbsd*)
9258 COREFILE=netbsd-core.lo
9261 i370-*-*)
9262 COREFILE=trad-core.lo
9263 TRAD_HEADER='"hosts/i370linux.h"'
9266 i[3-7]86-sequent-bsd*)
9267 COREFILE=trad-core.lo
9268 TRAD_HEADER='"hosts/symmetry.h"'
9270 i[3-7]86-sequent-sysv4*) ;;
9271 i[3-7]86-sequent-sysv*)
9272 COREFILE=trad-core.lo
9273 TRAD_HEADER='"hosts/symmetry.h"'
9275 i[3-7]86-*-bsdi)
9276 COREFILE=
9278 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*)
9279 COREFILE=trad-core.lo
9280 TRAD_HEADER='"hosts/i386bsd.h"'
9282 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9283 COREFILE=''
9284 TRAD_HEADER='"hosts/i386bsd.h"'
9286 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9287 COREFILE=netbsd-core.lo
9289 i[3-7]86-esix-sysv3*)
9290 COREFILE=trad-core.lo
9291 TRAD_HEADER='"hosts/esix.h"'
9293 i[3-7]86-*-sco3.2v5*)
9294 COREFILE=sco5-core.lo
9296 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9297 COREFILE=trad-core.lo
9298 TRAD_HEADER='"hosts/i386sco.h"'
9300 i[3-7]86-*-mach3*)
9301 COREFILE=trad-core.lo
9302 TRAD_HEADER='"hosts/i386mach3.h"'
9304 i[3-7]86-*-linux-*)
9305 COREFILE=trad-core.lo
9306 TRAD_HEADER='"hosts/i386linux.h"'
9308 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9309 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9310 i860-*-mach3* | i860-*-osf1*)
9311 COREFILE=trad-core.lo
9312 TRAD_HEADER='"hosts/i860mach3.h"'
9314 mips-*-netbsd* | mips*-*-openbsd*)
9315 COREFILE=netbsd-core.lo
9317 mips-dec-*)
9318 COREFILE=trad-core.lo
9319 TRAD_HEADER='"hosts/decstation.h"'
9321 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9322 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9323 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9324 mips-*-sysv4*) ;;
9325 mips-*-sysv* | mips-*-riscos*)
9326 COREFILE=trad-core.lo
9327 TRAD_HEADER='"hosts/riscos.h"'
9329 mips-sony-bsd*)
9330 COREFILE=trad-core.lo
9331 TRAD_HEADER='"hosts/news-mips.h"'
9333 m68*-bull*-sysv*)
9334 COREFILE=trad-core.lo
9335 TRAD_HEADER='"hosts/dpx2.h"'
9337 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9338 m68*-hp-bsd*)
9339 COREFILE=trad-core.lo
9340 TRAD_HEADER='"hosts/hp300bsd.h"'
9342 m68*-*-linux-*)
9343 COREFILE=trad-core.lo
9344 TRAD_HEADER='"hosts/m68klinux.h"'
9346 m68*-motorola-sysv*)
9347 COREFILE=trad-core.lo
9348 TRAD_HEADER='"hosts/delta68.h"'
9350 m68*-sony-*)
9351 COREFILE=trad-core.lo
9352 TRAD_HEADER='"hosts/news.h"'
9354 m68*-*-netbsd* | m68*-*-openbsd*)
9355 COREFILE=netbsd-core.lo
9357 m68*-apple-aux*)
9358 COREFILE=trad-core.lo
9359 TRAD_HEADER='"hosts/m68kaux.h"'
9361 m88*-*-sysv4*)
9363 m88*-motorola-sysv*)
9364 COREFILE=ptrace-core.lo
9366 m88*-*-mach3*)
9367 COREFILE=trad-core.lo
9368 TRAD_HEADER='"hosts/m88kmach3.h"'
9370 m88*-*-openbsd*)
9371 COREFILE=netbsd-core.lo
9373 ns32k-pc532-mach)
9374 COREFILE=trad-core.lo
9375 TRAD_HEADER='"hosts/pc532mach.h"'
9377 ns32k-*-netbsd* | ns32k-*-openbsd*)
9378 COREFILE=netbsd-core.lo
9380 rs6000-*-lynx*)
9381 COREFILE=lynx-core.lo
9383 rs6000-*-aix5.* | powerpc-*-aix5.*)
9384 COREFILE=rs6000-core.lo
9385 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9387 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9388 COREFILE=rs6000-core.lo
9389 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9390 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9391 # have c_impl as a member of struct core_dumpx
9392 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9393 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 #include <core.h>
9402 main ()
9404 struct core_dumpx c; c.c_impl = 0;
9406 return 0;
9408 _ACEOF
9409 rm -f conftest.$ac_objext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9411 (eval $ac_compile) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest.$ac_objext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9432 cat >>confdefs.h <<\_ACEOF
9433 #define HAVE_ST_C_IMPL 1
9434 _ACEOF
9436 echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6
9438 else
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6
9445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9447 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9448 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9449 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9450 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9451 powerpc-*-beos*) ;;
9452 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9453 COREFILE='' ;;
9454 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9455 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9456 s390*-*-*) COREFILE=trad-core.lo ;;
9457 sh*-*-netbsd* | sh*-*-openbsd*)
9458 COREFILE=netbsd-core.lo
9460 sparc-*-netbsd* | sparc*-*-openbsd*)
9461 COREFILE=netbsd-core.lo
9463 tahoe-*-*)
9464 COREFILE=trad-core.lo
9465 TRAD_HEADER='"hosts/tahoe.h"'
9467 vax-*-netbsd* | vax-*-openbsd*)
9468 COREFILE=netbsd-core.lo
9470 vax-*-ultrix2*)
9471 COREFILE=trad-core.lo
9472 TRAD_HEADER='"hosts/vaxult2.h"'
9474 vax-*-ultrix*)
9475 COREFILE=trad-core.lo
9476 TRAD_HEADER='"hosts/vaxult2.h"'
9478 vax-*-linux-*)
9479 COREFILE=trad-core.lo
9480 TRAD_HEADER='"hosts/vaxlinux.h"'
9482 vax-*-*)
9483 COREFILE=trad-core.lo
9484 TRAD_HEADER='"hosts/vaxbsd.h"'
9486 x86_64-*-netbsd* | x86_64-*-openbsd*)
9487 COREFILE=netbsd-core.lo
9489 esac
9491 case "$COREFILE" in
9492 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9493 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9494 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9495 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9496 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9497 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9498 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9499 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9500 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9501 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9502 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9503 esac
9505 # ELF corefile support has several flavors, but all of
9506 # them use something called <sys/procfs.h>
9508 for ac_header in sys/procfs.h
9510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9512 echo "$as_me:$LINENO: checking for $ac_header" >&5
9513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9519 else
9520 # Is the header compilable?
9521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h. */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 $ac_includes_default
9530 #include <$ac_header>
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag"
9542 || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_header_compiler=yes
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_header_compiler=no
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9563 echo "${ECHO_T}$ac_header_compiler" >&6
9565 # Is the header present?
9566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 #include <$ac_header>
9575 _ACEOF
9576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } >/dev/null; then
9584 if test -s conftest.err; then
9585 ac_cpp_err=$ac_c_preproc_warn_flag
9586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9587 else
9588 ac_cpp_err=
9590 else
9591 ac_cpp_err=yes
9593 if test -z "$ac_cpp_err"; then
9594 ac_header_preproc=yes
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_header_preproc=no
9601 rm -f conftest.err conftest.$ac_ext
9602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9603 echo "${ECHO_T}$ac_header_preproc" >&6
9605 # So? What about this header?
9606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9607 yes:no: )
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9612 ac_header_preproc=yes
9614 no:yes:* )
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9628 cat <<\_ASBOX
9629 ## ------------------------------------------ ##
9630 ## Report this to the AC_PACKAGE_NAME lists. ##
9631 ## ------------------------------------------ ##
9632 _ASBOX
9634 sed "s/^/$as_me: WARNING: /" >&2
9636 esac
9637 echo "$as_me:$LINENO: checking for $ac_header" >&5
9638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 eval "$as_ac_Header=\$ac_header_preproc"
9644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651 _ACEOF
9655 done
9657 if test "$ac_cv_header_sys_procfs_h" = yes; then
9658 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9659 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9660 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9670 #define _SYSCALL32
9671 #include <sys/procfs.h>
9673 main ()
9675 prstatus_t avar
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682 (eval $ac_compile) 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest.$ac_objext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 bfd_cv_have_sys_procfs_type_prstatus_t=no
9710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9715 cat >>confdefs.h <<\_ACEOF
9716 #define HAVE_PRSTATUS_T 1
9717 _ACEOF
9720 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9721 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
9723 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9724 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9725 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9735 #define _SYSCALL32
9736 #include <sys/procfs.h>
9738 main ()
9740 prstatus32_t avar
9742 return 0;
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 bfd_cv_have_sys_procfs_type_prstatus32_t=no
9775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9778 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_PRSTATUS32_T 1
9782 _ACEOF
9785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9786 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
9788 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9789 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9790 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9800 #define _SYSCALL32
9801 #include <sys/procfs.h>
9803 main ()
9805 prstatus_t avar; void* aref = (void*) &avar.pr_who
9807 return 0;
9809 _ACEOF
9810 rm -f conftest.$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9843 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
9845 cat >>confdefs.h <<\_ACEOF
9846 #define HAVE_PRSTATUS_T_PR_WHO 1
9847 _ACEOF
9850 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9851 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
9853 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9854 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9855 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9865 #define _SYSCALL32
9866 #include <sys/procfs.h>
9868 main ()
9870 prstatus32_t avar; void* aref = (void*) &avar.pr_who
9872 return 0;
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9908 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
9910 cat >>confdefs.h <<\_ACEOF
9911 #define HAVE_PRSTATUS32_T_PR_WHO 1
9912 _ACEOF
9915 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9916 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
9918 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9919 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9920 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 #define _SYSCALL32
9931 #include <sys/procfs.h>
9933 main ()
9935 pstatus_t avar
9937 return 0;
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 bfd_cv_have_sys_procfs_type_pstatus_t=no
9970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9973 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
9975 cat >>confdefs.h <<\_ACEOF
9976 #define HAVE_PSTATUS_T 1
9977 _ACEOF
9980 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9981 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
9983 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9984 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9985 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9995 #define _SYSCALL32
9996 #include <sys/procfs.h>
9998 main ()
10000 pxstatus_t avar
10002 return 0;
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag"
10015 || test ! -s conftest.err'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest.$ac_objext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10028 else
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10032 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10038 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_PXSTATUS_T 1
10042 _ACEOF
10045 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10046 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10048 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10049 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10050 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 #define _SYSCALL32
10061 #include <sys/procfs.h>
10063 main ()
10065 pstatus32_t avar
10067 return 0;
10069 _ACEOF
10070 rm -f conftest.$ac_objext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072 (eval $ac_compile) 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -z "$ac_c_werror_flag"
10080 || test ! -s conftest.err'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest.$ac_objext'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10092 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10103 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_PSTATUS32_T 1
10107 _ACEOF
10110 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10111 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10113 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10114 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10115 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10125 #define _SYSCALL32
10126 #include <sys/procfs.h>
10128 main ()
10130 prpsinfo_t avar
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10168 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10170 cat >>confdefs.h <<\_ACEOF
10171 #define HAVE_PRPSINFO_T 1
10172 _ACEOF
10175 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10176 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10178 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10179 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10180 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 #define _SYSCALL32
10191 #include <sys/procfs.h>
10193 main ()
10195 prpsinfo32_t avar
10197 return 0;
10199 _ACEOF
10200 rm -f conftest.$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10233 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define HAVE_PRPSINFO32_T 1
10237 _ACEOF
10240 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10241 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10243 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10244 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10245 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h. */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10255 #define _SYSCALL32
10256 #include <sys/procfs.h>
10258 main ()
10260 psinfo_t avar
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10288 else
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 bfd_cv_have_sys_procfs_type_psinfo_t=no
10295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10298 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_PSINFO_T 1
10302 _ACEOF
10305 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10306 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10308 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10309 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10310 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10320 #define _SYSCALL32
10321 #include <sys/procfs.h>
10323 main ()
10325 psinfo32_t avar
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10363 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_PSINFO32_T 1
10367 _ACEOF
10370 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10371 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10373 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10374 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10375 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10385 #define _SYSCALL32
10386 #include <sys/procfs.h>
10388 main ()
10390 lwpstatus_t avar
10392 return 0;
10394 _ACEOF
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10418 else
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_LWPSTATUS_T 1
10432 _ACEOF
10435 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10436 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10438 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10439 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10440 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 #define _SYSCALL32
10451 #include <sys/procfs.h>
10453 main ()
10455 lwpxstatus_t avar
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest.$ac_objext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10483 else
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10493 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_LWPXSTATUS_T 1
10497 _ACEOF
10500 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10501 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10503 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10504 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10505 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 #define _SYSCALL32
10516 #include <sys/procfs.h>
10518 main ()
10520 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10522 return 0;
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10558 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10562 _ACEOF
10565 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10566 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10568 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10569 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10570 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 #define _SYSCALL32
10581 #include <sys/procfs.h>
10583 main ()
10585 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10623 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_LWPSTATUS_T_PR_REG 1
10627 _ACEOF
10630 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10631 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10633 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10634 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10635 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10645 #define _SYSCALL32
10646 #include <sys/procfs.h>
10648 main ()
10650 win32_pstatus_t avar
10652 return 0;
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10688 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10690 cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_WIN32_PSTATUS_T 1
10692 _ACEOF
10695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10696 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10702 if test -n "$TRAD_HEADER"; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define TRAD_HEADER $TRAD_HEADER
10706 _ACEOF
10710 # Horrible hacks to build DLLs on Windows.
10711 WIN32LDFLAGS=
10712 WIN32LIBADD=
10713 case "${host}" in
10714 *-*-cygwin*)
10715 if test "$enable_shared" = "yes"; then
10716 WIN32LDFLAGS="-no-undefined"
10717 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10720 *-*-linux*)
10721 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10722 # libiberty.a.
10723 case "${host}" in
10724 mips*-*-linux*)
10725 # Linux/MIPS uses PIC by default.
10726 if test "$enable_shared" = "yes"; then
10727 WIN32LIBADD="-L../libiberty -liberty"
10731 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
10732 if test -n "$x"; then
10733 WIN32LIBADD="-L../libiberty/pic -liberty"
10736 esac
10738 esac
10742 # target stuff:
10744 # Canonicalize the secondary target names.
10745 if test -n "$enable_targets" ; then
10746 for targ in `echo $enable_targets | sed 's/,/ /g'`
10748 result=`$ac_config_sub $targ 2>/dev/null`
10749 if test -n "$result" ; then
10750 canon_targets="$canon_targets $result"
10751 else
10752 # Allow targets that config.sub doesn't recognize, like "all".
10753 canon_targets="$canon_targets $targ"
10755 done
10758 all_targets=false
10759 defvec=
10760 selvecs=
10761 assocvecs=
10762 selarchs=
10763 TDEFINES=
10764 for targ in $target $canon_targets
10766 if test "x$targ" = "xall"; then
10767 all_targets=true
10768 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
10769 else
10770 . $srcdir/config.bfd
10771 if test "x$targ" = "x$target"; then
10772 defvec=$targ_defvec
10774 selvecs="$selvecs $targ_defvec $targ_selvecs"
10775 selarchs="$selarchs $targ_archs"
10776 TDEFINES="$TDEFINES $targ_cflags"
10778 done
10781 # This processing still needs to be done if we're to decide properly whether
10782 # 64-bit support needs to be compiled in. Currently, it will be included if
10783 # the default or any other explicitly requested target requires it; it
10784 # will not be included on a 32-bit host if no 64-bit target is requested, and
10785 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
10786 # used.
10788 # uniq the default and selected vectors in all the configured targets.
10789 f=""
10790 for i in $selvecs ; do
10791 case " $f " in
10792 *" $i "*) ;;
10793 *) f="$f $i" ;;
10794 esac
10795 done
10796 selvecs="$f"
10799 # uniq the associated vectors in all the configured targets.
10800 f=""
10801 for i in $assocvecs ; do
10802 case " $f " in
10803 *" $i "*) ;;
10804 *) f="$f $i" ;;
10805 esac
10806 done
10807 assocvecs="$f"
10810 # uniq the architectures in all the configured targets.
10811 f=""
10812 for i in $selarchs ; do
10813 case " $f " in
10814 *" $i "*) ;;
10815 *) f="$f $i" ;;
10816 esac
10817 done
10818 selarchs="$f"
10820 # Target backend .o files.
10823 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
10825 for vec in $selvecs
10827 target_size=32
10828 case "$vec" in
10829 # This list is alphabetized to make it easy to compare
10830 # with the two vector lists in targets.c. For the same reason,
10831 # use one entry per line, even though this leads to long lines.
10832 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
10833 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
10834 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10835 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10836 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10837 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
10838 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10839 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10840 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10841 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10842 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10843 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10844 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10845 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10846 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10847 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10848 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10849 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10850 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10851 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10852 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10853 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10854 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
10855 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
10856 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
10857 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
10858 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
10859 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
10860 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10861 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10862 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10863 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10864 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10865 bfd_elf32_bigarm_symbian_vec)
10866 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10867 bfd_elf32_bigarm_vxworks_vec)
10868 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10869 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10870 bfd_elf32_bigmips_vxworks_vec)
10871 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10872 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
10873 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10874 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
10875 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10876 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
10877 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
10878 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
10879 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10880 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10881 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
10882 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10883 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10884 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10885 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
10886 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10887 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10888 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10889 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10890 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10891 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
10892 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
10893 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
10894 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
10895 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
10896 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10897 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10898 bfd_elf32_littlearm_symbian_vec)
10899 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10900 bfd_elf32_littlearm_vxworks_vec)
10901 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10902 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10903 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10904 bfd_elf32_littlemips_vxworks_vec)
10905 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10906 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
10907 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10908 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10909 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10910 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10911 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10912 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10913 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10914 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10915 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10916 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10917 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10918 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10919 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10920 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
10921 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
10922 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
10923 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10924 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10925 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10926 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10927 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
10928 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
10929 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10930 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10931 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10932 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10933 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10934 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
10935 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10936 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10937 # FIXME: We include cofflink.lo not because it's needed for
10938 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10939 # which needs it but does not list it. Should be fixed in right place.
10940 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10941 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10942 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10943 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10944 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10945 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10946 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10947 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10948 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10949 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10950 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10951 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10952 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10953 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10954 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10955 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10956 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10957 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
10958 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10959 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10960 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10961 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
10962 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
10963 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
10964 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
10965 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10966 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10967 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10968 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10969 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10970 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 ;;
10971 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10972 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10973 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10974 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10975 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10976 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10977 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 ;;
10978 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
10979 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10980 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10981 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
10982 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10983 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10984 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10985 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10986 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10987 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10988 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10989 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10990 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 ;;
10991 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 ;;
10992 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10993 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10994 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
10995 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10996 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10997 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10998 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10999 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11000 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11001 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11002 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11003 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11004 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11005 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11006 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11007 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11008 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11009 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11010 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11011 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11012 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11013 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11014 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11015 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
11016 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11017 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11018 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11019 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11020 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11021 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11022 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11023 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11024 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11025 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11026 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11027 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11028 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11029 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11030 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11031 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11032 ieee_vec) tb="$tb ieee.lo" ;;
11033 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11034 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11035 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11036 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11037 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11038 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11039 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11040 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11041 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11042 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11043 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
11044 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11045 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11046 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11047 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11048 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11049 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11050 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11051 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11052 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11053 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11054 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11055 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11056 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11057 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11058 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11059 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11060 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11061 pef_vec) tb="$tb pef.lo" ;;
11062 pef_xlib_vec) tb="$tb pef.lo" ;;
11063 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11064 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11065 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11066 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11067 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11068 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11069 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11070 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11071 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11072 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11073 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11074 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11075 som_vec) tb="$tb som.lo" ;;
11076 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11077 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11078 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11079 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11080 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11081 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11082 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11083 sym_vec) tb="$tb xsym.lo" ;;
11084 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11085 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11086 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11087 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11088 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11089 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11090 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11091 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11092 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11093 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11094 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11095 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11096 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11097 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11098 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11099 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11100 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11101 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11102 versados_vec) tb="$tb versados.lo" ;;
11103 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11104 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11105 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11106 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11107 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
11108 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
11110 # These appear out of order in targets.c
11111 srec_vec) tb="$tb srec.lo" ;;
11112 symbolsrec_vec) tb="$tb srec.lo" ;;
11113 tekhex_vec) tb="$tb tekhex.lo" ;;
11114 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11115 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11117 "") ;;
11118 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11119 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11120 { (exit 1); exit 1; }; } ;;
11121 esac
11123 if test ${target_size} = 64; then
11124 target64=true
11126 if test x"${vec}" = x"${defvec}"; then
11127 bfd_default_target_size=${target_size}
11129 done
11131 # Target architecture .o files.
11132 # A couple of CPUs use shorter file names to avoid problems on DOS
11133 # filesystems.
11134 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11136 # Weed out duplicate .o files.
11137 f=""
11138 for i in $tb ; do
11139 case " $f " in
11140 *" $i "*) ;;
11141 *) f="$f $i" ;;
11142 esac
11143 done
11144 tb="$f"
11146 f=""
11147 for i in $ta ; do
11148 case " $f " in
11149 *" $i "*) ;;
11150 *) f="$f $i" ;;
11151 esac
11152 done
11153 ta="$f"
11155 bfd_backends="$tb"
11156 bfd_machines="$ta"
11158 if test x${all_targets} = xtrue ; then
11159 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11160 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11161 selvecs=
11162 havevecs=
11163 selarchs=
11164 test -n "$assocvecs" &&
11165 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11166 else # all_targets is true
11167 # Only set these if they will be nonempty, for the clever echo.
11168 havevecs=
11169 assocvecs=
11170 test -n "$selvecs" &&
11171 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11172 test -n "$selvecs" &&
11173 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11174 test -n "$selarchs" &&
11175 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11176 fi # all_targets is true
11178 case ${host64}-${target64}-${want64} in
11179 *true*)
11180 wordsize=64
11181 bfd64_libs='$(BFD64_LIBS)'
11182 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11183 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11184 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11185 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11187 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11189 if test -n "$GCC" ; then
11190 bad_64bit_gcc=no;
11191 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11192 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11193 # Add more tests for gcc versions with non-working 64-bit support here.
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 :__GNUC__:__GNUC_MINOR__:__i386__:
11201 _ACEOF
11202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11203 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11204 bad_64bit_gcc=yes;
11205 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11206 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11207 else
11208 echo "$as_me:$LINENO: result: no" >&5
11209 echo "${ECHO_T}no" >&6
11211 rm -f conftest*
11213 if test $bad_64bit_gcc = yes ; then
11214 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11215 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11216 { (exit 1); exit 1; }; }
11220 false-false-false)
11221 wordsize=32
11222 all_backends='$(BFD32_BACKENDS)'
11224 esac
11233 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11234 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11235 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11236 # Hopefully a reasonable assumption since fseeko et.al. should be
11237 # upward compatible.
11243 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
11245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 echo "$as_me:$LINENO: checking for $ac_func" >&5
11247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11248 if eval "test \"\${$as_ac_var+set}\" = set"; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h. */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11259 #define $ac_func innocuous_$ac_func
11261 /* System header to define __stub macros and hopefully few prototypes,
11262 which can conflict with char $ac_func (); below.
11263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11264 <limits.h> exists even on freestanding compilers. */
11266 #ifdef __STDC__
11267 # include <limits.h>
11268 #else
11269 # include <assert.h>
11270 #endif
11272 #undef $ac_func
11274 /* Override any gcc2 internal prototype to avoid an error. */
11275 #ifdef __cplusplus
11276 extern "C"
11278 #endif
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281 char $ac_func ();
11282 /* The GNU C library defines this for functions which it implements
11283 to always fail with ENOSYS. Some functions are actually named
11284 something starting with __ and the normal name is an alias. */
11285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11286 choke me
11287 #else
11288 char (*f) () = $ac_func;
11289 #endif
11290 #ifdef __cplusplus
11292 #endif
11295 main ()
11297 return f != $ac_func;
11299 return 0;
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 eval "$as_ac_var=yes"
11325 else
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 eval "$as_ac_var=no"
11331 rm -f conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11336 if test `eval echo '${'$as_ac_var'}'` = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11339 _ACEOF
11342 done
11344 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11345 echo "$as_me:$LINENO: checking for off_t" >&5
11346 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11347 if test "${ac_cv_type_off_t+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 $ac_includes_default
11358 main ()
11360 if ((off_t *) 0)
11361 return 0;
11362 if (sizeof (off_t))
11363 return 0;
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_cv_type_off_t=yes
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_cv_type_off_t=no
11397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11400 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11402 echo "$as_me:$LINENO: checking size of off_t" >&5
11403 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11404 if test "${ac_cv_sizeof_off_t+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407 if test "$ac_cv_type_off_t" = yes; then
11408 # The cast to unsigned long works around a bug in the HP C Compiler
11409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11411 # This bug is HP SR number 8606223364.
11412 if test "$cross_compiling" = yes; then
11413 # Depending upon the size, compute the lo and hi bounds.
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 $ac_includes_default
11422 main ()
11424 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11425 test_array [0] = 0
11428 return 0;
11430 _ACEOF
11431 rm -f conftest.$ac_objext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433 (eval $ac_compile) 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag"
11441 || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_lo=0 ac_mid=0
11454 while :; do
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 $ac_includes_default
11463 main ()
11465 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11466 test_array [0] = 0
11469 return 0;
11471 _ACEOF
11472 rm -f conftest.$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474 (eval $ac_compile) 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_hi=$ac_mid; break
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_lo=`expr $ac_mid + 1`
11500 if test $ac_lo -le $ac_mid; then
11501 ac_lo= ac_hi=
11502 break
11504 ac_mid=`expr 2 '*' $ac_mid + 1`
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 done
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11520 main ()
11522 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11523 test_array [0] = 0
11526 return 0;
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11531 (eval $ac_compile) 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -z "$ac_c_werror_flag"
11539 || test ! -s conftest.err'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_hi=-1 ac_mid=-1
11552 while :; do
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11561 main ()
11563 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11564 test_array [0] = 0
11567 return 0;
11569 _ACEOF
11570 rm -f conftest.$ac_objext
11571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11572 (eval $ac_compile) 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -z "$ac_c_werror_flag"
11580 || test ! -s conftest.err'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest.$ac_objext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_lo=$ac_mid; break
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_hi=`expr '(' $ac_mid ')' - 1`
11598 if test $ac_mid -le $ac_hi; then
11599 ac_lo= ac_hi=
11600 break
11602 ac_mid=`expr 2 '*' $ac_mid`
11604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11605 done
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_lo= ac_hi=
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615 # Binary search between lo and hi bounds.
11616 while test "x$ac_lo" != "x$ac_hi"; do
11617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11626 main ()
11628 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11629 test_array [0] = 0
11632 return 0;
11634 _ACEOF
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_hi=$ac_mid
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_lo=`expr '(' $ac_mid ')' + 1`
11664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11665 done
11666 case $ac_lo in
11667 ?*) ac_cv_sizeof_off_t=$ac_lo;;
11668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11669 See \`config.log' for more details." >&5
11670 echo "$as_me: error: cannot compute sizeof (off_t), 77
11671 See \`config.log' for more details." >&2;}
11672 { (exit 1); exit 1; }; } ;;
11673 esac
11674 else
11675 if test "$cross_compiling" = yes; then
11676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11677 See \`config.log' for more details." >&5
11678 echo "$as_me: error: cannot run test program while cross compiling
11679 See \`config.log' for more details." >&2;}
11680 { (exit 1); exit 1; }; }
11681 else
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 $ac_includes_default
11689 long longval () { return (long) (sizeof (off_t)); }
11690 unsigned long ulongval () { return (long) (sizeof (off_t)); }
11691 #include <stdio.h>
11692 #include <stdlib.h>
11694 main ()
11697 FILE *f = fopen ("conftest.val", "w");
11698 if (! f)
11699 exit (1);
11700 if (((long) (sizeof (off_t))) < 0)
11702 long i = longval ();
11703 if (i != ((long) (sizeof (off_t))))
11704 exit (1);
11705 fprintf (f, "%ld\n", i);
11707 else
11709 unsigned long i = ulongval ();
11710 if (i != ((long) (sizeof (off_t))))
11711 exit (1);
11712 fprintf (f, "%lu\n", i);
11714 exit (ferror (f) || fclose (f) != 0);
11717 return 0;
11719 _ACEOF
11720 rm -f conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_sizeof_off_t=`cat conftest.val`
11732 else
11733 echo "$as_me: program exited with status $ac_status" >&5
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ( exit $ac_status )
11738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11739 See \`config.log' for more details." >&5
11740 echo "$as_me: error: cannot compute sizeof (off_t), 77
11741 See \`config.log' for more details." >&2;}
11742 { (exit 1); exit 1; }; }
11744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11747 rm -f conftest.val
11748 else
11749 ac_cv_sizeof_off_t=0
11752 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11753 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11754 cat >>confdefs.h <<_ACEOF
11755 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11756 _ACEOF
11760 echo "$as_me:$LINENO: checking file_ptr type" >&5
11761 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11762 bfd_file_ptr="long"
11763 bfd_ufile_ptr="unsigned long"
11764 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11765 -o x"${ac_cv_sizeof_off_t}" = x8; then
11766 bfd_file_ptr=BFD_HOST_64_BIT
11767 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11769 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11770 echo "${ECHO_T}$bfd_file_ptr" >&6
11775 tdefaults=""
11776 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11777 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11778 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11779 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11780 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11785 for ac_header in stdlib.h unistd.h
11787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11789 echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11796 else
11797 # Is the header compilable?
11798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 #include <$ac_header>
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_header_compiler=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_header_compiler=no
11838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840 echo "${ECHO_T}$ac_header_compiler" >&6
11842 # Is the header present?
11843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <$ac_header>
11852 _ACEOF
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev/null; then
11861 if test -s conftest.err; then
11862 ac_cpp_err=$ac_c_preproc_warn_flag
11863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11864 else
11865 ac_cpp_err=
11867 else
11868 ac_cpp_err=yes
11870 if test -z "$ac_cpp_err"; then
11871 ac_header_preproc=yes
11872 else
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_header_preproc=no
11878 rm -f conftest.err conftest.$ac_ext
11879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11880 echo "${ECHO_T}$ac_header_preproc" >&6
11882 # So? What about this header?
11883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 yes:no: )
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11889 ac_header_preproc=yes
11891 no:yes:* )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11905 cat <<\_ASBOX
11906 ## ------------------------------------------ ##
11907 ## Report this to the AC_PACKAGE_NAME lists. ##
11908 ## ------------------------------------------ ##
11909 _ASBOX
11911 sed "s/^/$as_me: WARNING: /" >&2
11913 esac
11914 echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 eval "$as_ac_Header=\$ac_header_preproc"
11921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11928 _ACEOF
11932 done
11935 for ac_func in getpagesize
11937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938 echo "$as_me:$LINENO: checking for $ac_func" >&5
11939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11940 if eval "test \"\${$as_ac_var+set}\" = set"; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11951 #define $ac_func innocuous_$ac_func
11953 /* System header to define __stub macros and hopefully few prototypes,
11954 which can conflict with char $ac_func (); below.
11955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956 <limits.h> exists even on freestanding compilers. */
11958 #ifdef __STDC__
11959 # include <limits.h>
11960 #else
11961 # include <assert.h>
11962 #endif
11964 #undef $ac_func
11966 /* Override any gcc2 internal prototype to avoid an error. */
11967 #ifdef __cplusplus
11968 extern "C"
11970 #endif
11971 /* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11973 char $ac_func ();
11974 /* The GNU C library defines this for functions which it implements
11975 to always fail with ENOSYS. Some functions are actually named
11976 something starting with __ and the normal name is an alias. */
11977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11978 choke me
11979 #else
11980 char (*f) () = $ac_func;
11981 #endif
11982 #ifdef __cplusplus
11984 #endif
11987 main ()
11989 return f != $ac_func;
11991 return 0;
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996 (eval $ac_link) 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -z "$ac_c_werror_flag"
12004 || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 eval "$as_ac_var=yes"
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 eval "$as_ac_var=no"
12023 rm -f conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12028 if test `eval echo '${'$as_ac_var'}'` = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 _ACEOF
12034 done
12036 echo "$as_me:$LINENO: checking for working mmap" >&5
12037 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12038 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 if test "$cross_compiling" = yes; then
12042 ac_cv_func_mmap_fixed_mapped=no
12043 else
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12051 /* malloc might have been renamed as rpl_malloc. */
12052 #undef malloc
12054 /* Thanks to Mike Haertel and Jim Avera for this test.
12055 Here is a matrix of mmap possibilities:
12056 mmap private not fixed
12057 mmap private fixed at somewhere currently unmapped
12058 mmap private fixed at somewhere already mapped
12059 mmap shared not fixed
12060 mmap shared fixed at somewhere currently unmapped
12061 mmap shared fixed at somewhere already mapped
12062 For private mappings, we should verify that changes cannot be read()
12063 back from the file, nor mmap's back from the file at a different
12064 address. (There have been systems where private was not correctly
12065 implemented like the infamous i386 svr4.0, and systems where the
12066 VM page cache was not coherent with the file system buffer cache
12067 like early versions of FreeBSD and possibly contemporary NetBSD.)
12068 For shared mappings, we should conversely verify that changes get
12069 propagated back to all the places they're supposed to be.
12071 Grep wants private fixed already mapped.
12072 The main things grep needs to know about mmap are:
12073 * does it exist and is it safe to write into the mmap'd area
12074 * how to use it (BSD variants) */
12076 #include <fcntl.h>
12077 #include <sys/mman.h>
12079 #if !STDC_HEADERS && !HAVE_STDLIB_H
12080 char *malloc ();
12081 #endif
12083 /* This mess was copied from the GNU getpagesize.h. */
12084 #if !HAVE_GETPAGESIZE
12085 /* Assume that all systems that can run configure have sys/param.h. */
12086 # if !HAVE_SYS_PARAM_H
12087 # define HAVE_SYS_PARAM_H 1
12088 # endif
12090 # ifdef _SC_PAGESIZE
12091 # define getpagesize() sysconf(_SC_PAGESIZE)
12092 # else /* no _SC_PAGESIZE */
12093 # if HAVE_SYS_PARAM_H
12094 # include <sys/param.h>
12095 # ifdef EXEC_PAGESIZE
12096 # define getpagesize() EXEC_PAGESIZE
12097 # else /* no EXEC_PAGESIZE */
12098 # ifdef NBPG
12099 # define getpagesize() NBPG * CLSIZE
12100 # ifndef CLSIZE
12101 # define CLSIZE 1
12102 # endif /* no CLSIZE */
12103 # else /* no NBPG */
12104 # ifdef NBPC
12105 # define getpagesize() NBPC
12106 # else /* no NBPC */
12107 # ifdef PAGESIZE
12108 # define getpagesize() PAGESIZE
12109 # endif /* PAGESIZE */
12110 # endif /* no NBPC */
12111 # endif /* no NBPG */
12112 # endif /* no EXEC_PAGESIZE */
12113 # else /* no HAVE_SYS_PARAM_H */
12114 # define getpagesize() 8192 /* punt totally */
12115 # endif /* no HAVE_SYS_PARAM_H */
12116 # endif /* no _SC_PAGESIZE */
12118 #endif /* no HAVE_GETPAGESIZE */
12121 main ()
12123 char *data, *data2, *data3;
12124 int i, pagesize;
12125 int fd;
12127 pagesize = getpagesize ();
12129 /* First, make a file with some known garbage in it. */
12130 data = (char *) malloc (pagesize);
12131 if (!data)
12132 exit (1);
12133 for (i = 0; i < pagesize; ++i)
12134 *(data + i) = rand ();
12135 umask (0);
12136 fd = creat ("conftest.mmap", 0600);
12137 if (fd < 0)
12138 exit (1);
12139 if (write (fd, data, pagesize) != pagesize)
12140 exit (1);
12141 close (fd);
12143 /* Next, try to mmap the file at a fixed address which already has
12144 something else allocated at it. If we can, also make sure that
12145 we see the same garbage. */
12146 fd = open ("conftest.mmap", O_RDWR);
12147 if (fd < 0)
12148 exit (1);
12149 data2 = (char *) malloc (2 * pagesize);
12150 if (!data2)
12151 exit (1);
12152 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12153 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12154 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12155 exit (1);
12156 for (i = 0; i < pagesize; ++i)
12157 if (*(data + i) != *(data2 + i))
12158 exit (1);
12160 /* Finally, make sure that changes to the mapped area do not
12161 percolate back to the file as seen by read(). (This is a bug on
12162 some variants of i386 svr4.0.) */
12163 for (i = 0; i < pagesize; ++i)
12164 *(data2 + i) = *(data2 + i) + 1;
12165 data3 = (char *) malloc (pagesize);
12166 if (!data3)
12167 exit (1);
12168 if (read (fd, data3, pagesize) != pagesize)
12169 exit (1);
12170 for (i = 0; i < pagesize; ++i)
12171 if (*(data + i) != *(data3 + i))
12172 exit (1);
12173 close (fd);
12174 exit (0);
12176 _ACEOF
12177 rm -f conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_func_mmap_fixed_mapped=yes
12189 else
12190 echo "$as_me: program exited with status $ac_status" >&5
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ( exit $ac_status )
12195 ac_cv_func_mmap_fixed_mapped=no
12197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12200 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12201 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12202 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12204 cat >>confdefs.h <<\_ACEOF
12205 #define HAVE_MMAP 1
12206 _ACEOF
12209 rm -f conftest.mmap
12213 for ac_func in madvise mprotect
12215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12216 echo "$as_me:$LINENO: checking for $ac_func" >&5
12217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12218 if eval "test \"\${$as_ac_var+set}\" = set"; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h. */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12229 #define $ac_func innocuous_$ac_func
12231 /* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char $ac_func (); below.
12233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234 <limits.h> exists even on freestanding compilers. */
12236 #ifdef __STDC__
12237 # include <limits.h>
12238 #else
12239 # include <assert.h>
12240 #endif
12242 #undef $ac_func
12244 /* Override any gcc2 internal prototype to avoid an error. */
12245 #ifdef __cplusplus
12246 extern "C"
12248 #endif
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char $ac_func ();
12252 /* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12256 choke me
12257 #else
12258 char (*f) () = $ac_func;
12259 #endif
12260 #ifdef __cplusplus
12262 #endif
12265 main ()
12267 return f != $ac_func;
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 eval "$as_ac_var=yes"
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 eval "$as_ac_var=no"
12301 rm -f conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12306 if test `eval echo '${'$as_ac_var'}'` = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12309 _ACEOF
12312 done
12314 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12315 true+yes )
12316 cat >>confdefs.h <<\_ACEOF
12317 #define USE_MMAP 1
12318 _ACEOF
12320 esac
12322 rm -f doc/config.status
12323 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12326 ac_config_commands="$ac_config_commands default"
12333 cat >confcache <<\_ACEOF
12334 # This file is a shell script that caches the results of configure
12335 # tests run on this system so they can be shared between configure
12336 # scripts and configure runs, see configure's option --config-cache.
12337 # It is not useful on other systems. If it contains results you don't
12338 # want to keep, you may remove or edit it.
12340 # config.status only pays attention to the cache file if you give it
12341 # the --recheck option to rerun configure.
12343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12345 # following values.
12347 _ACEOF
12349 # The following way of writing the cache mishandles newlines in values,
12350 # but we know of no workaround that is simple, portable, and efficient.
12351 # So, don't put newlines in cache variables' values.
12352 # Ultrix sh set writes to stderr and can't be redirected directly,
12353 # and sets the high bit in the cache file unless we assign to the vars.
12355 (set) 2>&1 |
12356 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12357 *ac_space=\ *)
12358 # `set' does not quote correctly, so add quotes (double-quote
12359 # substitution turns \\\\ into \\, and sed turns \\ into \).
12360 sed -n \
12361 "s/'/'\\\\''/g;
12362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12365 # `set' quotes correctly as required by POSIX, so do not add quotes.
12366 sed -n \
12367 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12369 esac;
12371 sed '
12372 t clear
12373 : clear
12374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12375 t end
12376 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12377 : end' >>confcache
12378 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12379 if test -w $cache_file; then
12380 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12381 cat confcache >$cache_file
12382 else
12383 echo "not updating unwritable cache $cache_file"
12386 rm -f confcache
12388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12389 # Let make expand exec_prefix.
12390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12394 # trailing colons and then remove the whole line if VPATH becomes empty
12395 # (actually we leave an empty line to preserve line numbers).
12396 if test "x$srcdir" = x.; then
12397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12398 s/:*\$(srcdir):*/:/;
12399 s/:*\${srcdir}:*/:/;
12400 s/:*@srcdir@:*/:/;
12401 s/^\([^=]*=[ ]*\):*/\1/;
12402 s/:*$//;
12403 s/^[^=]*=[ ]*$//;
12407 DEFS=-DHAVE_CONFIG_H
12409 ac_libobjs=
12410 ac_ltlibobjs=
12411 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12412 # 1. Remove the extension, and $U if already installed.
12413 ac_i=`echo "$ac_i" |
12414 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12415 # 2. Add them.
12416 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12417 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12418 done
12419 LIBOBJS=$ac_libobjs
12421 LTLIBOBJS=$ac_ltlibobjs
12424 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12425 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12426 Usually this means the macro was only invoked conditionally." >&5
12427 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12428 Usually this means the macro was only invoked conditionally." >&2;}
12429 { (exit 1); exit 1; }; }
12431 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12432 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12433 Usually this means the macro was only invoked conditionally." >&5
12434 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12435 Usually this means the macro was only invoked conditionally." >&2;}
12436 { (exit 1); exit 1; }; }
12438 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12439 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12440 Usually this means the macro was only invoked conditionally." >&5
12441 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12442 Usually this means the macro was only invoked conditionally." >&2;}
12443 { (exit 1); exit 1; }; }
12445 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12446 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12447 Usually this means the macro was only invoked conditionally." >&5
12448 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12449 Usually this means the macro was only invoked conditionally." >&2;}
12450 { (exit 1); exit 1; }; }
12452 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12453 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12454 Usually this means the macro was only invoked conditionally." >&5
12455 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12456 Usually this means the macro was only invoked conditionally." >&2;}
12457 { (exit 1); exit 1; }; }
12460 : ${CONFIG_STATUS=./config.status}
12461 ac_clean_files_save=$ac_clean_files
12462 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12463 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12464 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12465 cat >$CONFIG_STATUS <<_ACEOF
12466 #! $SHELL
12467 # Generated by $as_me.
12468 # Run this file to recreate the current configuration.
12469 # Compiler output produced by configure, useful for debugging
12470 # configure, is in config.log if it exists.
12472 debug=false
12473 ac_cs_recheck=false
12474 ac_cs_silent=false
12475 SHELL=\${CONFIG_SHELL-$SHELL}
12476 _ACEOF
12478 cat >>$CONFIG_STATUS <<\_ACEOF
12479 ## --------------------- ##
12480 ## M4sh Initialization. ##
12481 ## --------------------- ##
12483 # Be Bourne compatible
12484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12485 emulate sh
12486 NULLCMD=:
12487 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12488 # is contrary to our usage. Disable this feature.
12489 alias -g '${1+"$@"}'='"$@"'
12490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12491 set -o posix
12493 DUALCASE=1; export DUALCASE # for MKS sh
12495 # Support unset when possible.
12496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12497 as_unset=unset
12498 else
12499 as_unset=false
12503 # Work around bugs in pre-3.0 UWIN ksh.
12504 $as_unset ENV MAIL MAILPATH
12505 PS1='$ '
12506 PS2='> '
12507 PS4='+ '
12509 # NLS nuisances.
12510 for as_var in \
12511 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12512 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12513 LC_TELEPHONE LC_TIME
12515 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12516 eval $as_var=C; export $as_var
12517 else
12518 $as_unset $as_var
12520 done
12522 # Required to use basename.
12523 if expr a : '\(a\)' >/dev/null 2>&1; then
12524 as_expr=expr
12525 else
12526 as_expr=false
12529 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12530 as_basename=basename
12531 else
12532 as_basename=false
12536 # Name of the executable.
12537 as_me=`$as_basename "$0" ||
12538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12539 X"$0" : 'X\(//\)$' \| \
12540 X"$0" : 'X\(/\)$' \| \
12541 . : '\(.\)' 2>/dev/null ||
12542 echo X/"$0" |
12543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12544 /^X\/\(\/\/\)$/{ s//\1/; q; }
12545 /^X\/\(\/\).*/{ s//\1/; q; }
12546 s/.*/./; q'`
12549 # PATH needs CR, and LINENO needs CR and PATH.
12550 # Avoid depending upon Character Ranges.
12551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12554 as_cr_digits='0123456789'
12555 as_cr_alnum=$as_cr_Letters$as_cr_digits
12557 # The user is always right.
12558 if test "${PATH_SEPARATOR+set}" != set; then
12559 echo "#! /bin/sh" >conf$$.sh
12560 echo "exit 0" >>conf$$.sh
12561 chmod +x conf$$.sh
12562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12563 PATH_SEPARATOR=';'
12564 else
12565 PATH_SEPARATOR=:
12567 rm -f conf$$.sh
12571 as_lineno_1=$LINENO
12572 as_lineno_2=$LINENO
12573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12574 test "x$as_lineno_1" != "x$as_lineno_2" &&
12575 test "x$as_lineno_3" = "x$as_lineno_2" || {
12576 # Find who we are. Look in the path if we contain no path at all
12577 # relative or not.
12578 case $0 in
12579 *[\\/]* ) as_myself=$0 ;;
12580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12586 done
12589 esac
12590 # We did not find ourselves, most probably we were run as `sh COMMAND'
12591 # in which case we are not to be found in the path.
12592 if test "x$as_myself" = x; then
12593 as_myself=$0
12595 if test ! -f "$as_myself"; then
12596 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12597 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12598 { (exit 1); exit 1; }; }
12600 case $CONFIG_SHELL in
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for as_base in sh bash ksh sh5; do
12608 case $as_dir in
12610 if ("$as_dir/$as_base" -c '
12611 as_lineno_1=$LINENO
12612 as_lineno_2=$LINENO
12613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12614 test "x$as_lineno_1" != "x$as_lineno_2" &&
12615 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12616 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12617 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12618 CONFIG_SHELL=$as_dir/$as_base
12619 export CONFIG_SHELL
12620 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12621 fi;;
12622 esac
12623 done
12624 done
12626 esac
12628 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12629 # uniformly replaced by the line number. The first 'sed' inserts a
12630 # line-number line before each line; the second 'sed' does the real
12631 # work. The second script uses 'N' to pair each line-number line
12632 # with the numbered line, and appends trailing '-' during
12633 # substitution so that $LINENO is not a special case at line end.
12634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12635 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12636 sed '=' <$as_myself |
12637 sed '
12639 s,$,-,
12640 : loop
12641 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12642 t loop
12643 s,-$,,
12644 s,^['$as_cr_digits']*\n,,
12645 ' >$as_me.lineno &&
12646 chmod +x $as_me.lineno ||
12647 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12648 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12649 { (exit 1); exit 1; }; }
12651 # Don't try to exec as it changes $[0], causing all sort of problems
12652 # (the dirname of $[0] is not the place where we might find the
12653 # original and so on. Autoconf is especially sensible to this).
12654 . ./$as_me.lineno
12655 # Exit status is that of the last command.
12656 exit
12660 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12661 *c*,-n*) ECHO_N= ECHO_C='
12662 ' ECHO_T=' ' ;;
12663 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12664 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12665 esac
12667 if expr a : '\(a\)' >/dev/null 2>&1; then
12668 as_expr=expr
12669 else
12670 as_expr=false
12673 rm -f conf$$ conf$$.exe conf$$.file
12674 echo >conf$$.file
12675 if ln -s conf$$.file conf$$ 2>/dev/null; then
12676 # We could just check for DJGPP; but this test a) works b) is more generic
12677 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12678 if test -f conf$$.exe; then
12679 # Don't use ln at all; we don't have any links
12680 as_ln_s='cp -p'
12681 else
12682 as_ln_s='ln -s'
12684 elif ln conf$$.file conf$$ 2>/dev/null; then
12685 as_ln_s=ln
12686 else
12687 as_ln_s='cp -p'
12689 rm -f conf$$ conf$$.exe conf$$.file
12691 if mkdir -p . 2>/dev/null; then
12692 as_mkdir_p=:
12693 else
12694 test -d ./-p && rmdir ./-p
12695 as_mkdir_p=false
12698 as_executable_p="test -f"
12700 # Sed expression to map a string onto a valid CPP name.
12701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12703 # Sed expression to map a string onto a valid variable name.
12704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12707 # IFS
12708 # We need space, tab and new line, in precisely that order.
12709 as_nl='
12711 IFS=" $as_nl"
12713 # CDPATH.
12714 $as_unset CDPATH
12716 exec 6>&1
12718 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12719 # report actual input values of CONFIG_FILES etc. instead of their
12720 # values after options handling. Logging --version etc. is OK.
12721 exec 5>>config.log
12723 echo
12724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12725 ## Running $as_me. ##
12726 _ASBOX
12727 } >&5
12728 cat >&5 <<_CSEOF
12730 This file was extended by $as_me, which was
12731 generated by GNU Autoconf 2.59. Invocation command line was
12733 CONFIG_FILES = $CONFIG_FILES
12734 CONFIG_HEADERS = $CONFIG_HEADERS
12735 CONFIG_LINKS = $CONFIG_LINKS
12736 CONFIG_COMMANDS = $CONFIG_COMMANDS
12737 $ $0 $@
12739 _CSEOF
12740 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12741 echo >&5
12742 _ACEOF
12744 # Files that config.status was made for.
12745 if test -n "$ac_config_files"; then
12746 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12749 if test -n "$ac_config_headers"; then
12750 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12753 if test -n "$ac_config_links"; then
12754 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12757 if test -n "$ac_config_commands"; then
12758 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12761 cat >>$CONFIG_STATUS <<\_ACEOF
12763 ac_cs_usage="\
12764 \`$as_me' instantiates files from templates according to the
12765 current configuration.
12767 Usage: $0 [OPTIONS] [FILE]...
12769 -h, --help print this help, then exit
12770 -V, --version print version number, then exit
12771 -q, --quiet do not print progress messages
12772 -d, --debug don't remove temporary files
12773 --recheck update $as_me by reconfiguring in the same conditions
12774 --file=FILE[:TEMPLATE]
12775 instantiate the configuration file FILE
12776 --header=FILE[:TEMPLATE]
12777 instantiate the configuration header FILE
12779 Configuration files:
12780 $config_files
12782 Configuration headers:
12783 $config_headers
12785 Configuration commands:
12786 $config_commands
12788 Report bugs to <bug-autoconf@gnu.org>."
12789 _ACEOF
12791 cat >>$CONFIG_STATUS <<_ACEOF
12792 ac_cs_version="\\
12793 config.status
12794 configured by $0, generated by GNU Autoconf 2.59,
12795 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12797 Copyright (C) 2003 Free Software Foundation, Inc.
12798 This config.status script is free software; the Free Software Foundation
12799 gives unlimited permission to copy, distribute and modify it."
12800 srcdir=$srcdir
12801 INSTALL="$INSTALL"
12802 _ACEOF
12804 cat >>$CONFIG_STATUS <<\_ACEOF
12805 # If no file are specified by the user, then we need to provide default
12806 # value. By we need to know if files were specified by the user.
12807 ac_need_defaults=:
12808 while test $# != 0
12810 case $1 in
12811 --*=*)
12812 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12813 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12814 ac_shift=:
12817 ac_option=$1
12818 ac_optarg=$2
12819 ac_shift=shift
12821 *) # This is not an option, so the user has probably given explicit
12822 # arguments.
12823 ac_option=$1
12824 ac_need_defaults=false;;
12825 esac
12827 case $ac_option in
12828 # Handling of the options.
12829 _ACEOF
12830 cat >>$CONFIG_STATUS <<\_ACEOF
12831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12832 ac_cs_recheck=: ;;
12833 --version | --vers* | -V )
12834 echo "$ac_cs_version"; exit 0 ;;
12835 --he | --h)
12836 # Conflict between --help and --header
12837 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12838 Try \`$0 --help' for more information." >&5
12839 echo "$as_me: error: ambiguous option: $1
12840 Try \`$0 --help' for more information." >&2;}
12841 { (exit 1); exit 1; }; };;
12842 --help | --hel | -h )
12843 echo "$ac_cs_usage"; exit 0 ;;
12844 --debug | --d* | -d )
12845 debug=: ;;
12846 --file | --fil | --fi | --f )
12847 $ac_shift
12848 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12849 ac_need_defaults=false;;
12850 --header | --heade | --head | --hea )
12851 $ac_shift
12852 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12853 ac_need_defaults=false;;
12854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12856 ac_cs_silent=: ;;
12858 # This is an error.
12859 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12860 Try \`$0 --help' for more information." >&5
12861 echo "$as_me: error: unrecognized option: $1
12862 Try \`$0 --help' for more information." >&2;}
12863 { (exit 1); exit 1; }; } ;;
12865 *) ac_config_targets="$ac_config_targets $1" ;;
12867 esac
12868 shift
12869 done
12871 ac_configure_extra_args=
12873 if $ac_cs_silent; then
12874 exec 6>/dev/null
12875 ac_configure_extra_args="$ac_configure_extra_args --silent"
12878 _ACEOF
12879 cat >>$CONFIG_STATUS <<_ACEOF
12880 if \$ac_cs_recheck; then
12881 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12882 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12885 _ACEOF
12887 cat >>$CONFIG_STATUS <<_ACEOF
12889 # INIT-COMMANDS section.
12892 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12893 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12894 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12895 # from automake.
12896 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12897 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12898 LINGUAS="${LINGUAS-%UNSET%}"
12902 _ACEOF
12906 cat >>$CONFIG_STATUS <<\_ACEOF
12907 for ac_config_target in $ac_config_targets
12909 case "$ac_config_target" in
12910 # Handling of arguments.
12911 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12912 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12913 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12914 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12915 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12916 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12917 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12921 { (exit 1); exit 1; }; };;
12922 esac
12923 done
12925 # If the user did not use the arguments to specify the items to instantiate,
12926 # then the envvar interface is used. Set only those that are not.
12927 # We use the long form for the default assignment because of an extremely
12928 # bizarre bug on SunOS 4.1.3.
12929 if $ac_need_defaults; then
12930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12935 # Have a temporary directory for convenience. Make it in the build tree
12936 # simply because there is no reason to put it here, and in addition,
12937 # creating and moving files from /tmp can sometimes cause problems.
12938 # Create a temporary directory, and hook for its removal unless debugging.
12939 $debug ||
12941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12942 trap '{ (exit 1); exit 1; }' 1 2 13 15
12945 # Create a (secure) tmp directory for tmp files.
12948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12949 test -n "$tmp" && test -d "$tmp"
12950 } ||
12952 tmp=./confstat$$-$RANDOM
12953 (umask 077 && mkdir $tmp)
12954 } ||
12956 echo "$me: cannot create a temporary directory in ." >&2
12957 { (exit 1); exit 1; }
12960 _ACEOF
12962 cat >>$CONFIG_STATUS <<_ACEOF
12965 # CONFIG_FILES section.
12968 # No need to generate the scripts if there are no CONFIG_FILES.
12969 # This happens for instance when ./config.status config.h
12970 if test -n "\$CONFIG_FILES"; then
12971 # Protect against being on the right side of a sed subst in config.status.
12972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12974 s,@SHELL@,$SHELL,;t t
12975 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12981 s,@exec_prefix@,$exec_prefix,;t t
12982 s,@prefix@,$prefix,;t t
12983 s,@program_transform_name@,$program_transform_name,;t t
12984 s,@bindir@,$bindir,;t t
12985 s,@sbindir@,$sbindir,;t t
12986 s,@libexecdir@,$libexecdir,;t t
12987 s,@datadir@,$datadir,;t t
12988 s,@sysconfdir@,$sysconfdir,;t t
12989 s,@sharedstatedir@,$sharedstatedir,;t t
12990 s,@localstatedir@,$localstatedir,;t t
12991 s,@libdir@,$libdir,;t t
12992 s,@includedir@,$includedir,;t t
12993 s,@oldincludedir@,$oldincludedir,;t t
12994 s,@infodir@,$infodir,;t t
12995 s,@mandir@,$mandir,;t t
12996 s,@build_alias@,$build_alias,;t t
12997 s,@host_alias@,$host_alias,;t t
12998 s,@target_alias@,$target_alias,;t t
12999 s,@DEFS@,$DEFS,;t t
13000 s,@ECHO_C@,$ECHO_C,;t t
13001 s,@ECHO_N@,$ECHO_N,;t t
13002 s,@ECHO_T@,$ECHO_T,;t t
13003 s,@LIBS@,$LIBS,;t t
13004 s,@build@,$build,;t t
13005 s,@build_cpu@,$build_cpu,;t t
13006 s,@build_vendor@,$build_vendor,;t t
13007 s,@build_os@,$build_os,;t t
13008 s,@host@,$host,;t t
13009 s,@host_cpu@,$host_cpu,;t t
13010 s,@host_vendor@,$host_vendor,;t t
13011 s,@host_os@,$host_os,;t t
13012 s,@target@,$target,;t t
13013 s,@target_cpu@,$target_cpu,;t t
13014 s,@target_vendor@,$target_vendor,;t t
13015 s,@target_os@,$target_os,;t t
13016 s,@CC@,$CC,;t t
13017 s,@CFLAGS@,$CFLAGS,;t t
13018 s,@LDFLAGS@,$LDFLAGS,;t t
13019 s,@CPPFLAGS@,$CPPFLAGS,;t t
13020 s,@ac_ct_CC@,$ac_ct_CC,;t t
13021 s,@EXEEXT@,$EXEEXT,;t t
13022 s,@OBJEXT@,$OBJEXT,;t t
13023 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13024 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13025 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13026 s,@CYGPATH_W@,$CYGPATH_W,;t t
13027 s,@PACKAGE@,$PACKAGE,;t t
13028 s,@VERSION@,$VERSION,;t t
13029 s,@ACLOCAL@,$ACLOCAL,;t t
13030 s,@AUTOCONF@,$AUTOCONF,;t t
13031 s,@AUTOMAKE@,$AUTOMAKE,;t t
13032 s,@AUTOHEADER@,$AUTOHEADER,;t t
13033 s,@MAKEINFO@,$MAKEINFO,;t t
13034 s,@install_sh@,$install_sh,;t t
13035 s,@STRIP@,$STRIP,;t t
13036 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13037 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13038 s,@mkdir_p@,$mkdir_p,;t t
13039 s,@AWK@,$AWK,;t t
13040 s,@SET_MAKE@,$SET_MAKE,;t t
13041 s,@am__leading_dot@,$am__leading_dot,;t t
13042 s,@AMTAR@,$AMTAR,;t t
13043 s,@am__tar@,$am__tar,;t t
13044 s,@am__untar@,$am__untar,;t t
13045 s,@DEPDIR@,$DEPDIR,;t t
13046 s,@am__include@,$am__include,;t t
13047 s,@am__quote@,$am__quote,;t t
13048 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13049 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13050 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13051 s,@CCDEPMODE@,$CCDEPMODE,;t t
13052 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13053 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13054 s,@AR@,$AR,;t t
13055 s,@ac_ct_AR@,$ac_ct_AR,;t t
13056 s,@RANLIB@,$RANLIB,;t t
13057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13058 s,@LN_S@,$LN_S,;t t
13059 s,@LIBTOOL@,$LIBTOOL,;t t
13060 s,@PKGVERSION@,$PKGVERSION,;t t
13061 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
13062 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
13063 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13064 s,@NO_WERROR@,$NO_WERROR,;t t
13065 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13066 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13067 s,@MAINT@,$MAINT,;t t
13068 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13069 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13070 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13071 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13072 s,@host_noncanonical@,$host_noncanonical,;t t
13073 s,@target_noncanonical@,$target_noncanonical,;t t
13074 s,@bfdlibdir@,$bfdlibdir,;t t
13075 s,@bfdincludedir@,$bfdincludedir,;t t
13076 s,@USE_NLS@,$USE_NLS,;t t
13077 s,@LIBINTL@,$LIBINTL,;t t
13078 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13079 s,@INCINTL@,$INCINTL,;t t
13080 s,@XGETTEXT@,$XGETTEXT,;t t
13081 s,@GMSGFMT@,$GMSGFMT,;t t
13082 s,@POSUB@,$POSUB,;t t
13083 s,@CATALOGS@,$CATALOGS,;t t
13084 s,@DATADIRNAME@,$DATADIRNAME,;t t
13085 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13086 s,@GENCAT@,$GENCAT,;t t
13087 s,@CATOBJEXT@,$CATOBJEXT,;t t
13088 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13089 s,@MSGFMT@,$MSGFMT,;t t
13090 s,@MSGMERGE@,$MSGMERGE,;t t
13091 s,@HDEFINES@,$HDEFINES,;t t
13092 s,@CPP@,$CPP,;t t
13093 s,@EGREP@,$EGREP,;t t
13094 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13095 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13096 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13097 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13098 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13099 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13100 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13101 s,@COREFILE@,$COREFILE,;t t
13102 s,@COREFLAG@,$COREFLAG,;t t
13103 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13104 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13105 s,@TDEFINES@,$TDEFINES,;t t
13106 s,@wordsize@,$wordsize,;t t
13107 s,@bfd64_libs@,$bfd64_libs,;t t
13108 s,@all_backends@,$all_backends,;t t
13109 s,@bfd_backends@,$bfd_backends,;t t
13110 s,@bfd_machines@,$bfd_machines,;t t
13111 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13112 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13113 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13114 s,@tdefaults@,$tdefaults,;t t
13115 s,@datarootdir@,$datarootdir,;t t
13116 s,@docdir@,$docdir,;t t
13117 s,@htmldir@,$htmldir,;t t
13118 s,@LIBOBJS@,$LIBOBJS,;t t
13119 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13120 CEOF
13122 _ACEOF
13124 cat >>$CONFIG_STATUS <<\_ACEOF
13125 # Split the substitutions into bite-sized pieces for seds with
13126 # small command number limits, like on Digital OSF/1 and HP-UX.
13127 ac_max_sed_lines=48
13128 ac_sed_frag=1 # Number of current file.
13129 ac_beg=1 # First line for current file.
13130 ac_end=$ac_max_sed_lines # Line after last line for current file.
13131 ac_more_lines=:
13132 ac_sed_cmds=
13133 while $ac_more_lines; do
13134 if test $ac_beg -gt 1; then
13135 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13136 else
13137 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13139 if test ! -s $tmp/subs.frag; then
13140 ac_more_lines=false
13141 else
13142 # The purpose of the label and of the branching condition is to
13143 # speed up the sed processing (if there are no `@' at all, there
13144 # is no need to browse any of the substitutions).
13145 # These are the two extra sed commands mentioned above.
13146 (echo ':t
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13148 if test -z "$ac_sed_cmds"; then
13149 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13150 else
13151 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13153 ac_sed_frag=`expr $ac_sed_frag + 1`
13154 ac_beg=$ac_end
13155 ac_end=`expr $ac_end + $ac_max_sed_lines`
13157 done
13158 if test -z "$ac_sed_cmds"; then
13159 ac_sed_cmds=cat
13161 fi # test -n "$CONFIG_FILES"
13163 _ACEOF
13164 cat >>$CONFIG_STATUS <<\_ACEOF
13165 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13167 case $ac_file in
13168 - | *:- | *:-:* ) # input from stdin
13169 cat >$tmp/stdin
13170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13174 * ) ac_file_in=$ac_file.in ;;
13175 esac
13177 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180 X"$ac_file" : 'X\(//\)[^/]' \| \
13181 X"$ac_file" : 'X\(//\)$' \| \
13182 X"$ac_file" : 'X\(/\)' \| \
13183 . : '\(.\)' 2>/dev/null ||
13184 echo X"$ac_file" |
13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13187 /^X\(\/\/\)$/{ s//\1/; q; }
13188 /^X\(\/\).*/{ s//\1/; q; }
13189 s/.*/./; q'`
13190 { if $as_mkdir_p; then
13191 mkdir -p "$ac_dir"
13192 else
13193 as_dir="$ac_dir"
13194 as_dirs=
13195 while test ! -d "$as_dir"; do
13196 as_dirs="$as_dir $as_dirs"
13197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$as_dir" : 'X\(//\)[^/]' \| \
13200 X"$as_dir" : 'X\(//\)$' \| \
13201 X"$as_dir" : 'X\(/\)' \| \
13202 . : '\(.\)' 2>/dev/null ||
13203 echo X"$as_dir" |
13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13206 /^X\(\/\/\)$/{ s//\1/; q; }
13207 /^X\(\/\).*/{ s//\1/; q; }
13208 s/.*/./; q'`
13209 done
13210 test ! -n "$as_dirs" || mkdir $as_dirs
13211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13213 { (exit 1); exit 1; }; }; }
13215 ac_builddir=.
13217 if test "$ac_dir" != .; then
13218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13219 # A "../" for each directory in $ac_dir_suffix.
13220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13221 else
13222 ac_dir_suffix= ac_top_builddir=
13225 case $srcdir in
13226 .) # No --srcdir option. We are building in place.
13227 ac_srcdir=.
13228 if test -z "$ac_top_builddir"; then
13229 ac_top_srcdir=.
13230 else
13231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13232 fi ;;
13233 [\\/]* | ?:[\\/]* ) # Absolute path.
13234 ac_srcdir=$srcdir$ac_dir_suffix;
13235 ac_top_srcdir=$srcdir ;;
13236 *) # Relative path.
13237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13239 esac
13241 # Do not use `cd foo && pwd` to compute absolute paths, because
13242 # the directories may not exist.
13243 case `pwd` in
13244 .) ac_abs_builddir="$ac_dir";;
13246 case "$ac_dir" in
13247 .) ac_abs_builddir=`pwd`;;
13248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13250 esac;;
13251 esac
13252 case $ac_abs_builddir in
13253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13255 case ${ac_top_builddir}. in
13256 .) ac_abs_top_builddir=$ac_abs_builddir;;
13257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13259 esac;;
13260 esac
13261 case $ac_abs_builddir in
13262 .) ac_abs_srcdir=$ac_srcdir;;
13264 case $ac_srcdir in
13265 .) ac_abs_srcdir=$ac_abs_builddir;;
13266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13268 esac;;
13269 esac
13270 case $ac_abs_builddir in
13271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13273 case $ac_top_srcdir in
13274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13277 esac;;
13278 esac
13281 case $INSTALL in
13282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13283 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13284 esac
13286 if test x"$ac_file" != x-; then
13287 { echo "$as_me:$LINENO: creating $ac_file" >&5
13288 echo "$as_me: creating $ac_file" >&6;}
13289 rm -f "$ac_file"
13291 # Let's still pretend it is `configure' which instantiates (i.e., don't
13292 # use $as_me), people would be surprised to read:
13293 # /* config.h. Generated by config.status. */
13294 if test x"$ac_file" = x-; then
13295 configure_input=
13296 else
13297 configure_input="$ac_file. "
13299 configure_input=$configure_input"Generated from `echo $ac_file_in |
13300 sed 's,.*/,,'` by configure."
13302 # First look for the input files in the build tree, otherwise in the
13303 # src tree.
13304 ac_file_inputs=`IFS=:
13305 for f in $ac_file_in; do
13306 case $f in
13307 -) echo $tmp/stdin ;;
13308 [\\/$]*)
13309 # Absolute (can't be DOS-style, as IFS=:)
13310 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13311 echo "$as_me: error: cannot find input file: $f" >&2;}
13312 { (exit 1); exit 1; }; }
13313 echo "$f";;
13314 *) # Relative
13315 if test -f "$f"; then
13316 # Build tree
13317 echo "$f"
13318 elif test -f "$srcdir/$f"; then
13319 # Source tree
13320 echo "$srcdir/$f"
13321 else
13322 # /dev/null tree
13323 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13324 echo "$as_me: error: cannot find input file: $f" >&2;}
13325 { (exit 1); exit 1; }; }
13326 fi;;
13327 esac
13328 done` || { (exit 1); exit 1; }
13329 _ACEOF
13330 cat >>$CONFIG_STATUS <<_ACEOF
13331 sed "$ac_vpsub
13332 $extrasub
13333 _ACEOF
13334 cat >>$CONFIG_STATUS <<\_ACEOF
13336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13337 s,@configure_input@,$configure_input,;t t
13338 s,@srcdir@,$ac_srcdir,;t t
13339 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13340 s,@top_srcdir@,$ac_top_srcdir,;t t
13341 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13342 s,@builddir@,$ac_builddir,;t t
13343 s,@abs_builddir@,$ac_abs_builddir,;t t
13344 s,@top_builddir@,$ac_top_builddir,;t t
13345 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13346 s,@INSTALL@,$ac_INSTALL,;t t
13347 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13348 rm -f $tmp/stdin
13349 if test x"$ac_file" != x-; then
13350 mv $tmp/out $ac_file
13351 else
13352 cat $tmp/out
13353 rm -f $tmp/out
13356 done
13357 _ACEOF
13358 cat >>$CONFIG_STATUS <<\_ACEOF
13361 # CONFIG_HEADER section.
13364 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13365 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13367 # ac_d sets the value in "#define NAME VALUE" lines.
13368 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13369 ac_dB='[ ].*$,\1#\2'
13370 ac_dC=' '
13371 ac_dD=',;t'
13372 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13373 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13374 ac_uB='$,\1#\2define\3'
13375 ac_uC=' '
13376 ac_uD=',;t'
13378 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13379 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13380 case $ac_file in
13381 - | *:- | *:-:* ) # input from stdin
13382 cat >$tmp/stdin
13383 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13385 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13387 * ) ac_file_in=$ac_file.in ;;
13388 esac
13390 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13391 echo "$as_me: creating $ac_file" >&6;}
13393 # First look for the input files in the build tree, otherwise in the
13394 # src tree.
13395 ac_file_inputs=`IFS=:
13396 for f in $ac_file_in; do
13397 case $f in
13398 -) echo $tmp/stdin ;;
13399 [\\/$]*)
13400 # Absolute (can't be DOS-style, as IFS=:)
13401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13402 echo "$as_me: error: cannot find input file: $f" >&2;}
13403 { (exit 1); exit 1; }; }
13404 # Do quote $f, to prevent DOS paths from being IFS'd.
13405 echo "$f";;
13406 *) # Relative
13407 if test -f "$f"; then
13408 # Build tree
13409 echo "$f"
13410 elif test -f "$srcdir/$f"; then
13411 # Source tree
13412 echo "$srcdir/$f"
13413 else
13414 # /dev/null tree
13415 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13416 echo "$as_me: error: cannot find input file: $f" >&2;}
13417 { (exit 1); exit 1; }; }
13418 fi;;
13419 esac
13420 done` || { (exit 1); exit 1; }
13421 # Remove the trailing spaces.
13422 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13424 _ACEOF
13426 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13427 # `conftest.undefs', that substitutes the proper values into
13428 # config.h.in to produce config.h. The first handles `#define'
13429 # templates, and the second `#undef' templates.
13430 # And first: Protect against being on the right side of a sed subst in
13431 # config.status. Protect against being in an unquoted here document
13432 # in config.status.
13433 rm -f conftest.defines conftest.undefs
13434 # Using a here document instead of a string reduces the quoting nightmare.
13435 # Putting comments in sed scripts is not portable.
13437 # `end' is used to avoid that the second main sed command (meant for
13438 # 0-ary CPP macros) applies to n-ary macro definitions.
13439 # See the Autoconf documentation for `clear'.
13440 cat >confdef2sed.sed <<\_ACEOF
13441 s/[\\&,]/\\&/g
13442 s,[\\$`],\\&,g
13443 t clear
13444 : clear
13445 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13446 t end
13447 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13448 : end
13449 _ACEOF
13450 # If some macros were called several times there might be several times
13451 # the same #defines, which is useless. Nevertheless, we may not want to
13452 # sort them, since we want the *last* AC-DEFINE to be honored.
13453 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13454 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13455 rm -f confdef2sed.sed
13457 # This sed command replaces #undef with comments. This is necessary, for
13458 # example, in the case of _POSIX_SOURCE, which is predefined and required
13459 # on some systems where configure will not decide to define it.
13460 cat >>conftest.undefs <<\_ACEOF
13461 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13462 _ACEOF
13464 # Break up conftest.defines because some shells have a limit on the size
13465 # of here documents, and old seds have small limits too (100 cmds).
13466 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13467 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13468 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13469 echo ' :' >>$CONFIG_STATUS
13470 rm -f conftest.tail
13471 while grep . conftest.defines >/dev/null
13473 # Write a limited-size here document to $tmp/defines.sed.
13474 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13475 # Speed up: don't consider the non `#define' lines.
13476 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13477 # Work around the forget-to-reset-the-flag bug.
13478 echo 't clr' >>$CONFIG_STATUS
13479 echo ': clr' >>$CONFIG_STATUS
13480 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13481 echo 'CEOF
13482 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13483 rm -f $tmp/in
13484 mv $tmp/out $tmp/in
13485 ' >>$CONFIG_STATUS
13486 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13487 rm -f conftest.defines
13488 mv conftest.tail conftest.defines
13489 done
13490 rm -f conftest.defines
13491 echo ' fi # grep' >>$CONFIG_STATUS
13492 echo >>$CONFIG_STATUS
13494 # Break up conftest.undefs because some shells have a limit on the size
13495 # of here documents, and old seds have small limits too (100 cmds).
13496 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13497 rm -f conftest.tail
13498 while grep . conftest.undefs >/dev/null
13500 # Write a limited-size here document to $tmp/undefs.sed.
13501 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13502 # Speed up: don't consider the non `#undef'
13503 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13504 # Work around the forget-to-reset-the-flag bug.
13505 echo 't clr' >>$CONFIG_STATUS
13506 echo ': clr' >>$CONFIG_STATUS
13507 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13508 echo 'CEOF
13509 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13510 rm -f $tmp/in
13511 mv $tmp/out $tmp/in
13512 ' >>$CONFIG_STATUS
13513 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13514 rm -f conftest.undefs
13515 mv conftest.tail conftest.undefs
13516 done
13517 rm -f conftest.undefs
13519 cat >>$CONFIG_STATUS <<\_ACEOF
13520 # Let's still pretend it is `configure' which instantiates (i.e., don't
13521 # use $as_me), people would be surprised to read:
13522 # /* config.h. Generated by config.status. */
13523 if test x"$ac_file" = x-; then
13524 echo "/* Generated by configure. */" >$tmp/config.h
13525 else
13526 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13528 cat $tmp/in >>$tmp/config.h
13529 rm -f $tmp/in
13530 if test x"$ac_file" != x-; then
13531 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13532 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13533 echo "$as_me: $ac_file is unchanged" >&6;}
13534 else
13535 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13537 X"$ac_file" : 'X\(//\)[^/]' \| \
13538 X"$ac_file" : 'X\(//\)$' \| \
13539 X"$ac_file" : 'X\(/\)' \| \
13540 . : '\(.\)' 2>/dev/null ||
13541 echo X"$ac_file" |
13542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13544 /^X\(\/\/\)$/{ s//\1/; q; }
13545 /^X\(\/\).*/{ s//\1/; q; }
13546 s/.*/./; q'`
13547 { if $as_mkdir_p; then
13548 mkdir -p "$ac_dir"
13549 else
13550 as_dir="$ac_dir"
13551 as_dirs=
13552 while test ! -d "$as_dir"; do
13553 as_dirs="$as_dir $as_dirs"
13554 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13556 X"$as_dir" : 'X\(//\)[^/]' \| \
13557 X"$as_dir" : 'X\(//\)$' \| \
13558 X"$as_dir" : 'X\(/\)' \| \
13559 . : '\(.\)' 2>/dev/null ||
13560 echo X"$as_dir" |
13561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13563 /^X\(\/\/\)$/{ s//\1/; q; }
13564 /^X\(\/\).*/{ s//\1/; q; }
13565 s/.*/./; q'`
13566 done
13567 test ! -n "$as_dirs" || mkdir $as_dirs
13568 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13569 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13570 { (exit 1); exit 1; }; }; }
13572 rm -f $ac_file
13573 mv $tmp/config.h $ac_file
13575 else
13576 cat $tmp/config.h
13577 rm -f $tmp/config.h
13579 # Compute $ac_file's index in $config_headers.
13580 _am_stamp_count=1
13581 for _am_header in $config_headers :; do
13582 case $_am_header in
13583 $ac_file | $ac_file:* )
13584 break ;;
13586 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13587 esac
13588 done
13589 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13590 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13591 X$ac_file : 'X\(//\)[^/]' \| \
13592 X$ac_file : 'X\(//\)$' \| \
13593 X$ac_file : 'X\(/\)' \| \
13594 . : '\(.\)' 2>/dev/null ||
13595 echo X$ac_file |
13596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13598 /^X\(\/\/\)$/{ s//\1/; q; }
13599 /^X\(\/\).*/{ s//\1/; q; }
13600 s/.*/./; q'`/stamp-h$_am_stamp_count
13601 done
13602 _ACEOF
13603 cat >>$CONFIG_STATUS <<\_ACEOF
13606 # CONFIG_COMMANDS section.
13608 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13609 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13610 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13611 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13612 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13613 X"$ac_dest" : 'X\(//\)[^/]' \| \
13614 X"$ac_dest" : 'X\(//\)$' \| \
13615 X"$ac_dest" : 'X\(/\)' \| \
13616 . : '\(.\)' 2>/dev/null ||
13617 echo X"$ac_dest" |
13618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13620 /^X\(\/\/\)$/{ s//\1/; q; }
13621 /^X\(\/\).*/{ s//\1/; q; }
13622 s/.*/./; q'`
13623 { if $as_mkdir_p; then
13624 mkdir -p "$ac_dir"
13625 else
13626 as_dir="$ac_dir"
13627 as_dirs=
13628 while test ! -d "$as_dir"; do
13629 as_dirs="$as_dir $as_dirs"
13630 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13632 X"$as_dir" : 'X\(//\)[^/]' \| \
13633 X"$as_dir" : 'X\(//\)$' \| \
13634 X"$as_dir" : 'X\(/\)' \| \
13635 . : '\(.\)' 2>/dev/null ||
13636 echo X"$as_dir" |
13637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13639 /^X\(\/\/\)$/{ s//\1/; q; }
13640 /^X\(\/\).*/{ s//\1/; q; }
13641 s/.*/./; q'`
13642 done
13643 test ! -n "$as_dirs" || mkdir $as_dirs
13644 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13645 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13646 { (exit 1); exit 1; }; }; }
13648 ac_builddir=.
13650 if test "$ac_dir" != .; then
13651 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13652 # A "../" for each directory in $ac_dir_suffix.
13653 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13654 else
13655 ac_dir_suffix= ac_top_builddir=
13658 case $srcdir in
13659 .) # No --srcdir option. We are building in place.
13660 ac_srcdir=.
13661 if test -z "$ac_top_builddir"; then
13662 ac_top_srcdir=.
13663 else
13664 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13665 fi ;;
13666 [\\/]* | ?:[\\/]* ) # Absolute path.
13667 ac_srcdir=$srcdir$ac_dir_suffix;
13668 ac_top_srcdir=$srcdir ;;
13669 *) # Relative path.
13670 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13671 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13672 esac
13674 # Do not use `cd foo && pwd` to compute absolute paths, because
13675 # the directories may not exist.
13676 case `pwd` in
13677 .) ac_abs_builddir="$ac_dir";;
13679 case "$ac_dir" in
13680 .) ac_abs_builddir=`pwd`;;
13681 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13682 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13683 esac;;
13684 esac
13685 case $ac_abs_builddir in
13686 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13688 case ${ac_top_builddir}. in
13689 .) ac_abs_top_builddir=$ac_abs_builddir;;
13690 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13691 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13692 esac;;
13693 esac
13694 case $ac_abs_builddir in
13695 .) ac_abs_srcdir=$ac_srcdir;;
13697 case $ac_srcdir in
13698 .) ac_abs_srcdir=$ac_abs_builddir;;
13699 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13700 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13701 esac;;
13702 esac
13703 case $ac_abs_builddir in
13704 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13706 case $ac_top_srcdir in
13707 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13708 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13709 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13710 esac;;
13711 esac
13714 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13715 echo "$as_me: executing $ac_dest commands" >&6;}
13716 case $ac_dest in
13717 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13718 # Strip MF so we end up with the name of the file.
13719 mf=`echo "$mf" | sed -e 's/:.*$//'`
13720 # Check whether this is an Automake generated Makefile or not.
13721 # We used to match only the files named `Makefile.in', but
13722 # some people rename them; so instead we look at the file content.
13723 # Grep'ing the first line is not enough: some people post-process
13724 # each Makefile.in and add a new line on top of each file to say so.
13725 # So let's grep whole file.
13726 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13727 dirpart=`(dirname "$mf") 2>/dev/null ||
13728 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729 X"$mf" : 'X\(//\)[^/]' \| \
13730 X"$mf" : 'X\(//\)$' \| \
13731 X"$mf" : 'X\(/\)' \| \
13732 . : '\(.\)' 2>/dev/null ||
13733 echo X"$mf" |
13734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13736 /^X\(\/\/\)$/{ s//\1/; q; }
13737 /^X\(\/\).*/{ s//\1/; q; }
13738 s/.*/./; q'`
13739 else
13740 continue
13742 # Extract the definition of DEPDIR, am__include, and am__quote
13743 # from the Makefile without running `make'.
13744 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13745 test -z "$DEPDIR" && continue
13746 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13747 test -z "am__include" && continue
13748 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13749 # When using ansi2knr, U may be empty or an underscore; expand it
13750 U=`sed -n 's/^U = //p' < "$mf"`
13751 # Find all dependency output files, they are included files with
13752 # $(DEPDIR) in their names. We invoke sed twice because it is the
13753 # simplest approach to changing $(DEPDIR) to its actual value in the
13754 # expansion.
13755 for file in `sed -n "
13756 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13757 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13758 # Make sure the directory exists.
13759 test -f "$dirpart/$file" && continue
13760 fdir=`(dirname "$file") 2>/dev/null ||
13761 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13762 X"$file" : 'X\(//\)[^/]' \| \
13763 X"$file" : 'X\(//\)$' \| \
13764 X"$file" : 'X\(/\)' \| \
13765 . : '\(.\)' 2>/dev/null ||
13766 echo X"$file" |
13767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13769 /^X\(\/\/\)$/{ s//\1/; q; }
13770 /^X\(\/\).*/{ s//\1/; q; }
13771 s/.*/./; q'`
13772 { if $as_mkdir_p; then
13773 mkdir -p $dirpart/$fdir
13774 else
13775 as_dir=$dirpart/$fdir
13776 as_dirs=
13777 while test ! -d "$as_dir"; do
13778 as_dirs="$as_dir $as_dirs"
13779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13781 X"$as_dir" : 'X\(//\)[^/]' \| \
13782 X"$as_dir" : 'X\(//\)$' \| \
13783 X"$as_dir" : 'X\(/\)' \| \
13784 . : '\(.\)' 2>/dev/null ||
13785 echo X"$as_dir" |
13786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13788 /^X\(\/\/\)$/{ s//\1/; q; }
13789 /^X\(\/\).*/{ s//\1/; q; }
13790 s/.*/./; q'`
13791 done
13792 test ! -n "$as_dirs" || mkdir $as_dirs
13793 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13794 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13795 { (exit 1); exit 1; }; }; }
13797 # echo "creating $dirpart/$file"
13798 echo '# dummy' > "$dirpart/$file"
13799 done
13800 done
13802 default-1 )
13803 for ac_file in $CONFIG_FILES; do
13804 # Support "outfile[:infile[:infile...]]"
13805 case "$ac_file" in
13806 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13807 esac
13808 # PO directories have a Makefile.in generated from Makefile.in.in.
13809 case "$ac_file" in */Makefile.in)
13810 # Adjust a relative srcdir.
13811 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13812 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13813 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13814 # In autoconf-2.13 it is called $ac_given_srcdir.
13815 # In autoconf-2.50 it is called $srcdir.
13816 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13817 case "$ac_given_srcdir" in
13818 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13819 /*) top_srcdir="$ac_given_srcdir" ;;
13820 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13821 esac
13822 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13823 rm -f "$ac_dir/POTFILES"
13824 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13825 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13826 POMAKEFILEDEPS="POTFILES.in"
13827 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13828 # on $ac_dir but don't depend on user-specified configuration
13829 # parameters.
13830 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13831 # The LINGUAS file contains the set of available languages.
13832 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13833 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13835 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13836 # Hide the ALL_LINGUAS assigment from automake.
13837 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13838 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13839 else
13840 # The set of available languages was given in configure.in.
13841 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13843 case "$ac_given_srcdir" in
13844 .) srcdirpre= ;;
13845 *) srcdirpre='$(srcdir)/' ;;
13846 esac
13847 POFILES=
13848 GMOFILES=
13849 UPDATEPOFILES=
13850 DUMMYPOFILES=
13851 for lang in $ALL_LINGUAS; do
13852 POFILES="$POFILES $srcdirpre$lang.po"
13853 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13854 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13855 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13856 done
13857 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13858 # environment variable.
13859 INST_LINGUAS=
13860 if test -n "$ALL_LINGUAS"; then
13861 for presentlang in $ALL_LINGUAS; do
13862 useit=no
13863 if test "%UNSET%" != "$LINGUAS"; then
13864 desiredlanguages="$LINGUAS"
13865 else
13866 desiredlanguages="$ALL_LINGUAS"
13868 for desiredlang in $desiredlanguages; do
13869 # Use the presentlang catalog if desiredlang is
13870 # a. equal to presentlang, or
13871 # b. a variant of presentlang (because in this case,
13872 # presentlang can be used as a fallback for messages
13873 # which are not translated in the desiredlang catalog).
13874 case "$desiredlang" in
13875 "$presentlang"*) useit=yes;;
13876 esac
13877 done
13878 if test $useit = yes; then
13879 INST_LINGUAS="$INST_LINGUAS $presentlang"
13881 done
13883 CATALOGS=
13884 if test -n "$INST_LINGUAS"; then
13885 for lang in $INST_LINGUAS; do
13886 CATALOGS="$CATALOGS $lang.gmo"
13887 done
13889 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13890 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"
13891 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13892 if test -f "$f"; then
13893 case "$f" in
13894 *.orig | *.bak | *~) ;;
13895 *) cat "$f" >> "$ac_dir/Makefile" ;;
13896 esac
13898 done
13901 esac
13902 done ;;
13903 default )
13904 case "$srcdir" in
13905 .) srcdirpre= ;;
13906 *) srcdirpre='$(srcdir)/' ;;
13907 esac
13908 POFILES=
13909 GMOFILES=
13910 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13911 if test $lang != dummy; then
13912 POFILES="$POFILES $srcdirpre$lang.po"
13913 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13915 done
13916 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13917 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13918 -e "s,@POFILES@,$POFILES," \
13919 -e "s,@GMOFILES@,$GMOFILES," \
13920 po/Makefile.in > po/Makefile ;;
13921 esac
13922 done
13923 _ACEOF
13925 cat >>$CONFIG_STATUS <<\_ACEOF
13927 { (exit 0); exit 0; }
13928 _ACEOF
13929 chmod +x $CONFIG_STATUS
13930 ac_clean_files=$ac_clean_files_save
13933 # configure is writing to config.log, and then calls config.status.
13934 # config.status does its own redirection, appending to config.log.
13935 # Unfortunately, on DOS this fails, as config.log is still kept open
13936 # by configure, so config.status won't be able to write to it; its
13937 # output is simply discarded. So we exec the FD to /dev/null,
13938 # effectively closing config.log, so it can be properly (re)opened and
13939 # appended to by config.status. When coming back to configure, we
13940 # need to make the FD available again.
13941 if test "$no_create" != yes; then
13942 ac_cs_success=:
13943 ac_config_status_args=
13944 test "$silent" = yes &&
13945 ac_config_status_args="$ac_config_status_args --quiet"
13946 exec 5>/dev/null
13947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13948 exec 5>>config.log
13949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13950 # would make configure fail if this is the last instruction.
13951 $ac_cs_success || { (exit 1); exit 1; }