* ld-elf/header.d: Allow arbitrary lines between "Program Header"
[binutils.git] / bfd / configure
blob90975c373bbbebc315a5eb83d4c145b814e76a32
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 _ACEOF
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904 ac_dir_suffix= ac_top_builddir=
907 case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960 esac
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 cd $ac_popdir
978 done
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983 cat <<\_ACEOF
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 ac_aux_dir=
1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1341 done
1342 if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388 ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking target system type" >&5
1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407 if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_target_alias=$target_alias
1411 test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420 echo "${ECHO_T}$ac_cv_target" >&6
1421 target=$ac_cv_target
1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 # The aliases save the names the user supplied, while $host etc.
1428 # will get canonicalized.
1429 test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433 ac_ext=c
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1460 done
1461 done
1465 CC=$ac_cv_prog_CC
1466 if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1475 if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478 set dummy gcc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1498 done
1499 done
1503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504 if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506 echo "${ECHO_T}$ac_ct_CC" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1512 CC=$ac_ct_CC
1513 else
1514 CC="$ac_cv_prog_CC"
1517 if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520 set dummy ${ac_tool_prefix}cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1540 done
1541 done
1545 CC=$ac_cv_prog_CC
1546 if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1549 else
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1555 if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1578 done
1579 done
1583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584 if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586 echo "${ECHO_T}$ac_ct_CC" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1592 CC=$ac_ct_CC
1593 else
1594 CC="$ac_cv_prog_CC"
1598 if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600 set dummy cc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609 ac_prog_rejected=no
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1625 done
1626 done
1628 if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1677 done
1678 done
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$CC" && break
1692 done
1694 if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1719 done
1720 done
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1728 else
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 test -n "$ac_ct_CC" && break
1734 done
1736 CC=$ac_ct_CC
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&5
1744 echo "$as_me: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h. */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1776 main ()
1780 return 0;
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 conftest.$ac_ext )
1811 # This is the source file.
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903 done
1904 else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1919 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921 if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 cat >conftest.$ac_ext <<_ACEOF
1925 /* confdefs.h. */
1926 _ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1932 main ()
1936 return 0;
1938 _ACEOF
1939 rm -f conftest.o conftest.obj
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951 done
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966 echo "${ECHO_T}$ac_cv_objext" >&6
1967 OBJEXT=$ac_cv_objext
1968 ac_objext=$OBJEXT
1969 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1982 main ()
1984 #ifndef __GNUC__
1985 choke me
1986 #endif
1989 return 0;
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015 else
2016 echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_compiler_gnu=no
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2030 CFLAGS="-g"
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h. */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2044 main ()
2048 return 0;
2050 _ACEOF
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2078 ac_cv_prog_cc_g=no
2080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2092 else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2099 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 ac_cv_prog_cc_stdc=no
2105 ac_save_CC=$CC
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2112 #include <stdarg.h>
2113 #include <stdio.h>
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117 struct buf { int x; };
2118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2120 char **p;
2121 int i;
2123 return p[i];
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 int argc;
2149 char **argv;
2151 main ()
2153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 return 0;
2157 _ACEOF
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX -qlanglvl=ansi
2161 # Ultrix and OSF/1 -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions -Aa -D_HPUX_SOURCE
2164 # SVR4 -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2204 case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220 choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259 $ac_declaration
2260 #include <stdlib.h>
2262 main ()
2264 exit (42);
2266 return 0;
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2296 continue
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2305 $ac_declaration
2307 main ()
2309 exit (42);
2311 return 0;
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 rm -f conftest*
2345 if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366 if test "${ac_cv_search_strerror+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 ac_func_search_save_LIBS=$LIBS
2370 ac_cv_search_strerror=no
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 #ifdef __cplusplus
2380 extern "C"
2381 #endif
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384 char strerror ();
2386 main ()
2388 strerror ();
2390 return 0;
2392 _ACEOF
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_search_strerror="none required"
2416 else
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
2423 if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2433 /* Override any gcc2 internal prototype to avoid an error. */
2434 #ifdef __cplusplus
2435 extern "C"
2436 #endif
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char strerror ();
2441 main ()
2443 strerror ();
2445 return 0;
2447 _ACEOF
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2471 break
2472 else
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479 done
2481 LIBS=$ac_func_search_save_LIBS
2483 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485 if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2491 am__api_version="1.9"
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2507 if test -z "$INSTALL"; then
2508 if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517 case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2537 else
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2542 done
2543 done
2545 esac
2546 done
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
2557 INSTALL=$ac_install_sh
2560 echo "$as_me:$LINENO: result: $INSTALL" >&5
2561 echo "${ECHO_T}$INSTALL" >&6
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2573 # Just in case
2574 sleep 1
2575 echo timestamp > conftest.file
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2584 # -L didn't work.
2585 set X `ls -t $srcdir/configure conftest.file`
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2602 test "$2" = conftest.file
2604 then
2605 # Ok.
2607 else
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621 # Double any \ or $. echo might interpret backslashes.
2622 # By default was `s,x,x', remove it if useless.
2623 cat <<\_ACEOF >conftest.sed
2624 s/[\\$]/&&/g;s/;s,x,x,$//
2625 _ACEOF
2626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627 rm conftest.sed
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636 else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658 else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2675 for ac_prog in gawk mawk nawk awk
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706 echo "${ECHO_T}$AWK" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$AWK" && break
2713 done
2715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 all:
2723 @echo 'ac_maketemp="$(MAKE)"'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2727 if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729 else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2732 rm -f conftest.make
2734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 SET_MAKE=
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741 SET_MAKE="MAKE=${MAKE-make}"
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747 am__leading_dot=.
2748 else
2749 am__leading_dot=_
2751 rmdir .tst 2>/dev/null
2753 DEPDIR="${am__leading_dot}deps"
2755 ac_config_commands="$ac_config_commands depfiles"
2758 am_make=${MAKE-make}
2759 cat > confinc << 'END'
2760 am__doit:
2761 @echo done
2762 .PHONY: am__doit
2764 # If we don't find an include directive, just comment out the code.
2765 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767 am__include="#"
2768 am__quote=
2769 _am_result=none
2770 # First try GNU make style include.
2771 echo "include confinc" > confmf
2772 # We grep out `Entering directory' and `Leaving directory'
2773 # messages which can occur if `w' ends up in MAKEFLAGS.
2774 # In particular we don't look at `^make:' because GNU make might
2775 # be invoked under some other name (usually "gmake"), in which
2776 # case it prints its new name instead of `make'.
2777 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2782 # Now try BSD make style include.
2783 if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2793 echo "$as_me:$LINENO: result: $_am_result" >&5
2794 echo "${ECHO_T}$_am_result" >&6
2795 rm -f confinc confmf
2797 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798 if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2802 if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2808 if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811 else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2818 # test to see if srcdir already configured
2819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2836 # Define the identity of the package.
2837 PACKAGE=bfd
2838 VERSION=2.17.50
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2843 _ACEOF
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2848 _ACEOF
2850 # Some tools Automake needs.
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2868 # Installed binaries are usually stripped using `strip' when the user
2869 # run `make install-strip'. However `strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the `STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2910 if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942 echo "${ECHO_T}$ac_ct_STRIP" >&6
2943 else
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2948 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956 # We need awk for the "check" target. The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967 depcc="$CC" am_compiler_list=
2969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3050 done
3052 cd ..
3053 rm -rf conftest.dir
3054 else
3055 am_cv_CC_dependencies_compiler_type=none
3059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
3070 else
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}ar; ac_word=$2
3081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083 if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3105 AR=$ac_cv_prog_AR
3106 if test -n "$AR"; then
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108 echo "${ECHO_T}$AR" >&6
3109 else
3110 echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3115 if test -z "$ac_cv_prog_AR"; then
3116 ac_ct_AR=$AR
3117 # Extract the first word of "ar", so it can be a program name with args.
3118 set dummy ar; ac_word=$2
3119 echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3138 done
3139 done
3143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144 if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146 echo "${ECHO_T}$ac_ct_AR" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3152 AR=$ac_ct_AR
3153 else
3154 AR="$ac_cv_prog_AR"
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3184 RANLIB=$ac_cv_prog_RANLIB
3185 if test -n "$RANLIB"; then
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187 echo "${ECHO_T}$RANLIB" >&6
3188 else
3189 echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3194 if test -z "$ac_cv_prog_RANLIB"; then
3195 ac_ct_RANLIB=$RANLIB
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197 set dummy ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224 if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3227 else
3228 echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3232 RANLIB=$ac_ct_RANLIB
3233 else
3234 RANLIB="$ac_cv_prog_RANLIB"
3238 # Check whether --enable-shared or --disable-shared was given.
3239 if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
3242 case $enableval in
3243 yes) enable_shared=yes ;;
3244 no) enable_shared=no ;;
3246 enable_shared=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3253 done
3254 IFS="$ac_save_ifs"
3256 esac
3257 else
3258 enable_shared=no
3261 # Check whether --enable-static or --disable-static was given.
3262 if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
3265 case $enableval in
3266 yes) enable_static=yes ;;
3267 no) enable_static=no ;;
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3274 enable_static=yes
3276 done
3277 IFS="$ac_save_ifs"
3279 esac
3280 else
3281 enable_static=yes
3283 # Check whether --enable-fast-install or --disable-fast-install was given.
3284 if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
3287 case $enableval in
3288 yes) enable_fast_install=yes ;;
3289 no) enable_fast_install=no ;;
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3298 done
3299 IFS="$ac_save_ifs"
3301 esac
3302 else
3303 enable_fast_install=yes
3306 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3307 if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3310 else
3311 with_gnu_ld=no
3313 ac_prog=ld
3314 if test "$GCC" = yes; then
3315 # Check if gcc -print-prog-name=ld gives a path.
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3318 case $host in
3319 *-*-mingw*)
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 esac
3325 case $ac_prog in
3326 # Accept absolute paths.
3327 [\\/]* | [A-Za-z]:[\\/]*)
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333 done
3334 test -z "$LD" && LD="$ac_prog"
3337 # If it fails, then pretend we aren't using GCC.
3338 ac_prog=ld
3341 # If it is relative, then search for the first ld in PATH.
3342 with_gnu_ld=unknown
3344 esac
3345 elif test "$with_gnu_ld" = yes; then
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3348 else
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3352 if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if test -z "$LD"; then
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3360 lt_cv_path_LD="$ac_dir/$ac_prog"
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3365 test "$with_gnu_ld" != no && break
3366 else
3367 test "$with_gnu_ld" != yes && break
3370 done
3371 IFS="$ac_save_ifs"
3372 else
3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3377 LD="$lt_cv_path_LD"
3378 if test -n "$LD"; then
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380 echo "${ECHO_T}$LD" >&6
3381 else
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3395 lt_cv_prog_gnu_ld=yes
3396 else
3397 lt_cv_prog_gnu_ld=no
3400 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3402 with_gnu_ld=$lt_cv_prog_gnu_ld
3405 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407 if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 lt_cv_ld_reload_flag='-r'
3412 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3414 reload_flag=$lt_cv_ld_reload_flag
3415 test -n "$reload_flag" && reload_flag=" $reload_flag"
3417 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419 if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 if test -n "$NM"; then
3423 # Let the user override the test.
3424 lt_cv_path_NM="$NM"
3425 else
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3428 test -z "$ac_dir" && ac_dir=.
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3436 lt_cv_path_NM="$tmp_nm -B"
3437 break
3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3439 lt_cv_path_NM="$tmp_nm -p"
3440 break
3441 else
3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443 continue # so that we can try to find one that supports BSD flags
3446 done
3447 IFS="$ac_save_ifs"
3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3452 NM="$lt_cv_path_NM"
3453 echo "$as_me:$LINENO: result: $NM" >&5
3454 echo "${ECHO_T}$NM" >&6
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458 LN_S=$as_ln_s
3459 if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3462 else
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3467 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [regex]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given egrep regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3486 case $host_os in
3487 aix*)
3488 lt_cv_deplibs_check_method=pass_all
3491 beos*)
3492 lt_cv_deplibs_check_method=pass_all
3495 bsdi4*)
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3501 cygwin* | mingw* |pw32*)
3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
3506 darwin* | rhapsody*)
3507 # this will be overwritten by pass_all, but leave it in just in case
3508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3509 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 case "$host_os" in
3511 rhapsody* | darwin1.012)
3512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3514 *) # Darwin 1.3 on
3515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3517 esac
3518 lt_cv_deplibs_check_method=pass_all
3521 freebsd* | kfreebsd*-gnu)
3522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3523 case $host_cpu in
3524 i*86 )
3525 # Not sure whether the presence of OpenBSD here was a mistake.
3526 # Let's accept both of them until this is cleared up.
3527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3528 lt_cv_file_magic_cmd=/usr/bin/file
3529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531 esac
3532 else
3533 lt_cv_deplibs_check_method=pass_all
3537 gnu*)
3538 lt_cv_deplibs_check_method=pass_all
3541 hpux10.20*|hpux11*)
3542 case $host_cpu in
3543 hppa*)
3544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3548 ia64*)
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3550 lt_cv_file_magic_cmd=/usr/bin/file
3551 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3553 esac
3556 irix5* | irix6*)
3557 case $host_os in
3558 irix5*)
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3563 case $LD in
3564 *-32|*"-32 ") libmagic=32-bit;;
3565 *-n32|*"-n32 ") libmagic=N32;;
3566 *-64|*"-64 ") libmagic=64-bit;;
3567 *) libmagic=never-match;;
3568 esac
3569 # this will be overridden with pass_all, but let us keep it just in case
3570 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3572 esac
3573 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3574 lt_cv_deplibs_check_method=pass_all
3577 # This must be Linux ELF.
3578 linux-gnu*)
3579 lt_cv_deplibs_check_method=pass_all
3582 netbsd* | knetbsd*-gnu)
3583 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3585 else
3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3590 newsos6)
3591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3596 osf3* | osf4* | osf5*)
3597 # this will be overridden with pass_all, but let us keep it just in case
3598 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3599 lt_cv_file_magic_test_file=/shlib/libc.so
3600 lt_cv_deplibs_check_method=pass_all
3603 sco3.2v5*)
3604 lt_cv_deplibs_check_method=pass_all
3607 solaris*)
3608 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_file_magic_test_file=/lib/libc.so
3612 sysv5uw[78]* | sysv4*uw2*)
3613 lt_cv_deplibs_check_method=pass_all
3616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3617 case $host_vendor in
3618 ncr)
3619 lt_cv_deplibs_check_method=pass_all
3621 motorola)
3622 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]'
3623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3625 esac
3627 esac
3630 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3631 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3632 file_magic_cmd=$lt_cv_file_magic_cmd
3633 deplibs_check_method=$lt_cv_deplibs_check_method
3638 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3640 # find the maximum length of command line arguments
3641 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3642 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3643 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3647 teststring="ABCD"
3649 case $build_os in
3650 msdosdjgpp*)
3651 # On DJGPP, this test can blow up pretty badly due to problems in libc
3652 # (any single argument exceeding 2000 bytes causes a buffer overrun
3653 # during glob expansion). Even if it were fixed, the result of this
3654 # check would be larger than it should be.
3655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3658 cygwin* | mingw*)
3659 # On Win9x/ME, this test blows up -- it succeeds, but takes
3660 # about 5 minutes as the teststring grows exponentially.
3661 # Worse, since 9x/ME are not pre-emptively multitasking,
3662 # you end up with a "frozen" computer, even though with patience
3663 # the test eventually succeeds (with a max line length of 256k).
3664 # Instead, let's just punt: use the minimum linelength reported by
3665 # all of the supported platforms: 8192 (on NT/2K/XP).
3666 lt_cv_sys_max_cmd_len=8192;
3669 amigaos*)
3670 # On AmigaOS with pdksh, this test takes hours, literally.
3671 # So we just punt and use a minimum line length of 8192.
3672 lt_cv_sys_max_cmd_len=8192;
3675 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3676 # This has been around since 386BSD, at least. Likely further.
3677 if test -x /sbin/sysctl; then
3678 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3679 elif test -x /usr/sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3681 else
3682 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3684 # And add a safety zone
3685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3688 esac
3692 if test -n "$lt_cv_sys_max_cmd_len" ; then
3693 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3695 else
3696 echo "$as_me:$LINENO: result: none" >&5
3697 echo "${ECHO_T}none" >&6
3701 # Only perform the check for file, if the check method requires it
3702 case $deplibs_check_method in
3703 file_magic*)
3704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3705 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3706 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 case $MAGIC_CMD in
3712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3714 ?:/*)
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3718 ac_save_MAGIC_CMD="$MAGIC_CMD"
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3720 ac_dummy="/usr/bin:$PATH"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/${ac_tool_prefix}file; then
3724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3725 if test -n "$file_magic_test_file"; then
3726 case $deplibs_check_method in
3727 "file_magic "*)
3728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3731 egrep "$file_magic_regex" > /dev/null; then
3733 else
3734 cat <<EOF 1>&2
3736 *** Warning: the command libtool uses to detect shared libraries,
3737 *** $file_magic_cmd, produces output that libtool cannot recognize.
3738 *** The result is that libtool may fail to recognize shared libraries
3739 *** as such. This will affect the creation of libtool libraries that
3740 *** depend on shared libraries, but programs linked with such libtool
3741 *** libraries will work regardless of this problem. Nevertheless, you
3742 *** may want to report the problem to your system manager and/or to
3743 *** bug-libtool@gnu.org
3746 fi ;;
3747 esac
3749 break
3751 done
3752 IFS="$ac_save_ifs"
3753 MAGIC_CMD="$ac_save_MAGIC_CMD"
3755 esac
3758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3759 if test -n "$MAGIC_CMD"; then
3760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3761 echo "${ECHO_T}$MAGIC_CMD" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3767 if test -z "$lt_cv_path_MAGIC_CMD"; then
3768 if test -n "$ac_tool_prefix"; then
3769 echo "$as_me:$LINENO: checking for file" >&5
3770 echo $ECHO_N "checking for file... $ECHO_C" >&6
3771 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 case $MAGIC_CMD in
3776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3778 ?:/*)
3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3782 ac_save_MAGIC_CMD="$MAGIC_CMD"
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 ac_dummy="/usr/bin:$PATH"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/file; then
3788 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3789 if test -n "$file_magic_test_file"; then
3790 case $deplibs_check_method in
3791 "file_magic "*)
3792 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3795 egrep "$file_magic_regex" > /dev/null; then
3797 else
3798 cat <<EOF 1>&2
3800 *** Warning: the command libtool uses to detect shared libraries,
3801 *** $file_magic_cmd, produces output that libtool cannot recognize.
3802 *** The result is that libtool may fail to recognize shared libraries
3803 *** as such. This will affect the creation of libtool libraries that
3804 *** depend on shared libraries, but programs linked with such libtool
3805 *** libraries will work regardless of this problem. Nevertheless, you
3806 *** may want to report the problem to your system manager and/or to
3807 *** bug-libtool@gnu.org
3810 fi ;;
3811 esac
3813 break
3815 done
3816 IFS="$ac_save_ifs"
3817 MAGIC_CMD="$ac_save_MAGIC_CMD"
3819 esac
3822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3823 if test -n "$MAGIC_CMD"; then
3824 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3825 echo "${ECHO_T}$MAGIC_CMD" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 else
3832 MAGIC_CMD=:
3838 esac
3840 if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_RANLIB+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$RANLIB"; then
3849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3867 RANLIB=$ac_cv_prog_RANLIB
3868 if test -n "$RANLIB"; then
3869 echo "$as_me:$LINENO: result: $RANLIB" >&5
3870 echo "${ECHO_T}$RANLIB" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3877 if test -z "$ac_cv_prog_RANLIB"; then
3878 ac_ct_RANLIB=$RANLIB
3879 # Extract the first word of "ranlib", so it can be a program name with args.
3880 set dummy ranlib; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 if test -n "$ac_ct_RANLIB"; then
3887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_RANLIB="ranlib"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3907 if test -n "$ac_ct_RANLIB"; then
3908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3910 else
3911 echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 RANLIB=$ac_ct_RANLIB
3916 else
3917 RANLIB="$ac_cv_prog_RANLIB"
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3922 set dummy ${ac_tool_prefix}strip; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_prog_STRIP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 if test -n "$STRIP"; then
3929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3942 done
3943 done
3947 STRIP=$ac_cv_prog_STRIP
3948 if test -n "$STRIP"; then
3949 echo "$as_me:$LINENO: result: $STRIP" >&5
3950 echo "${ECHO_T}$STRIP" >&6
3951 else
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3957 if test -z "$ac_cv_prog_STRIP"; then
3958 ac_ct_STRIP=$STRIP
3959 # Extract the first word of "strip", so it can be a program name with args.
3960 set dummy strip; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 if test -n "$ac_ct_STRIP"; then
3967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_ac_ct_STRIP="strip"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3980 done
3981 done
3983 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3987 if test -n "$ac_ct_STRIP"; then
3988 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3989 echo "${ECHO_T}$ac_ct_STRIP" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6
3995 STRIP=$ac_ct_STRIP
3996 else
3997 STRIP="$ac_cv_prog_STRIP"
4001 # Check for any special flags to pass to ltconfig.
4002 libtool_flags="--cache-file=$cache_file"
4003 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4004 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4005 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4006 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4007 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4010 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4011 if test "${enable_libtool_lock+set}" = set; then
4012 enableval="$enable_libtool_lock"
4015 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4016 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4019 # Check whether --with-pic or --without-pic was given.
4020 if test "${with_pic+set}" = set; then
4021 withval="$with_pic"
4022 pic_mode="$withval"
4023 else
4024 pic_mode=default
4026 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4027 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4029 # Some flags need to be propagated to the compiler or linker for good
4030 # libtool support.
4031 case $host in
4032 *-*-irix6*)
4033 # Find out which ABI we are using.
4034 echo '#line 4034 "configure"' > conftest.$ac_ext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; then
4040 if test "$lt_cv_prog_gnu_ld" = yes; then
4041 case `/usr/bin/file conftest.$ac_objext` in
4042 *32-bit*)
4043 LD="${LD-ld} -melf32bsmip"
4045 *N32*)
4046 LD="${LD-ld} -melf32bmipn32"
4048 *64-bit*)
4049 LD="${LD-ld} -melf64bmip"
4051 esac
4052 else
4053 case `/usr/bin/file conftest.$ac_objext` in
4054 *32-bit*)
4055 LD="${LD-ld} -32"
4057 *N32*)
4058 LD="${LD-ld} -n32"
4060 *64-bit*)
4061 LD="${LD-ld} -64"
4063 esac
4066 rm -rf conftest*
4069 ia64-*-hpux*)
4070 # Find out which ABI we are using.
4071 echo 'int i;' > conftest.$ac_ext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4077 case "`/usr/bin/file conftest.o`" in
4078 *ELF-32*)
4079 HPUX_IA64_MODE="32"
4081 *ELF-64*)
4082 HPUX_IA64_MODE="64"
4084 esac
4086 rm -rf conftest*
4089 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4090 # Find out which ABI we are using.
4091 echo 'int i;' > conftest.$ac_ext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; then
4097 case "`/usr/bin/file conftest.o`" in
4098 *32-bit*)
4099 case $host in
4100 x86_64-*linux*)
4101 LD="${LD-ld} -m elf_i386"
4103 ppc64-*linux*|powerpc64-*linux*)
4104 LD="${LD-ld} -m elf32ppclinux"
4106 s390x-*linux*)
4107 LD="${LD-ld} -m elf_s390"
4109 sparc64-*linux*)
4110 LD="${LD-ld} -m elf32_sparc"
4112 esac
4114 *64-bit*)
4115 case $host in
4116 x86_64-*linux*)
4117 LD="${LD-ld} -m elf_x86_64"
4119 ppc*-*linux*|powerpc*-*linux*)
4120 LD="${LD-ld} -m elf64ppc"
4122 s390*-*linux*)
4123 LD="${LD-ld} -m elf64_s390"
4125 sparc*-*linux*)
4126 LD="${LD-ld} -m elf64_sparc"
4128 esac
4130 esac
4132 rm -rf conftest*
4135 *-*-sco3.2v5*)
4136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4137 SAVE_CFLAGS="$CFLAGS"
4138 CFLAGS="$CFLAGS -belf"
4139 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4140 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4141 if test "${lt_cv_cc_needs_belf+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext conftest$ac_exeext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 lt_cv_cc_needs_belf=yes
4190 else
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 lt_cv_cc_needs_belf=no
4196 rm -f conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4206 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4209 CFLAGS="$SAVE_CFLAGS"
4214 esac
4217 # Save cache, so that ltconfig can load it
4218 cat >confcache <<\_ACEOF
4219 # This file is a shell script that caches the results of configure
4220 # tests run on this system so they can be shared between configure
4221 # scripts and configure runs, see configure's option --config-cache.
4222 # It is not useful on other systems. If it contains results you don't
4223 # want to keep, you may remove or edit it.
4225 # config.status only pays attention to the cache file if you give it
4226 # the --recheck option to rerun configure.
4228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4230 # following values.
4232 _ACEOF
4234 # The following way of writing the cache mishandles newlines in values,
4235 # but we know of no workaround that is simple, portable, and efficient.
4236 # So, don't put newlines in cache variables' values.
4237 # Ultrix sh set writes to stderr and can't be redirected directly,
4238 # and sets the high bit in the cache file unless we assign to the vars.
4240 (set) 2>&1 |
4241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4242 *ac_space=\ *)
4243 # `set' does not quote correctly, so add quotes (double-quote
4244 # substitution turns \\\\ into \\, and sed turns \\ into \).
4245 sed -n \
4246 "s/'/'\\\\''/g;
4247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4250 # `set' quotes correctly as required by POSIX, so do not add quotes.
4251 sed -n \
4252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4254 esac;
4256 sed '
4257 t clear
4258 : clear
4259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4260 t end
4261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4262 : end' >>confcache
4263 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4264 if test -w $cache_file; then
4265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4266 cat confcache >$cache_file
4267 else
4268 echo "not updating unwritable cache $cache_file"
4271 rm -f confcache
4273 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4274 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4275 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4276 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4277 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4278 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4279 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4280 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4281 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4282 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4283 echo "$as_me: error: libtool configure failed" >&2;}
4284 { (exit 1); exit 1; }; }
4286 # Reload cache, that may have been modified by ltconfig
4287 if test -r "$cache_file"; then
4288 # Some versions of bash will fail to source /dev/null (special
4289 # files actually), so we avoid doing that.
4290 if test -f "$cache_file"; then
4291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4292 echo "$as_me: loading cache $cache_file" >&6;}
4293 case $cache_file in
4294 [\\/]* | ?:[\\/]* ) . $cache_file;;
4295 *) . ./$cache_file;;
4296 esac
4298 else
4299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4300 echo "$as_me: creating cache $cache_file" >&6;}
4301 >$cache_file
4305 # This can be used to rebuild libtool when needed
4306 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4308 # Always use our own libtool.
4309 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4311 # Redirect the config.log output again, so that the ltconfig log is not
4312 # clobbered by the next message.
4313 exec 5>>./config.log
4321 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4322 if test "${enable_64_bit_bfd+set}" = set; then
4323 enableval="$enable_64_bit_bfd"
4324 case "${enableval}" in
4325 yes) want64=true ;;
4326 no) want64=false ;;
4327 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4328 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4329 { (exit 1); exit 1; }; } ;;
4330 esac
4331 else
4332 want64=false
4333 fi; # Check whether --enable-targets or --disable-targets was given.
4334 if test "${enable_targets+set}" = set; then
4335 enableval="$enable_targets"
4336 case "${enableval}" in
4337 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4338 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4339 { (exit 1); exit 1; }; }
4341 no) enable_targets= ;;
4342 *) enable_targets=$enableval ;;
4343 esac
4344 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4345 if test "${enable_commonbfdlib+set}" = set; then
4346 enableval="$enable_commonbfdlib"
4347 case "${enableval}" in
4348 yes) commonbfdlib=true ;;
4349 no) commonbfdlib=false ;;
4350 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4351 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4352 { (exit 1); exit 1; }; } ;;
4353 esac
4355 # Check whether --with-mmap or --without-mmap was given.
4356 if test "${with_mmap+set}" = set; then
4357 withval="$with_mmap"
4358 case "${withval}" in
4359 yes) want_mmap=true ;;
4360 no) want_mmap=false ;;
4361 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4362 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4363 { (exit 1); exit 1; }; } ;;
4364 esac
4365 else
4366 want_mmap=false
4368 # Check whether --enable-secureplt or --disable-secureplt was given.
4369 if test "${enable_secureplt+set}" = set; then
4370 enableval="$enable_secureplt"
4371 case "${enableval}" in
4372 yes) use_secureplt=true ;;
4373 no) use_secureplt=false ;;
4374 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4375 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4377 esac
4378 else
4379 use_secureplt=false
4380 fi; if test $use_secureplt = true; then
4382 cat >>confdefs.h <<\_ACEOF
4383 #define USE_SECUREPLT 1
4384 _ACEOF
4389 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4391 # Check whether --enable-werror or --disable-werror was given.
4392 if test "${enable_werror+set}" = set; then
4393 enableval="$enable_werror"
4394 case "${enableval}" in
4395 yes | y) ERROR_ON_WARNING="yes" ;;
4396 no | n) ERROR_ON_WARNING="no" ;;
4397 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4398 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4399 { (exit 1); exit 1; }; } ;;
4400 esac
4403 # Enable -Werror by default when using gcc
4404 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4405 ERROR_ON_WARNING=yes
4408 NO_WERROR=
4409 if test "${ERROR_ON_WARNING}" = yes ; then
4410 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4411 NO_WERROR="-Wno-error"
4414 if test "${GCC}" = yes ; then
4415 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4418 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4419 if test "${enable_build_warnings+set}" = set; then
4420 enableval="$enable_build_warnings"
4421 case "${enableval}" in
4422 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4423 no) if test "${GCC}" = yes ; then
4424 WARN_CFLAGS="-w"
4425 fi;;
4426 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4427 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4429 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4430 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4431 esac
4434 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4435 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4442 ac_config_headers="$ac_config_headers config.h:config.in"
4445 if test -z "$target" ; then
4446 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4447 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4448 { (exit 1); exit 1; }; }
4451 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4452 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4453 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4454 if test "${enable_maintainer_mode+set}" = set; then
4455 enableval="$enable_maintainer_mode"
4456 USE_MAINTAINER_MODE=$enableval
4457 else
4458 USE_MAINTAINER_MODE=no
4460 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4461 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4464 if test $USE_MAINTAINER_MODE = yes; then
4465 MAINTAINER_MODE_TRUE=
4466 MAINTAINER_MODE_FALSE='#'
4467 else
4468 MAINTAINER_MODE_TRUE='#'
4469 MAINTAINER_MODE_FALSE=
4472 MAINT=$MAINTAINER_MODE_TRUE
4477 if false; then
4478 GENINSRC_NEVER_TRUE=
4479 GENINSRC_NEVER_FALSE='#'
4480 else
4481 GENINSRC_NEVER_TRUE='#'
4482 GENINSRC_NEVER_FALSE=
4485 case ${build_alias} in
4486 "") build_noncanonical=${build} ;;
4487 *) build_noncanonical=${build_alias} ;;
4488 esac
4490 case ${host_alias} in
4491 "") host_noncanonical=${build_noncanonical} ;;
4492 *) host_noncanonical=${host_alias} ;;
4493 esac
4495 case ${target_alias} in
4496 "") target_noncanonical=${host_noncanonical} ;;
4497 *) target_noncanonical=${target_alias} ;;
4498 esac
4500 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4501 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4502 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4503 if test "${enable_install_libbfd+set}" = set; then
4504 enableval="$enable_install_libbfd"
4505 install_libbfd_p=$enableval
4506 else
4507 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4508 install_libbfd_p=yes
4509 else
4510 install_libbfd_p=no
4513 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4514 echo "${ECHO_T}$install_libbfd_p" >&6
4517 if test $install_libbfd_p = yes; then
4518 INSTALL_LIBBFD_TRUE=
4519 INSTALL_LIBBFD_FALSE='#'
4520 else
4521 INSTALL_LIBBFD_TRUE='#'
4522 INSTALL_LIBBFD_FALSE=
4525 # Need _noncanonical variables for this.
4530 # libbfd.a is a host library containing target dependent code
4531 bfdlibdir='$(libdir)'
4532 bfdincludedir='$(includedir)'
4533 if test "${host}" != "${target}"; then
4534 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4535 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4543 host64=false
4544 target64=false
4545 bfd_default_target_size=32
4547 # host stuff:
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4557 echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_CC+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC="$CC" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583 echo "$as_me:$LINENO: result: $CC" >&5
4584 echo "${ECHO_T}$CC" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4591 if test -z "$ac_cv_prog_CC"; then
4592 ac_ct_CC=$CC
4593 # Extract the first word of "gcc", so it can be a program name with args.
4594 set dummy gcc; ac_word=$2
4595 echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 if test -n "$ac_ct_CC"; then
4601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_CC="gcc"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4620 if test -n "$ac_ct_CC"; then
4621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4622 echo "${ECHO_T}$ac_ct_CC" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4628 CC=$ac_ct_CC
4629 else
4630 CC="$ac_cv_prog_CC"
4633 if test -z "$CC"; then
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}cc; ac_word=$2
4637 echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4639 if test "${ac_cv_prog_CC+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_CC="${ac_tool_prefix}cc"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4661 CC=$ac_cv_prog_CC
4662 if test -n "$CC"; then
4663 echo "$as_me:$LINENO: result: $CC" >&5
4664 echo "${ECHO_T}$CC" >&6
4665 else
4666 echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4671 if test -z "$ac_cv_prog_CC"; then
4672 ac_ct_CC=$CC
4673 # Extract the first word of "cc", so it can be a program name with args.
4674 set dummy cc; ac_word=$2
4675 echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ac_ct_CC="cc"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4694 done
4695 done
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4702 echo "${ECHO_T}$ac_ct_CC" >&6
4703 else
4704 echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6
4708 CC=$ac_ct_CC
4709 else
4710 CC="$ac_cv_prog_CC"
4714 if test -z "$CC"; then
4715 # Extract the first word of "cc", so it can be a program name with args.
4716 set dummy cc; ac_word=$2
4717 echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719 if test "${ac_cv_prog_CC+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4724 else
4725 ac_prog_rejected=no
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4734 ac_prog_rejected=yes
4735 continue
4737 ac_cv_prog_CC="cc"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4744 if test $ac_prog_rejected = yes; then
4745 # We found a bogon in the path, so make sure we never use it.
4746 set dummy $ac_cv_prog_CC
4747 shift
4748 if test $# != 0; then
4749 # We chose a different compiler from the bogus one.
4750 # However, it has the same basename, so the bogon will be chosen
4751 # first if we set CC to just the basename; use the full file name.
4752 shift
4753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4758 CC=$ac_cv_prog_CC
4759 if test -n "$CC"; then
4760 echo "$as_me:$LINENO: result: $CC" >&5
4761 echo "${ECHO_T}$CC" >&6
4762 else
4763 echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4768 if test -z "$CC"; then
4769 if test -n "$ac_tool_prefix"; then
4770 for ac_prog in cl
4772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4774 echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776 if test "${ac_cv_prog_CC+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4793 done
4794 done
4798 CC=$ac_cv_prog_CC
4799 if test -n "$CC"; then
4800 echo "$as_me:$LINENO: result: $CC" >&5
4801 echo "${ECHO_T}$CC" >&6
4802 else
4803 echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6
4807 test -n "$CC" && break
4808 done
4810 if test -z "$CC"; then
4811 ac_ct_CC=$CC
4812 for ac_prog in cl
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 if test -n "$ac_ct_CC"; then
4822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_CC="$ac_prog"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4841 if test -n "$ac_ct_CC"; then
4842 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4843 echo "${ECHO_T}$ac_ct_CC" >&6
4844 else
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4849 test -n "$ac_ct_CC" && break
4850 done
4852 CC=$ac_ct_CC
4858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4859 See \`config.log' for more details." >&5
4860 echo "$as_me: error: no acceptable C compiler found in \$PATH
4861 See \`config.log' for more details." >&2;}
4862 { (exit 1); exit 1; }; }
4864 # Provide some information about the compiler.
4865 echo "$as_me:$LINENO:" \
4866 "checking for C compiler version" >&5
4867 ac_compiler=`set X $ac_compile; echo $2`
4868 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4869 (eval $ac_compiler --version </dev/null >&5) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }
4873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4874 (eval $ac_compiler -v </dev/null >&5) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }
4878 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4879 (eval $ac_compiler -V </dev/null >&5) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }
4884 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4885 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4886 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4897 main ()
4899 #ifndef __GNUC__
4900 choke me
4901 #endif
4904 return 0;
4906 _ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_compiler_gnu=yes
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 ac_compiler_gnu=no
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4940 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4941 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4942 GCC=`test $ac_compiler_gnu = yes && echo yes`
4943 ac_test_CFLAGS=${CFLAGS+set}
4944 ac_save_CFLAGS=$CFLAGS
4945 CFLAGS="-g"
4946 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4948 if test "${ac_cv_prog_cc_g+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4959 main ()
4963 return 0;
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -z "$ac_c_werror_flag"
4976 || test ! -s conftest.err'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_prog_cc_g=yes
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_prog_cc_g=no
4995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4999 if test "$ac_test_CFLAGS" = set; then
5000 CFLAGS=$ac_save_CFLAGS
5001 elif test $ac_cv_prog_cc_g = yes; then
5002 if test "$GCC" = yes; then
5003 CFLAGS="-g -O2"
5004 else
5005 CFLAGS="-g"
5007 else
5008 if test "$GCC" = yes; then
5009 CFLAGS="-O2"
5010 else
5011 CFLAGS=
5014 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5015 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5016 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 ac_cv_prog_cc_stdc=no
5020 ac_save_CC=$CC
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <stdarg.h>
5028 #include <stdio.h>
5029 #include <sys/types.h>
5030 #include <sys/stat.h>
5031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5032 struct buf { int x; };
5033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5034 static char *e (p, i)
5035 char **p;
5036 int i;
5038 return p[i];
5040 static char *f (char * (*g) (char **, int), char **p, ...)
5042 char *s;
5043 va_list v;
5044 va_start (v,p);
5045 s = g (p, va_arg (v,int));
5046 va_end (v);
5047 return s;
5050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5051 function prototypes and stuff, but not '\xHH' hex character constants.
5052 These don't provoke an error unfortunately, instead are silently treated
5053 as 'x'. The following induces an error, until -std1 is added to get
5054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5055 array size at least. It's necessary to write '\x00'==0 to get something
5056 that's true only with -std1. */
5057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5059 int test (int i, double x);
5060 struct s1 {int (*f) (int a);};
5061 struct s2 {int (*f) (double a);};
5062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5063 int argc;
5064 char **argv;
5066 main ()
5068 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5070 return 0;
5072 _ACEOF
5073 # Don't try gcc -ansi; that turns off useful extensions and
5074 # breaks some systems' header files.
5075 # AIX -qlanglvl=ansi
5076 # Ultrix and OSF/1 -std1
5077 # HP-UX 10.20 and later -Ae
5078 # HP-UX older versions -Aa -D_HPUX_SOURCE
5079 # SVR4 -Xc -D__EXTENSIONS__
5080 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5082 CC="$ac_save_CC $ac_arg"
5083 rm -f conftest.$ac_objext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_prog_cc_stdc=$ac_arg
5106 break
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5112 rm -f conftest.err conftest.$ac_objext
5113 done
5114 rm -f conftest.$ac_ext conftest.$ac_objext
5115 CC=$ac_save_CC
5119 case "x$ac_cv_prog_cc_stdc" in
5120 x|xno)
5121 echo "$as_me:$LINENO: result: none needed" >&5
5122 echo "${ECHO_T}none needed" >&6 ;;
5124 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5126 CC="$CC $ac_cv_prog_cc_stdc" ;;
5127 esac
5129 # Some people use a C++ compiler to compile C. Since we use `exit',
5130 # in C++ we need to declare it. In case someone uses the same compiler
5131 # for both compiling C and C++ we need to have the C++ compiler decide
5132 # the declaration of exit, since it's the most demanding environment.
5133 cat >conftest.$ac_ext <<_ACEOF
5134 #ifndef __cplusplus
5135 choke me
5136 #endif
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -z "$ac_c_werror_flag"
5148 || test ! -s conftest.err'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 for ac_declaration in \
5161 '' \
5162 'extern "C" void std::exit (int) throw (); using std::exit;' \
5163 'extern "C" void std::exit (int); using std::exit;' \
5164 'extern "C" void exit (int) throw ();' \
5165 'extern "C" void exit (int);' \
5166 'void exit (int);'
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_declaration
5175 #include <stdlib.h>
5177 main ()
5179 exit (42);
5181 return 0;
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 continue
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_declaration
5222 main ()
5224 exit (42);
5226 return 0;
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag"
5239 || test ! -s conftest.err'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 break
5252 else
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 done
5259 rm -f conftest*
5260 if test -n "$ac_declaration"; then
5261 echo '#ifdef __cplusplus' >>confdefs.h
5262 echo $ac_declaration >>confdefs.h
5263 echo '#endif' >>confdefs.h
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272 ac_ext=c
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279 cat >>confdefs.h <<\_ACEOF
5280 #define _GNU_SOURCE 1
5281 _ACEOF
5285 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5286 # If we haven't got the data from the intl directory,
5287 # assume NLS is disabled.
5288 USE_NLS=no
5289 LIBINTL=
5290 LIBINTL_DEP=
5291 INCINTL=
5292 XGETTEXT=
5293 GMSGFMT=
5294 POSUB=
5296 if test -f ../intl/config.intl; then
5297 . ../intl/config.intl
5299 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5300 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5301 if test x"$USE_NLS" != xyes; then
5302 echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6
5304 else
5305 echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6
5308 cat >>confdefs.h <<\_ACEOF
5309 #define ENABLE_NLS 1
5310 _ACEOF
5313 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5314 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5315 # Look for .po and .gmo files in the source directory.
5316 CATALOGS=
5317 XLINGUAS=
5318 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5319 # If there aren't any .gmo files the shell will give us the
5320 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5321 # weeded out.
5322 case "$cat" in *\**)
5323 continue;;
5324 esac
5325 # The quadruple backslash is collapsed to a double backslash
5326 # by the backticks, then collapsed again by the double quotes,
5327 # leaving us with one backslash in the sed expression (right
5328 # before the dot that mustn't act as a wildcard).
5329 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5330 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5331 # The user is allowed to set LINGUAS to a list of languages to
5332 # install catalogs for. If it's empty that means "all of them."
5333 if test "x$LINGUAS" = x; then
5334 CATALOGS="$CATALOGS $cat"
5335 XLINGUAS="$XLINGUAS $lang"
5336 else
5337 case "$LINGUAS" in *$lang*)
5338 CATALOGS="$CATALOGS $cat"
5339 XLINGUAS="$XLINGUAS $lang"
5341 esac
5343 done
5344 LINGUAS="$XLINGUAS"
5345 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5346 echo "${ECHO_T}$LINGUAS" >&6
5349 DATADIRNAME=share
5351 INSTOBJEXT=.mo
5353 GENCAT=gencat
5355 CATOBJEXT=.gmo
5359 MKINSTALLDIRS=
5360 if test -n "$ac_aux_dir"; then
5361 case "$ac_aux_dir" in
5362 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5363 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5364 esac
5366 if test -z "$MKINSTALLDIRS"; then
5367 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5372 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5373 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5374 # Check whether --enable-nls or --disable-nls was given.
5375 if test "${enable_nls+set}" = set; then
5376 enableval="$enable_nls"
5377 USE_NLS=$enableval
5378 else
5379 USE_NLS=yes
5381 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5382 echo "${ECHO_T}$USE_NLS" >&6
5389 # Prepare PATH_SEPARATOR.
5390 # The user is always right.
5391 if test "${PATH_SEPARATOR+set}" != set; then
5392 echo "#! /bin/sh" >conf$$.sh
5393 echo "exit 0" >>conf$$.sh
5394 chmod +x conf$$.sh
5395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5396 PATH_SEPARATOR=';'
5397 else
5398 PATH_SEPARATOR=:
5400 rm -f conf$$.sh
5403 # Find out how to test for executable files. Don't use a zero-byte file,
5404 # as systems may use methods other than mode bits to determine executability.
5405 cat >conf$$.file <<_ASEOF
5406 #! /bin/sh
5407 exit 0
5408 _ASEOF
5409 chmod +x conf$$.file
5410 if test -x conf$$.file >/dev/null 2>&1; then
5411 ac_executable_p="test -x"
5412 else
5413 ac_executable_p="test -f"
5415 rm -f conf$$.file
5417 # Extract the first word of "msgfmt", so it can be a program name with args.
5418 set dummy msgfmt; ac_word=$2
5419 echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421 if test "${ac_cv_path_MSGFMT+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424 case "$MSGFMT" in
5425 [\\/]* | ?:[\\/]*)
5426 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5429 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5430 for ac_dir in $PATH; do
5431 IFS="$ac_save_IFS"
5432 test -z "$ac_dir" && ac_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5435 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5436 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5437 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5438 break 2
5441 done
5442 done
5443 IFS="$ac_save_IFS"
5444 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5446 esac
5448 MSGFMT="$ac_cv_path_MSGFMT"
5449 if test "$MSGFMT" != ":"; then
5450 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5451 echo "${ECHO_T}$MSGFMT" >&6
5452 else
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5457 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5458 set dummy gmsgfmt; ac_word=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 case $GMSGFMT in
5465 [\\/]* | ?:[\\/]*)
5466 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5483 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5485 esac
5487 GMSGFMT=$ac_cv_path_GMSGFMT
5489 if test -n "$GMSGFMT"; then
5490 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5491 echo "${ECHO_T}$GMSGFMT" >&6
5492 else
5493 echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6
5499 # Prepare PATH_SEPARATOR.
5500 # The user is always right.
5501 if test "${PATH_SEPARATOR+set}" != set; then
5502 echo "#! /bin/sh" >conf$$.sh
5503 echo "exit 0" >>conf$$.sh
5504 chmod +x conf$$.sh
5505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5506 PATH_SEPARATOR=';'
5507 else
5508 PATH_SEPARATOR=:
5510 rm -f conf$$.sh
5513 # Find out how to test for executable files. Don't use a zero-byte file,
5514 # as systems may use methods other than mode bits to determine executability.
5515 cat >conf$$.file <<_ASEOF
5516 #! /bin/sh
5517 exit 0
5518 _ASEOF
5519 chmod +x conf$$.file
5520 if test -x conf$$.file >/dev/null 2>&1; then
5521 ac_executable_p="test -x"
5522 else
5523 ac_executable_p="test -f"
5525 rm -f conf$$.file
5527 # Extract the first word of "xgettext", so it can be a program name with args.
5528 set dummy xgettext; ac_word=$2
5529 echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 case "$XGETTEXT" in
5535 [\\/]* | ?:[\\/]*)
5536 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5539 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5540 for ac_dir in $PATH; do
5541 IFS="$ac_save_IFS"
5542 test -z "$ac_dir" && ac_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5545 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5546 (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
5547 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5548 break 2
5551 done
5552 done
5553 IFS="$ac_save_IFS"
5554 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5556 esac
5558 XGETTEXT="$ac_cv_path_XGETTEXT"
5559 if test "$XGETTEXT" != ":"; then
5560 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5561 echo "${ECHO_T}$XGETTEXT" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6
5567 rm -f messages.po
5570 # Prepare PATH_SEPARATOR.
5571 # The user is always right.
5572 if test "${PATH_SEPARATOR+set}" != set; then
5573 echo "#! /bin/sh" >conf$$.sh
5574 echo "exit 0" >>conf$$.sh
5575 chmod +x conf$$.sh
5576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5577 PATH_SEPARATOR=';'
5578 else
5579 PATH_SEPARATOR=:
5581 rm -f conf$$.sh
5584 # Find out how to test for executable files. Don't use a zero-byte file,
5585 # as systems may use methods other than mode bits to determine executability.
5586 cat >conf$$.file <<_ASEOF
5587 #! /bin/sh
5588 exit 0
5589 _ASEOF
5590 chmod +x conf$$.file
5591 if test -x conf$$.file >/dev/null 2>&1; then
5592 ac_executable_p="test -x"
5593 else
5594 ac_executable_p="test -f"
5596 rm -f conf$$.file
5598 # Extract the first word of "msgmerge", so it can be a program name with args.
5599 set dummy msgmerge; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 case "$MSGMERGE" in
5606 [\\/]* | ?:[\\/]*)
5607 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5610 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5611 for ac_dir in $PATH; do
5612 IFS="$ac_save_IFS"
5613 test -z "$ac_dir" && ac_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5616 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5617 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5618 break 2
5621 done
5622 done
5623 IFS="$ac_save_IFS"
5624 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5626 esac
5628 MSGMERGE="$ac_cv_path_MSGMERGE"
5629 if test "$MSGMERGE" != ":"; then
5630 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5631 echo "${ECHO_T}$MSGMERGE" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5638 if test "$GMSGFMT" != ":"; then
5639 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5640 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5642 else
5643 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5644 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5645 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5646 GMSGFMT=":"
5650 if test "$XGETTEXT" != ":"; then
5651 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5652 (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
5654 else
5655 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5656 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5657 XGETTEXT=":"
5659 rm -f messages.po
5662 ac_config_commands="$ac_config_commands default-1"
5666 # Permit host specific settings.
5667 . ${srcdir}/configure.host
5670 # Find a good install program. We prefer a C program (faster),
5671 # so one script is as good as another. But avoid the broken or
5672 # incompatible versions:
5673 # SysV /etc/install, /usr/sbin/install
5674 # SunOS /usr/etc/install
5675 # IRIX /sbin/install
5676 # AIX /bin/install
5677 # AmigaOS /C/install, which installs bootblocks on floppy discs
5678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5681 # OS/2's system install, which has a completely different semantic
5682 # ./install, which can be erroneously created by make from ./install.sh.
5683 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5684 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5685 if test -z "$INSTALL"; then
5686 if test "${ac_cv_path_install+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 # Account for people who put trailing slashes in PATH elements.
5695 case $as_dir/ in
5696 ./ | .// | /cC/* | \
5697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5699 /usr/ucb/* ) ;;
5701 # OSF1 and SCO ODT 3.0 have their own names for install.
5702 # Don't use installbsd from OSF since it installs stuff as root
5703 # by default.
5704 for ac_prog in ginstall scoinst install; do
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5707 if test $ac_prog = install &&
5708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709 # AIX install. It has an incompatible calling convention.
5711 elif test $ac_prog = install &&
5712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5713 # program-specific install script used by HP pwplus--don't use.
5715 else
5716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5717 break 3
5720 done
5721 done
5723 esac
5724 done
5728 if test "${ac_cv_path_install+set}" = set; then
5729 INSTALL=$ac_cv_path_install
5730 else
5731 # As a last resort, use the slow shell script. We don't cache a
5732 # path for INSTALL within a source directory, because that will
5733 # break other packages using the cache if that directory is
5734 # removed, or if the path is relative.
5735 INSTALL=$ac_install_sh
5738 echo "$as_me:$LINENO: result: $INSTALL" >&5
5739 echo "${ECHO_T}$INSTALL" >&6
5741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5742 # It thinks the first close brace ends the variable substitution.
5743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5750 BFD_HOST_64BIT_LONG=0
5751 BFD_HOST_LONG_LONG=0
5752 BFD_HOST_64_BIT_DEFINED=0
5753 BFD_HOST_64_BIT=
5754 BFD_HOST_U_64_BIT=
5756 echo "$as_me:$LINENO: checking for long long" >&5
5757 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5758 if test "${bfd_cv_has_long_long+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5769 main ()
5771 unsigned long long ll = 18446744073709551615ULL;
5773 return 0;
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 bfd_cv_has_long_long=yes
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 bfd_cv_has_long_long=no
5805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5809 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5810 if test $bfd_cv_has_long_long = yes; then
5811 BFD_HOST_LONG_LONG=1
5812 ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5818 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5819 # On Suns, sometimes $CPP names a directory.
5820 if test -n "$CPP" && test -d "$CPP"; then
5821 CPP=
5823 if test -z "$CPP"; then
5824 if test "${ac_cv_prog_CPP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 # Double quotes because CPP needs to be expanded
5828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5830 ac_preproc_ok=false
5831 for ac_c_preproc_warn_flag in '' yes
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #ifdef __STDC__
5846 # include <limits.h>
5847 #else
5848 # include <assert.h>
5849 #endif
5850 Syntax error
5851 _ACEOF
5852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } >/dev/null; then
5860 if test -s conftest.err; then
5861 ac_cpp_err=$ac_c_preproc_warn_flag
5862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5863 else
5864 ac_cpp_err=
5866 else
5867 ac_cpp_err=yes
5869 if test -z "$ac_cpp_err"; then
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 # Broken: fails on valid input.
5876 continue
5878 rm -f conftest.err conftest.$ac_ext
5880 # OK, works on sane cases. Now check whether non-existent headers
5881 # can be detected and how.
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <ac_nonexistent.h>
5889 _ACEOF
5890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } >/dev/null; then
5898 if test -s conftest.err; then
5899 ac_cpp_err=$ac_c_preproc_warn_flag
5900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5901 else
5902 ac_cpp_err=
5904 else
5905 ac_cpp_err=yes
5907 if test -z "$ac_cpp_err"; then
5908 # Broken: success on invalid input.
5909 continue
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 # Passes both tests.
5915 ac_preproc_ok=:
5916 break
5918 rm -f conftest.err conftest.$ac_ext
5920 done
5921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922 rm -f conftest.err conftest.$ac_ext
5923 if $ac_preproc_ok; then
5924 break
5927 done
5928 ac_cv_prog_CPP=$CPP
5931 CPP=$ac_cv_prog_CPP
5932 else
5933 ac_cv_prog_CPP=$CPP
5935 echo "$as_me:$LINENO: result: $CPP" >&5
5936 echo "${ECHO_T}$CPP" >&6
5937 ac_preproc_ok=false
5938 for ac_c_preproc_warn_flag in '' yes
5940 # Use a header file that comes with gcc, so configuring glibc
5941 # with a fresh cross-compiler works.
5942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5943 # <limits.h> exists even on freestanding compilers.
5944 # On the NeXT, cc -E runs the code through the compiler's parser,
5945 # not just through cpp. "Syntax error" is here to catch this case.
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #ifdef __STDC__
5953 # include <limits.h>
5954 #else
5955 # include <assert.h>
5956 #endif
5957 Syntax error
5958 _ACEOF
5959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } >/dev/null; then
5967 if test -s conftest.err; then
5968 ac_cpp_err=$ac_c_preproc_warn_flag
5969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5970 else
5971 ac_cpp_err=
5973 else
5974 ac_cpp_err=yes
5976 if test -z "$ac_cpp_err"; then
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 # Broken: fails on valid input.
5983 continue
5985 rm -f conftest.err conftest.$ac_ext
5987 # OK, works on sane cases. Now check whether non-existent headers
5988 # can be detected and how.
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <ac_nonexistent.h>
5996 _ACEOF
5997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null; then
6005 if test -s conftest.err; then
6006 ac_cpp_err=$ac_c_preproc_warn_flag
6007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6008 else
6009 ac_cpp_err=
6011 else
6012 ac_cpp_err=yes
6014 if test -z "$ac_cpp_err"; then
6015 # Broken: success on invalid input.
6016 continue
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 # Passes both tests.
6022 ac_preproc_ok=:
6023 break
6025 rm -f conftest.err conftest.$ac_ext
6027 done
6028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029 rm -f conftest.err conftest.$ac_ext
6030 if $ac_preproc_ok; then
6032 else
6033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6034 See \`config.log' for more details." >&5
6035 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6036 See \`config.log' for more details." >&2;}
6037 { (exit 1); exit 1; }; }
6040 ac_ext=c
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 echo "$as_me:$LINENO: checking for egrep" >&5
6048 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6049 if test "${ac_cv_prog_egrep+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6053 then ac_cv_prog_egrep='grep -E'
6054 else ac_cv_prog_egrep='egrep'
6057 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6058 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6059 EGREP=$ac_cv_prog_egrep
6062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6064 if test "${ac_cv_header_stdc+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <stdlib.h>
6074 #include <stdarg.h>
6075 #include <string.h>
6076 #include <float.h>
6079 main ()
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_header_stdc=yes
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_header_stdc=no
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117 if test $ac_cv_header_stdc = yes; then
6118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <string.h>
6127 _ACEOF
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "memchr" >/dev/null 2>&1; then
6131 else
6132 ac_cv_header_stdc=no
6134 rm -f conftest*
6138 if test $ac_cv_header_stdc = yes; then
6139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 #include <stdlib.h>
6148 _ACEOF
6149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150 $EGREP "free" >/dev/null 2>&1; then
6152 else
6153 ac_cv_header_stdc=no
6155 rm -f conftest*
6159 if test $ac_cv_header_stdc = yes; then
6160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6161 if test "$cross_compiling" = yes; then
6163 else
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <ctype.h>
6171 #if ((' ' & 0x0FF) == 0x020)
6172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6174 #else
6175 # define ISLOWER(c) \
6176 (('a' <= (c) && (c) <= 'i') \
6177 || ('j' <= (c) && (c) <= 'r') \
6178 || ('s' <= (c) && (c) <= 'z'))
6179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6180 #endif
6182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6184 main ()
6186 int i;
6187 for (i = 0; i < 256; i++)
6188 if (XOR (islower (i), ISLOWER (i))
6189 || toupper (i) != TOUPPER (i))
6190 exit(2);
6191 exit (0);
6193 _ACEOF
6194 rm -f conftest$ac_exeext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196 (eval $ac_link) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6206 else
6207 echo "$as_me: program exited with status $ac_status" >&5
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 ( exit $ac_status )
6212 ac_cv_header_stdc=no
6214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6218 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6219 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6220 if test $ac_cv_header_stdc = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define STDC_HEADERS 1
6224 _ACEOF
6228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6239 inttypes.h stdint.h unistd.h
6241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6242 echo "$as_me:$LINENO: checking for $ac_header" >&5
6243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6255 #include <$ac_header>
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 eval "$as_ac_Header=yes"
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 eval "$as_ac_Header=no"
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293 _ACEOF
6297 done
6300 echo "$as_me:$LINENO: checking for long long" >&5
6301 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6302 if test "${ac_cv_type_long_long+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6313 main ()
6315 if ((long long *) 0)
6316 return 0;
6317 if (sizeof (long long))
6318 return 0;
6320 return 0;
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325 (eval $ac_compile) 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_c_werror_flag"
6333 || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_type_long_long=yes
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 ac_cv_type_long_long=no
6352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6355 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6357 echo "$as_me:$LINENO: checking size of long long" >&5
6358 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6359 if test "${ac_cv_sizeof_long_long+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 if test "$ac_cv_type_long_long" = yes; then
6363 # The cast to unsigned long works around a bug in the HP C Compiler
6364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6366 # This bug is HP SR number 8606223364.
6367 if test "$cross_compiling" = yes; then
6368 # Depending upon the size, compute the lo and hi bounds.
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 $ac_includes_default
6377 main ()
6379 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6380 test_array [0] = 0
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_lo=0 ac_mid=0
6409 while :; do
6410 cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 $ac_includes_default
6418 main ()
6420 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6421 test_array [0] = 0
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_hi=$ac_mid; break
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_lo=`expr $ac_mid + 1`
6455 if test $ac_lo -le $ac_mid; then
6456 ac_lo= ac_hi=
6457 break
6459 ac_mid=`expr 2 '*' $ac_mid + 1`
6461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462 done
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6475 main ()
6477 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6478 test_array [0] = 0
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 ac_hi=-1 ac_mid=-1
6507 while :; do
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h. */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 $ac_includes_default
6516 main ()
6518 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6519 test_array [0] = 0
6522 return 0;
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_lo=$ac_mid; break
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_hi=`expr '(' $ac_mid ')' - 1`
6553 if test $ac_mid -le $ac_hi; then
6554 ac_lo= ac_hi=
6555 break
6557 ac_mid=`expr 2 '*' $ac_mid`
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 done
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_lo= ac_hi=
6567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 # Binary search between lo and hi bounds.
6571 while test "x$ac_lo" != "x$ac_hi"; do
6572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6581 main ()
6583 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6584 test_array [0] = 0
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest.$ac_objext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 ac_hi=$ac_mid
6613 else
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_lo=`expr '(' $ac_mid ')' + 1`
6619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 done
6621 case $ac_lo in
6622 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6624 See \`config.log' for more details." >&5
6625 echo "$as_me: error: cannot compute sizeof (long long), 77
6626 See \`config.log' for more details." >&2;}
6627 { (exit 1); exit 1; }; } ;;
6628 esac
6629 else
6630 if test "$cross_compiling" = yes; then
6631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6632 See \`config.log' for more details." >&5
6633 echo "$as_me: error: cannot run test program while cross compiling
6634 See \`config.log' for more details." >&2;}
6635 { (exit 1); exit 1; }; }
6636 else
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h. */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6644 long longval () { return (long) (sizeof (long long)); }
6645 unsigned long ulongval () { return (long) (sizeof (long long)); }
6646 #include <stdio.h>
6647 #include <stdlib.h>
6649 main ()
6652 FILE *f = fopen ("conftest.val", "w");
6653 if (! f)
6654 exit (1);
6655 if (((long) (sizeof (long long))) < 0)
6657 long i = longval ();
6658 if (i != ((long) (sizeof (long long))))
6659 exit (1);
6660 fprintf (f, "%ld\n", i);
6662 else
6664 unsigned long i = ulongval ();
6665 if (i != ((long) (sizeof (long long))))
6666 exit (1);
6667 fprintf (f, "%lu\n", i);
6669 exit (ferror (f) || fclose (f) != 0);
6672 return 0;
6674 _ACEOF
6675 rm -f conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_sizeof_long_long=`cat conftest.val`
6687 else
6688 echo "$as_me: program exited with status $ac_status" >&5
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ( exit $ac_status )
6693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6694 See \`config.log' for more details." >&5
6695 echo "$as_me: error: cannot compute sizeof (long long), 77
6696 See \`config.log' for more details." >&2;}
6697 { (exit 1); exit 1; }; }
6699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6702 rm -f conftest.val
6703 else
6704 ac_cv_sizeof_long_long=0
6707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6708 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6709 cat >>confdefs.h <<_ACEOF
6710 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6711 _ACEOF
6716 echo "$as_me:$LINENO: checking for long" >&5
6717 echo $ECHO_N "checking for long... $ECHO_C" >&6
6718 if test "${ac_cv_type_long+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6729 main ()
6731 if ((long *) 0)
6732 return 0;
6733 if (sizeof (long))
6734 return 0;
6736 return 0;
6738 _ACEOF
6739 rm -f conftest.$ac_objext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -z "$ac_c_werror_flag"
6749 || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest.$ac_objext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 ac_cv_type_long=yes
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_cv_type_long=no
6768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6771 echo "${ECHO_T}$ac_cv_type_long" >&6
6773 echo "$as_me:$LINENO: checking size of long" >&5
6774 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6775 if test "${ac_cv_sizeof_long+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 if test "$ac_cv_type_long" = yes; then
6779 # The cast to unsigned long works around a bug in the HP C Compiler
6780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6782 # This bug is HP SR number 8606223364.
6783 if test "$cross_compiling" = yes; then
6784 # Depending upon the size, compute the lo and hi bounds.
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 $ac_includes_default
6793 main ()
6795 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6796 test_array [0] = 0
6799 return 0;
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_lo=0 ac_mid=0
6825 while :; do
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 $ac_includes_default
6834 main ()
6836 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6837 test_array [0] = 0
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag"
6853 || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_hi=$ac_mid; break
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 ac_lo=`expr $ac_mid + 1`
6871 if test $ac_lo -le $ac_mid; then
6872 ac_lo= ac_hi=
6873 break
6875 ac_mid=`expr 2 '*' $ac_mid + 1`
6877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878 done
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 $ac_includes_default
6891 main ()
6893 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6894 test_array [0] = 0
6897 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_hi=-1 ac_mid=-1
6923 while :; do
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6932 main ()
6934 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6935 test_array [0] = 0
6938 return 0;
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest.$ac_objext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_lo=$ac_mid; break
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_hi=`expr '(' $ac_mid ')' - 1`
6969 if test $ac_mid -le $ac_hi; then
6970 ac_lo= ac_hi=
6971 break
6973 ac_mid=`expr 2 '*' $ac_mid`
6975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976 done
6977 else
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6981 ac_lo= ac_hi=
6983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6986 # Binary search between lo and hi bounds.
6987 while test "x$ac_lo" != "x$ac_hi"; do
6988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6997 main ()
6999 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7000 test_array [0] = 0
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7008 (eval $ac_compile) 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } &&
7015 { ac_try='test -z "$ac_c_werror_flag"
7016 || test ! -s conftest.err'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; } &&
7022 { ac_try='test -s conftest.$ac_objext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_hi=$ac_mid
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_lo=`expr '(' $ac_mid ')' + 1`
7035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036 done
7037 case $ac_lo in
7038 ?*) ac_cv_sizeof_long=$ac_lo;;
7039 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7040 See \`config.log' for more details." >&5
7041 echo "$as_me: error: cannot compute sizeof (long), 77
7042 See \`config.log' for more details." >&2;}
7043 { (exit 1); exit 1; }; } ;;
7044 esac
7045 else
7046 if test "$cross_compiling" = yes; then
7047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7048 See \`config.log' for more details." >&5
7049 echo "$as_me: error: cannot run test program while cross compiling
7050 See \`config.log' for more details." >&2;}
7051 { (exit 1); exit 1; }; }
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 $ac_includes_default
7060 long longval () { return (long) (sizeof (long)); }
7061 unsigned long ulongval () { return (long) (sizeof (long)); }
7062 #include <stdio.h>
7063 #include <stdlib.h>
7065 main ()
7068 FILE *f = fopen ("conftest.val", "w");
7069 if (! f)
7070 exit (1);
7071 if (((long) (sizeof (long))) < 0)
7073 long i = longval ();
7074 if (i != ((long) (sizeof (long))))
7075 exit (1);
7076 fprintf (f, "%ld\n", i);
7078 else
7080 unsigned long i = ulongval ();
7081 if (i != ((long) (sizeof (long))))
7082 exit (1);
7083 fprintf (f, "%lu\n", i);
7085 exit (ferror (f) || fclose (f) != 0);
7088 return 0;
7090 _ACEOF
7091 rm -f conftest$ac_exeext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7093 (eval $ac_link) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_sizeof_long=`cat conftest.val`
7103 else
7104 echo "$as_me: program exited with status $ac_status" >&5
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ( exit $ac_status )
7109 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7110 See \`config.log' for more details." >&5
7111 echo "$as_me: error: cannot compute sizeof (long), 77
7112 See \`config.log' for more details." >&2;}
7113 { (exit 1); exit 1; }; }
7115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7118 rm -f conftest.val
7119 else
7120 ac_cv_sizeof_long=0
7123 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7124 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7125 cat >>confdefs.h <<_ACEOF
7126 #define SIZEOF_LONG $ac_cv_sizeof_long
7127 _ACEOF
7130 if test "x${ac_cv_sizeof_long}" = "x8"; then
7131 host64=true
7132 BFD_HOST_64BIT_LONG=1
7133 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7134 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7135 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7136 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7137 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7140 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7141 BFD_HOST_64_BIT_DEFINED=1
7142 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7143 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7152 # Put a plausible default for CC_FOR_BUILD in Makefile.
7153 if test -z "$CC_FOR_BUILD"; then
7154 if test "x$cross_compiling" = "xno"; then
7155 CC_FOR_BUILD='$(CC)'
7156 else
7157 CC_FOR_BUILD=gcc
7161 # Also set EXEEXT_FOR_BUILD.
7162 if test "x$cross_compiling" = "xno"; then
7163 EXEEXT_FOR_BUILD='$(EXEEXT)'
7164 else
7165 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7166 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7167 if test "${bfd_cv_build_exeext+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 rm -f conftest*
7171 echo 'int main () { return 0; }' > conftest.c
7172 bfd_cv_build_exeext=
7173 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7174 for file in conftest.*; do
7175 case $file in
7176 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7177 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7178 esac
7179 done
7180 rm -f conftest*
7181 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7183 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7184 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7185 EXEEXT_FOR_BUILD=""
7186 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7196 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200 echo "$as_me:$LINENO: checking for $ac_header" >&5
7201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7207 else
7208 # Is the header compilable?
7209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7218 #include <$ac_header>
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7242 ac_header_compiler=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_header_compiler=no
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7251 echo "${ECHO_T}$ac_header_compiler" >&6
7253 # Is the header present?
7254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 #include <$ac_header>
7263 _ACEOF
7264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } >/dev/null; then
7272 if test -s conftest.err; then
7273 ac_cpp_err=$ac_c_preproc_warn_flag
7274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7275 else
7276 ac_cpp_err=
7278 else
7279 ac_cpp_err=yes
7281 if test -z "$ac_cpp_err"; then
7282 ac_header_preproc=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_header_preproc=no
7289 rm -f conftest.err conftest.$ac_ext
7290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7291 echo "${ECHO_T}$ac_header_preproc" >&6
7293 # So? What about this header?
7294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7295 yes:no: )
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7300 ac_header_preproc=yes
7302 no:yes:* )
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7316 cat <<\_ASBOX
7317 ## ------------------------------------------ ##
7318 ## Report this to the AC_PACKAGE_NAME lists. ##
7319 ## ------------------------------------------ ##
7320 _ASBOX
7322 sed "s/^/$as_me: WARNING: /" >&2
7324 esac
7325 echo "$as_me:$LINENO: checking for $ac_header" >&5
7326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 eval "$as_ac_Header=\$ac_header_preproc"
7332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7337 cat >>confdefs.h <<_ACEOF
7338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7339 _ACEOF
7343 done
7348 for ac_header in fcntl.h sys/file.h sys/time.h
7350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo "$as_me:$LINENO: checking for $ac_header" >&5
7353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7359 else
7360 # Is the header compilable?
7361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 $ac_includes_default
7370 #include <$ac_header>
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -z "$ac_c_werror_flag"
7382 || test ! -s conftest.err'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler=yes
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 ac_header_compiler=no
7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7403 echo "${ECHO_T}$ac_header_compiler" >&6
7405 # Is the header present?
7406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #include <$ac_header>
7415 _ACEOF
7416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } >/dev/null; then
7424 if test -s conftest.err; then
7425 ac_cpp_err=$ac_c_preproc_warn_flag
7426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7427 else
7428 ac_cpp_err=
7430 else
7431 ac_cpp_err=yes
7433 if test -z "$ac_cpp_err"; then
7434 ac_header_preproc=yes
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_header_preproc=no
7441 rm -f conftest.err conftest.$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7443 echo "${ECHO_T}$ac_header_preproc" >&6
7445 # So? What about this header?
7446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7447 yes:no: )
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7452 ac_header_preproc=yes
7454 no:yes:* )
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7468 cat <<\_ASBOX
7469 ## ------------------------------------------ ##
7470 ## Report this to the AC_PACKAGE_NAME lists. ##
7471 ## ------------------------------------------ ##
7472 _ASBOX
7474 sed "s/^/$as_me: WARNING: /" >&2
7476 esac
7477 echo "$as_me:$LINENO: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 eval "$as_ac_Header=\$ac_header_preproc"
7484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7491 _ACEOF
7495 done
7497 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7499 if test "${ac_cv_header_time+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 #include <sys/types.h>
7509 #include <sys/time.h>
7510 #include <time.h>
7513 main ()
7515 if ((struct tm *) 0)
7516 return 0;
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_header_time=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_cv_header_time=no
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7553 echo "${ECHO_T}$ac_cv_header_time" >&6
7554 if test $ac_cv_header_time = yes; then
7556 cat >>confdefs.h <<\_ACEOF
7557 #define TIME_WITH_SYS_TIME 1
7558 _ACEOF
7567 ac_header_dirent=no
7568 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7569 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7570 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7571 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 #include <sys/types.h>
7582 #include <$ac_hdr>
7585 main ()
7587 if ((DIR *) 0)
7588 return 0;
7590 return 0;
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 eval "$as_ac_Header=yes"
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 eval "$as_ac_Header=no"
7622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7629 _ACEOF
7631 ac_header_dirent=$ac_hdr; break
7634 done
7635 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7636 if test $ac_header_dirent = dirent.h; then
7637 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7638 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7639 if test "${ac_cv_search_opendir+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 ac_func_search_save_LIBS=$LIBS
7643 ac_cv_search_opendir=no
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7651 /* Override any gcc2 internal prototype to avoid an error. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char opendir ();
7659 main ()
7661 opendir ();
7663 return 0;
7665 _ACEOF
7666 rm -f conftest.$ac_objext conftest$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try='test -z "$ac_c_werror_flag"
7676 || test ! -s conftest.err'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try='test -s conftest$ac_exeext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_cv_search_opendir="none required"
7689 else
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7694 rm -f conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696 if test "$ac_cv_search_opendir" = no; then
7697 for ac_lib in dir; do
7698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7706 /* Override any gcc2 internal prototype to avoid an error. */
7707 #ifdef __cplusplus
7708 extern "C"
7709 #endif
7710 /* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7712 char opendir ();
7714 main ()
7716 opendir ();
7718 return 0;
7720 _ACEOF
7721 rm -f conftest.$ac_objext conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag"
7731 || test ! -s conftest.err'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 ac_cv_search_opendir="-l$ac_lib"
7744 break
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -f conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7752 done
7754 LIBS=$ac_func_search_save_LIBS
7756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7758 if test "$ac_cv_search_opendir" != no; then
7759 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7763 else
7764 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7766 if test "${ac_cv_search_opendir+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769 ac_func_search_save_LIBS=$LIBS
7770 ac_cv_search_opendir=no
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7778 /* Override any gcc2 internal prototype to avoid an error. */
7779 #ifdef __cplusplus
7780 extern "C"
7781 #endif
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7784 char opendir ();
7786 main ()
7788 opendir ();
7790 return 0;
7792 _ACEOF
7793 rm -f conftest.$ac_objext conftest$ac_exeext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_cv_search_opendir="none required"
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7821 rm -f conftest.err conftest.$ac_objext \
7822 conftest$ac_exeext conftest.$ac_ext
7823 if test "$ac_cv_search_opendir" = no; then
7824 for ac_lib in x; do
7825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 #ifdef __cplusplus
7835 extern "C"
7836 #endif
7837 /* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7839 char opendir ();
7841 main ()
7843 opendir ();
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag"
7858 || test ! -s conftest.err'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_cv_search_opendir="-l$ac_lib"
7871 break
7872 else
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7877 rm -f conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 done
7881 LIBS=$ac_func_search_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7884 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7885 if test "$ac_cv_search_opendir" != no; then
7886 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7892 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7893 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7894 if test "${gcc_cv_header_string+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <string.h>
7904 #include <strings.h>
7906 main ()
7910 return 0;
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 gcc_cv_header_string=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 gcc_cv_header_string=no
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7945 echo "${ECHO_T}$gcc_cv_header_string" >&6
7946 if test $gcc_cv_header_string = yes; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define STRING_WITH_STRINGS 1
7950 _ACEOF
7961 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
7963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7964 echo "$as_me:$LINENO: checking for $ac_func" >&5
7965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7966 if eval "test \"\${$as_ac_var+set}\" = set"; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7977 #define $ac_func innocuous_$ac_func
7979 /* System header to define __stub macros and hopefully few prototypes,
7980 which can conflict with char $ac_func (); below.
7981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7982 <limits.h> exists even on freestanding compilers. */
7984 #ifdef __STDC__
7985 # include <limits.h>
7986 #else
7987 # include <assert.h>
7988 #endif
7990 #undef $ac_func
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 #ifdef __cplusplus
7994 extern "C"
7996 #endif
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999 char $ac_func ();
8000 /* The GNU C library defines this for functions which it implements
8001 to always fail with ENOSYS. Some functions are actually named
8002 something starting with __ and the normal name is an alias. */
8003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8004 choke me
8005 #else
8006 char (*f) () = $ac_func;
8007 #endif
8008 #ifdef __cplusplus
8010 #endif
8013 main ()
8015 return f != $ac_func;
8017 return 0;
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 eval "$as_ac_var=yes"
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 eval "$as_ac_var=no"
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8054 if test `eval echo '${'$as_ac_var'}'` = yes; then
8055 cat >>confdefs.h <<_ACEOF
8056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8057 _ACEOF
8060 done
8063 for ac_func in strtoull
8065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8066 echo "$as_me:$LINENO: checking for $ac_func" >&5
8067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_var+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8079 #define $ac_func innocuous_$ac_func
8081 /* System header to define __stub macros and hopefully few prototypes,
8082 which can conflict with char $ac_func (); below.
8083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8084 <limits.h> exists even on freestanding compilers. */
8086 #ifdef __STDC__
8087 # include <limits.h>
8088 #else
8089 # include <assert.h>
8090 #endif
8092 #undef $ac_func
8094 /* Override any gcc2 internal prototype to avoid an error. */
8095 #ifdef __cplusplus
8096 extern "C"
8098 #endif
8099 /* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8101 char $ac_func ();
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 choke me
8107 #else
8108 char (*f) () = $ac_func;
8109 #endif
8110 #ifdef __cplusplus
8112 #endif
8115 main ()
8117 return f != $ac_func;
8119 return 0;
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag"
8132 || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 eval "$as_ac_var=yes"
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 eval "$as_ac_var=no"
8151 rm -f conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8156 if test `eval echo '${'$as_ac_var'}'` = yes; then
8157 cat >>confdefs.h <<_ACEOF
8158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8159 _ACEOF
8162 done
8165 echo "$as_me:$LINENO: checking whether basename is declared" >&5
8166 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8167 if test "${ac_cv_have_decl_basename+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8178 main ()
8180 #ifndef basename
8181 char *p = (char *) basename;
8182 #endif
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_have_decl_basename=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_have_decl_basename=no
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8220 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8221 if test $ac_cv_have_decl_basename = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_DECL_BASENAME 1
8225 _ACEOF
8228 else
8229 cat >>confdefs.h <<_ACEOF
8230 #define HAVE_DECL_BASENAME 0
8231 _ACEOF
8237 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8238 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8239 if test "${ac_cv_have_decl_ftello+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8250 main ()
8252 #ifndef ftello
8253 char *p = (char *) ftello;
8254 #endif
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_have_decl_ftello=yes
8283 else
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 ac_cv_have_decl_ftello=no
8289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8292 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8293 if test $ac_cv_have_decl_ftello = yes; then
8295 cat >>confdefs.h <<_ACEOF
8296 #define HAVE_DECL_FTELLO 1
8297 _ACEOF
8300 else
8301 cat >>confdefs.h <<_ACEOF
8302 #define HAVE_DECL_FTELLO 0
8303 _ACEOF
8309 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8310 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8311 if test "${ac_cv_have_decl_ftello64+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8322 main ()
8324 #ifndef ftello64
8325 char *p = (char *) ftello64;
8326 #endif
8329 return 0;
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_have_decl_ftello64=yes
8355 else
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8359 ac_cv_have_decl_ftello64=no
8361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8364 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8365 if test $ac_cv_have_decl_ftello64 = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368 #define HAVE_DECL_FTELLO64 1
8369 _ACEOF
8372 else
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_DECL_FTELLO64 0
8375 _ACEOF
8381 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8382 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8383 if test "${ac_cv_have_decl_fseeko+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8394 main ()
8396 #ifndef fseeko
8397 char *p = (char *) fseeko;
8398 #endif
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_have_decl_fseeko=yes
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_cv_have_decl_fseeko=no
8433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8435 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8436 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8437 if test $ac_cv_have_decl_fseeko = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_FSEEKO 1
8441 _ACEOF
8444 else
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_FSEEKO 0
8447 _ACEOF
8453 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8454 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8455 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 $ac_includes_default
8466 main ()
8468 #ifndef fseeko64
8469 char *p = (char *) fseeko64;
8470 #endif
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_have_decl_fseeko64=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_have_decl_fseeko64=no
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8507 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8508 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8509 if test $ac_cv_have_decl_fseeko64 = yes; then
8511 cat >>confdefs.h <<_ACEOF
8512 #define HAVE_DECL_FSEEKO64 1
8513 _ACEOF
8516 else
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_DECL_FSEEKO64 0
8519 _ACEOF
8527 case "${host}" in
8528 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8530 cat >>confdefs.h <<\_ACEOF
8531 #define USE_BINARY_FOPEN 1
8532 _ACEOF
8534 esac
8536 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8537 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8538 if test "${ac_cv_have_decl_ffs+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8549 main ()
8551 #ifndef ffs
8552 char *p = (char *) ffs;
8553 #endif
8556 return 0;
8558 _ACEOF
8559 rm -f conftest.$ac_objext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8561 (eval $ac_compile) 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -z "$ac_c_werror_flag"
8569 || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_have_decl_ffs=yes
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_have_decl_ffs=no
8588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8591 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8592 if test $ac_cv_have_decl_ffs = yes; then
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_DECL_FFS 1
8596 _ACEOF
8599 else
8600 cat >>confdefs.h <<_ACEOF
8601 #define HAVE_DECL_FFS 0
8602 _ACEOF
8608 echo "$as_me:$LINENO: checking whether free is declared" >&5
8609 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8610 if test "${ac_cv_have_decl_free+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8621 main ()
8623 #ifndef free
8624 char *p = (char *) free;
8625 #endif
8628 return 0;
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest.$ac_objext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_have_decl_free=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_have_decl_free=no
8660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8663 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8664 if test $ac_cv_have_decl_free = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667 #define HAVE_DECL_FREE 1
8668 _ACEOF
8671 else
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_DECL_FREE 0
8674 _ACEOF
8680 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8681 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8682 if test "${ac_cv_have_decl_getenv+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 $ac_includes_default
8693 main ()
8695 #ifndef getenv
8696 char *p = (char *) getenv;
8697 #endif
8700 return 0;
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag"
8713 || test ! -s conftest.err'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 ac_cv_have_decl_getenv=yes
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_cv_have_decl_getenv=no
8732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8734 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8735 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8736 if test $ac_cv_have_decl_getenv = yes; then
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_DECL_GETENV 1
8740 _ACEOF
8743 else
8744 cat >>confdefs.h <<_ACEOF
8745 #define HAVE_DECL_GETENV 0
8746 _ACEOF
8752 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8753 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8754 if test "${ac_cv_have_decl_malloc+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h. */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 $ac_includes_default
8765 main ()
8767 #ifndef malloc
8768 char *p = (char *) malloc;
8769 #endif
8772 return 0;
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -z "$ac_c_werror_flag"
8785 || test ! -s conftest.err'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; } &&
8791 { ac_try='test -s conftest.$ac_objext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_cv_have_decl_malloc=yes
8798 else
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8802 ac_cv_have_decl_malloc=no
8804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8807 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8808 if test $ac_cv_have_decl_malloc = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811 #define HAVE_DECL_MALLOC 1
8812 _ACEOF
8815 else
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_DECL_MALLOC 0
8818 _ACEOF
8824 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8825 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8826 if test "${ac_cv_have_decl_realloc+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 $ac_includes_default
8837 main ()
8839 #ifndef realloc
8840 char *p = (char *) realloc;
8841 #endif
8844 return 0;
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag"
8857 || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_cv_have_decl_realloc=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 ac_cv_have_decl_realloc=no
8876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8879 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8880 if test $ac_cv_have_decl_realloc = yes; then
8882 cat >>confdefs.h <<_ACEOF
8883 #define HAVE_DECL_REALLOC 1
8884 _ACEOF
8887 else
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_DECL_REALLOC 0
8890 _ACEOF
8896 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8897 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8898 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h. */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907 $ac_includes_default
8909 main ()
8911 #ifndef stpcpy
8912 char *p = (char *) stpcpy;
8913 #endif
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_have_decl_stpcpy=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_have_decl_stpcpy=no
8948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8951 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8952 if test $ac_cv_have_decl_stpcpy = yes; then
8954 cat >>confdefs.h <<_ACEOF
8955 #define HAVE_DECL_STPCPY 1
8956 _ACEOF
8959 else
8960 cat >>confdefs.h <<_ACEOF
8961 #define HAVE_DECL_STPCPY 0
8962 _ACEOF
8968 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8969 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8970 if test "${ac_cv_have_decl_strstr+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 $ac_includes_default
8981 main ()
8983 #ifndef strstr
8984 char *p = (char *) strstr;
8985 #endif
8988 return 0;
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993 (eval $ac_compile) 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_have_decl_strstr=yes
9014 else
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_have_decl_strstr=no
9020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9023 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9024 if test $ac_cv_have_decl_strstr = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_DECL_STRSTR 1
9028 _ACEOF
9031 else
9032 cat >>confdefs.h <<_ACEOF
9033 #define HAVE_DECL_STRSTR 0
9034 _ACEOF
9040 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9041 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9042 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9053 main ()
9055 #ifndef snprintf
9056 char *p = (char *) snprintf;
9057 #endif
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_have_decl_snprintf=yes
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_cv_have_decl_snprintf=no
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9095 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9096 if test $ac_cv_have_decl_snprintf = yes; then
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_DECL_SNPRINTF 1
9100 _ACEOF
9103 else
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_DECL_SNPRINTF 0
9106 _ACEOF
9112 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9113 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9114 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 $ac_includes_default
9125 main ()
9127 #ifndef vsnprintf
9128 char *p = (char *) vsnprintf;
9129 #endif
9132 return 0;
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_cv_have_decl_vsnprintf=yes
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_cv_have_decl_vsnprintf=no
9164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9167 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9168 if test $ac_cv_have_decl_vsnprintf = yes; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define HAVE_DECL_VSNPRINTF 1
9172 _ACEOF
9175 else
9176 cat >>confdefs.h <<_ACEOF
9177 #define HAVE_DECL_VSNPRINTF 0
9178 _ACEOF
9185 # If we are configured native, pick a core file support file.
9186 COREFILE=
9187 COREFLAG=
9188 TRAD_HEADER=
9189 if test "${target}" = "${host}"; then
9190 case "${host}" in
9191 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9192 COREFILE=''
9194 alpha*-*-linux-*)
9195 COREFILE=trad-core.lo
9196 TRAD_HEADER='"hosts/alphalinux.h"'
9198 alpha*-*-netbsd* | alpha*-*-openbsd*)
9199 COREFILE=netbsd-core.lo
9201 alpha*-*-*) COREFILE=osf-core.lo ;;
9202 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9203 COREFILE='' ;;
9204 arm-*-netbsd* | arm-*-openbsd*)
9205 COREFILE=netbsd-core.lo
9207 arm-*-riscix) COREFILE=trad-core.lo ;;
9208 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9209 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9210 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9211 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9212 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9213 hppa*-*-netbsd* | hppa*-*-openbsd*)
9214 COREFILE=netbsd-core.lo
9217 i370-*-*)
9218 COREFILE=trad-core.lo
9219 TRAD_HEADER='"hosts/i370linux.h"'
9222 i[3-7]86-sequent-bsd*)
9223 COREFILE=trad-core.lo
9224 TRAD_HEADER='"hosts/symmetry.h"'
9226 i[3-7]86-sequent-sysv4*) ;;
9227 i[3-7]86-sequent-sysv*)
9228 COREFILE=trad-core.lo
9229 TRAD_HEADER='"hosts/symmetry.h"'
9231 i[3-7]86-*-bsdi)
9232 COREFILE=
9234 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*)
9235 COREFILE=trad-core.lo
9236 TRAD_HEADER='"hosts/i386bsd.h"'
9238 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9239 COREFILE=''
9240 TRAD_HEADER='"hosts/i386bsd.h"'
9242 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9243 COREFILE=netbsd-core.lo
9245 i[3-7]86-esix-sysv3*)
9246 COREFILE=trad-core.lo
9247 TRAD_HEADER='"hosts/esix.h"'
9249 i[3-7]86-*-sco3.2v5*)
9250 COREFILE=sco5-core.lo
9252 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9253 COREFILE=trad-core.lo
9254 TRAD_HEADER='"hosts/i386sco.h"'
9256 i[3-7]86-*-mach3*)
9257 COREFILE=trad-core.lo
9258 TRAD_HEADER='"hosts/i386mach3.h"'
9260 i[3-7]86-*-linux-*)
9261 COREFILE=trad-core.lo
9262 TRAD_HEADER='"hosts/i386linux.h"'
9264 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9265 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9266 i860-*-mach3* | i860-*-osf1*)
9267 COREFILE=trad-core.lo
9268 TRAD_HEADER='"hosts/i860mach3.h"'
9270 mips-*-netbsd* | mips*-*-openbsd*)
9271 COREFILE=netbsd-core.lo
9273 mips-dec-*)
9274 COREFILE=trad-core.lo
9275 TRAD_HEADER='"hosts/decstation.h"'
9277 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9278 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9279 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9280 mips-*-sysv4*) ;;
9281 mips-*-sysv* | mips-*-riscos*)
9282 COREFILE=trad-core.lo
9283 TRAD_HEADER='"hosts/riscos.h"'
9285 mips-sony-bsd*)
9286 COREFILE=trad-core.lo
9287 TRAD_HEADER='"hosts/news-mips.h"'
9289 m68*-bull*-sysv*)
9290 COREFILE=trad-core.lo
9291 TRAD_HEADER='"hosts/dpx2.h"'
9293 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9294 m68*-hp-bsd*)
9295 COREFILE=trad-core.lo
9296 TRAD_HEADER='"hosts/hp300bsd.h"'
9298 m68*-*-linux-*)
9299 COREFILE=trad-core.lo
9300 TRAD_HEADER='"hosts/m68klinux.h"'
9302 m68*-motorola-sysv*)
9303 COREFILE=trad-core.lo
9304 TRAD_HEADER='"hosts/delta68.h"'
9306 m68*-sony-*)
9307 COREFILE=trad-core.lo
9308 TRAD_HEADER='"hosts/news.h"'
9310 m68*-*-netbsd* | m68*-*-openbsd*)
9311 COREFILE=netbsd-core.lo
9313 m68*-apple-aux*)
9314 COREFILE=trad-core.lo
9315 TRAD_HEADER='"hosts/m68kaux.h"'
9317 m88*-*-sysv4*)
9319 m88*-motorola-sysv*)
9320 COREFILE=ptrace-core.lo
9322 m88*-*-mach3*)
9323 COREFILE=trad-core.lo
9324 TRAD_HEADER='"hosts/m88kmach3.h"'
9326 m88*-*-openbsd*)
9327 COREFILE=netbsd-core.lo
9329 ns32k-pc532-mach)
9330 COREFILE=trad-core.lo
9331 TRAD_HEADER='"hosts/pc532mach.h"'
9333 ns32k-*-netbsd* | ns32k-*-openbsd*)
9334 COREFILE=netbsd-core.lo
9336 rs6000-*-lynx*)
9337 COREFILE=lynx-core.lo
9339 rs6000-*-aix5.* | powerpc-*-aix5.*)
9340 COREFILE=rs6000-core.lo
9341 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9343 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9344 COREFILE=rs6000-core.lo
9345 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9346 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9347 # have c_impl as a member of struct core_dumpx
9348 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9349 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <core.h>
9358 main ()
9360 struct core_dumpx c; c.c_impl = 0;
9362 return 0;
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_ST_C_IMPL 1
9390 _ACEOF
9392 echo "$as_me:$LINENO: result: yes" >&5
9393 echo "${ECHO_T}yes" >&6
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 echo "$as_me:$LINENO: result: no" >&5
9399 echo "${ECHO_T}no" >&6
9401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9403 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9404 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9405 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9406 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9407 powerpc-*-beos*) ;;
9408 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9409 COREFILE='' ;;
9410 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9411 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9412 s390*-*-*) COREFILE=trad-core.lo ;;
9413 sh*-*-netbsd* | sh*-*-openbsd*)
9414 COREFILE=netbsd-core.lo
9416 sparc-*-netbsd* | sparc*-*-openbsd*)
9417 COREFILE=netbsd-core.lo
9419 tahoe-*-*)
9420 COREFILE=trad-core.lo
9421 TRAD_HEADER='"hosts/tahoe.h"'
9423 vax-*-netbsd* | vax-*-openbsd*)
9424 COREFILE=netbsd-core.lo
9426 vax-*-ultrix2*)
9427 COREFILE=trad-core.lo
9428 TRAD_HEADER='"hosts/vaxult2.h"'
9430 vax-*-ultrix*)
9431 COREFILE=trad-core.lo
9432 TRAD_HEADER='"hosts/vaxult2.h"'
9434 vax-*-linux-*)
9435 COREFILE=trad-core.lo
9436 TRAD_HEADER='"hosts/vaxlinux.h"'
9438 vax-*-*)
9439 COREFILE=trad-core.lo
9440 TRAD_HEADER='"hosts/vaxbsd.h"'
9442 x86_64-*-netbsd* | x86_64-*-openbsd*)
9443 COREFILE=netbsd-core.lo
9445 esac
9447 case "$COREFILE" in
9448 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9449 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9450 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9451 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9452 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9453 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9454 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9455 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9456 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9457 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9458 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9459 esac
9461 # ELF corefile support has several flavors, but all of
9462 # them use something called <sys/procfs.h>
9464 for ac_header in sys/procfs.h
9466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9468 echo "$as_me:$LINENO: checking for $ac_header" >&5
9469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9475 else
9476 # Is the header compilable?
9477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 $ac_includes_default
9486 #include <$ac_header>
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest.$ac_objext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 ac_header_compiler=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_compiler=no
9517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9519 echo "${ECHO_T}$ac_header_compiler" >&6
9521 # Is the header present?
9522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 #include <$ac_header>
9531 _ACEOF
9532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } >/dev/null; then
9540 if test -s conftest.err; then
9541 ac_cpp_err=$ac_c_preproc_warn_flag
9542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9543 else
9544 ac_cpp_err=
9546 else
9547 ac_cpp_err=yes
9549 if test -z "$ac_cpp_err"; then
9550 ac_header_preproc=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563 yes:no: )
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9570 no:yes:* )
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 cat <<\_ASBOX
9585 ## ------------------------------------------ ##
9586 ## Report this to the AC_PACKAGE_NAME lists. ##
9587 ## ------------------------------------------ ##
9588 _ASBOX
9590 sed "s/^/$as_me: WARNING: /" >&2
9592 esac
9593 echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598 eval "$as_ac_Header=\$ac_header_preproc"
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9605 cat >>confdefs.h <<_ACEOF
9606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9607 _ACEOF
9611 done
9613 if test "$ac_cv_header_sys_procfs_h" = yes; then
9614 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9615 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9616 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9626 #define _SYSCALL32
9627 #include <sys/procfs.h>
9629 main ()
9631 prstatus_t avar
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638 (eval $ac_compile) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest.$ac_objext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 bfd_cv_have_sys_procfs_type_prstatus_t=no
9666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9669 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9671 cat >>confdefs.h <<\_ACEOF
9672 #define HAVE_PRSTATUS_T 1
9673 _ACEOF
9676 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9677 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
9679 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9680 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9681 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h. */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9691 #define _SYSCALL32
9692 #include <sys/procfs.h>
9694 main ()
9696 prstatus32_t avar
9698 return 0;
9700 _ACEOF
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703 (eval $ac_compile) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest.$ac_objext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 bfd_cv_have_sys_procfs_type_prstatus32_t=no
9731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9734 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
9736 cat >>confdefs.h <<\_ACEOF
9737 #define HAVE_PRSTATUS32_T 1
9738 _ACEOF
9741 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9742 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
9744 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9745 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9746 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9756 #define _SYSCALL32
9757 #include <sys/procfs.h>
9759 main ()
9761 prstatus_t avar; void* aref = (void*) &avar.pr_who
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768 (eval $ac_compile) 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9799 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_PRSTATUS_T_PR_WHO 1
9803 _ACEOF
9806 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9807 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
9809 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9810 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9811 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9821 #define _SYSCALL32
9822 #include <sys/procfs.h>
9824 main ()
9826 prstatus32_t avar; void* aref = (void*) &avar.pr_who
9828 return 0;
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9864 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_PRSTATUS32_T_PR_WHO 1
9868 _ACEOF
9871 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9872 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
9874 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9875 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9876 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9886 #define _SYSCALL32
9887 #include <sys/procfs.h>
9889 main ()
9891 pstatus_t avar
9893 return 0;
9895 _ACEOF
9896 rm -f conftest.$ac_objext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9898 (eval $ac_compile) 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } &&
9905 { ac_try='test -z "$ac_c_werror_flag"
9906 || test ! -s conftest.err'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest.$ac_objext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9919 else
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 bfd_cv_have_sys_procfs_type_pstatus_t=no
9926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_PSTATUS_T 1
9933 _ACEOF
9936 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9937 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
9939 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9940 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9941 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9951 #define _SYSCALL32
9952 #include <sys/procfs.h>
9954 main ()
9956 pxstatus_t avar
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963 (eval $ac_compile) 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag"
9971 || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest.$ac_objext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 bfd_cv_have_sys_procfs_type_pxstatus_t=no
9991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_PXSTATUS_T 1
9998 _ACEOF
10001 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10002 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10004 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10005 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10006 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10016 #define _SYSCALL32
10017 #include <sys/procfs.h>
10019 main ()
10021 pstatus32_t avar
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028 (eval $ac_compile) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10059 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_PSTATUS32_T 1
10063 _ACEOF
10066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10067 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10069 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10070 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10071 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 #define _SYSCALL32
10082 #include <sys/procfs.h>
10084 main ()
10086 prpsinfo_t avar
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10124 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10126 cat >>confdefs.h <<\_ACEOF
10127 #define HAVE_PRPSINFO_T 1
10128 _ACEOF
10131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10132 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10134 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10135 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10136 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10146 #define _SYSCALL32
10147 #include <sys/procfs.h>
10149 main ()
10151 prpsinfo32_t avar
10153 return 0;
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10189 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_PRPSINFO32_T 1
10193 _ACEOF
10196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10199 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10200 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10201 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h. */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10211 #define _SYSCALL32
10212 #include <sys/procfs.h>
10214 main ()
10216 psinfo_t avar
10218 return 0;
10220 _ACEOF
10221 rm -f conftest.$ac_objext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223 (eval $ac_compile) 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag"
10231 || test ! -s conftest.err'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest.$ac_objext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10244 else
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 bfd_cv_have_sys_procfs_type_psinfo_t=no
10251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10254 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_PSINFO_T 1
10258 _ACEOF
10261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10262 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10264 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10265 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10266 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10276 #define _SYSCALL32
10277 #include <sys/procfs.h>
10279 main ()
10281 psinfo32_t avar
10283 return 0;
10285 _ACEOF
10286 rm -f conftest.$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288 (eval $ac_compile) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest.$ac_objext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_PSINFO32_T 1
10323 _ACEOF
10326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10327 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10329 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10330 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10331 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h. */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10341 #define _SYSCALL32
10342 #include <sys/procfs.h>
10344 main ()
10346 lwpstatus_t avar
10348 return 0;
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
10360 { ac_try='test -z "$ac_c_werror_flag"
10361 || test ! -s conftest.err'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10384 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10386 cat >>confdefs.h <<\_ACEOF
10387 #define HAVE_LWPSTATUS_T 1
10388 _ACEOF
10391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10392 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10394 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10395 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10396 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10406 #define _SYSCALL32
10407 #include <sys/procfs.h>
10409 main ()
10411 lwpxstatus_t avar
10413 return 0;
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10451 cat >>confdefs.h <<\_ACEOF
10452 #define HAVE_LWPXSTATUS_T 1
10453 _ACEOF
10456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10457 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10459 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10460 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10461 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10471 #define _SYSCALL32
10472 #include <sys/procfs.h>
10474 main ()
10476 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10478 return 0;
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483 (eval $ac_compile) 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_c_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10514 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10518 _ACEOF
10521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10522 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10524 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10525 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10526 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10536 #define _SYSCALL32
10537 #include <sys/procfs.h>
10539 main ()
10541 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10543 return 0;
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag"
10556 || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10579 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_LWPSTATUS_T_PR_REG 1
10583 _ACEOF
10586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10587 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10589 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10590 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10591 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10601 #define _SYSCALL32
10602 #include <sys/procfs.h>
10604 main ()
10606 win32_pstatus_t avar
10608 return 0;
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest.$ac_objext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10644 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_WIN32_PSTATUS_T 1
10648 _ACEOF
10651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10652 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10658 if test -n "$TRAD_HEADER"; then
10660 cat >>confdefs.h <<_ACEOF
10661 #define TRAD_HEADER $TRAD_HEADER
10662 _ACEOF
10666 # Horrible hacks to build DLLs on Windows.
10667 WIN32LDFLAGS=
10668 WIN32LIBADD=
10669 case "${host}" in
10670 *-*-cygwin*)
10671 if test "$enable_shared" = "yes"; then
10672 WIN32LDFLAGS="-no-undefined"
10673 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10676 *-*-linux*)
10677 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10678 # libiberty.a.
10679 case "${host}" in
10680 mips*-*-linux*)
10681 # Linux/MIPS uses PIC by default.
10682 if test "$enable_shared" = "yes"; then
10683 WIN32LIBADD="-L../libiberty -liberty"
10687 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
10688 if test -n "$x"; then
10689 WIN32LIBADD="-L../libiberty/pic -liberty"
10692 esac
10694 esac
10698 # target stuff:
10700 # Canonicalize the secondary target names.
10701 if test -n "$enable_targets" ; then
10702 for targ in `echo $enable_targets | sed 's/,/ /g'`
10704 result=`$ac_config_sub $targ 2>/dev/null`
10705 if test -n "$result" ; then
10706 canon_targets="$canon_targets $result"
10707 else
10708 # Allow targets that config.sub doesn't recognize, like "all".
10709 canon_targets="$canon_targets $targ"
10711 done
10714 all_targets=false
10715 defvec=
10716 selvecs=
10717 assocvecs=
10718 selarchs=
10719 TDEFINES=
10720 for targ in $target $canon_targets
10722 if test "x$targ" = "xall"; then
10723 all_targets=true
10724 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
10725 else
10726 . $srcdir/config.bfd
10727 if test "x$targ" = "x$target"; then
10728 defvec=$targ_defvec
10730 selvecs="$selvecs $targ_defvec $targ_selvecs"
10731 selarchs="$selarchs $targ_archs"
10732 TDEFINES="$TDEFINES $targ_cflags"
10734 done
10737 # This processing still needs to be done if we're to decide properly whether
10738 # 64-bit support needs to be compiled in. Currently, it will be included if
10739 # the default or any other explicitly requested target requires it; it
10740 # will not be included on a 32-bit host if no 64-bit target is requested, and
10741 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
10742 # used.
10744 # uniq the default and selected vectors in all the configured targets.
10745 f=""
10746 for i in $selvecs ; do
10747 case " $f " in
10748 *" $i "*) ;;
10749 *) f="$f $i" ;;
10750 esac
10751 done
10752 selvecs="$f"
10755 # uniq the associated vectors in all the configured targets.
10756 f=""
10757 for i in $assocvecs ; do
10758 case " $f " in
10759 *" $i "*) ;;
10760 *) f="$f $i" ;;
10761 esac
10762 done
10763 assocvecs="$f"
10766 # uniq the architectures in all the configured targets.
10767 f=""
10768 for i in $selarchs ; do
10769 case " $f " in
10770 *" $i "*) ;;
10771 *) f="$f $i" ;;
10772 esac
10773 done
10774 selarchs="$f"
10776 # Target backend .o files.
10779 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
10781 for vec in $selvecs
10783 target_size=32
10784 case "$vec" in
10785 # This list is alphabetized to make it easy to compare
10786 # with the two vector lists in targets.c. For the same reason,
10787 # use one entry per line, even though this leads to long lines.
10788 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
10789 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
10790 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10791 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10792 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10793 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
10794 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10795 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10796 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10797 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10798 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10799 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10800 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10801 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10802 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10803 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10804 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10805 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10806 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10807 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10808 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10809 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10810 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
10811 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
10812 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
10813 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
10814 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
10815 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10816 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10817 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10818 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10819 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10820 bfd_elf32_bigarm_symbian_vec)
10821 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10822 bfd_elf32_bigarm_vxworks_vec)
10823 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10824 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10825 bfd_elf32_bigmips_vxworks_vec)
10826 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10827 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
10828 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10829 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
10830 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10831 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
10832 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
10833 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
10834 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10835 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10836 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
10837 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10838 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10839 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10840 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
10841 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10842 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10843 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10844 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10845 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10846 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
10847 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
10848 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
10849 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
10850 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
10851 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10852 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10853 bfd_elf32_littlearm_symbian_vec)
10854 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10855 bfd_elf32_littlearm_vxworks_vec)
10856 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10857 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10858 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10859 bfd_elf32_littlemips_vxworks_vec)
10860 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10861 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
10862 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10863 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10864 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10865 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10866 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10867 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10868 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10869 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10870 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10871 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10872 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10873 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
10874 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
10875 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
10876 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10877 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10878 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10879 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10880 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
10881 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
10882 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10883 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10884 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10885 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10886 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10887 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
10888 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10889 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10890 # FIXME: We include cofflink.lo not because it's needed for
10891 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10892 # which needs it but does not list it. Should be fixed in right place.
10893 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10894 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10895 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10896 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10897 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10898 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10899 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10900 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10901 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10902 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10903 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10904 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10905 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10906 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10907 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10908 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10909 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10910 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
10911 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10912 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10913 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10914 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
10915 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
10916 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
10917 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
10918 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10919 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10920 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10921 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10922 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10923 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 ;;
10924 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10925 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10926 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10927 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10928 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10929 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10930 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 ;;
10931 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
10932 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10933 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10934 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
10935 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10936 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10937 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10938 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10939 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10940 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10941 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10942 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10943 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 ;;
10944 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 ;;
10945 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10946 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10947 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
10948 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10949 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10950 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10951 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10952 cris_aout_vec) tb="$tb aout-cris.lo" ;;
10953 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
10954 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10955 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10956 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10957 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
10958 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
10959 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
10960 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
10961 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
10962 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
10963 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
10964 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
10965 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
10966 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
10967 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
10968 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
10969 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
10970 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
10971 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
10972 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
10973 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
10974 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
10975 i386msdos_vec) tb="$tb i386msdos.lo" ;;
10976 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
10977 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
10978 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
10979 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
10980 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
10981 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
10982 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
10983 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10984 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10985 ieee_vec) tb="$tb ieee.lo" ;;
10986 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
10987 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
10988 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
10989 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
10990 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
10991 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
10992 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
10993 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
10994 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
10995 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
10996 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
10997 mach_o_be_vec) tb="$tb mach-o.lo" ;;
10998 mach_o_le_vec) tb="$tb mach-o.lo" ;;
10999 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11000 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11001 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11002 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11003 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11004 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11005 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11006 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11007 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11008 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11009 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11010 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11011 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11012 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11013 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11014 pef_vec) tb="$tb pef.lo" ;;
11015 pef_xlib_vec) tb="$tb pef.lo" ;;
11016 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11017 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11018 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11019 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11020 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11021 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11022 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11023 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11024 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11025 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11026 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11027 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11028 som_vec) tb="$tb som.lo" ;;
11029 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11030 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11031 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11032 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11033 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11034 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11035 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11036 sym_vec) tb="$tb xsym.lo" ;;
11037 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11038 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11039 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11040 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11041 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11042 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11043 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11044 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11045 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11046 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11047 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11048 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11049 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11050 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11051 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11052 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11053 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11054 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11055 versados_vec) tb="$tb versados.lo" ;;
11056 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11057 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11058 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11059 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11060 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
11061 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
11063 # These appear out of order in targets.c
11064 srec_vec) tb="$tb srec.lo" ;;
11065 symbolsrec_vec) tb="$tb srec.lo" ;;
11066 tekhex_vec) tb="$tb tekhex.lo" ;;
11067 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11068 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11070 "") ;;
11071 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11072 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11073 { (exit 1); exit 1; }; } ;;
11074 esac
11076 if test ${target_size} = 64; then
11077 target64=true
11079 if test x"${vec}" = x"${defvec}"; then
11080 bfd_default_target_size=${target_size}
11082 done
11084 # Target architecture .o files.
11085 # A couple of CPUs use shorter file names to avoid problems on DOS
11086 # filesystems.
11087 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11089 # Weed out duplicate .o files.
11090 f=""
11091 for i in $tb ; do
11092 case " $f " in
11093 *" $i "*) ;;
11094 *) f="$f $i" ;;
11095 esac
11096 done
11097 tb="$f"
11099 f=""
11100 for i in $ta ; do
11101 case " $f " in
11102 *" $i "*) ;;
11103 *) f="$f $i" ;;
11104 esac
11105 done
11106 ta="$f"
11108 bfd_backends="$tb"
11109 bfd_machines="$ta"
11111 if test x${all_targets} = xtrue ; then
11112 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11113 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11114 selvecs=
11115 havevecs=
11116 selarchs=
11117 test -n "$assocvecs" &&
11118 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11119 else # all_targets is true
11120 # Only set these if they will be nonempty, for the clever echo.
11121 havevecs=
11122 assocvecs=
11123 test -n "$selvecs" &&
11124 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11125 test -n "$selvecs" &&
11126 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11127 test -n "$selarchs" &&
11128 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11129 fi # all_targets is true
11131 case ${host64}-${target64}-${want64} in
11132 *true*)
11133 wordsize=64
11134 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11135 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11136 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11137 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11138 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11140 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11142 if test -n "$GCC" ; then
11143 bad_64bit_gcc=no;
11144 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11145 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11146 # Add more tests for gcc versions with non-working 64-bit support here.
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 :__GNUC__:__GNUC_MINOR__:__i386__:
11154 _ACEOF
11155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11156 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11157 bad_64bit_gcc=yes;
11158 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11159 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11160 else
11161 echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6
11164 rm -f conftest*
11166 if test $bad_64bit_gcc = yes ; then
11167 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11168 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11169 { (exit 1); exit 1; }; }
11173 false-false-false)
11174 wordsize=32
11175 bfd_libs='$(BFD32_LIBS)'
11176 all_backends='$(BFD32_BACKENDS)'
11178 esac
11187 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11188 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11189 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11190 # Hopefully a reasonable assumption since fseeko et.al. should be
11191 # upward compatible.
11197 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
11199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11202 if eval "test \"\${$as_ac_var+set}\" = set"; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213 #define $ac_func innocuous_$ac_func
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11220 #ifdef __STDC__
11221 # include <limits.h>
11222 #else
11223 # include <assert.h>
11224 #endif
11226 #undef $ac_func
11228 /* Override any gcc2 internal prototype to avoid an error. */
11229 #ifdef __cplusplus
11230 extern "C"
11232 #endif
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11235 char $ac_func ();
11236 /* The GNU C library defines this for functions which it implements
11237 to always fail with ENOSYS. Some functions are actually named
11238 something starting with __ and the normal name is an alias. */
11239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11240 choke me
11241 #else
11242 char (*f) () = $ac_func;
11243 #endif
11244 #ifdef __cplusplus
11246 #endif
11249 main ()
11251 return f != $ac_func;
11253 return 0;
11255 _ACEOF
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11258 (eval $ac_link) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag"
11266 || test ! -s conftest.err'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest$ac_exeext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 eval "$as_ac_var=yes"
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no"
11285 rm -f conftest.err conftest.$ac_objext \
11286 conftest$ac_exeext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 _ACEOF
11296 done
11298 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11299 echo "$as_me:$LINENO: checking for off_t" >&5
11300 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11301 if test "${ac_cv_type_off_t+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 $ac_includes_default
11312 main ()
11314 if ((off_t *) 0)
11315 return 0;
11316 if (sizeof (off_t))
11317 return 0;
11319 return 0;
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324 (eval $ac_compile) 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 ac_cv_type_off_t=yes
11345 else
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_cv_type_off_t=no
11351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11353 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11354 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11356 echo "$as_me:$LINENO: checking size of off_t" >&5
11357 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11358 if test "${ac_cv_sizeof_off_t+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 if test "$ac_cv_type_off_t" = yes; then
11362 # The cast to unsigned long works around a bug in the HP C Compiler
11363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11365 # This bug is HP SR number 8606223364.
11366 if test "$cross_compiling" = yes; then
11367 # Depending upon the size, compute the lo and hi bounds.
11368 cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h. */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 $ac_includes_default
11376 main ()
11378 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11379 test_array [0] = 0
11382 return 0;
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_lo=0 ac_mid=0
11408 while :; do
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h. */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 $ac_includes_default
11417 main ()
11419 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11420 test_array [0] = 0
11423 return 0;
11425 _ACEOF
11426 rm -f conftest.$ac_objext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_hi=$ac_mid; break
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_lo=`expr $ac_mid + 1`
11454 if test $ac_lo -le $ac_mid; then
11455 ac_lo= ac_hi=
11456 break
11458 ac_mid=`expr 2 '*' $ac_mid + 1`
11460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11461 done
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11474 main ()
11476 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11477 test_array [0] = 0
11480 return 0;
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_hi=-1 ac_mid=-1
11506 while :; do
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h. */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 $ac_includes_default
11515 main ()
11517 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11518 test_array [0] = 0
11521 return 0;
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -z "$ac_c_werror_flag"
11534 || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_lo=$ac_mid; break
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_hi=`expr '(' $ac_mid ')' - 1`
11552 if test $ac_mid -le $ac_hi; then
11553 ac_lo= ac_hi=
11554 break
11556 ac_mid=`expr 2 '*' $ac_mid`
11558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11559 done
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_lo= ac_hi=
11566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11569 # Binary search between lo and hi bounds.
11570 while test "x$ac_lo" != "x$ac_hi"; do
11571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h. */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 $ac_includes_default
11580 main ()
11582 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11583 test_array [0] = 0
11586 return 0;
11588 _ACEOF
11589 rm -f conftest.$ac_objext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591 (eval $ac_compile) 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag"
11599 || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_hi=$ac_mid
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_lo=`expr '(' $ac_mid ')' + 1`
11618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11619 done
11620 case $ac_lo in
11621 ?*) ac_cv_sizeof_off_t=$ac_lo;;
11622 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11623 See \`config.log' for more details." >&5
11624 echo "$as_me: error: cannot compute sizeof (off_t), 77
11625 See \`config.log' for more details." >&2;}
11626 { (exit 1); exit 1; }; } ;;
11627 esac
11628 else
11629 if test "$cross_compiling" = yes; then
11630 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11631 See \`config.log' for more details." >&5
11632 echo "$as_me: error: cannot run test program while cross compiling
11633 See \`config.log' for more details." >&2;}
11634 { (exit 1); exit 1; }; }
11635 else
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 $ac_includes_default
11643 long longval () { return (long) (sizeof (off_t)); }
11644 unsigned long ulongval () { return (long) (sizeof (off_t)); }
11645 #include <stdio.h>
11646 #include <stdlib.h>
11648 main ()
11651 FILE *f = fopen ("conftest.val", "w");
11652 if (! f)
11653 exit (1);
11654 if (((long) (sizeof (off_t))) < 0)
11656 long i = longval ();
11657 if (i != ((long) (sizeof (off_t))))
11658 exit (1);
11659 fprintf (f, "%ld\n", i);
11661 else
11663 unsigned long i = ulongval ();
11664 if (i != ((long) (sizeof (off_t))))
11665 exit (1);
11666 fprintf (f, "%lu\n", i);
11668 exit (ferror (f) || fclose (f) != 0);
11671 return 0;
11673 _ACEOF
11674 rm -f conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_cv_sizeof_off_t=`cat conftest.val`
11686 else
11687 echo "$as_me: program exited with status $ac_status" >&5
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ( exit $ac_status )
11692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11693 See \`config.log' for more details." >&5
11694 echo "$as_me: error: cannot compute sizeof (off_t), 77
11695 See \`config.log' for more details." >&2;}
11696 { (exit 1); exit 1; }; }
11698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11701 rm -f conftest.val
11702 else
11703 ac_cv_sizeof_off_t=0
11706 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11707 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11708 cat >>confdefs.h <<_ACEOF
11709 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11710 _ACEOF
11714 echo "$as_me:$LINENO: checking file_ptr type" >&5
11715 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11716 bfd_file_ptr="long"
11717 bfd_ufile_ptr="unsigned long"
11718 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11719 -o x"${ac_cv_sizeof_off_t}" = x8; then
11720 bfd_file_ptr=BFD_HOST_64_BIT
11721 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11723 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11724 echo "${ECHO_T}$bfd_file_ptr" >&6
11729 tdefaults=""
11730 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11731 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11732 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11733 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11734 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11739 for ac_header in stdlib.h unistd.h
11741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11743 echo "$as_me:$LINENO: checking for $ac_header" >&5
11744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11750 else
11751 # Is the header compilable?
11752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 #include <$ac_header>
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag"
11773 || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_header_compiler=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11794 echo "${ECHO_T}$ac_header_compiler" >&6
11796 # Is the header present?
11797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <$ac_header>
11806 _ACEOF
11807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } >/dev/null; then
11815 if test -s conftest.err; then
11816 ac_cpp_err=$ac_c_preproc_warn_flag
11817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11818 else
11819 ac_cpp_err=
11821 else
11822 ac_cpp_err=yes
11824 if test -z "$ac_cpp_err"; then
11825 ac_header_preproc=yes
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 ac_header_preproc=no
11832 rm -f conftest.err conftest.$ac_ext
11833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11838 yes:no: )
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc=yes
11845 no:yes:* )
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11859 cat <<\_ASBOX
11860 ## ------------------------------------------ ##
11861 ## Report this to the AC_PACKAGE_NAME lists. ##
11862 ## ------------------------------------------ ##
11863 _ASBOX
11865 sed "s/^/$as_me: WARNING: /" >&2
11867 esac
11868 echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 eval "$as_ac_Header=\$ac_header_preproc"
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11886 done
11889 for ac_func in getpagesize
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11894 if eval "test \"\${$as_ac_var+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905 #define $ac_func innocuous_$ac_func
11907 /* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11912 #ifdef __STDC__
11913 # include <limits.h>
11914 #else
11915 # include <assert.h>
11916 #endif
11918 #undef $ac_func
11920 /* Override any gcc2 internal prototype to avoid an error. */
11921 #ifdef __cplusplus
11922 extern "C"
11924 #endif
11925 /* We use char because int might match the return type of a gcc2
11926 builtin and then its argument prototype would still apply. */
11927 char $ac_func ();
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11932 choke me
11933 #else
11934 char (*f) () = $ac_func;
11935 #endif
11936 #ifdef __cplusplus
11938 #endif
11941 main ()
11943 return f != $ac_func;
11945 return 0;
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950 (eval $ac_link) 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 eval "$as_ac_var=yes"
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 eval "$as_ac_var=no"
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 _ACEOF
11988 done
11990 echo "$as_me:$LINENO: checking for working mmap" >&5
11991 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11992 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995 if test "$cross_compiling" = yes; then
11996 ac_cv_func_mmap_fixed_mapped=no
11997 else
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 /* malloc might have been renamed as rpl_malloc. */
12006 #undef malloc
12008 /* Thanks to Mike Haertel and Jim Avera for this test.
12009 Here is a matrix of mmap possibilities:
12010 mmap private not fixed
12011 mmap private fixed at somewhere currently unmapped
12012 mmap private fixed at somewhere already mapped
12013 mmap shared not fixed
12014 mmap shared fixed at somewhere currently unmapped
12015 mmap shared fixed at somewhere already mapped
12016 For private mappings, we should verify that changes cannot be read()
12017 back from the file, nor mmap's back from the file at a different
12018 address. (There have been systems where private was not correctly
12019 implemented like the infamous i386 svr4.0, and systems where the
12020 VM page cache was not coherent with the file system buffer cache
12021 like early versions of FreeBSD and possibly contemporary NetBSD.)
12022 For shared mappings, we should conversely verify that changes get
12023 propagated back to all the places they're supposed to be.
12025 Grep wants private fixed already mapped.
12026 The main things grep needs to know about mmap are:
12027 * does it exist and is it safe to write into the mmap'd area
12028 * how to use it (BSD variants) */
12030 #include <fcntl.h>
12031 #include <sys/mman.h>
12033 #if !STDC_HEADERS && !HAVE_STDLIB_H
12034 char *malloc ();
12035 #endif
12037 /* This mess was copied from the GNU getpagesize.h. */
12038 #if !HAVE_GETPAGESIZE
12039 /* Assume that all systems that can run configure have sys/param.h. */
12040 # if !HAVE_SYS_PARAM_H
12041 # define HAVE_SYS_PARAM_H 1
12042 # endif
12044 # ifdef _SC_PAGESIZE
12045 # define getpagesize() sysconf(_SC_PAGESIZE)
12046 # else /* no _SC_PAGESIZE */
12047 # if HAVE_SYS_PARAM_H
12048 # include <sys/param.h>
12049 # ifdef EXEC_PAGESIZE
12050 # define getpagesize() EXEC_PAGESIZE
12051 # else /* no EXEC_PAGESIZE */
12052 # ifdef NBPG
12053 # define getpagesize() NBPG * CLSIZE
12054 # ifndef CLSIZE
12055 # define CLSIZE 1
12056 # endif /* no CLSIZE */
12057 # else /* no NBPG */
12058 # ifdef NBPC
12059 # define getpagesize() NBPC
12060 # else /* no NBPC */
12061 # ifdef PAGESIZE
12062 # define getpagesize() PAGESIZE
12063 # endif /* PAGESIZE */
12064 # endif /* no NBPC */
12065 # endif /* no NBPG */
12066 # endif /* no EXEC_PAGESIZE */
12067 # else /* no HAVE_SYS_PARAM_H */
12068 # define getpagesize() 8192 /* punt totally */
12069 # endif /* no HAVE_SYS_PARAM_H */
12070 # endif /* no _SC_PAGESIZE */
12072 #endif /* no HAVE_GETPAGESIZE */
12075 main ()
12077 char *data, *data2, *data3;
12078 int i, pagesize;
12079 int fd;
12081 pagesize = getpagesize ();
12083 /* First, make a file with some known garbage in it. */
12084 data = (char *) malloc (pagesize);
12085 if (!data)
12086 exit (1);
12087 for (i = 0; i < pagesize; ++i)
12088 *(data + i) = rand ();
12089 umask (0);
12090 fd = creat ("conftest.mmap", 0600);
12091 if (fd < 0)
12092 exit (1);
12093 if (write (fd, data, pagesize) != pagesize)
12094 exit (1);
12095 close (fd);
12097 /* Next, try to mmap the file at a fixed address which already has
12098 something else allocated at it. If we can, also make sure that
12099 we see the same garbage. */
12100 fd = open ("conftest.mmap", O_RDWR);
12101 if (fd < 0)
12102 exit (1);
12103 data2 = (char *) malloc (2 * pagesize);
12104 if (!data2)
12105 exit (1);
12106 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12107 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12108 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12109 exit (1);
12110 for (i = 0; i < pagesize; ++i)
12111 if (*(data + i) != *(data2 + i))
12112 exit (1);
12114 /* Finally, make sure that changes to the mapped area do not
12115 percolate back to the file as seen by read(). (This is a bug on
12116 some variants of i386 svr4.0.) */
12117 for (i = 0; i < pagesize; ++i)
12118 *(data2 + i) = *(data2 + i) + 1;
12119 data3 = (char *) malloc (pagesize);
12120 if (!data3)
12121 exit (1);
12122 if (read (fd, data3, pagesize) != pagesize)
12123 exit (1);
12124 for (i = 0; i < pagesize; ++i)
12125 if (*(data + i) != *(data3 + i))
12126 exit (1);
12127 close (fd);
12128 exit (0);
12130 _ACEOF
12131 rm -f conftest$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_cv_func_mmap_fixed_mapped=yes
12143 else
12144 echo "$as_me: program exited with status $ac_status" >&5
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ( exit $ac_status )
12149 ac_cv_func_mmap_fixed_mapped=no
12151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12154 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12155 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12156 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12158 cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_MMAP 1
12160 _ACEOF
12163 rm -f conftest.mmap
12167 for ac_func in madvise mprotect
12169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12170 echo "$as_me:$LINENO: checking for $ac_func" >&5
12171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12172 if eval "test \"\${$as_ac_var+set}\" = set"; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12183 #define $ac_func innocuous_$ac_func
12185 /* System header to define __stub macros and hopefully few prototypes,
12186 which can conflict with char $ac_func (); below.
12187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12188 <limits.h> exists even on freestanding compilers. */
12190 #ifdef __STDC__
12191 # include <limits.h>
12192 #else
12193 # include <assert.h>
12194 #endif
12196 #undef $ac_func
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 #ifdef __cplusplus
12200 extern "C"
12202 #endif
12203 /* We use char because int might match the return type of a gcc2
12204 builtin and then its argument prototype would still apply. */
12205 char $ac_func ();
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210 choke me
12211 #else
12212 char (*f) () = $ac_func;
12213 #endif
12214 #ifdef __cplusplus
12216 #endif
12219 main ()
12221 return f != $ac_func;
12223 return 0;
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 eval "$as_ac_var=no"
12255 rm -f conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12260 if test `eval echo '${'$as_ac_var'}'` = yes; then
12261 cat >>confdefs.h <<_ACEOF
12262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263 _ACEOF
12266 done
12268 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12269 true+yes )
12270 cat >>confdefs.h <<\_ACEOF
12271 #define USE_MMAP 1
12272 _ACEOF
12274 esac
12276 rm -f doc/config.status
12277 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12280 ac_config_commands="$ac_config_commands default"
12287 cat >confcache <<\_ACEOF
12288 # This file is a shell script that caches the results of configure
12289 # tests run on this system so they can be shared between configure
12290 # scripts and configure runs, see configure's option --config-cache.
12291 # It is not useful on other systems. If it contains results you don't
12292 # want to keep, you may remove or edit it.
12294 # config.status only pays attention to the cache file if you give it
12295 # the --recheck option to rerun configure.
12297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12299 # following values.
12301 _ACEOF
12303 # The following way of writing the cache mishandles newlines in values,
12304 # but we know of no workaround that is simple, portable, and efficient.
12305 # So, don't put newlines in cache variables' values.
12306 # Ultrix sh set writes to stderr and can't be redirected directly,
12307 # and sets the high bit in the cache file unless we assign to the vars.
12309 (set) 2>&1 |
12310 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12311 *ac_space=\ *)
12312 # `set' does not quote correctly, so add quotes (double-quote
12313 # substitution turns \\\\ into \\, and sed turns \\ into \).
12314 sed -n \
12315 "s/'/'\\\\''/g;
12316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12319 # `set' quotes correctly as required by POSIX, so do not add quotes.
12320 sed -n \
12321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12323 esac;
12325 sed '
12326 t clear
12327 : clear
12328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12329 t end
12330 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12331 : end' >>confcache
12332 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12333 if test -w $cache_file; then
12334 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12335 cat confcache >$cache_file
12336 else
12337 echo "not updating unwritable cache $cache_file"
12340 rm -f confcache
12342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12343 # Let make expand exec_prefix.
12344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12346 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12347 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12348 # trailing colons and then remove the whole line if VPATH becomes empty
12349 # (actually we leave an empty line to preserve line numbers).
12350 if test "x$srcdir" = x.; then
12351 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12352 s/:*\$(srcdir):*/:/;
12353 s/:*\${srcdir}:*/:/;
12354 s/:*@srcdir@:*/:/;
12355 s/^\([^=]*=[ ]*\):*/\1/;
12356 s/:*$//;
12357 s/^[^=]*=[ ]*$//;
12361 DEFS=-DHAVE_CONFIG_H
12363 ac_libobjs=
12364 ac_ltlibobjs=
12365 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12366 # 1. Remove the extension, and $U if already installed.
12367 ac_i=`echo "$ac_i" |
12368 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12369 # 2. Add them.
12370 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12371 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12372 done
12373 LIBOBJS=$ac_libobjs
12375 LTLIBOBJS=$ac_ltlibobjs
12378 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12379 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12380 Usually this means the macro was only invoked conditionally." >&5
12381 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12382 Usually this means the macro was only invoked conditionally." >&2;}
12383 { (exit 1); exit 1; }; }
12385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12386 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12387 Usually this means the macro was only invoked conditionally." >&5
12388 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12389 Usually this means the macro was only invoked conditionally." >&2;}
12390 { (exit 1); exit 1; }; }
12392 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12393 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12394 Usually this means the macro was only invoked conditionally." >&5
12395 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12396 Usually this means the macro was only invoked conditionally." >&2;}
12397 { (exit 1); exit 1; }; }
12399 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12400 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12401 Usually this means the macro was only invoked conditionally." >&5
12402 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12403 Usually this means the macro was only invoked conditionally." >&2;}
12404 { (exit 1); exit 1; }; }
12406 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12407 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12408 Usually this means the macro was only invoked conditionally." >&5
12409 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&2;}
12411 { (exit 1); exit 1; }; }
12414 : ${CONFIG_STATUS=./config.status}
12415 ac_clean_files_save=$ac_clean_files
12416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12417 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12418 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12419 cat >$CONFIG_STATUS <<_ACEOF
12420 #! $SHELL
12421 # Generated by $as_me.
12422 # Run this file to recreate the current configuration.
12423 # Compiler output produced by configure, useful for debugging
12424 # configure, is in config.log if it exists.
12426 debug=false
12427 ac_cs_recheck=false
12428 ac_cs_silent=false
12429 SHELL=\${CONFIG_SHELL-$SHELL}
12430 _ACEOF
12432 cat >>$CONFIG_STATUS <<\_ACEOF
12433 ## --------------------- ##
12434 ## M4sh Initialization. ##
12435 ## --------------------- ##
12437 # Be Bourne compatible
12438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12439 emulate sh
12440 NULLCMD=:
12441 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12442 # is contrary to our usage. Disable this feature.
12443 alias -g '${1+"$@"}'='"$@"'
12444 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12445 set -o posix
12447 DUALCASE=1; export DUALCASE # for MKS sh
12449 # Support unset when possible.
12450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12451 as_unset=unset
12452 else
12453 as_unset=false
12457 # Work around bugs in pre-3.0 UWIN ksh.
12458 $as_unset ENV MAIL MAILPATH
12459 PS1='$ '
12460 PS2='> '
12461 PS4='+ '
12463 # NLS nuisances.
12464 for as_var in \
12465 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12466 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12467 LC_TELEPHONE LC_TIME
12469 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12470 eval $as_var=C; export $as_var
12471 else
12472 $as_unset $as_var
12474 done
12476 # Required to use basename.
12477 if expr a : '\(a\)' >/dev/null 2>&1; then
12478 as_expr=expr
12479 else
12480 as_expr=false
12483 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12484 as_basename=basename
12485 else
12486 as_basename=false
12490 # Name of the executable.
12491 as_me=`$as_basename "$0" ||
12492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12493 X"$0" : 'X\(//\)$' \| \
12494 X"$0" : 'X\(/\)$' \| \
12495 . : '\(.\)' 2>/dev/null ||
12496 echo X/"$0" |
12497 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12498 /^X\/\(\/\/\)$/{ s//\1/; q; }
12499 /^X\/\(\/\).*/{ s//\1/; q; }
12500 s/.*/./; q'`
12503 # PATH needs CR, and LINENO needs CR and PATH.
12504 # Avoid depending upon Character Ranges.
12505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12508 as_cr_digits='0123456789'
12509 as_cr_alnum=$as_cr_Letters$as_cr_digits
12511 # The user is always right.
12512 if test "${PATH_SEPARATOR+set}" != set; then
12513 echo "#! /bin/sh" >conf$$.sh
12514 echo "exit 0" >>conf$$.sh
12515 chmod +x conf$$.sh
12516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12517 PATH_SEPARATOR=';'
12518 else
12519 PATH_SEPARATOR=:
12521 rm -f conf$$.sh
12525 as_lineno_1=$LINENO
12526 as_lineno_2=$LINENO
12527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12528 test "x$as_lineno_1" != "x$as_lineno_2" &&
12529 test "x$as_lineno_3" = "x$as_lineno_2" || {
12530 # Find who we are. Look in the path if we contain no path at all
12531 # relative or not.
12532 case $0 in
12533 *[\\/]* ) as_myself=$0 ;;
12534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12540 done
12543 esac
12544 # We did not find ourselves, most probably we were run as `sh COMMAND'
12545 # in which case we are not to be found in the path.
12546 if test "x$as_myself" = x; then
12547 as_myself=$0
12549 if test ! -f "$as_myself"; then
12550 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12551 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12552 { (exit 1); exit 1; }; }
12554 case $CONFIG_SHELL in
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for as_base in sh bash ksh sh5; do
12562 case $as_dir in
12564 if ("$as_dir/$as_base" -c '
12565 as_lineno_1=$LINENO
12566 as_lineno_2=$LINENO
12567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12568 test "x$as_lineno_1" != "x$as_lineno_2" &&
12569 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12570 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12571 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12572 CONFIG_SHELL=$as_dir/$as_base
12573 export CONFIG_SHELL
12574 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12575 fi;;
12576 esac
12577 done
12578 done
12580 esac
12582 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12583 # uniformly replaced by the line number. The first 'sed' inserts a
12584 # line-number line before each line; the second 'sed' does the real
12585 # work. The second script uses 'N' to pair each line-number line
12586 # with the numbered line, and appends trailing '-' during
12587 # substitution so that $LINENO is not a special case at line end.
12588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12589 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12590 sed '=' <$as_myself |
12591 sed '
12593 s,$,-,
12594 : loop
12595 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12596 t loop
12597 s,-$,,
12598 s,^['$as_cr_digits']*\n,,
12599 ' >$as_me.lineno &&
12600 chmod +x $as_me.lineno ||
12601 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12602 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12603 { (exit 1); exit 1; }; }
12605 # Don't try to exec as it changes $[0], causing all sort of problems
12606 # (the dirname of $[0] is not the place where we might find the
12607 # original and so on. Autoconf is especially sensible to this).
12608 . ./$as_me.lineno
12609 # Exit status is that of the last command.
12610 exit
12614 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12615 *c*,-n*) ECHO_N= ECHO_C='
12616 ' ECHO_T=' ' ;;
12617 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12618 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12619 esac
12621 if expr a : '\(a\)' >/dev/null 2>&1; then
12622 as_expr=expr
12623 else
12624 as_expr=false
12627 rm -f conf$$ conf$$.exe conf$$.file
12628 echo >conf$$.file
12629 if ln -s conf$$.file conf$$ 2>/dev/null; then
12630 # We could just check for DJGPP; but this test a) works b) is more generic
12631 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12632 if test -f conf$$.exe; then
12633 # Don't use ln at all; we don't have any links
12634 as_ln_s='cp -p'
12635 else
12636 as_ln_s='ln -s'
12638 elif ln conf$$.file conf$$ 2>/dev/null; then
12639 as_ln_s=ln
12640 else
12641 as_ln_s='cp -p'
12643 rm -f conf$$ conf$$.exe conf$$.file
12645 if mkdir -p . 2>/dev/null; then
12646 as_mkdir_p=:
12647 else
12648 test -d ./-p && rmdir ./-p
12649 as_mkdir_p=false
12652 as_executable_p="test -f"
12654 # Sed expression to map a string onto a valid CPP name.
12655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12657 # Sed expression to map a string onto a valid variable name.
12658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12661 # IFS
12662 # We need space, tab and new line, in precisely that order.
12663 as_nl='
12665 IFS=" $as_nl"
12667 # CDPATH.
12668 $as_unset CDPATH
12670 exec 6>&1
12672 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12673 # report actual input values of CONFIG_FILES etc. instead of their
12674 # values after options handling. Logging --version etc. is OK.
12675 exec 5>>config.log
12677 echo
12678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12679 ## Running $as_me. ##
12680 _ASBOX
12681 } >&5
12682 cat >&5 <<_CSEOF
12684 This file was extended by $as_me, which was
12685 generated by GNU Autoconf 2.59. Invocation command line was
12687 CONFIG_FILES = $CONFIG_FILES
12688 CONFIG_HEADERS = $CONFIG_HEADERS
12689 CONFIG_LINKS = $CONFIG_LINKS
12690 CONFIG_COMMANDS = $CONFIG_COMMANDS
12691 $ $0 $@
12693 _CSEOF
12694 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12695 echo >&5
12696 _ACEOF
12698 # Files that config.status was made for.
12699 if test -n "$ac_config_files"; then
12700 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12703 if test -n "$ac_config_headers"; then
12704 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12707 if test -n "$ac_config_links"; then
12708 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12711 if test -n "$ac_config_commands"; then
12712 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12715 cat >>$CONFIG_STATUS <<\_ACEOF
12717 ac_cs_usage="\
12718 \`$as_me' instantiates files from templates according to the
12719 current configuration.
12721 Usage: $0 [OPTIONS] [FILE]...
12723 -h, --help print this help, then exit
12724 -V, --version print version number, then exit
12725 -q, --quiet do not print progress messages
12726 -d, --debug don't remove temporary files
12727 --recheck update $as_me by reconfiguring in the same conditions
12728 --file=FILE[:TEMPLATE]
12729 instantiate the configuration file FILE
12730 --header=FILE[:TEMPLATE]
12731 instantiate the configuration header FILE
12733 Configuration files:
12734 $config_files
12736 Configuration headers:
12737 $config_headers
12739 Configuration commands:
12740 $config_commands
12742 Report bugs to <bug-autoconf@gnu.org>."
12743 _ACEOF
12745 cat >>$CONFIG_STATUS <<_ACEOF
12746 ac_cs_version="\\
12747 config.status
12748 configured by $0, generated by GNU Autoconf 2.59,
12749 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12751 Copyright (C) 2003 Free Software Foundation, Inc.
12752 This config.status script is free software; the Free Software Foundation
12753 gives unlimited permission to copy, distribute and modify it."
12754 srcdir=$srcdir
12755 INSTALL="$INSTALL"
12756 _ACEOF
12758 cat >>$CONFIG_STATUS <<\_ACEOF
12759 # If no file are specified by the user, then we need to provide default
12760 # value. By we need to know if files were specified by the user.
12761 ac_need_defaults=:
12762 while test $# != 0
12764 case $1 in
12765 --*=*)
12766 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12767 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12768 ac_shift=:
12771 ac_option=$1
12772 ac_optarg=$2
12773 ac_shift=shift
12775 *) # This is not an option, so the user has probably given explicit
12776 # arguments.
12777 ac_option=$1
12778 ac_need_defaults=false;;
12779 esac
12781 case $ac_option in
12782 # Handling of the options.
12783 _ACEOF
12784 cat >>$CONFIG_STATUS <<\_ACEOF
12785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12786 ac_cs_recheck=: ;;
12787 --version | --vers* | -V )
12788 echo "$ac_cs_version"; exit 0 ;;
12789 --he | --h)
12790 # Conflict between --help and --header
12791 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12792 Try \`$0 --help' for more information." >&5
12793 echo "$as_me: error: ambiguous option: $1
12794 Try \`$0 --help' for more information." >&2;}
12795 { (exit 1); exit 1; }; };;
12796 --help | --hel | -h )
12797 echo "$ac_cs_usage"; exit 0 ;;
12798 --debug | --d* | -d )
12799 debug=: ;;
12800 --file | --fil | --fi | --f )
12801 $ac_shift
12802 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12803 ac_need_defaults=false;;
12804 --header | --heade | --head | --hea )
12805 $ac_shift
12806 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12807 ac_need_defaults=false;;
12808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12809 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12810 ac_cs_silent=: ;;
12812 # This is an error.
12813 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12814 Try \`$0 --help' for more information." >&5
12815 echo "$as_me: error: unrecognized option: $1
12816 Try \`$0 --help' for more information." >&2;}
12817 { (exit 1); exit 1; }; } ;;
12819 *) ac_config_targets="$ac_config_targets $1" ;;
12821 esac
12822 shift
12823 done
12825 ac_configure_extra_args=
12827 if $ac_cs_silent; then
12828 exec 6>/dev/null
12829 ac_configure_extra_args="$ac_configure_extra_args --silent"
12832 _ACEOF
12833 cat >>$CONFIG_STATUS <<_ACEOF
12834 if \$ac_cs_recheck; then
12835 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12836 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12839 _ACEOF
12841 cat >>$CONFIG_STATUS <<_ACEOF
12843 # INIT-COMMANDS section.
12846 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12847 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12848 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12849 # from automake.
12850 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12851 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12852 LINGUAS="${LINGUAS-%UNSET%}"
12856 _ACEOF
12860 cat >>$CONFIG_STATUS <<\_ACEOF
12861 for ac_config_target in $ac_config_targets
12863 case "$ac_config_target" in
12864 # Handling of arguments.
12865 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12866 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12867 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12868 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12869 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12870 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12871 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12872 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12873 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12874 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12875 { (exit 1); exit 1; }; };;
12876 esac
12877 done
12879 # If the user did not use the arguments to specify the items to instantiate,
12880 # then the envvar interface is used. Set only those that are not.
12881 # We use the long form for the default assignment because of an extremely
12882 # bizarre bug on SunOS 4.1.3.
12883 if $ac_need_defaults; then
12884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12889 # Have a temporary directory for convenience. Make it in the build tree
12890 # simply because there is no reason to put it here, and in addition,
12891 # creating and moving files from /tmp can sometimes cause problems.
12892 # Create a temporary directory, and hook for its removal unless debugging.
12893 $debug ||
12895 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12896 trap '{ (exit 1); exit 1; }' 1 2 13 15
12899 # Create a (secure) tmp directory for tmp files.
12902 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12903 test -n "$tmp" && test -d "$tmp"
12904 } ||
12906 tmp=./confstat$$-$RANDOM
12907 (umask 077 && mkdir $tmp)
12908 } ||
12910 echo "$me: cannot create a temporary directory in ." >&2
12911 { (exit 1); exit 1; }
12914 _ACEOF
12916 cat >>$CONFIG_STATUS <<_ACEOF
12919 # CONFIG_FILES section.
12922 # No need to generate the scripts if there are no CONFIG_FILES.
12923 # This happens for instance when ./config.status config.h
12924 if test -n "\$CONFIG_FILES"; then
12925 # Protect against being on the right side of a sed subst in config.status.
12926 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12927 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12928 s,@SHELL@,$SHELL,;t t
12929 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12930 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12931 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12932 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12933 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12934 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12935 s,@exec_prefix@,$exec_prefix,;t t
12936 s,@prefix@,$prefix,;t t
12937 s,@program_transform_name@,$program_transform_name,;t t
12938 s,@bindir@,$bindir,;t t
12939 s,@sbindir@,$sbindir,;t t
12940 s,@libexecdir@,$libexecdir,;t t
12941 s,@datadir@,$datadir,;t t
12942 s,@sysconfdir@,$sysconfdir,;t t
12943 s,@sharedstatedir@,$sharedstatedir,;t t
12944 s,@localstatedir@,$localstatedir,;t t
12945 s,@libdir@,$libdir,;t t
12946 s,@includedir@,$includedir,;t t
12947 s,@oldincludedir@,$oldincludedir,;t t
12948 s,@infodir@,$infodir,;t t
12949 s,@mandir@,$mandir,;t t
12950 s,@build_alias@,$build_alias,;t t
12951 s,@host_alias@,$host_alias,;t t
12952 s,@target_alias@,$target_alias,;t t
12953 s,@DEFS@,$DEFS,;t t
12954 s,@ECHO_C@,$ECHO_C,;t t
12955 s,@ECHO_N@,$ECHO_N,;t t
12956 s,@ECHO_T@,$ECHO_T,;t t
12957 s,@LIBS@,$LIBS,;t t
12958 s,@build@,$build,;t t
12959 s,@build_cpu@,$build_cpu,;t t
12960 s,@build_vendor@,$build_vendor,;t t
12961 s,@build_os@,$build_os,;t t
12962 s,@host@,$host,;t t
12963 s,@host_cpu@,$host_cpu,;t t
12964 s,@host_vendor@,$host_vendor,;t t
12965 s,@host_os@,$host_os,;t t
12966 s,@target@,$target,;t t
12967 s,@target_cpu@,$target_cpu,;t t
12968 s,@target_vendor@,$target_vendor,;t t
12969 s,@target_os@,$target_os,;t t
12970 s,@CC@,$CC,;t t
12971 s,@CFLAGS@,$CFLAGS,;t t
12972 s,@LDFLAGS@,$LDFLAGS,;t t
12973 s,@CPPFLAGS@,$CPPFLAGS,;t t
12974 s,@ac_ct_CC@,$ac_ct_CC,;t t
12975 s,@EXEEXT@,$EXEEXT,;t t
12976 s,@OBJEXT@,$OBJEXT,;t t
12977 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12978 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12979 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12980 s,@CYGPATH_W@,$CYGPATH_W,;t t
12981 s,@PACKAGE@,$PACKAGE,;t t
12982 s,@VERSION@,$VERSION,;t t
12983 s,@ACLOCAL@,$ACLOCAL,;t t
12984 s,@AUTOCONF@,$AUTOCONF,;t t
12985 s,@AUTOMAKE@,$AUTOMAKE,;t t
12986 s,@AUTOHEADER@,$AUTOHEADER,;t t
12987 s,@MAKEINFO@,$MAKEINFO,;t t
12988 s,@install_sh@,$install_sh,;t t
12989 s,@STRIP@,$STRIP,;t t
12990 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12991 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12992 s,@mkdir_p@,$mkdir_p,;t t
12993 s,@AWK@,$AWK,;t t
12994 s,@SET_MAKE@,$SET_MAKE,;t t
12995 s,@am__leading_dot@,$am__leading_dot,;t t
12996 s,@AMTAR@,$AMTAR,;t t
12997 s,@am__tar@,$am__tar,;t t
12998 s,@am__untar@,$am__untar,;t t
12999 s,@DEPDIR@,$DEPDIR,;t t
13000 s,@am__include@,$am__include,;t t
13001 s,@am__quote@,$am__quote,;t t
13002 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13003 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13004 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13005 s,@CCDEPMODE@,$CCDEPMODE,;t t
13006 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13007 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13008 s,@AR@,$AR,;t t
13009 s,@ac_ct_AR@,$ac_ct_AR,;t t
13010 s,@RANLIB@,$RANLIB,;t t
13011 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13012 s,@LN_S@,$LN_S,;t t
13013 s,@LIBTOOL@,$LIBTOOL,;t t
13014 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13015 s,@NO_WERROR@,$NO_WERROR,;t t
13016 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13017 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13018 s,@MAINT@,$MAINT,;t t
13019 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13020 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13021 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13022 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13023 s,@host_noncanonical@,$host_noncanonical,;t t
13024 s,@target_noncanonical@,$target_noncanonical,;t t
13025 s,@bfdlibdir@,$bfdlibdir,;t t
13026 s,@bfdincludedir@,$bfdincludedir,;t t
13027 s,@USE_NLS@,$USE_NLS,;t t
13028 s,@LIBINTL@,$LIBINTL,;t t
13029 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13030 s,@INCINTL@,$INCINTL,;t t
13031 s,@XGETTEXT@,$XGETTEXT,;t t
13032 s,@GMSGFMT@,$GMSGFMT,;t t
13033 s,@POSUB@,$POSUB,;t t
13034 s,@CATALOGS@,$CATALOGS,;t t
13035 s,@DATADIRNAME@,$DATADIRNAME,;t t
13036 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13037 s,@GENCAT@,$GENCAT,;t t
13038 s,@CATOBJEXT@,$CATOBJEXT,;t t
13039 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13040 s,@MSGFMT@,$MSGFMT,;t t
13041 s,@MSGMERGE@,$MSGMERGE,;t t
13042 s,@HDEFINES@,$HDEFINES,;t t
13043 s,@CPP@,$CPP,;t t
13044 s,@EGREP@,$EGREP,;t t
13045 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13046 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13047 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13048 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13049 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13050 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13051 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13052 s,@COREFILE@,$COREFILE,;t t
13053 s,@COREFLAG@,$COREFLAG,;t t
13054 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13055 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13056 s,@TDEFINES@,$TDEFINES,;t t
13057 s,@wordsize@,$wordsize,;t t
13058 s,@bfd_libs@,$bfd_libs,;t t
13059 s,@all_backends@,$all_backends,;t t
13060 s,@bfd_backends@,$bfd_backends,;t t
13061 s,@bfd_machines@,$bfd_machines,;t t
13062 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13063 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13064 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13065 s,@tdefaults@,$tdefaults,;t t
13066 s,@datarootdir@,$datarootdir,;t t
13067 s,@docdir@,$docdir,;t t
13068 s,@htmldir@,$htmldir,;t t
13069 s,@LIBOBJS@,$LIBOBJS,;t t
13070 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13071 CEOF
13073 _ACEOF
13075 cat >>$CONFIG_STATUS <<\_ACEOF
13076 # Split the substitutions into bite-sized pieces for seds with
13077 # small command number limits, like on Digital OSF/1 and HP-UX.
13078 ac_max_sed_lines=48
13079 ac_sed_frag=1 # Number of current file.
13080 ac_beg=1 # First line for current file.
13081 ac_end=$ac_max_sed_lines # Line after last line for current file.
13082 ac_more_lines=:
13083 ac_sed_cmds=
13084 while $ac_more_lines; do
13085 if test $ac_beg -gt 1; then
13086 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13087 else
13088 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13090 if test ! -s $tmp/subs.frag; then
13091 ac_more_lines=false
13092 else
13093 # The purpose of the label and of the branching condition is to
13094 # speed up the sed processing (if there are no `@' at all, there
13095 # is no need to browse any of the substitutions).
13096 # These are the two extra sed commands mentioned above.
13097 (echo ':t
13098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13099 if test -z "$ac_sed_cmds"; then
13100 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13101 else
13102 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13104 ac_sed_frag=`expr $ac_sed_frag + 1`
13105 ac_beg=$ac_end
13106 ac_end=`expr $ac_end + $ac_max_sed_lines`
13108 done
13109 if test -z "$ac_sed_cmds"; then
13110 ac_sed_cmds=cat
13112 fi # test -n "$CONFIG_FILES"
13114 _ACEOF
13115 cat >>$CONFIG_STATUS <<\_ACEOF
13116 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13118 case $ac_file in
13119 - | *:- | *:-:* ) # input from stdin
13120 cat >$tmp/stdin
13121 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13123 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13125 * ) ac_file_in=$ac_file.in ;;
13126 esac
13128 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13129 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13131 X"$ac_file" : 'X\(//\)[^/]' \| \
13132 X"$ac_file" : 'X\(//\)$' \| \
13133 X"$ac_file" : 'X\(/\)' \| \
13134 . : '\(.\)' 2>/dev/null ||
13135 echo X"$ac_file" |
13136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13138 /^X\(\/\/\)$/{ s//\1/; q; }
13139 /^X\(\/\).*/{ s//\1/; q; }
13140 s/.*/./; q'`
13141 { if $as_mkdir_p; then
13142 mkdir -p "$ac_dir"
13143 else
13144 as_dir="$ac_dir"
13145 as_dirs=
13146 while test ! -d "$as_dir"; do
13147 as_dirs="$as_dir $as_dirs"
13148 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13150 X"$as_dir" : 'X\(//\)[^/]' \| \
13151 X"$as_dir" : 'X\(//\)$' \| \
13152 X"$as_dir" : 'X\(/\)' \| \
13153 . : '\(.\)' 2>/dev/null ||
13154 echo X"$as_dir" |
13155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13157 /^X\(\/\/\)$/{ s//\1/; q; }
13158 /^X\(\/\).*/{ s//\1/; q; }
13159 s/.*/./; q'`
13160 done
13161 test ! -n "$as_dirs" || mkdir $as_dirs
13162 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13163 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13164 { (exit 1); exit 1; }; }; }
13166 ac_builddir=.
13168 if test "$ac_dir" != .; then
13169 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13170 # A "../" for each directory in $ac_dir_suffix.
13171 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13172 else
13173 ac_dir_suffix= ac_top_builddir=
13176 case $srcdir in
13177 .) # No --srcdir option. We are building in place.
13178 ac_srcdir=.
13179 if test -z "$ac_top_builddir"; then
13180 ac_top_srcdir=.
13181 else
13182 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13183 fi ;;
13184 [\\/]* | ?:[\\/]* ) # Absolute path.
13185 ac_srcdir=$srcdir$ac_dir_suffix;
13186 ac_top_srcdir=$srcdir ;;
13187 *) # Relative path.
13188 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13189 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13190 esac
13192 # Do not use `cd foo && pwd` to compute absolute paths, because
13193 # the directories may not exist.
13194 case `pwd` in
13195 .) ac_abs_builddir="$ac_dir";;
13197 case "$ac_dir" in
13198 .) ac_abs_builddir=`pwd`;;
13199 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13200 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13201 esac;;
13202 esac
13203 case $ac_abs_builddir in
13204 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13206 case ${ac_top_builddir}. in
13207 .) ac_abs_top_builddir=$ac_abs_builddir;;
13208 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13209 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13210 esac;;
13211 esac
13212 case $ac_abs_builddir in
13213 .) ac_abs_srcdir=$ac_srcdir;;
13215 case $ac_srcdir in
13216 .) ac_abs_srcdir=$ac_abs_builddir;;
13217 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13218 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13219 esac;;
13220 esac
13221 case $ac_abs_builddir in
13222 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13224 case $ac_top_srcdir in
13225 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13226 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13227 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13228 esac;;
13229 esac
13232 case $INSTALL in
13233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13234 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13235 esac
13237 if test x"$ac_file" != x-; then
13238 { echo "$as_me:$LINENO: creating $ac_file" >&5
13239 echo "$as_me: creating $ac_file" >&6;}
13240 rm -f "$ac_file"
13242 # Let's still pretend it is `configure' which instantiates (i.e., don't
13243 # use $as_me), people would be surprised to read:
13244 # /* config.h. Generated by config.status. */
13245 if test x"$ac_file" = x-; then
13246 configure_input=
13247 else
13248 configure_input="$ac_file. "
13250 configure_input=$configure_input"Generated from `echo $ac_file_in |
13251 sed 's,.*/,,'` by configure."
13253 # First look for the input files in the build tree, otherwise in the
13254 # src tree.
13255 ac_file_inputs=`IFS=:
13256 for f in $ac_file_in; do
13257 case $f in
13258 -) echo $tmp/stdin ;;
13259 [\\/$]*)
13260 # Absolute (can't be DOS-style, as IFS=:)
13261 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13262 echo "$as_me: error: cannot find input file: $f" >&2;}
13263 { (exit 1); exit 1; }; }
13264 echo "$f";;
13265 *) # Relative
13266 if test -f "$f"; then
13267 # Build tree
13268 echo "$f"
13269 elif test -f "$srcdir/$f"; then
13270 # Source tree
13271 echo "$srcdir/$f"
13272 else
13273 # /dev/null tree
13274 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13275 echo "$as_me: error: cannot find input file: $f" >&2;}
13276 { (exit 1); exit 1; }; }
13277 fi;;
13278 esac
13279 done` || { (exit 1); exit 1; }
13280 _ACEOF
13281 cat >>$CONFIG_STATUS <<_ACEOF
13282 sed "$ac_vpsub
13283 $extrasub
13284 _ACEOF
13285 cat >>$CONFIG_STATUS <<\_ACEOF
13287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13288 s,@configure_input@,$configure_input,;t t
13289 s,@srcdir@,$ac_srcdir,;t t
13290 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13291 s,@top_srcdir@,$ac_top_srcdir,;t t
13292 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13293 s,@builddir@,$ac_builddir,;t t
13294 s,@abs_builddir@,$ac_abs_builddir,;t t
13295 s,@top_builddir@,$ac_top_builddir,;t t
13296 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13297 s,@INSTALL@,$ac_INSTALL,;t t
13298 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13299 rm -f $tmp/stdin
13300 if test x"$ac_file" != x-; then
13301 mv $tmp/out $ac_file
13302 else
13303 cat $tmp/out
13304 rm -f $tmp/out
13307 done
13308 _ACEOF
13309 cat >>$CONFIG_STATUS <<\_ACEOF
13312 # CONFIG_HEADER section.
13315 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13316 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13318 # ac_d sets the value in "#define NAME VALUE" lines.
13319 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13320 ac_dB='[ ].*$,\1#\2'
13321 ac_dC=' '
13322 ac_dD=',;t'
13323 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13324 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13325 ac_uB='$,\1#\2define\3'
13326 ac_uC=' '
13327 ac_uD=',;t'
13329 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13331 case $ac_file in
13332 - | *:- | *:-:* ) # input from stdin
13333 cat >$tmp/stdin
13334 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13336 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13338 * ) ac_file_in=$ac_file.in ;;
13339 esac
13341 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13342 echo "$as_me: creating $ac_file" >&6;}
13344 # First look for the input files in the build tree, otherwise in the
13345 # src tree.
13346 ac_file_inputs=`IFS=:
13347 for f in $ac_file_in; do
13348 case $f in
13349 -) echo $tmp/stdin ;;
13350 [\\/$]*)
13351 # Absolute (can't be DOS-style, as IFS=:)
13352 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13353 echo "$as_me: error: cannot find input file: $f" >&2;}
13354 { (exit 1); exit 1; }; }
13355 # Do quote $f, to prevent DOS paths from being IFS'd.
13356 echo "$f";;
13357 *) # Relative
13358 if test -f "$f"; then
13359 # Build tree
13360 echo "$f"
13361 elif test -f "$srcdir/$f"; then
13362 # Source tree
13363 echo "$srcdir/$f"
13364 else
13365 # /dev/null tree
13366 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13367 echo "$as_me: error: cannot find input file: $f" >&2;}
13368 { (exit 1); exit 1; }; }
13369 fi;;
13370 esac
13371 done` || { (exit 1); exit 1; }
13372 # Remove the trailing spaces.
13373 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13375 _ACEOF
13377 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13378 # `conftest.undefs', that substitutes the proper values into
13379 # config.h.in to produce config.h. The first handles `#define'
13380 # templates, and the second `#undef' templates.
13381 # And first: Protect against being on the right side of a sed subst in
13382 # config.status. Protect against being in an unquoted here document
13383 # in config.status.
13384 rm -f conftest.defines conftest.undefs
13385 # Using a here document instead of a string reduces the quoting nightmare.
13386 # Putting comments in sed scripts is not portable.
13388 # `end' is used to avoid that the second main sed command (meant for
13389 # 0-ary CPP macros) applies to n-ary macro definitions.
13390 # See the Autoconf documentation for `clear'.
13391 cat >confdef2sed.sed <<\_ACEOF
13392 s/[\\&,]/\\&/g
13393 s,[\\$`],\\&,g
13394 t clear
13395 : clear
13396 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13397 t end
13398 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13399 : end
13400 _ACEOF
13401 # If some macros were called several times there might be several times
13402 # the same #defines, which is useless. Nevertheless, we may not want to
13403 # sort them, since we want the *last* AC-DEFINE to be honored.
13404 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13405 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13406 rm -f confdef2sed.sed
13408 # This sed command replaces #undef with comments. This is necessary, for
13409 # example, in the case of _POSIX_SOURCE, which is predefined and required
13410 # on some systems where configure will not decide to define it.
13411 cat >>conftest.undefs <<\_ACEOF
13412 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13413 _ACEOF
13415 # Break up conftest.defines because some shells have a limit on the size
13416 # of here documents, and old seds have small limits too (100 cmds).
13417 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13418 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13419 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13420 echo ' :' >>$CONFIG_STATUS
13421 rm -f conftest.tail
13422 while grep . conftest.defines >/dev/null
13424 # Write a limited-size here document to $tmp/defines.sed.
13425 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13426 # Speed up: don't consider the non `#define' lines.
13427 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13428 # Work around the forget-to-reset-the-flag bug.
13429 echo 't clr' >>$CONFIG_STATUS
13430 echo ': clr' >>$CONFIG_STATUS
13431 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13432 echo 'CEOF
13433 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13434 rm -f $tmp/in
13435 mv $tmp/out $tmp/in
13436 ' >>$CONFIG_STATUS
13437 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13438 rm -f conftest.defines
13439 mv conftest.tail conftest.defines
13440 done
13441 rm -f conftest.defines
13442 echo ' fi # grep' >>$CONFIG_STATUS
13443 echo >>$CONFIG_STATUS
13445 # Break up conftest.undefs because some shells have a limit on the size
13446 # of here documents, and old seds have small limits too (100 cmds).
13447 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13448 rm -f conftest.tail
13449 while grep . conftest.undefs >/dev/null
13451 # Write a limited-size here document to $tmp/undefs.sed.
13452 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13453 # Speed up: don't consider the non `#undef'
13454 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13455 # Work around the forget-to-reset-the-flag bug.
13456 echo 't clr' >>$CONFIG_STATUS
13457 echo ': clr' >>$CONFIG_STATUS
13458 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13459 echo 'CEOF
13460 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13461 rm -f $tmp/in
13462 mv $tmp/out $tmp/in
13463 ' >>$CONFIG_STATUS
13464 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13465 rm -f conftest.undefs
13466 mv conftest.tail conftest.undefs
13467 done
13468 rm -f conftest.undefs
13470 cat >>$CONFIG_STATUS <<\_ACEOF
13471 # Let's still pretend it is `configure' which instantiates (i.e., don't
13472 # use $as_me), people would be surprised to read:
13473 # /* config.h. Generated by config.status. */
13474 if test x"$ac_file" = x-; then
13475 echo "/* Generated by configure. */" >$tmp/config.h
13476 else
13477 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13479 cat $tmp/in >>$tmp/config.h
13480 rm -f $tmp/in
13481 if test x"$ac_file" != x-; then
13482 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13483 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13484 echo "$as_me: $ac_file is unchanged" >&6;}
13485 else
13486 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13488 X"$ac_file" : 'X\(//\)[^/]' \| \
13489 X"$ac_file" : 'X\(//\)$' \| \
13490 X"$ac_file" : 'X\(/\)' \| \
13491 . : '\(.\)' 2>/dev/null ||
13492 echo X"$ac_file" |
13493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13495 /^X\(\/\/\)$/{ s//\1/; q; }
13496 /^X\(\/\).*/{ s//\1/; q; }
13497 s/.*/./; q'`
13498 { if $as_mkdir_p; then
13499 mkdir -p "$ac_dir"
13500 else
13501 as_dir="$ac_dir"
13502 as_dirs=
13503 while test ! -d "$as_dir"; do
13504 as_dirs="$as_dir $as_dirs"
13505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13507 X"$as_dir" : 'X\(//\)[^/]' \| \
13508 X"$as_dir" : 'X\(//\)$' \| \
13509 X"$as_dir" : 'X\(/\)' \| \
13510 . : '\(.\)' 2>/dev/null ||
13511 echo X"$as_dir" |
13512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13514 /^X\(\/\/\)$/{ s//\1/; q; }
13515 /^X\(\/\).*/{ s//\1/; q; }
13516 s/.*/./; q'`
13517 done
13518 test ! -n "$as_dirs" || mkdir $as_dirs
13519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13520 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13521 { (exit 1); exit 1; }; }; }
13523 rm -f $ac_file
13524 mv $tmp/config.h $ac_file
13526 else
13527 cat $tmp/config.h
13528 rm -f $tmp/config.h
13530 # Compute $ac_file's index in $config_headers.
13531 _am_stamp_count=1
13532 for _am_header in $config_headers :; do
13533 case $_am_header in
13534 $ac_file | $ac_file:* )
13535 break ;;
13537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13538 esac
13539 done
13540 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13541 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13542 X$ac_file : 'X\(//\)[^/]' \| \
13543 X$ac_file : 'X\(//\)$' \| \
13544 X$ac_file : 'X\(/\)' \| \
13545 . : '\(.\)' 2>/dev/null ||
13546 echo X$ac_file |
13547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13549 /^X\(\/\/\)$/{ s//\1/; q; }
13550 /^X\(\/\).*/{ s//\1/; q; }
13551 s/.*/./; q'`/stamp-h$_am_stamp_count
13552 done
13553 _ACEOF
13554 cat >>$CONFIG_STATUS <<\_ACEOF
13557 # CONFIG_COMMANDS section.
13559 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13560 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13561 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13562 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13563 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13564 X"$ac_dest" : 'X\(//\)[^/]' \| \
13565 X"$ac_dest" : 'X\(//\)$' \| \
13566 X"$ac_dest" : 'X\(/\)' \| \
13567 . : '\(.\)' 2>/dev/null ||
13568 echo X"$ac_dest" |
13569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13571 /^X\(\/\/\)$/{ s//\1/; q; }
13572 /^X\(\/\).*/{ s//\1/; q; }
13573 s/.*/./; q'`
13574 { if $as_mkdir_p; then
13575 mkdir -p "$ac_dir"
13576 else
13577 as_dir="$ac_dir"
13578 as_dirs=
13579 while test ! -d "$as_dir"; do
13580 as_dirs="$as_dir $as_dirs"
13581 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13583 X"$as_dir" : 'X\(//\)[^/]' \| \
13584 X"$as_dir" : 'X\(//\)$' \| \
13585 X"$as_dir" : 'X\(/\)' \| \
13586 . : '\(.\)' 2>/dev/null ||
13587 echo X"$as_dir" |
13588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13590 /^X\(\/\/\)$/{ s//\1/; q; }
13591 /^X\(\/\).*/{ s//\1/; q; }
13592 s/.*/./; q'`
13593 done
13594 test ! -n "$as_dirs" || mkdir $as_dirs
13595 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13597 { (exit 1); exit 1; }; }; }
13599 ac_builddir=.
13601 if test "$ac_dir" != .; then
13602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13603 # A "../" for each directory in $ac_dir_suffix.
13604 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13605 else
13606 ac_dir_suffix= ac_top_builddir=
13609 case $srcdir in
13610 .) # No --srcdir option. We are building in place.
13611 ac_srcdir=.
13612 if test -z "$ac_top_builddir"; then
13613 ac_top_srcdir=.
13614 else
13615 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13616 fi ;;
13617 [\\/]* | ?:[\\/]* ) # Absolute path.
13618 ac_srcdir=$srcdir$ac_dir_suffix;
13619 ac_top_srcdir=$srcdir ;;
13620 *) # Relative path.
13621 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13622 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13623 esac
13625 # Do not use `cd foo && pwd` to compute absolute paths, because
13626 # the directories may not exist.
13627 case `pwd` in
13628 .) ac_abs_builddir="$ac_dir";;
13630 case "$ac_dir" in
13631 .) ac_abs_builddir=`pwd`;;
13632 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13633 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13634 esac;;
13635 esac
13636 case $ac_abs_builddir in
13637 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13639 case ${ac_top_builddir}. in
13640 .) ac_abs_top_builddir=$ac_abs_builddir;;
13641 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13642 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13643 esac;;
13644 esac
13645 case $ac_abs_builddir in
13646 .) ac_abs_srcdir=$ac_srcdir;;
13648 case $ac_srcdir in
13649 .) ac_abs_srcdir=$ac_abs_builddir;;
13650 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13651 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13652 esac;;
13653 esac
13654 case $ac_abs_builddir in
13655 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13657 case $ac_top_srcdir in
13658 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13659 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13660 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13661 esac;;
13662 esac
13665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13666 echo "$as_me: executing $ac_dest commands" >&6;}
13667 case $ac_dest in
13668 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13669 # Strip MF so we end up with the name of the file.
13670 mf=`echo "$mf" | sed -e 's/:.*$//'`
13671 # Check whether this is an Automake generated Makefile or not.
13672 # We used to match only the files named `Makefile.in', but
13673 # some people rename them; so instead we look at the file content.
13674 # Grep'ing the first line is not enough: some people post-process
13675 # each Makefile.in and add a new line on top of each file to say so.
13676 # So let's grep whole file.
13677 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13678 dirpart=`(dirname "$mf") 2>/dev/null ||
13679 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13680 X"$mf" : 'X\(//\)[^/]' \| \
13681 X"$mf" : 'X\(//\)$' \| \
13682 X"$mf" : 'X\(/\)' \| \
13683 . : '\(.\)' 2>/dev/null ||
13684 echo X"$mf" |
13685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13687 /^X\(\/\/\)$/{ s//\1/; q; }
13688 /^X\(\/\).*/{ s//\1/; q; }
13689 s/.*/./; q'`
13690 else
13691 continue
13693 # Extract the definition of DEPDIR, am__include, and am__quote
13694 # from the Makefile without running `make'.
13695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13696 test -z "$DEPDIR" && continue
13697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13698 test -z "am__include" && continue
13699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13700 # When using ansi2knr, U may be empty or an underscore; expand it
13701 U=`sed -n 's/^U = //p' < "$mf"`
13702 # Find all dependency output files, they are included files with
13703 # $(DEPDIR) in their names. We invoke sed twice because it is the
13704 # simplest approach to changing $(DEPDIR) to its actual value in the
13705 # expansion.
13706 for file in `sed -n "
13707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13709 # Make sure the directory exists.
13710 test -f "$dirpart/$file" && continue
13711 fdir=`(dirname "$file") 2>/dev/null ||
13712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13713 X"$file" : 'X\(//\)[^/]' \| \
13714 X"$file" : 'X\(//\)$' \| \
13715 X"$file" : 'X\(/\)' \| \
13716 . : '\(.\)' 2>/dev/null ||
13717 echo X"$file" |
13718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13720 /^X\(\/\/\)$/{ s//\1/; q; }
13721 /^X\(\/\).*/{ s//\1/; q; }
13722 s/.*/./; q'`
13723 { if $as_mkdir_p; then
13724 mkdir -p $dirpart/$fdir
13725 else
13726 as_dir=$dirpart/$fdir
13727 as_dirs=
13728 while test ! -d "$as_dir"; do
13729 as_dirs="$as_dir $as_dirs"
13730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13732 X"$as_dir" : 'X\(//\)[^/]' \| \
13733 X"$as_dir" : 'X\(//\)$' \| \
13734 X"$as_dir" : 'X\(/\)' \| \
13735 . : '\(.\)' 2>/dev/null ||
13736 echo X"$as_dir" |
13737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13739 /^X\(\/\/\)$/{ s//\1/; q; }
13740 /^X\(\/\).*/{ s//\1/; q; }
13741 s/.*/./; q'`
13742 done
13743 test ! -n "$as_dirs" || mkdir $as_dirs
13744 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13745 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13746 { (exit 1); exit 1; }; }; }
13748 # echo "creating $dirpart/$file"
13749 echo '# dummy' > "$dirpart/$file"
13750 done
13751 done
13753 default-1 )
13754 for ac_file in $CONFIG_FILES; do
13755 # Support "outfile[:infile[:infile...]]"
13756 case "$ac_file" in
13757 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13758 esac
13759 # PO directories have a Makefile.in generated from Makefile.in.in.
13760 case "$ac_file" in */Makefile.in)
13761 # Adjust a relative srcdir.
13762 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13763 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13764 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13765 # In autoconf-2.13 it is called $ac_given_srcdir.
13766 # In autoconf-2.50 it is called $srcdir.
13767 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13768 case "$ac_given_srcdir" in
13769 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13770 /*) top_srcdir="$ac_given_srcdir" ;;
13771 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13772 esac
13773 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13774 rm -f "$ac_dir/POTFILES"
13775 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13776 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13777 POMAKEFILEDEPS="POTFILES.in"
13778 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13779 # on $ac_dir but don't depend on user-specified configuration
13780 # parameters.
13781 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13782 # The LINGUAS file contains the set of available languages.
13783 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13784 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13786 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13787 # Hide the ALL_LINGUAS assigment from automake.
13788 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13789 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13790 else
13791 # The set of available languages was given in configure.in.
13792 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13794 case "$ac_given_srcdir" in
13795 .) srcdirpre= ;;
13796 *) srcdirpre='$(srcdir)/' ;;
13797 esac
13798 POFILES=
13799 GMOFILES=
13800 UPDATEPOFILES=
13801 DUMMYPOFILES=
13802 for lang in $ALL_LINGUAS; do
13803 POFILES="$POFILES $srcdirpre$lang.po"
13804 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13805 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13806 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13807 done
13808 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13809 # environment variable.
13810 INST_LINGUAS=
13811 if test -n "$ALL_LINGUAS"; then
13812 for presentlang in $ALL_LINGUAS; do
13813 useit=no
13814 if test "%UNSET%" != "$LINGUAS"; then
13815 desiredlanguages="$LINGUAS"
13816 else
13817 desiredlanguages="$ALL_LINGUAS"
13819 for desiredlang in $desiredlanguages; do
13820 # Use the presentlang catalog if desiredlang is
13821 # a. equal to presentlang, or
13822 # b. a variant of presentlang (because in this case,
13823 # presentlang can be used as a fallback for messages
13824 # which are not translated in the desiredlang catalog).
13825 case "$desiredlang" in
13826 "$presentlang"*) useit=yes;;
13827 esac
13828 done
13829 if test $useit = yes; then
13830 INST_LINGUAS="$INST_LINGUAS $presentlang"
13832 done
13834 CATALOGS=
13835 if test -n "$INST_LINGUAS"; then
13836 for lang in $INST_LINGUAS; do
13837 CATALOGS="$CATALOGS $lang.gmo"
13838 done
13840 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13841 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"
13842 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13843 if test -f "$f"; then
13844 case "$f" in
13845 *.orig | *.bak | *~) ;;
13846 *) cat "$f" >> "$ac_dir/Makefile" ;;
13847 esac
13849 done
13852 esac
13853 done ;;
13854 default )
13855 case "$srcdir" in
13856 .) srcdirpre= ;;
13857 *) srcdirpre='$(srcdir)/' ;;
13858 esac
13859 POFILES=
13860 GMOFILES=
13861 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13862 if test $lang != dummy; then
13863 POFILES="$POFILES $srcdirpre$lang.po"
13864 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13866 done
13867 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13868 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13869 -e "s,@POFILES@,$POFILES," \
13870 -e "s,@GMOFILES@,$GMOFILES," \
13871 po/Makefile.in > po/Makefile ;;
13872 esac
13873 done
13874 _ACEOF
13876 cat >>$CONFIG_STATUS <<\_ACEOF
13878 { (exit 0); exit 0; }
13879 _ACEOF
13880 chmod +x $CONFIG_STATUS
13881 ac_clean_files=$ac_clean_files_save
13884 # configure is writing to config.log, and then calls config.status.
13885 # config.status does its own redirection, appending to config.log.
13886 # Unfortunately, on DOS this fails, as config.log is still kept open
13887 # by configure, so config.status won't be able to write to it; its
13888 # output is simply discarded. So we exec the FD to /dev/null,
13889 # effectively closing config.log, so it can be properly (re)opened and
13890 # appended to by config.status. When coming back to configure, we
13891 # need to make the FD available again.
13892 if test "$no_create" != yes; then
13893 ac_cs_success=:
13894 ac_config_status_args=
13895 test "$silent" = yes &&
13896 ac_config_status_args="$ac_config_status_args --quiet"
13897 exec 5>/dev/null
13898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13899 exec 5>>config.log
13900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13901 # would make configure fail if this is the last instruction.
13902 $ac_cs_success || { (exit 1); exit 1; }