2007-03-07 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / bfd / configure
blob31aee53b3b551b1fd9f041a59888c2a5e33d74b5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL PKGVERSION WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-pkgversion=PKG Add PKG to the version string
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd $ac_popdir
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990 exit 0
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
997 It was created by $as_me, which was
998 generated by GNU Autoconf 2.59. Invocation command line was
1000 $ $0 $@
1002 _ACEOF
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 _ASUNAME
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034 done
1036 } >&5
1038 cat >&5 <<_ACEOF
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1045 _ACEOF
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1060 for ac_arg
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1093 esac
1094 done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1107 echo
1109 cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 esac;
1130 echo
1132 cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1188 # Predefined preprocessor variables.
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1231 done
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1244 else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1292 done
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1342 done
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking target system type" >&5
1407 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408 if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 ac_cv_target_alias=$target_alias
1412 test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421 echo "${ECHO_T}$ac_cv_target" >&6
1422 target=$ac_cv_target
1423 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 # The aliases save the names the user supplied, while $host etc.
1429 # will get canonicalized.
1430 test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434 ac_ext=c
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1461 done
1462 done
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1476 if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1499 done
1500 done
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1513 CC=$ac_ct_CC
1514 else
1515 CC="$ac_cv_prog_CC"
1518 if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1541 done
1542 done
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1556 if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1579 done
1580 done
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1593 CC=$ac_ct_CC
1594 else
1595 CC="$ac_cv_prog_CC"
1599 if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else
1610 ac_prog_rejected=no
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1626 done
1627 done
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1653 if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1678 done
1679 done
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$CC" && break
1693 done
1695 if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1720 done
1721 done
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1734 test -n "$ac_ct_CC" && break
1735 done
1737 CC=$ac_ct_CC
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1749 # Provide some information about the compiler.
1750 echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752 ac_compiler=`set X $ac_compile; echo $2`
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1769 cat >conftest.$ac_ext <<_ACEOF
1770 /* confdefs.h. */
1771 _ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h. */
1777 main ()
1781 return 0;
1783 _ACEOF
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1788 # of exeext.
1789 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 # resort.
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 ac_cv_exeext=
1804 # b.out is created by i960 compilers.
1805 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1811 conftest.$ac_ext )
1812 # This is the source file.
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1826 break;;
1827 esac
1828 done
1829 else
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1840 ac_exeext=$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_file" >&5
1842 echo "${ECHO_T}$ac_file" >&6
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849 # If not cross compiling, check that we can run a simple program.
1850 if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot run C compiled programs.
1866 If you meant to cross compile, use \`--host'.
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1872 echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6
1875 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876 ac_clean_files=$ac_clean_files_save
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882 echo "${ECHO_T}$cross_compiling" >&6
1884 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 # `rm'.
1895 for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904 done
1905 else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1913 rm -f conftest$ac_cv_exeext
1914 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915 echo "${ECHO_T}$ac_cv_exeext" >&6
1917 rm -f conftest.$ac_ext
1918 EXEEXT=$ac_cv_exeext
1919 ac_exeext=$EXEEXT
1920 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922 if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1933 main ()
1937 return 0;
1939 _ACEOF
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952 done
1953 else
1954 echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1969 ac_objext=$OBJEXT
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1983 main ()
1985 #ifndef __GNUC__
1986 choke me
1987 #endif
1990 return 0;
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 ac_compiler_gnu=yes
2016 else
2017 echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2020 ac_compiler_gnu=no
2022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028 GCC=`test $ac_compiler_gnu = yes && echo yes`
2029 ac_test_CFLAGS=${CFLAGS+set}
2030 ac_save_CFLAGS=$CFLAGS
2031 CFLAGS="-g"
2032 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2045 main ()
2049 return 0;
2051 _ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075 else
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_cv_prog_cc_g=no
2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2093 else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2100 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_cv_prog_cc_stdc=no
2106 ac_save_CC=$CC
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2113 #include <stdarg.h>
2114 #include <stdio.h>
2115 #include <sys/types.h>
2116 #include <sys/stat.h>
2117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118 struct buf { int x; };
2119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120 static char *e (p, i)
2121 char **p;
2122 int i;
2124 return p[i];
2126 static char *f (char * (*g) (char **, int), char **p, ...)
2128 char *s;
2129 va_list v;
2130 va_start (v,p);
2131 s = g (p, va_arg (v,int));
2132 va_end (v);
2133 return s;
2136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2145 int test (int i, double x);
2146 struct s1 {int (*f) (int a);};
2147 struct s2 {int (*f) (double a);};
2148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 int argc;
2150 char **argv;
2152 main ()
2154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2156 return 0;
2158 _ACEOF
2159 # Don't try gcc -ansi; that turns off useful extensions and
2160 # breaks some systems' header files.
2161 # AIX -qlanglvl=ansi
2162 # Ultrix and OSF/1 -std1
2163 # HP-UX 10.20 and later -Ae
2164 # HP-UX older versions -Aa -D_HPUX_SOURCE
2165 # SVR4 -Xc -D__EXTENSIONS__
2166 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2192 break
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.err conftest.$ac_objext
2199 done
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2201 CC=$ac_save_CC
2205 case "x$ac_cv_prog_cc_stdc" in
2206 x|xno)
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 esac
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #ifndef __cplusplus
2221 choke me
2222 #endif
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260 $ac_declaration
2261 #include <stdlib.h>
2263 main ()
2265 exit (42);
2267 return 0;
2269 _ACEOF
2270 rm -f conftest.$ac_objext
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2293 else
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 continue
2299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h. */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2306 $ac_declaration
2308 main ()
2310 exit (42);
2312 return 0;
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 break
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2344 done
2345 rm -f conftest*
2346 if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367 if test "${ac_cv_search_strerror+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 ac_func_search_save_LIBS=$LIBS
2371 ac_cv_search_strerror=no
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 #ifdef __cplusplus
2381 extern "C"
2382 #endif
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385 char strerror ();
2387 main ()
2389 strerror ();
2391 return 0;
2393 _ACEOF
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_search_strerror="none required"
2417 else
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2422 rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424 if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2434 /* Override any gcc2 internal prototype to avoid an error. */
2435 #ifdef __cplusplus
2436 extern "C"
2437 #endif
2438 /* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2440 char strerror ();
2442 main ()
2444 strerror ();
2446 return 0;
2448 _ACEOF
2449 rm -f conftest.$ac_objext conftest$ac_exeext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2472 break
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2480 done
2482 LIBS=$ac_func_search_save_LIBS
2484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486 if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2492 am__api_version="1.9"
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2508 if test -z "$INSTALL"; then
2509 if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 /usr/ucb/* ) ;;
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2538 else
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
2543 done
2544 done
2546 esac
2547 done
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL=$ac_cv_path_install
2553 else
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
2558 INSTALL=$ac_install_sh
2561 echo "$as_me:$LINENO: result: $INSTALL" >&5
2562 echo "${ECHO_T}$INSTALL" >&6
2564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565 # It thinks the first close brace ends the variable substitution.
2566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2572 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2574 # Just in case
2575 sleep 1
2576 echo timestamp > conftest.file
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments. Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2581 # directory).
2582 if (
2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t $srcdir/configure conftest.file`
2588 rm -f conftest.file
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" >&5
2598 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
2603 test "$2" = conftest.file
2605 then
2606 # Ok.
2608 else
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610 Check your system clock" >&5
2611 echo "$as_me: error: newly created file is older than distributed files!
2612 Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
2615 echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622 # Double any \ or $. echo might interpret backslashes.
2623 # By default was `s,x,x', remove it if useless.
2624 cat <<\_ACEOF >conftest.sed
2625 s/[\\$]/&&/g;s/;s,x,x,$//
2626 _ACEOF
2627 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628 rm conftest.sed
2630 # expand $ac_aux_dir to an absolute path
2631 am_aux_dir=`cd $ac_aux_dir && pwd`
2633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634 # Use eval to expand $SHELL
2635 if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2637 else
2638 am_missing_run=
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2648 # for two reasons:
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2659 else
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2663 # exists.
2664 for d in ./-p ./--version;
2666 test -d $d && rmdir $d
2667 done
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2671 else
2672 mkdir_p='$(install_sh) -d'
2676 for ac_prog in gawk mawk nawk awk
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2704 AWK=$ac_cv_prog_AWK
2705 if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707 echo "${ECHO_T}$AWK" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2713 test -n "$AWK" && break
2714 done
2716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.make <<\_ACEOF
2723 all:
2724 @echo 'ac_maketemp="$(MAKE)"'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728 if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2730 else
2731 eval ac_cv_prog_make_${ac_make}_set=no
2733 rm -f conftest.make
2735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 SET_MAKE=
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 SET_MAKE="MAKE=${MAKE-make}"
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2752 rmdir .tst 2>/dev/null
2754 DEPDIR="${am__leading_dot}deps"
2756 ac_config_commands="$ac_config_commands depfiles"
2759 am_make=${MAKE-make}
2760 cat > confinc << 'END'
2761 am__doit:
2762 @echo done
2763 .PHONY: am__doit
2765 # If we don't find an include directive, just comment out the code.
2766 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768 am__include="#"
2769 am__quote=
2770 _am_result=none
2771 # First try GNU make style include.
2772 echo "include confinc" > confmf
2773 # We grep out `Entering directory' and `Leaving directory'
2774 # messages which can occur if `w' ends up in MAKEFLAGS.
2775 # In particular we don't look at `^make:' because GNU make might
2776 # be invoked under some other name (usually "gmake"), in which
2777 # case it prints its new name instead of `make'.
2778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779 am__include=include
2780 am__quote=
2781 _am_result=GNU
2783 # Now try BSD make style include.
2784 if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2788 am__quote="\""
2789 _am_result=BSD
2794 echo "$as_me:$LINENO: result: $_am_result" >&5
2795 echo "${ECHO_T}$_am_result" >&6
2796 rm -f confinc confmf
2798 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799 if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2803 if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2805 AMDEPBACKSLASH='\'
2809 if test "x$enable_dependency_tracking" != xno; then
2810 AMDEP_TRUE=
2811 AMDEP_FALSE='#'
2812 else
2813 AMDEP_TRUE='#'
2814 AMDEP_FALSE=
2819 # test to see if srcdir already configured
2820 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2837 # Define the identity of the package.
2838 PACKAGE=bfd
2839 VERSION=2.17.50
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE "$PACKAGE"
2844 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define VERSION "$VERSION"
2849 _ACEOF
2851 # Some tools Automake needs.
2853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2869 # Installed binaries are usually stripped using `strip' when the user
2870 # run `make install-strip'. However `strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the `STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2901 STRIP=$ac_cv_prog_STRIP
2902 if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904 echo "${ECHO_T}$STRIP" >&6
2905 else
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2911 if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914 set dummy strip; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941 if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943 echo "${ECHO_T}$ac_ct_STRIP" >&6
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 STRIP=$ac_ct_STRIP
2950 else
2951 STRIP="$ac_cv_prog_STRIP"
2955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2957 # We need awk for the "check" target. The system "awk" is bad on
2958 # some platforms.
2959 # Always define AMTAR for backward compatibility.
2961 AMTAR=${AMTAR-"${am_missing_run}tar"}
2963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2968 depcc="$CC" am_compiler_list=
2970 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2980 # in D'.
2981 mkdir conftest.dir
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2985 cd conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2991 # directory.
2992 mkdir sub
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3006 : > sub/conftest.c
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3012 done
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3015 case $depmode in
3016 nosideeffect)
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3020 continue
3021 else
3022 break
3025 none) break ;;
3026 esac
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3048 break
3051 done
3053 cd ..
3054 rm -rf conftest.dir
3055 else
3056 am_cv_CC_dependencies_compiler_type=none
3060 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_TRUE=
3070 am__fastdepCC_FALSE='#'
3071 else
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}ar; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3101 done
3102 done
3106 AR=$ac_cv_prog_AR
3107 if test -n "$AR"; then
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109 echo "${ECHO_T}$AR" >&6
3110 else
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3116 if test -z "$ac_cv_prog_AR"; then
3117 ac_ct_AR=$AR
3118 # Extract the first word of "ar", so it can be a program name with args.
3119 set dummy ar; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3139 done
3140 done
3144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145 if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147 echo "${ECHO_T}$ac_ct_AR" >&6
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6
3153 AR=$ac_ct_AR
3154 else
3155 AR="$ac_cv_prog_AR"
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3185 RANLIB=$ac_cv_prog_RANLIB
3186 if test -n "$RANLIB"; then
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188 echo "${ECHO_T}$RANLIB" >&6
3189 else
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3195 if test -z "$ac_cv_prog_RANLIB"; then
3196 ac_ct_RANLIB=$RANLIB
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198 set dummy ranlib; ac_word=$2
3199 echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3218 done
3219 done
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225 if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3228 else
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 RANLIB=$ac_ct_RANLIB
3234 else
3235 RANLIB="$ac_cv_prog_RANLIB"
3239 # Check whether --enable-shared or --disable-shared was given.
3240 if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
3243 case $enableval in
3244 yes) enable_shared=yes ;;
3245 no) enable_shared=no ;;
3247 enable_shared=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_shared=yes
3254 done
3255 IFS="$ac_save_ifs"
3257 esac
3258 else
3259 enable_shared=no
3262 # Check whether --enable-static or --disable-static was given.
3263 if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
3266 case $enableval in
3267 yes) enable_static=yes ;;
3268 no) enable_static=no ;;
3270 enable_static=no
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3277 done
3278 IFS="$ac_save_ifs"
3280 esac
3281 else
3282 enable_static=yes
3284 # Check whether --enable-fast-install or --disable-fast-install was given.
3285 if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
3288 case $enableval in
3289 yes) enable_fast_install=yes ;;
3290 no) enable_fast_install=no ;;
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3299 done
3300 IFS="$ac_save_ifs"
3302 esac
3303 else
3304 enable_fast_install=yes
3307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3308 if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311 else
3312 with_gnu_ld=no
3314 ac_prog=ld
3315 if test "$GCC" = yes; then
3316 # Check if gcc -print-prog-name=ld gives a path.
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
3326 case $ac_prog in
3327 # Accept absolute paths.
3328 [\\/]* | [A-Za-z]:[\\/]*)
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3345 esac
3346 elif test "$with_gnu_ld" = yes; then
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349 else
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3353 if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if test -z "$LD"; then
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3361 lt_cv_path_LD="$ac_dir/$ac_prog"
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3366 test "$with_gnu_ld" != no && break
3367 else
3368 test "$with_gnu_ld" != yes && break
3371 done
3372 IFS="$ac_save_ifs"
3373 else
3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3378 LD="$lt_cv_path_LD"
3379 if test -n "$LD"; then
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381 echo "${ECHO_T}$LD" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3396 lt_cv_prog_gnu_ld=yes
3397 else
3398 lt_cv_prog_gnu_ld=no
3401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3403 with_gnu_ld=$lt_cv_prog_gnu_ld
3406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408 if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 lt_cv_ld_reload_flag='-r'
3413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3415 reload_flag=$lt_cv_ld_reload_flag
3416 test -n "$reload_flag" && reload_flag=" $reload_flag"
3418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420 if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
3425 lt_cv_path_NM="$NM"
3426 else
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3429 test -z "$ac_dir" && ac_dir=.
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3437 lt_cv_path_NM="$tmp_nm -B"
3438 break
3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -p"
3441 break
3442 else
3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3444 continue # so that we can try to find one that supports BSD flags
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3453 NM="$lt_cv_path_NM"
3454 echo "$as_me:$LINENO: result: $NM" >&5
3455 echo "${ECHO_T}$NM" >&6
3457 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459 LN_S=$as_ln_s
3460 if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465 echo "${ECHO_T}no, using $LN_S" >&6
3468 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470 if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
3474 lt_cv_file_magic_test_file=
3475 lt_cv_deplibs_check_method='unknown'
3476 # Need to set the preceding variable on all platforms that support
3477 # interlibrary dependencies.
3478 # 'none' -- dependencies not supported.
3479 # `unknown' -- same as none, but documents that we really don't know.
3480 # 'pass_all' -- all dependencies passed with no checks.
3481 # 'test_compile' -- check by making test program.
3482 # 'file_magic [regex]' -- check by looking for files in library path
3483 # which responds to the $file_magic_cmd with a given egrep regex.
3484 # If you have `file' or equivalent on your system and you're not sure
3485 # whether `pass_all' will *always* work, you probably want this one.
3487 case $host_os in
3488 aix*)
3489 lt_cv_deplibs_check_method=pass_all
3492 beos*)
3493 lt_cv_deplibs_check_method=pass_all
3496 bsdi4*)
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3502 cygwin* | mingw* |pw32*)
3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
3507 darwin* | rhapsody*)
3508 # this will be overwritten by pass_all, but leave it in just in case
3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3510 lt_cv_file_magic_cmd='/usr/bin/file -L'
3511 case "$host_os" in
3512 rhapsody* | darwin1.012)
3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3515 *) # Darwin 1.3 on
3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3518 esac
3519 lt_cv_deplibs_check_method=pass_all
3522 freebsd* | kfreebsd*-gnu)
3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3524 case $host_cpu in
3525 i*86 )
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3532 esac
3533 else
3534 lt_cv_deplibs_check_method=pass_all
3538 gnu*)
3539 lt_cv_deplibs_check_method=pass_all
3542 hpux10.20*|hpux11*)
3543 case $host_cpu in
3544 hppa*)
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546 lt_cv_file_magic_cmd=/usr/bin/file
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ia64*)
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554 esac
3557 irix5* | irix6*)
3558 case $host_os in
3559 irix5*)
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3564 case $LD in
3565 *-32|*"-32 ") libmagic=32-bit;;
3566 *-n32|*"-n32 ") libmagic=N32;;
3567 *-64|*"-64 ") libmagic=64-bit;;
3568 *) libmagic=never-match;;
3569 esac
3570 # this will be overridden with pass_all, but let us keep it just in case
3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3573 esac
3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3575 lt_cv_deplibs_check_method=pass_all
3578 # This must be Linux ELF.
3579 linux-gnu*)
3580 lt_cv_deplibs_check_method=pass_all
3583 netbsd* | knetbsd*-gnu)
3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3586 else
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3591 newsos6)
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3597 osf3* | osf4* | osf5*)
3598 # this will be overridden with pass_all, but let us keep it just in case
3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 lt_cv_deplibs_check_method=pass_all
3604 sco3.2v5*)
3605 lt_cv_deplibs_check_method=pass_all
3608 solaris*)
3609 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_file_magic_test_file=/lib/libc.so
3613 sysv5uw[78]* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3617 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3618 case $host_vendor in
3619 ncr)
3620 lt_cv_deplibs_check_method=pass_all
3622 motorola)
3623 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]'
3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3626 esac
3628 esac
3631 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3632 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3633 file_magic_cmd=$lt_cv_file_magic_cmd
3634 deplibs_check_method=$lt_cv_deplibs_check_method
3639 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3641 # find the maximum length of command line arguments
3642 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3643 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3644 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3648 teststring="ABCD"
3650 case $build_os in
3651 msdosdjgpp*)
3652 # On DJGPP, this test can blow up pretty badly due to problems in libc
3653 # (any single argument exceeding 2000 bytes causes a buffer overrun
3654 # during glob expansion). Even if it were fixed, the result of this
3655 # check would be larger than it should be.
3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3659 cygwin* | mingw*)
3660 # On Win9x/ME, this test blows up -- it succeeds, but takes
3661 # about 5 minutes as the teststring grows exponentially.
3662 # Worse, since 9x/ME are not pre-emptively multitasking,
3663 # you end up with a "frozen" computer, even though with patience
3664 # the test eventually succeeds (with a max line length of 256k).
3665 # Instead, let's just punt: use the minimum linelength reported by
3666 # all of the supported platforms: 8192 (on NT/2K/XP).
3667 lt_cv_sys_max_cmd_len=8192;
3670 amigaos*)
3671 # On AmigaOS with pdksh, this test takes hours, literally.
3672 # So we just punt and use a minimum line length of 8192.
3673 lt_cv_sys_max_cmd_len=8192;
3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3677 # This has been around since 386BSD, at least. Likely further.
3678 if test -x /sbin/sysctl; then
3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3680 elif test -x /usr/sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3682 else
3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3685 # And add a safety zone
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3689 esac
3693 if test -n "$lt_cv_sys_max_cmd_len" ; then
3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3695 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3696 else
3697 echo "$as_me:$LINENO: result: none" >&5
3698 echo "${ECHO_T}none" >&6
3702 # Only perform the check for file, if the check method requires it
3703 case $deplibs_check_method in
3704 file_magic*)
3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3707 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 case $MAGIC_CMD in
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3715 ?:/*)
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/${ac_tool_prefix}file; then
3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3726 if test -n "$file_magic_test_file"; then
3727 case $deplibs_check_method in
3728 "file_magic "*)
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3734 else
3735 cat <<EOF 1>&2
3737 *** Warning: the command libtool uses to detect shared libraries,
3738 *** $file_magic_cmd, produces output that libtool cannot recognize.
3739 *** The result is that libtool may fail to recognize shared libraries
3740 *** as such. This will affect the creation of libtool libraries that
3741 *** depend on shared libraries, but programs linked with such libtool
3742 *** libraries will work regardless of this problem. Nevertheless, you
3743 *** may want to report the problem to your system manager and/or to
3744 *** bug-libtool@gnu.org
3747 fi ;;
3748 esac
3750 break
3752 done
3753 IFS="$ac_save_ifs"
3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
3756 esac
3759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760 if test -n "$MAGIC_CMD"; then
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762 echo "${ECHO_T}$MAGIC_CMD" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 if test -z "$lt_cv_path_MAGIC_CMD"; then
3769 if test -n "$ac_tool_prefix"; then
3770 echo "$as_me:$LINENO: checking for file" >&5
3771 echo $ECHO_N "checking for file... $ECHO_C" >&6
3772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 case $MAGIC_CMD in
3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3779 ?:/*)
3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3783 ac_save_MAGIC_CMD="$MAGIC_CMD"
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 ac_dummy="/usr/bin:$PATH"
3786 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/file; then
3789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3790 if test -n "$file_magic_test_file"; then
3791 case $deplibs_check_method in
3792 "file_magic "*)
3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3796 egrep "$file_magic_regex" > /dev/null; then
3798 else
3799 cat <<EOF 1>&2
3801 *** Warning: the command libtool uses to detect shared libraries,
3802 *** $file_magic_cmd, produces output that libtool cannot recognize.
3803 *** The result is that libtool may fail to recognize shared libraries
3804 *** as such. This will affect the creation of libtool libraries that
3805 *** depend on shared libraries, but programs linked with such libtool
3806 *** libraries will work regardless of this problem. Nevertheless, you
3807 *** may want to report the problem to your system manager and/or to
3808 *** bug-libtool@gnu.org
3811 fi ;;
3812 esac
3814 break
3816 done
3817 IFS="$ac_save_ifs"
3818 MAGIC_CMD="$ac_save_MAGIC_CMD"
3820 esac
3823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824 if test -n "$MAGIC_CMD"; then
3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3826 echo "${ECHO_T}$MAGIC_CMD" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 else
3833 MAGIC_CMD=:
3839 esac
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3863 done
3864 done
3868 RANLIB=$ac_cv_prog_RANLIB
3869 if test -n "$RANLIB"; then
3870 echo "$as_me:$LINENO: result: $RANLIB" >&5
3871 echo "${ECHO_T}$RANLIB" >&6
3872 else
3873 echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3878 if test -z "$ac_cv_prog_RANLIB"; then
3879 ac_ct_RANLIB=$RANLIB
3880 # Extract the first word of "ranlib", so it can be a program name with args.
3881 set dummy ranlib; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 if test -n "$ac_ct_RANLIB"; then
3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_RANLIB="ranlib"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3901 done
3902 done
3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3908 if test -n "$ac_ct_RANLIB"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3910 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 RANLIB=$ac_ct_RANLIB
3917 else
3918 RANLIB="$ac_cv_prog_RANLIB"
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}strip; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_STRIP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3948 STRIP=$ac_cv_prog_STRIP
3949 if test -n "$STRIP"; then
3950 echo "$as_me:$LINENO: result: $STRIP" >&5
3951 echo "${ECHO_T}$STRIP" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_STRIP"; then
3959 ac_ct_STRIP=$STRIP
3960 # Extract the first word of "strip", so it can be a program name with args.
3961 set dummy strip; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_STRIP="strip"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988 if test -n "$ac_ct_STRIP"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3990 echo "${ECHO_T}$ac_ct_STRIP" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 STRIP=$ac_ct_STRIP
3997 else
3998 STRIP="$ac_cv_prog_STRIP"
4002 # Check for any special flags to pass to ltconfig.
4003 libtool_flags="--cache-file=$cache_file"
4004 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4005 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4006 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4007 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4008 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4011 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4012 if test "${enable_libtool_lock+set}" = set; then
4013 enableval="$enable_libtool_lock"
4016 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4017 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4020 # Check whether --with-pic or --without-pic was given.
4021 if test "${with_pic+set}" = set; then
4022 withval="$with_pic"
4023 pic_mode="$withval"
4024 else
4025 pic_mode=default
4027 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4028 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4030 # Some flags need to be propagated to the compiler or linker for good
4031 # libtool support.
4032 case $host in
4033 *-*-irix6*)
4034 # Find out which ABI we are using.
4035 echo '#line 4035 "configure"' > conftest.$ac_ext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; then
4041 if test "$lt_cv_prog_gnu_ld" = yes; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4043 *32-bit*)
4044 LD="${LD-ld} -melf32bsmip"
4046 *N32*)
4047 LD="${LD-ld} -melf32bmipn32"
4049 *64-bit*)
4050 LD="${LD-ld} -melf64bmip"
4052 esac
4053 else
4054 case `/usr/bin/file conftest.$ac_objext` in
4055 *32-bit*)
4056 LD="${LD-ld} -32"
4058 *N32*)
4059 LD="${LD-ld} -n32"
4061 *64-bit*)
4062 LD="${LD-ld} -64"
4064 esac
4067 rm -rf conftest*
4070 ia64-*-hpux*)
4071 # Find out which ABI we are using.
4072 echo 'int i;' > conftest.$ac_ext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; then
4078 case "`/usr/bin/file conftest.o`" in
4079 *ELF-32*)
4080 HPUX_IA64_MODE="32"
4082 *ELF-64*)
4083 HPUX_IA64_MODE="64"
4085 esac
4087 rm -rf conftest*
4090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_i386"
4104 ppc64-*linux*|powerpc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4113 esac
4115 *64-bit*)
4116 case $host in
4117 x86_64-*linux*)
4118 LD="${LD-ld} -m elf_x86_64"
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4129 esac
4131 esac
4133 rm -rf conftest*
4136 *-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142 if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.$ac_objext conftest$ac_exeext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 lt_cv_cc_needs_belf=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 lt_cv_cc_needs_belf=no
4197 rm -f conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 ac_ext=c
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4207 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210 CFLAGS="$SAVE_CFLAGS"
4215 esac
4218 # Save cache, so that ltconfig can load it
4219 cat >confcache <<\_ACEOF
4220 # This file is a shell script that caches the results of configure
4221 # tests run on this system so they can be shared between configure
4222 # scripts and configure runs, see configure's option --config-cache.
4223 # It is not useful on other systems. If it contains results you don't
4224 # want to keep, you may remove or edit it.
4226 # config.status only pays attention to the cache file if you give it
4227 # the --recheck option to rerun configure.
4229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4231 # following values.
4233 _ACEOF
4235 # The following way of writing the cache mishandles newlines in values,
4236 # but we know of no workaround that is simple, portable, and efficient.
4237 # So, don't put newlines in cache variables' values.
4238 # Ultrix sh set writes to stderr and can't be redirected directly,
4239 # and sets the high bit in the cache file unless we assign to the vars.
4241 (set) 2>&1 |
4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4243 *ac_space=\ *)
4244 # `set' does not quote correctly, so add quotes (double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \).
4246 sed -n \
4247 "s/'/'\\\\''/g;
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4252 sed -n \
4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4255 esac;
4257 sed '
4258 t clear
4259 : clear
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4261 t end
4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4263 : end' >>confcache
4264 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4265 if test -w $cache_file; then
4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4267 cat confcache >$cache_file
4268 else
4269 echo "not updating unwritable cache $cache_file"
4272 rm -f confcache
4274 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4275 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4276 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4277 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4278 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4279 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4280 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4281 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4282 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4283 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4284 echo "$as_me: error: libtool configure failed" >&2;}
4285 { (exit 1); exit 1; }; }
4287 # Reload cache, that may have been modified by ltconfig
4288 if test -r "$cache_file"; then
4289 # Some versions of bash will fail to source /dev/null (special
4290 # files actually), so we avoid doing that.
4291 if test -f "$cache_file"; then
4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4293 echo "$as_me: loading cache $cache_file" >&6;}
4294 case $cache_file in
4295 [\\/]* | ?:[\\/]* ) . $cache_file;;
4296 *) . ./$cache_file;;
4297 esac
4299 else
4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4301 echo "$as_me: creating cache $cache_file" >&6;}
4302 >$cache_file
4306 # This can be used to rebuild libtool when needed
4307 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4309 # Always use our own libtool.
4310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4312 # Redirect the config.log output again, so that the ltconfig log is not
4313 # clobbered by the next message.
4314 exec 5>>./config.log
4322 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4323 if test "${enable_64_bit_bfd+set}" = set; then
4324 enableval="$enable_64_bit_bfd"
4325 case "${enableval}" in
4326 yes) want64=true ;;
4327 no) want64=false ;;
4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4329 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4330 { (exit 1); exit 1; }; } ;;
4331 esac
4332 else
4333 want64=false
4334 fi; # Check whether --enable-targets or --disable-targets was given.
4335 if test "${enable_targets+set}" = set; then
4336 enableval="$enable_targets"
4337 case "${enableval}" in
4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4339 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4340 { (exit 1); exit 1; }; }
4342 no) enable_targets= ;;
4343 *) enable_targets=$enableval ;;
4344 esac
4345 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4346 if test "${enable_commonbfdlib+set}" = set; then
4347 enableval="$enable_commonbfdlib"
4348 case "${enableval}" in
4349 yes) commonbfdlib=true ;;
4350 no) commonbfdlib=false ;;
4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4352 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4353 { (exit 1); exit 1; }; } ;;
4354 esac
4356 # Check whether --with-mmap or --without-mmap was given.
4357 if test "${with_mmap+set}" = set; then
4358 withval="$with_mmap"
4359 case "${withval}" in
4360 yes) want_mmap=true ;;
4361 no) want_mmap=false ;;
4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4363 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4364 { (exit 1); exit 1; }; } ;;
4365 esac
4366 else
4367 want_mmap=false
4369 # Check whether --enable-secureplt or --disable-secureplt was given.
4370 if test "${enable_secureplt+set}" = set; then
4371 enableval="$enable_secureplt"
4372 case "${enableval}" in
4373 yes) use_secureplt=true ;;
4374 no) use_secureplt=false ;;
4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4376 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4378 esac
4379 else
4380 use_secureplt=false
4381 fi; if test $use_secureplt = true; then
4383 cat >>confdefs.h <<\_ACEOF
4384 #define USE_SECUREPLT 1
4385 _ACEOF
4389 # Package version. For an official FSF release, it is empty.
4391 # Check whether --with-pkgversion or --without-pkgversion was given.
4392 if test "${with_pkgversion+set}" = set; then
4393 withval="$with_pkgversion"
4394 case "$withval" in
4395 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4396 echo "$as_me: error: package version not specified" >&2;}
4397 { (exit 1); exit 1; }; } ;;
4398 no) PKGVERSION= ;;
4399 *) PKGVERSION="($withval) " ;;
4400 esac
4401 else
4402 PKGVERSION="(GNU Binutils) "
4408 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4410 # Check whether --enable-werror or --disable-werror was given.
4411 if test "${enable_werror+set}" = set; then
4412 enableval="$enable_werror"
4413 case "${enableval}" in
4414 yes | y) ERROR_ON_WARNING="yes" ;;
4415 no | n) ERROR_ON_WARNING="no" ;;
4416 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4417 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4418 { (exit 1); exit 1; }; } ;;
4419 esac
4422 # Enable -Werror by default when using gcc
4423 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4424 ERROR_ON_WARNING=yes
4427 NO_WERROR=
4428 if test "${ERROR_ON_WARNING}" = yes ; then
4429 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4430 NO_WERROR="-Wno-error"
4433 if test "${GCC}" = yes ; then
4434 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4437 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4438 if test "${enable_build_warnings+set}" = set; then
4439 enableval="$enable_build_warnings"
4440 case "${enableval}" in
4441 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4442 no) if test "${GCC}" = yes ; then
4443 WARN_CFLAGS="-w"
4444 fi;;
4445 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4446 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4447 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4448 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4449 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4450 esac
4453 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4454 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4461 ac_config_headers="$ac_config_headers config.h:config.in"
4464 if test -z "$target" ; then
4465 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4466 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4467 { (exit 1); exit 1; }; }
4470 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4471 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4472 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4473 if test "${enable_maintainer_mode+set}" = set; then
4474 enableval="$enable_maintainer_mode"
4475 USE_MAINTAINER_MODE=$enableval
4476 else
4477 USE_MAINTAINER_MODE=no
4479 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4480 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4483 if test $USE_MAINTAINER_MODE = yes; then
4484 MAINTAINER_MODE_TRUE=
4485 MAINTAINER_MODE_FALSE='#'
4486 else
4487 MAINTAINER_MODE_TRUE='#'
4488 MAINTAINER_MODE_FALSE=
4491 MAINT=$MAINTAINER_MODE_TRUE
4496 if false; then
4497 GENINSRC_NEVER_TRUE=
4498 GENINSRC_NEVER_FALSE='#'
4499 else
4500 GENINSRC_NEVER_TRUE='#'
4501 GENINSRC_NEVER_FALSE=
4504 case ${build_alias} in
4505 "") build_noncanonical=${build} ;;
4506 *) build_noncanonical=${build_alias} ;;
4507 esac
4509 case ${host_alias} in
4510 "") host_noncanonical=${build_noncanonical} ;;
4511 *) host_noncanonical=${host_alias} ;;
4512 esac
4514 case ${target_alias} in
4515 "") target_noncanonical=${host_noncanonical} ;;
4516 *) target_noncanonical=${target_alias} ;;
4517 esac
4519 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4520 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4521 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4522 if test "${enable_install_libbfd+set}" = set; then
4523 enableval="$enable_install_libbfd"
4524 install_libbfd_p=$enableval
4525 else
4526 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4527 install_libbfd_p=yes
4528 else
4529 install_libbfd_p=no
4532 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4533 echo "${ECHO_T}$install_libbfd_p" >&6
4536 if test $install_libbfd_p = yes; then
4537 INSTALL_LIBBFD_TRUE=
4538 INSTALL_LIBBFD_FALSE='#'
4539 else
4540 INSTALL_LIBBFD_TRUE='#'
4541 INSTALL_LIBBFD_FALSE=
4544 # Need _noncanonical variables for this.
4549 # libbfd.a is a host library containing target dependent code
4550 bfdlibdir='$(libdir)'
4551 bfdincludedir='$(includedir)'
4552 if test "${host}" != "${target}"; then
4553 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4554 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4562 host64=false
4563 target64=false
4564 bfd_default_target_size=32
4566 # host stuff:
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_prog_CC+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 if test -n "$CC"; then
4582 ac_cv_prog_CC="$CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4600 CC=$ac_cv_prog_CC
4601 if test -n "$CC"; then
4602 echo "$as_me:$LINENO: result: $CC" >&5
4603 echo "${ECHO_T}$CC" >&6
4604 else
4605 echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4610 if test -z "$ac_cv_prog_CC"; then
4611 ac_ct_CC=$CC
4612 # Extract the first word of "gcc", so it can be a program name with args.
4613 set dummy gcc; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 if test -n "$ac_ct_CC"; then
4620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_ac_ct_CC="gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4633 done
4634 done
4638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4639 if test -n "$ac_ct_CC"; then
4640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4641 echo "${ECHO_T}$ac_ct_CC" >&6
4642 else
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4647 CC=$ac_ct_CC
4648 else
4649 CC="$ac_cv_prog_CC"
4652 if test -z "$CC"; then
4653 if test -n "$ac_tool_prefix"; then
4654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655 set dummy ${ac_tool_prefix}cc; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_prog_CC+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 if test -n "$CC"; then
4662 ac_cv_prog_CC="$CC" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_CC="${ac_tool_prefix}cc"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4680 CC=$ac_cv_prog_CC
4681 if test -n "$CC"; then
4682 echo "$as_me:$LINENO: result: $CC" >&5
4683 echo "${ECHO_T}$CC" >&6
4684 else
4685 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4690 if test -z "$ac_cv_prog_CC"; then
4691 ac_ct_CC=$CC
4692 # Extract the first word of "cc", so it can be a program name with args.
4693 set dummy cc; ac_word=$2
4694 echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 if test -n "$ac_ct_CC"; then
4700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_CC="cc"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4719 if test -n "$ac_ct_CC"; then
4720 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4721 echo "${ECHO_T}$ac_ct_CC" >&6
4722 else
4723 echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4727 CC=$ac_ct_CC
4728 else
4729 CC="$ac_cv_prog_CC"
4733 if test -z "$CC"; then
4734 # Extract the first word of "cc", so it can be a program name with args.
4735 set dummy cc; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4743 else
4744 ac_prog_rejected=no
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4753 ac_prog_rejected=yes
4754 continue
4756 ac_cv_prog_CC="cc"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4763 if test $ac_prog_rejected = yes; then
4764 # We found a bogon in the path, so make sure we never use it.
4765 set dummy $ac_cv_prog_CC
4766 shift
4767 if test $# != 0; then
4768 # We chose a different compiler from the bogus one.
4769 # However, it has the same basename, so the bogon will be chosen
4770 # first if we set CC to just the basename; use the full file name.
4771 shift
4772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 echo "$as_me:$LINENO: result: $CC" >&5
4780 echo "${ECHO_T}$CC" >&6
4781 else
4782 echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4787 if test -z "$CC"; then
4788 if test -n "$ac_tool_prefix"; then
4789 for ac_prog in cl
4791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4793 echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795 if test "${ac_cv_prog_CC+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 if test -n "$CC"; then
4799 ac_cv_prog_CC="$CC" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4817 CC=$ac_cv_prog_CC
4818 if test -n "$CC"; then
4819 echo "$as_me:$LINENO: result: $CC" >&5
4820 echo "${ECHO_T}$CC" >&6
4821 else
4822 echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4826 test -n "$CC" && break
4827 done
4829 if test -z "$CC"; then
4830 ac_ct_CC=$CC
4831 for ac_prog in cl
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 if test -n "$ac_ct_CC"; then
4841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_ac_ct_CC="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4862 echo "${ECHO_T}$ac_ct_CC" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 test -n "$ac_ct_CC" && break
4869 done
4871 CC=$ac_ct_CC
4877 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4878 See \`config.log' for more details." >&5
4879 echo "$as_me: error: no acceptable C compiler found in \$PATH
4880 See \`config.log' for more details." >&2;}
4881 { (exit 1); exit 1; }; }
4883 # Provide some information about the compiler.
4884 echo "$as_me:$LINENO:" \
4885 "checking for C compiler version" >&5
4886 ac_compiler=`set X $ac_compile; echo $2`
4887 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4888 (eval $ac_compiler --version </dev/null >&5) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }
4892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4893 (eval $ac_compiler -v </dev/null >&5) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4898 (eval $ac_compiler -V </dev/null >&5) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4903 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4904 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4905 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4916 main ()
4918 #ifndef __GNUC__
4919 choke me
4920 #endif
4923 return 0;
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_compiler_gnu=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_compiler_gnu=no
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4959 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4960 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4961 GCC=`test $ac_compiler_gnu = yes && echo yes`
4962 ac_test_CFLAGS=${CFLAGS+set}
4963 ac_save_CFLAGS=$CFLAGS
4964 CFLAGS="-g"
4965 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4966 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4967 if test "${ac_cv_prog_cc_g+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4978 main ()
4982 return 0;
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_prog_cc_g=yes
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 ac_cv_prog_cc_g=no
5014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5017 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5018 if test "$ac_test_CFLAGS" = set; then
5019 CFLAGS=$ac_save_CFLAGS
5020 elif test $ac_cv_prog_cc_g = yes; then
5021 if test "$GCC" = yes; then
5022 CFLAGS="-g -O2"
5023 else
5024 CFLAGS="-g"
5026 else
5027 if test "$GCC" = yes; then
5028 CFLAGS="-O2"
5029 else
5030 CFLAGS=
5033 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5034 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5035 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038 ac_cv_prog_cc_stdc=no
5039 ac_save_CC=$CC
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <stdarg.h>
5047 #include <stdio.h>
5048 #include <sys/types.h>
5049 #include <sys/stat.h>
5050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5051 struct buf { int x; };
5052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5053 static char *e (p, i)
5054 char **p;
5055 int i;
5057 return p[i];
5059 static char *f (char * (*g) (char **, int), char **p, ...)
5061 char *s;
5062 va_list v;
5063 va_start (v,p);
5064 s = g (p, va_arg (v,int));
5065 va_end (v);
5066 return s;
5069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5070 function prototypes and stuff, but not '\xHH' hex character constants.
5071 These don't provoke an error unfortunately, instead are silently treated
5072 as 'x'. The following induces an error, until -std1 is added to get
5073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5074 array size at least. It's necessary to write '\x00'==0 to get something
5075 that's true only with -std1. */
5076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5078 int test (int i, double x);
5079 struct s1 {int (*f) (int a);};
5080 struct s2 {int (*f) (double a);};
5081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 int argc;
5083 char **argv;
5085 main ()
5087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5089 return 0;
5091 _ACEOF
5092 # Don't try gcc -ansi; that turns off useful extensions and
5093 # breaks some systems' header files.
5094 # AIX -qlanglvl=ansi
5095 # Ultrix and OSF/1 -std1
5096 # HP-UX 10.20 and later -Ae
5097 # HP-UX older versions -Aa -D_HPUX_SOURCE
5098 # SVR4 -Xc -D__EXTENSIONS__
5099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5101 CC="$ac_save_CC $ac_arg"
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_prog_cc_stdc=$ac_arg
5125 break
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f conftest.err conftest.$ac_objext
5132 done
5133 rm -f conftest.$ac_ext conftest.$ac_objext
5134 CC=$ac_save_CC
5138 case "x$ac_cv_prog_cc_stdc" in
5139 x|xno)
5140 echo "$as_me:$LINENO: result: none needed" >&5
5141 echo "${ECHO_T}none needed" >&6 ;;
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5144 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5145 CC="$CC $ac_cv_prog_cc_stdc" ;;
5146 esac
5148 # Some people use a C++ compiler to compile C. Since we use `exit',
5149 # in C++ we need to declare it. In case someone uses the same compiler
5150 # for both compiling C and C++ we need to have the C++ compiler decide
5151 # the declaration of exit, since it's the most demanding environment.
5152 cat >conftest.$ac_ext <<_ACEOF
5153 #ifndef __cplusplus
5154 choke me
5155 #endif
5156 _ACEOF
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 for ac_declaration in \
5180 '' \
5181 'extern "C" void std::exit (int) throw (); using std::exit;' \
5182 'extern "C" void std::exit (int); using std::exit;' \
5183 'extern "C" void exit (int) throw ();' \
5184 'extern "C" void exit (int);' \
5185 'void exit (int);'
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 $ac_declaration
5194 #include <stdlib.h>
5196 main ()
5198 exit (42);
5200 return 0;
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -z "$ac_c_werror_flag"
5213 || test ! -s conftest.err'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 (eval $ac_try) 2>&5
5216 ac_status=$?
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 (eval $ac_try) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5226 else
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 continue
5232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_declaration
5241 main ()
5243 exit (42);
5245 return 0;
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250 (eval $ac_compile) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag"
5258 || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 break
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 done
5278 rm -f conftest*
5279 if test -n "$ac_declaration"; then
5280 echo '#ifdef __cplusplus' >>confdefs.h
5281 echo $ac_declaration >>confdefs.h
5282 echo '#endif' >>confdefs.h
5285 else
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_ext=c
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 cat >>confdefs.h <<\_ACEOF
5299 #define _GNU_SOURCE 1
5300 _ACEOF
5304 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5305 # If we haven't got the data from the intl directory,
5306 # assume NLS is disabled.
5307 USE_NLS=no
5308 LIBINTL=
5309 LIBINTL_DEP=
5310 INCINTL=
5311 XGETTEXT=
5312 GMSGFMT=
5313 POSUB=
5315 if test -f ../intl/config.intl; then
5316 . ../intl/config.intl
5318 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5319 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5320 if test x"$USE_NLS" != xyes; then
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5323 else
5324 echo "$as_me:$LINENO: result: yes" >&5
5325 echo "${ECHO_T}yes" >&6
5327 cat >>confdefs.h <<\_ACEOF
5328 #define ENABLE_NLS 1
5329 _ACEOF
5332 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5333 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5334 # Look for .po and .gmo files in the source directory.
5335 CATALOGS=
5336 XLINGUAS=
5337 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5338 # If there aren't any .gmo files the shell will give us the
5339 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5340 # weeded out.
5341 case "$cat" in *\**)
5342 continue;;
5343 esac
5344 # The quadruple backslash is collapsed to a double backslash
5345 # by the backticks, then collapsed again by the double quotes,
5346 # leaving us with one backslash in the sed expression (right
5347 # before the dot that mustn't act as a wildcard).
5348 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5349 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5350 # The user is allowed to set LINGUAS to a list of languages to
5351 # install catalogs for. If it's empty that means "all of them."
5352 if test "x$LINGUAS" = x; then
5353 CATALOGS="$CATALOGS $cat"
5354 XLINGUAS="$XLINGUAS $lang"
5355 else
5356 case "$LINGUAS" in *$lang*)
5357 CATALOGS="$CATALOGS $cat"
5358 XLINGUAS="$XLINGUAS $lang"
5360 esac
5362 done
5363 LINGUAS="$XLINGUAS"
5364 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5365 echo "${ECHO_T}$LINGUAS" >&6
5368 DATADIRNAME=share
5370 INSTOBJEXT=.mo
5372 GENCAT=gencat
5374 CATOBJEXT=.gmo
5378 MKINSTALLDIRS=
5379 if test -n "$ac_aux_dir"; then
5380 case "$ac_aux_dir" in
5381 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5382 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5383 esac
5385 if test -z "$MKINSTALLDIRS"; then
5386 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5391 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5392 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5393 # Check whether --enable-nls or --disable-nls was given.
5394 if test "${enable_nls+set}" = set; then
5395 enableval="$enable_nls"
5396 USE_NLS=$enableval
5397 else
5398 USE_NLS=yes
5400 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5401 echo "${ECHO_T}$USE_NLS" >&6
5408 # Prepare PATH_SEPARATOR.
5409 # The user is always right.
5410 if test "${PATH_SEPARATOR+set}" != set; then
5411 echo "#! /bin/sh" >conf$$.sh
5412 echo "exit 0" >>conf$$.sh
5413 chmod +x conf$$.sh
5414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5415 PATH_SEPARATOR=';'
5416 else
5417 PATH_SEPARATOR=:
5419 rm -f conf$$.sh
5422 # Find out how to test for executable files. Don't use a zero-byte file,
5423 # as systems may use methods other than mode bits to determine executability.
5424 cat >conf$$.file <<_ASEOF
5425 #! /bin/sh
5426 exit 0
5427 _ASEOF
5428 chmod +x conf$$.file
5429 if test -x conf$$.file >/dev/null 2>&1; then
5430 ac_executable_p="test -x"
5431 else
5432 ac_executable_p="test -f"
5434 rm -f conf$$.file
5436 # Extract the first word of "msgfmt", so it can be a program name with args.
5437 set dummy msgfmt; ac_word=$2
5438 echo "$as_me:$LINENO: checking for $ac_word" >&5
5439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5440 if test "${ac_cv_path_MSGFMT+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 case "$MSGFMT" in
5444 [\\/]* | ?:[\\/]*)
5445 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5448 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH; do
5450 IFS="$ac_save_IFS"
5451 test -z "$ac_dir" && ac_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5454 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5455 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5456 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5457 break 2
5460 done
5461 done
5462 IFS="$ac_save_IFS"
5463 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5465 esac
5467 MSGFMT="$ac_cv_path_MSGFMT"
5468 if test "$MSGFMT" != ":"; then
5469 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5470 echo "${ECHO_T}$MSGFMT" >&6
5471 else
5472 echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6
5476 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5477 set dummy gmsgfmt; ac_word=$2
5478 echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 case $GMSGFMT in
5484 [\\/]* | ?:[\\/]*)
5485 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5502 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5504 esac
5506 GMSGFMT=$ac_cv_path_GMSGFMT
5508 if test -n "$GMSGFMT"; then
5509 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5510 echo "${ECHO_T}$GMSGFMT" >&6
5511 else
5512 echo "$as_me:$LINENO: result: no" >&5
5513 echo "${ECHO_T}no" >&6
5518 # Prepare PATH_SEPARATOR.
5519 # The user is always right.
5520 if test "${PATH_SEPARATOR+set}" != set; then
5521 echo "#! /bin/sh" >conf$$.sh
5522 echo "exit 0" >>conf$$.sh
5523 chmod +x conf$$.sh
5524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5525 PATH_SEPARATOR=';'
5526 else
5527 PATH_SEPARATOR=:
5529 rm -f conf$$.sh
5532 # Find out how to test for executable files. Don't use a zero-byte file,
5533 # as systems may use methods other than mode bits to determine executability.
5534 cat >conf$$.file <<_ASEOF
5535 #! /bin/sh
5536 exit 0
5537 _ASEOF
5538 chmod +x conf$$.file
5539 if test -x conf$$.file >/dev/null 2>&1; then
5540 ac_executable_p="test -x"
5541 else
5542 ac_executable_p="test -f"
5544 rm -f conf$$.file
5546 # Extract the first word of "xgettext", so it can be a program name with args.
5547 set dummy xgettext; ac_word=$2
5548 echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 case "$XGETTEXT" in
5554 [\\/]* | ?:[\\/]*)
5555 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5558 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH; do
5560 IFS="$ac_save_IFS"
5561 test -z "$ac_dir" && ac_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5564 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5565 (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
5566 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5567 break 2
5570 done
5571 done
5572 IFS="$ac_save_IFS"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5575 esac
5577 XGETTEXT="$ac_cv_path_XGETTEXT"
5578 if test "$XGETTEXT" != ":"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580 echo "${ECHO_T}$XGETTEXT" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 rm -f messages.po
5589 # Prepare PATH_SEPARATOR.
5590 # The user is always right.
5591 if test "${PATH_SEPARATOR+set}" != set; then
5592 echo "#! /bin/sh" >conf$$.sh
5593 echo "exit 0" >>conf$$.sh
5594 chmod +x conf$$.sh
5595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5596 PATH_SEPARATOR=';'
5597 else
5598 PATH_SEPARATOR=:
5600 rm -f conf$$.sh
5603 # Find out how to test for executable files. Don't use a zero-byte file,
5604 # as systems may use methods other than mode bits to determine executability.
5605 cat >conf$$.file <<_ASEOF
5606 #! /bin/sh
5607 exit 0
5608 _ASEOF
5609 chmod +x conf$$.file
5610 if test -x conf$$.file >/dev/null 2>&1; then
5611 ac_executable_p="test -x"
5612 else
5613 ac_executable_p="test -f"
5615 rm -f conf$$.file
5617 # Extract the first word of "msgmerge", so it can be a program name with args.
5618 set dummy msgmerge; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 case "$MSGMERGE" in
5625 [\\/]* | ?:[\\/]*)
5626 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5629 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5630 for ac_dir in $PATH; do
5631 IFS="$ac_save_IFS"
5632 test -z "$ac_dir" && ac_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5635 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5636 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5637 break 2
5640 done
5641 done
5642 IFS="$ac_save_IFS"
5643 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5645 esac
5647 MSGMERGE="$ac_cv_path_MSGMERGE"
5648 if test "$MSGMERGE" != ":"; then
5649 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5650 echo "${ECHO_T}$MSGMERGE" >&6
5651 else
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5657 if test "$GMSGFMT" != ":"; then
5658 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5659 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5661 else
5662 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5663 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5664 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5665 GMSGFMT=":"
5669 if test "$XGETTEXT" != ":"; then
5670 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5671 (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
5673 else
5674 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5675 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5676 XGETTEXT=":"
5678 rm -f messages.po
5681 ac_config_commands="$ac_config_commands default-1"
5685 # Permit host specific settings.
5686 . ${srcdir}/configure.host
5689 # Find a good install program. We prefer a C program (faster),
5690 # so one script is as good as another. But avoid the broken or
5691 # incompatible versions:
5692 # SysV /etc/install, /usr/sbin/install
5693 # SunOS /usr/etc/install
5694 # IRIX /sbin/install
5695 # AIX /bin/install
5696 # AmigaOS /C/install, which installs bootblocks on floppy discs
5697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5700 # OS/2's system install, which has a completely different semantic
5701 # ./install, which can be erroneously created by make from ./install.sh.
5702 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5703 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5704 if test -z "$INSTALL"; then
5705 if test "${ac_cv_path_install+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 # Account for people who put trailing slashes in PATH elements.
5714 case $as_dir/ in
5715 ./ | .// | /cC/* | \
5716 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5717 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5718 /usr/ucb/* ) ;;
5720 # OSF1 and SCO ODT 3.0 have their own names for install.
5721 # Don't use installbsd from OSF since it installs stuff as root
5722 # by default.
5723 for ac_prog in ginstall scoinst install; do
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5726 if test $ac_prog = install &&
5727 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5728 # AIX install. It has an incompatible calling convention.
5730 elif test $ac_prog = install &&
5731 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5732 # program-specific install script used by HP pwplus--don't use.
5734 else
5735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5736 break 3
5739 done
5740 done
5742 esac
5743 done
5747 if test "${ac_cv_path_install+set}" = set; then
5748 INSTALL=$ac_cv_path_install
5749 else
5750 # As a last resort, use the slow shell script. We don't cache a
5751 # path for INSTALL within a source directory, because that will
5752 # break other packages using the cache if that directory is
5753 # removed, or if the path is relative.
5754 INSTALL=$ac_install_sh
5757 echo "$as_me:$LINENO: result: $INSTALL" >&5
5758 echo "${ECHO_T}$INSTALL" >&6
5760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5761 # It thinks the first close brace ends the variable substitution.
5762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5769 BFD_HOST_64BIT_LONG=0
5770 BFD_HOST_LONG_LONG=0
5771 BFD_HOST_64_BIT_DEFINED=0
5772 BFD_HOST_64_BIT=
5773 BFD_HOST_U_64_BIT=
5775 echo "$as_me:$LINENO: checking for long long" >&5
5776 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5777 if test "${bfd_cv_has_long_long+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5788 main ()
5790 unsigned long long ll = 18446744073709551615ULL;
5792 return 0;
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag"
5805 || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 bfd_cv_has_long_long=yes
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 bfd_cv_has_long_long=no
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5828 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5829 if test $bfd_cv_has_long_long = yes; then
5830 BFD_HOST_LONG_LONG=1
5831 ac_ext=c
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5837 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5838 # On Suns, sometimes $CPP names a directory.
5839 if test -n "$CPP" && test -d "$CPP"; then
5840 CPP=
5842 if test -z "$CPP"; then
5843 if test "${ac_cv_prog_CPP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 # Double quotes because CPP needs to be expanded
5847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5849 ac_preproc_ok=false
5850 for ac_c_preproc_warn_flag in '' yes
5852 # Use a header file that comes with gcc, so configuring glibc
5853 # with a fresh cross-compiler works.
5854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 # <limits.h> exists even on freestanding compilers.
5856 # On the NeXT, cc -E runs the code through the compiler's parser,
5857 # not just through cpp. "Syntax error" is here to catch this case.
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #ifdef __STDC__
5865 # include <limits.h>
5866 #else
5867 # include <assert.h>
5868 #endif
5869 Syntax error
5870 _ACEOF
5871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } >/dev/null; then
5879 if test -s conftest.err; then
5880 ac_cpp_err=$ac_c_preproc_warn_flag
5881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5882 else
5883 ac_cpp_err=
5885 else
5886 ac_cpp_err=yes
5888 if test -z "$ac_cpp_err"; then
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 # Broken: fails on valid input.
5895 continue
5897 rm -f conftest.err conftest.$ac_ext
5899 # OK, works on sane cases. Now check whether non-existent headers
5900 # can be detected and how.
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ac_nonexistent.h>
5908 _ACEOF
5909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } >/dev/null; then
5917 if test -s conftest.err; then
5918 ac_cpp_err=$ac_c_preproc_warn_flag
5919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5920 else
5921 ac_cpp_err=
5923 else
5924 ac_cpp_err=yes
5926 if test -z "$ac_cpp_err"; then
5927 # Broken: success on invalid input.
5928 continue
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 # Passes both tests.
5934 ac_preproc_ok=:
5935 break
5937 rm -f conftest.err conftest.$ac_ext
5939 done
5940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941 rm -f conftest.err conftest.$ac_ext
5942 if $ac_preproc_ok; then
5943 break
5946 done
5947 ac_cv_prog_CPP=$CPP
5950 CPP=$ac_cv_prog_CPP
5951 else
5952 ac_cv_prog_CPP=$CPP
5954 echo "$as_me:$LINENO: result: $CPP" >&5
5955 echo "${ECHO_T}$CPP" >&6
5956 ac_preproc_ok=false
5957 for ac_c_preproc_warn_flag in '' yes
5959 # Use a header file that comes with gcc, so configuring glibc
5960 # with a fresh cross-compiler works.
5961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962 # <limits.h> exists even on freestanding compilers.
5963 # On the NeXT, cc -E runs the code through the compiler's parser,
5964 # not just through cpp. "Syntax error" is here to catch this case.
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 #ifdef __STDC__
5972 # include <limits.h>
5973 #else
5974 # include <assert.h>
5975 #endif
5976 Syntax error
5977 _ACEOF
5978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } >/dev/null; then
5986 if test -s conftest.err; then
5987 ac_cpp_err=$ac_c_preproc_warn_flag
5988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5989 else
5990 ac_cpp_err=
5992 else
5993 ac_cpp_err=yes
5995 if test -z "$ac_cpp_err"; then
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 # Broken: fails on valid input.
6002 continue
6004 rm -f conftest.err conftest.$ac_ext
6006 # OK, works on sane cases. Now check whether non-existent headers
6007 # can be detected and how.
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <ac_nonexistent.h>
6015 _ACEOF
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027 else
6028 ac_cpp_err=
6030 else
6031 ac_cpp_err=yes
6033 if test -z "$ac_cpp_err"; then
6034 # Broken: success on invalid input.
6035 continue
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 # Passes both tests.
6041 ac_preproc_ok=:
6042 break
6044 rm -f conftest.err conftest.$ac_ext
6046 done
6047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6048 rm -f conftest.err conftest.$ac_ext
6049 if $ac_preproc_ok; then
6051 else
6052 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." >&5
6054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6055 See \`config.log' for more details." >&2;}
6056 { (exit 1); exit 1; }; }
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 echo "$as_me:$LINENO: checking for egrep" >&5
6067 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6068 if test "${ac_cv_prog_egrep+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6072 then ac_cv_prog_egrep='grep -E'
6073 else ac_cv_prog_egrep='egrep'
6076 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6077 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6078 EGREP=$ac_cv_prog_egrep
6081 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6082 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6083 if test "${ac_cv_header_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <stdlib.h>
6093 #include <stdarg.h>
6094 #include <string.h>
6095 #include <float.h>
6098 main ()
6102 return 0;
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_header_stdc=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_cv_header_stdc=no
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6136 if test $ac_cv_header_stdc = yes; then
6137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <string.h>
6146 _ACEOF
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "memchr" >/dev/null 2>&1; then
6150 else
6151 ac_cv_header_stdc=no
6153 rm -f conftest*
6157 if test $ac_cv_header_stdc = yes; then
6158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6159 cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <stdlib.h>
6167 _ACEOF
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 $EGREP "free" >/dev/null 2>&1; then
6171 else
6172 ac_cv_header_stdc=no
6174 rm -f conftest*
6178 if test $ac_cv_header_stdc = yes; then
6179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6180 if test "$cross_compiling" = yes; then
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <ctype.h>
6190 #if ((' ' & 0x0FF) == 0x020)
6191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6193 #else
6194 # define ISLOWER(c) \
6195 (('a' <= (c) && (c) <= 'i') \
6196 || ('j' <= (c) && (c) <= 'r') \
6197 || ('s' <= (c) && (c) <= 'z'))
6198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6199 #endif
6201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6203 main ()
6205 int i;
6206 for (i = 0; i < 256; i++)
6207 if (XOR (islower (i), ISLOWER (i))
6208 || toupper (i) != TOUPPER (i))
6209 exit(2);
6210 exit (0);
6212 _ACEOF
6213 rm -f conftest$ac_exeext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6215 (eval $ac_link) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6225 else
6226 echo "$as_me: program exited with status $ac_status" >&5
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ( exit $ac_status )
6231 ac_cv_header_stdc=no
6233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6239 if test $ac_cv_header_stdc = yes; then
6241 cat >>confdefs.h <<\_ACEOF
6242 #define STDC_HEADERS 1
6243 _ACEOF
6247 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6258 inttypes.h stdint.h unistd.h
6260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 $ac_includes_default
6274 #include <$ac_header>
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 eval "$as_ac_Header=yes"
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 eval "$as_ac_Header=no"
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6310 cat >>confdefs.h <<_ACEOF
6311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6312 _ACEOF
6316 done
6319 echo "$as_me:$LINENO: checking for long long" >&5
6320 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6321 if test "${ac_cv_type_long_long+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 $ac_includes_default
6332 main ()
6334 if ((long long *) 0)
6335 return 0;
6336 if (sizeof (long long))
6337 return 0;
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_type_long_long=yes
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_type_long_long=no
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6374 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6376 echo "$as_me:$LINENO: checking size of long long" >&5
6377 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6378 if test "${ac_cv_sizeof_long_long+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 if test "$ac_cv_type_long_long" = yes; then
6382 # The cast to unsigned long works around a bug in the HP C Compiler
6383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6385 # This bug is HP SR number 8606223364.
6386 if test "$cross_compiling" = yes; then
6387 # Depending upon the size, compute the lo and hi bounds.
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 $ac_includes_default
6396 main ()
6398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6399 test_array [0] = 0
6402 return 0;
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_lo=0 ac_mid=0
6428 while :; do
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6437 main ()
6439 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6440 test_array [0] = 0
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_hi=$ac_mid; break
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_lo=`expr $ac_mid + 1`
6474 if test $ac_lo -le $ac_mid; then
6475 ac_lo= ac_hi=
6476 break
6478 ac_mid=`expr 2 '*' $ac_mid + 1`
6480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481 done
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 $ac_includes_default
6494 main ()
6496 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6497 test_array [0] = 0
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_hi=-1 ac_mid=-1
6526 while :; do
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6535 main ()
6537 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6538 test_array [0] = 0
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546 (eval $ac_compile) 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest.$ac_objext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_lo=$ac_mid; break
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_hi=`expr '(' $ac_mid ')' - 1`
6572 if test $ac_mid -le $ac_hi; then
6573 ac_lo= ac_hi=
6574 break
6576 ac_mid=`expr 2 '*' $ac_mid`
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 done
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 ac_lo= ac_hi=
6586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6589 # Binary search between lo and hi bounds.
6590 while test "x$ac_lo" != "x$ac_hi"; do
6591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 $ac_includes_default
6600 main ()
6602 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6603 test_array [0] = 0
6606 return 0;
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -z "$ac_c_werror_flag"
6619 || test ! -s conftest.err'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; } &&
6625 { ac_try='test -s conftest.$ac_objext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_hi=$ac_mid
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_lo=`expr '(' $ac_mid ')' + 1`
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 done
6640 case $ac_lo in
6641 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6642 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6643 See \`config.log' for more details." >&5
6644 echo "$as_me: error: cannot compute sizeof (long long), 77
6645 See \`config.log' for more details." >&2;}
6646 { (exit 1); exit 1; }; } ;;
6647 esac
6648 else
6649 if test "$cross_compiling" = yes; then
6650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6651 See \`config.log' for more details." >&5
6652 echo "$as_me: error: cannot run test program while cross compiling
6653 See \`config.log' for more details." >&2;}
6654 { (exit 1); exit 1; }; }
6655 else
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 $ac_includes_default
6663 long longval () { return (long) (sizeof (long long)); }
6664 unsigned long ulongval () { return (long) (sizeof (long long)); }
6665 #include <stdio.h>
6666 #include <stdlib.h>
6668 main ()
6671 FILE *f = fopen ("conftest.val", "w");
6672 if (! f)
6673 exit (1);
6674 if (((long) (sizeof (long long))) < 0)
6676 long i = longval ();
6677 if (i != ((long) (sizeof (long long))))
6678 exit (1);
6679 fprintf (f, "%ld\n", i);
6681 else
6683 unsigned long i = ulongval ();
6684 if (i != ((long) (sizeof (long long))))
6685 exit (1);
6686 fprintf (f, "%lu\n", i);
6688 exit (ferror (f) || fclose (f) != 0);
6691 return 0;
6693 _ACEOF
6694 rm -f conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_sizeof_long_long=`cat conftest.val`
6706 else
6707 echo "$as_me: program exited with status $ac_status" >&5
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ( exit $ac_status )
6712 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6713 See \`config.log' for more details." >&5
6714 echo "$as_me: error: cannot compute sizeof (long long), 77
6715 See \`config.log' for more details." >&2;}
6716 { (exit 1); exit 1; }; }
6718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6721 rm -f conftest.val
6722 else
6723 ac_cv_sizeof_long_long=0
6726 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6727 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6728 cat >>confdefs.h <<_ACEOF
6729 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6730 _ACEOF
6735 echo "$as_me:$LINENO: checking for long" >&5
6736 echo $ECHO_N "checking for long... $ECHO_C" >&6
6737 if test "${ac_cv_type_long+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6748 main ()
6750 if ((long *) 0)
6751 return 0;
6752 if (sizeof (long))
6753 return 0;
6755 return 0;
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -z "$ac_c_werror_flag"
6768 || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest.$ac_objext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_type_long=yes
6781 else
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_cv_type_long=no
6787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6790 echo "${ECHO_T}$ac_cv_type_long" >&6
6792 echo "$as_me:$LINENO: checking size of long" >&5
6793 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6794 if test "${ac_cv_sizeof_long+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 if test "$ac_cv_type_long" = yes; then
6798 # The cast to unsigned long works around a bug in the HP C Compiler
6799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6801 # This bug is HP SR number 8606223364.
6802 if test "$cross_compiling" = yes; then
6803 # Depending upon the size, compute the lo and hi bounds.
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6812 main ()
6814 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6815 test_array [0] = 0
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_lo=0 ac_mid=0
6844 while :; do
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 $ac_includes_default
6853 main ()
6855 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6856 test_array [0] = 0
6859 return 0;
6861 _ACEOF
6862 rm -f conftest.$ac_objext
6863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864 (eval $ac_compile) 2>conftest.er1
6865 ac_status=$?
6866 grep -v '^ *+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -z "$ac_c_werror_flag"
6872 || test ! -s conftest.err'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; } &&
6878 { ac_try='test -s conftest.$ac_objext'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6884 ac_hi=$ac_mid; break
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_lo=`expr $ac_mid + 1`
6890 if test $ac_lo -le $ac_mid; then
6891 ac_lo= ac_hi=
6892 break
6894 ac_mid=`expr 2 '*' $ac_mid + 1`
6896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6897 done
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6910 main ()
6912 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6913 test_array [0] = 0
6916 return 0;
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_hi=-1 ac_mid=-1
6942 while :; do
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6951 main ()
6953 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6954 test_array [0] = 0
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_lo=$ac_mid; break
6983 else
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_hi=`expr '(' $ac_mid ')' - 1`
6988 if test $ac_mid -le $ac_hi; then
6989 ac_lo= ac_hi=
6990 break
6992 ac_mid=`expr 2 '*' $ac_mid`
6994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 done
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_lo= ac_hi=
7002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7005 # Binary search between lo and hi bounds.
7006 while test "x$ac_lo" != "x$ac_hi"; do
7007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7016 main ()
7018 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7019 test_array [0] = 0
7022 return 0;
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_hi=$ac_mid
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_lo=`expr '(' $ac_mid ')' + 1`
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055 done
7056 case $ac_lo in
7057 ?*) ac_cv_sizeof_long=$ac_lo;;
7058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7059 See \`config.log' for more details." >&5
7060 echo "$as_me: error: cannot compute sizeof (long), 77
7061 See \`config.log' for more details." >&2;}
7062 { (exit 1); exit 1; }; } ;;
7063 esac
7064 else
7065 if test "$cross_compiling" = yes; then
7066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7067 See \`config.log' for more details." >&5
7068 echo "$as_me: error: cannot run test program while cross compiling
7069 See \`config.log' for more details." >&2;}
7070 { (exit 1); exit 1; }; }
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 $ac_includes_default
7079 long longval () { return (long) (sizeof (long)); }
7080 unsigned long ulongval () { return (long) (sizeof (long)); }
7081 #include <stdio.h>
7082 #include <stdlib.h>
7084 main ()
7087 FILE *f = fopen ("conftest.val", "w");
7088 if (! f)
7089 exit (1);
7090 if (((long) (sizeof (long))) < 0)
7092 long i = longval ();
7093 if (i != ((long) (sizeof (long))))
7094 exit (1);
7095 fprintf (f, "%ld\n", i);
7097 else
7099 unsigned long i = ulongval ();
7100 if (i != ((long) (sizeof (long))))
7101 exit (1);
7102 fprintf (f, "%lu\n", i);
7104 exit (ferror (f) || fclose (f) != 0);
7107 return 0;
7109 _ACEOF
7110 rm -f conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_sizeof_long=`cat conftest.val`
7122 else
7123 echo "$as_me: program exited with status $ac_status" >&5
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ( exit $ac_status )
7128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7129 See \`config.log' for more details." >&5
7130 echo "$as_me: error: cannot compute sizeof (long), 77
7131 See \`config.log' for more details." >&2;}
7132 { (exit 1); exit 1; }; }
7134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 rm -f conftest.val
7138 else
7139 ac_cv_sizeof_long=0
7142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7143 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7144 cat >>confdefs.h <<_ACEOF
7145 #define SIZEOF_LONG $ac_cv_sizeof_long
7146 _ACEOF
7149 if test "x${ac_cv_sizeof_long}" = "x8"; then
7150 host64=true
7151 BFD_HOST_64BIT_LONG=1
7152 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7153 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7154 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7155 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7156 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7159 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7160 BFD_HOST_64_BIT_DEFINED=1
7161 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7162 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7171 # Put a plausible default for CC_FOR_BUILD in Makefile.
7172 if test -z "$CC_FOR_BUILD"; then
7173 if test "x$cross_compiling" = "xno"; then
7174 CC_FOR_BUILD='$(CC)'
7175 else
7176 CC_FOR_BUILD=gcc
7180 # Also set EXEEXT_FOR_BUILD.
7181 if test "x$cross_compiling" = "xno"; then
7182 EXEEXT_FOR_BUILD='$(EXEEXT)'
7183 else
7184 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7185 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7186 if test "${bfd_cv_build_exeext+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189 rm -f conftest*
7190 echo 'int main () { return 0; }' > conftest.c
7191 bfd_cv_build_exeext=
7192 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7193 for file in conftest.*; do
7194 case $file in
7195 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7196 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7197 esac
7198 done
7199 rm -f conftest*
7200 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7202 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7203 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7204 EXEEXT_FOR_BUILD=""
7205 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7215 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7219 echo "$as_me:$LINENO: checking for $ac_header" >&5
7220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7226 else
7227 # Is the header compilable?
7228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 $ac_includes_default
7237 #include <$ac_header>
7238 _ACEOF
7239 rm -f conftest.$ac_objext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7241 (eval $ac_compile) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -z "$ac_c_werror_flag"
7249 || test ! -s conftest.err'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest.$ac_objext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_header_compiler=yes
7262 else
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 ac_header_compiler=no
7268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7270 echo "${ECHO_T}$ac_header_compiler" >&6
7272 # Is the header present?
7273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 #include <$ac_header>
7282 _ACEOF
7283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } >/dev/null; then
7291 if test -s conftest.err; then
7292 ac_cpp_err=$ac_c_preproc_warn_flag
7293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7294 else
7295 ac_cpp_err=
7297 else
7298 ac_cpp_err=yes
7300 if test -z "$ac_cpp_err"; then
7301 ac_header_preproc=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_header_preproc=no
7308 rm -f conftest.err conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7310 echo "${ECHO_T}$ac_header_preproc" >&6
7312 # So? What about this header?
7313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7314 yes:no: )
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7319 ac_header_preproc=yes
7321 no:yes:* )
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7335 cat <<\_ASBOX
7336 ## ------------------------------------------ ##
7337 ## Report this to the AC_PACKAGE_NAME lists. ##
7338 ## ------------------------------------------ ##
7339 _ASBOX
7341 sed "s/^/$as_me: WARNING: /" >&2
7343 esac
7344 echo "$as_me:$LINENO: checking for $ac_header" >&5
7345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 eval "$as_ac_Header=\$ac_header_preproc"
7351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7356 cat >>confdefs.h <<_ACEOF
7357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358 _ACEOF
7362 done
7367 for ac_header in fcntl.h sys/file.h sys/time.h
7369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7371 echo "$as_me:$LINENO: checking for $ac_header" >&5
7372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378 else
7379 # Is the header compilable?
7380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 #include <$ac_header>
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_header_compiler=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 ac_header_compiler=no
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 echo "${ECHO_T}$ac_header_compiler" >&6
7424 # Is the header present?
7425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <$ac_header>
7434 _ACEOF
7435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } >/dev/null; then
7443 if test -s conftest.err; then
7444 ac_cpp_err=$ac_c_preproc_warn_flag
7445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7446 else
7447 ac_cpp_err=
7449 else
7450 ac_cpp_err=yes
7452 if test -z "$ac_cpp_err"; then
7453 ac_header_preproc=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_header_preproc=no
7460 rm -f conftest.err conftest.$ac_ext
7461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7462 echo "${ECHO_T}$ac_header_preproc" >&6
7464 # So? What about this header?
7465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7466 yes:no: )
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7471 ac_header_preproc=yes
7473 no:yes:* )
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7487 cat <<\_ASBOX
7488 ## ------------------------------------------ ##
7489 ## Report this to the AC_PACKAGE_NAME lists. ##
7490 ## ------------------------------------------ ##
7491 _ASBOX
7493 sed "s/^/$as_me: WARNING: /" >&2
7495 esac
7496 echo "$as_me:$LINENO: checking for $ac_header" >&5
7497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 eval "$as_ac_Header=\$ac_header_preproc"
7503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7508 cat >>confdefs.h <<_ACEOF
7509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510 _ACEOF
7514 done
7516 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7518 if test "${ac_cv_header_time+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7528 #include <sys/time.h>
7529 #include <time.h>
7532 main ()
7534 if ((struct tm *) 0)
7535 return 0;
7537 return 0;
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_header_time=yes
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_header_time=no
7569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7571 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7572 echo "${ECHO_T}$ac_cv_header_time" >&6
7573 if test $ac_cv_header_time = yes; then
7575 cat >>confdefs.h <<\_ACEOF
7576 #define TIME_WITH_SYS_TIME 1
7577 _ACEOF
7586 ac_header_dirent=no
7587 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7588 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7589 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7590 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <sys/types.h>
7601 #include <$ac_hdr>
7604 main ()
7606 if ((DIR *) 0)
7607 return 0;
7609 return 0;
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 eval "$as_ac_Header=yes"
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 eval "$as_ac_Header=no"
7641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7646 cat >>confdefs.h <<_ACEOF
7647 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7648 _ACEOF
7650 ac_header_dirent=$ac_hdr; break
7653 done
7654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7655 if test $ac_header_dirent = dirent.h; then
7656 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7658 if test "${ac_cv_search_opendir+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 ac_func_search_save_LIBS=$LIBS
7662 ac_cv_search_opendir=no
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7670 /* Override any gcc2 internal prototype to avoid an error. */
7671 #ifdef __cplusplus
7672 extern "C"
7673 #endif
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676 char opendir ();
7678 main ()
7680 opendir ();
7682 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_cv_search_opendir="none required"
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7713 rm -f conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 if test "$ac_cv_search_opendir" = no; then
7716 for ac_lib in dir; do
7717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7725 /* Override any gcc2 internal prototype to avoid an error. */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731 char opendir ();
7733 main ()
7735 opendir ();
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_search_opendir="-l$ac_lib"
7763 break
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7769 rm -f conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 done
7773 LIBS=$ac_func_search_save_LIBS
7775 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7776 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7777 if test "$ac_cv_search_opendir" != no; then
7778 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7782 else
7783 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7784 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7785 if test "${ac_cv_search_opendir+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 ac_func_search_save_LIBS=$LIBS
7789 ac_cv_search_opendir=no
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h. */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803 char opendir ();
7805 main ()
7807 opendir ();
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_search_opendir="none required"
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7840 rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 if test "$ac_cv_search_opendir" = no; then
7843 for ac_lib in x; do
7844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h. */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7852 /* Override any gcc2 internal prototype to avoid an error. */
7853 #ifdef __cplusplus
7854 extern "C"
7855 #endif
7856 /* We use char because int might match the return type of a gcc2
7857 builtin and then its argument prototype would still apply. */
7858 char opendir ();
7860 main ()
7862 opendir ();
7864 return 0;
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_search_opendir="-l$ac_lib"
7890 break
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7896 rm -f conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 done
7900 LIBS=$ac_func_search_save_LIBS
7902 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7903 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7904 if test "$ac_cv_search_opendir" != no; then
7905 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7911 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7912 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7913 if test "${gcc_cv_header_string+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <string.h>
7923 #include <strings.h>
7925 main ()
7929 return 0;
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934 (eval $ac_compile) 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -z "$ac_c_werror_flag"
7942 || test ! -s conftest.err'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 (eval $ac_try) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; } &&
7948 { ac_try='test -s conftest.$ac_objext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 gcc_cv_header_string=yes
7955 else
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 gcc_cv_header_string=no
7961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7964 echo "${ECHO_T}$gcc_cv_header_string" >&6
7965 if test $gcc_cv_header_string = yes; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define STRING_WITH_STRINGS 1
7969 _ACEOF
7980 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
7982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983 echo "$as_me:$LINENO: checking for $ac_func" >&5
7984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7985 if eval "test \"\${$as_ac_var+set}\" = set"; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7996 #define $ac_func innocuous_$ac_func
7998 /* System header to define __stub macros and hopefully few prototypes,
7999 which can conflict with char $ac_func (); below.
8000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8001 <limits.h> exists even on freestanding compilers. */
8003 #ifdef __STDC__
8004 # include <limits.h>
8005 #else
8006 # include <assert.h>
8007 #endif
8009 #undef $ac_func
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 #ifdef __cplusplus
8013 extern "C"
8015 #endif
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char $ac_func ();
8019 /* The GNU C library defines this for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8023 choke me
8024 #else
8025 char (*f) () = $ac_func;
8026 #endif
8027 #ifdef __cplusplus
8029 #endif
8032 main ()
8034 return f != $ac_func;
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 eval "$as_ac_var=yes"
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 eval "$as_ac_var=no"
8068 rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8073 if test `eval echo '${'$as_ac_var'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8076 _ACEOF
8079 done
8082 for ac_func in strtoull
8084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8085 echo "$as_me:$LINENO: checking for $ac_func" >&5
8086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8087 if eval "test \"\${$as_ac_var+set}\" = set"; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8098 #define $ac_func innocuous_$ac_func
8100 /* System header to define __stub macros and hopefully few prototypes,
8101 which can conflict with char $ac_func (); below.
8102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103 <limits.h> exists even on freestanding compilers. */
8105 #ifdef __STDC__
8106 # include <limits.h>
8107 #else
8108 # include <assert.h>
8109 #endif
8111 #undef $ac_func
8113 /* Override any gcc2 internal prototype to avoid an error. */
8114 #ifdef __cplusplus
8115 extern "C"
8117 #endif
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8120 char $ac_func ();
8121 /* The GNU C library defines this for functions which it implements
8122 to always fail with ENOSYS. Some functions are actually named
8123 something starting with __ and the normal name is an alias. */
8124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8125 choke me
8126 #else
8127 char (*f) () = $ac_func;
8128 #endif
8129 #ifdef __cplusplus
8131 #endif
8134 main ()
8136 return f != $ac_func;
8138 return 0;
8140 _ACEOF
8141 rm -f conftest.$ac_objext conftest$ac_exeext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -z "$ac_c_werror_flag"
8151 || test ! -s conftest.err'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 (eval $ac_try) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 eval "$as_ac_var=yes"
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 eval "$as_ac_var=no"
8170 rm -f conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8175 if test `eval echo '${'$as_ac_var'}'` = yes; then
8176 cat >>confdefs.h <<_ACEOF
8177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8178 _ACEOF
8181 done
8184 echo "$as_me:$LINENO: checking whether basename is declared" >&5
8185 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8186 if test "${ac_cv_have_decl_basename+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8197 main ()
8199 #ifndef basename
8200 char *p = (char *) basename;
8201 #endif
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_have_decl_basename=yes
8230 else
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_have_decl_basename=no
8236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8239 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8240 if test $ac_cv_have_decl_basename = yes; then
8242 cat >>confdefs.h <<_ACEOF
8243 #define HAVE_DECL_BASENAME 1
8244 _ACEOF
8247 else
8248 cat >>confdefs.h <<_ACEOF
8249 #define HAVE_DECL_BASENAME 0
8250 _ACEOF
8256 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8257 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8258 if test "${ac_cv_have_decl_ftello+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 $ac_includes_default
8269 main ()
8271 #ifndef ftello
8272 char *p = (char *) ftello;
8273 #endif
8276 return 0;
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag"
8289 || test ! -s conftest.err'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest.$ac_objext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_have_decl_ftello=yes
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_cv_have_decl_ftello=no
8308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8311 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8312 if test $ac_cv_have_decl_ftello = yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_DECL_FTELLO 1
8316 _ACEOF
8319 else
8320 cat >>confdefs.h <<_ACEOF
8321 #define HAVE_DECL_FTELLO 0
8322 _ACEOF
8328 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8329 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8330 if test "${ac_cv_have_decl_ftello64+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8341 main ()
8343 #ifndef ftello64
8344 char *p = (char *) ftello64;
8345 #endif
8348 return 0;
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8353 (eval $ac_compile) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag"
8361 || test ! -s conftest.err'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_cv_have_decl_ftello64=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 ac_cv_have_decl_ftello64=no
8380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8383 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8384 if test $ac_cv_have_decl_ftello64 = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387 #define HAVE_DECL_FTELLO64 1
8388 _ACEOF
8391 else
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_DECL_FTELLO64 0
8394 _ACEOF
8400 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8401 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8402 if test "${ac_cv_have_decl_fseeko+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8413 main ()
8415 #ifndef fseeko
8416 char *p = (char *) fseeko;
8417 #endif
8420 return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_have_decl_fseeko=yes
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_cv_have_decl_fseeko=no
8452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8454 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8455 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8456 if test $ac_cv_have_decl_fseeko = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459 #define HAVE_DECL_FSEEKO 1
8460 _ACEOF
8463 else
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_DECL_FSEEKO 0
8466 _ACEOF
8472 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8473 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8474 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8485 main ()
8487 #ifndef fseeko64
8488 char *p = (char *) fseeko64;
8489 #endif
8492 return 0;
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag"
8505 || test ! -s conftest.err'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest.$ac_objext'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 (eval $ac_try) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_have_decl_fseeko64=yes
8518 else
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ac_cv_have_decl_fseeko64=no
8524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8526 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8527 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8528 if test $ac_cv_have_decl_fseeko64 = yes; then
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_FSEEKO64 1
8532 _ACEOF
8535 else
8536 cat >>confdefs.h <<_ACEOF
8537 #define HAVE_DECL_FSEEKO64 0
8538 _ACEOF
8546 case "${host}" in
8547 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8549 cat >>confdefs.h <<\_ACEOF
8550 #define USE_BINARY_FOPEN 1
8551 _ACEOF
8553 esac
8555 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8556 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8557 if test "${ac_cv_have_decl_ffs+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8568 main ()
8570 #ifndef ffs
8571 char *p = (char *) ffs;
8572 #endif
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_cv_have_decl_ffs=yes
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 ac_cv_have_decl_ffs=no
8607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8609 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8610 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8611 if test $ac_cv_have_decl_ffs = yes; then
8613 cat >>confdefs.h <<_ACEOF
8614 #define HAVE_DECL_FFS 1
8615 _ACEOF
8618 else
8619 cat >>confdefs.h <<_ACEOF
8620 #define HAVE_DECL_FFS 0
8621 _ACEOF
8627 echo "$as_me:$LINENO: checking whether free is declared" >&5
8628 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8629 if test "${ac_cv_have_decl_free+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8640 main ()
8642 #ifndef free
8643 char *p = (char *) free;
8644 #endif
8647 return 0;
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_have_decl_free=yes
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_cv_have_decl_free=no
8679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8681 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8682 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8683 if test $ac_cv_have_decl_free = yes; then
8685 cat >>confdefs.h <<_ACEOF
8686 #define HAVE_DECL_FREE 1
8687 _ACEOF
8690 else
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_DECL_FREE 0
8693 _ACEOF
8699 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8700 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8701 if test "${ac_cv_have_decl_getenv+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8712 main ()
8714 #ifndef getenv
8715 char *p = (char *) getenv;
8716 #endif
8719 return 0;
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -z "$ac_c_werror_flag"
8732 || test ! -s conftest.err'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_have_decl_getenv=yes
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8749 ac_cv_have_decl_getenv=no
8751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8754 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8755 if test $ac_cv_have_decl_getenv = yes; then
8757 cat >>confdefs.h <<_ACEOF
8758 #define HAVE_DECL_GETENV 1
8759 _ACEOF
8762 else
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_DECL_GETENV 0
8765 _ACEOF
8771 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8772 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8773 if test "${ac_cv_have_decl_malloc+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 $ac_includes_default
8784 main ()
8786 #ifndef malloc
8787 char *p = (char *) malloc;
8788 #endif
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8796 (eval $ac_compile) 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -z "$ac_c_werror_flag"
8804 || test ! -s conftest.err'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; } &&
8810 { ac_try='test -s conftest.$ac_objext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 (eval $ac_try) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_cv_have_decl_malloc=yes
8817 else
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_have_decl_malloc=no
8823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8826 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8827 if test $ac_cv_have_decl_malloc = yes; then
8829 cat >>confdefs.h <<_ACEOF
8830 #define HAVE_DECL_MALLOC 1
8831 _ACEOF
8834 else
8835 cat >>confdefs.h <<_ACEOF
8836 #define HAVE_DECL_MALLOC 0
8837 _ACEOF
8843 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8844 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8845 if test "${ac_cv_have_decl_realloc+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 $ac_includes_default
8856 main ()
8858 #ifndef realloc
8859 char *p = (char *) realloc;
8860 #endif
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_have_decl_realloc=yes
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_cv_have_decl_realloc=no
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8898 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8899 if test $ac_cv_have_decl_realloc = yes; then
8901 cat >>confdefs.h <<_ACEOF
8902 #define HAVE_DECL_REALLOC 1
8903 _ACEOF
8906 else
8907 cat >>confdefs.h <<_ACEOF
8908 #define HAVE_DECL_REALLOC 0
8909 _ACEOF
8915 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8916 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8917 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h. */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 $ac_includes_default
8928 main ()
8930 #ifndef stpcpy
8931 char *p = (char *) stpcpy;
8932 #endif
8935 return 0;
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_have_decl_stpcpy=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 ac_cv_have_decl_stpcpy=no
8967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8970 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8971 if test $ac_cv_have_decl_stpcpy = yes; then
8973 cat >>confdefs.h <<_ACEOF
8974 #define HAVE_DECL_STPCPY 1
8975 _ACEOF
8978 else
8979 cat >>confdefs.h <<_ACEOF
8980 #define HAVE_DECL_STPCPY 0
8981 _ACEOF
8987 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8988 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8989 if test "${ac_cv_have_decl_strstr+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 $ac_includes_default
9000 main ()
9002 #ifndef strstr
9003 char *p = (char *) strstr;
9004 #endif
9007 return 0;
9009 _ACEOF
9010 rm -f conftest.$ac_objext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9012 (eval $ac_compile) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest.$ac_objext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_have_decl_strstr=yes
9033 else
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ac_cv_have_decl_strstr=no
9039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9041 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9042 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9043 if test $ac_cv_have_decl_strstr = yes; then
9045 cat >>confdefs.h <<_ACEOF
9046 #define HAVE_DECL_STRSTR 1
9047 _ACEOF
9050 else
9051 cat >>confdefs.h <<_ACEOF
9052 #define HAVE_DECL_STRSTR 0
9053 _ACEOF
9059 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9060 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9061 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9072 main ()
9074 #ifndef snprintf
9075 char *p = (char *) snprintf;
9076 #endif
9079 return 0;
9081 _ACEOF
9082 rm -f conftest.$ac_objext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -z "$ac_c_werror_flag"
9092 || test ! -s conftest.err'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_have_decl_snprintf=yes
9105 else
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 ac_cv_have_decl_snprintf=no
9111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9114 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9115 if test $ac_cv_have_decl_snprintf = yes; then
9117 cat >>confdefs.h <<_ACEOF
9118 #define HAVE_DECL_SNPRINTF 1
9119 _ACEOF
9122 else
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_DECL_SNPRINTF 0
9125 _ACEOF
9131 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9132 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9133 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h. */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9144 main ()
9146 #ifndef vsnprintf
9147 char *p = (char *) vsnprintf;
9148 #endif
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_have_decl_vsnprintf=yes
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_cv_have_decl_vsnprintf=no
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9186 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9187 if test $ac_cv_have_decl_vsnprintf = yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define HAVE_DECL_VSNPRINTF 1
9191 _ACEOF
9194 else
9195 cat >>confdefs.h <<_ACEOF
9196 #define HAVE_DECL_VSNPRINTF 0
9197 _ACEOF
9204 # If we are configured native, pick a core file support file.
9205 COREFILE=
9206 COREFLAG=
9207 TRAD_HEADER=
9208 if test "${target}" = "${host}"; then
9209 case "${host}" in
9210 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9211 COREFILE=''
9213 alpha*-*-linux-*)
9214 COREFILE=trad-core.lo
9215 TRAD_HEADER='"hosts/alphalinux.h"'
9217 alpha*-*-netbsd* | alpha*-*-openbsd*)
9218 COREFILE=netbsd-core.lo
9220 alpha*-*-*) COREFILE=osf-core.lo ;;
9221 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9222 COREFILE='' ;;
9223 arm-*-netbsd* | arm-*-openbsd*)
9224 COREFILE=netbsd-core.lo
9226 arm-*-riscix) COREFILE=trad-core.lo ;;
9227 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9228 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9229 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9230 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9231 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9232 hppa*-*-netbsd* | hppa*-*-openbsd*)
9233 COREFILE=netbsd-core.lo
9236 i370-*-*)
9237 COREFILE=trad-core.lo
9238 TRAD_HEADER='"hosts/i370linux.h"'
9241 i[3-7]86-sequent-bsd*)
9242 COREFILE=trad-core.lo
9243 TRAD_HEADER='"hosts/symmetry.h"'
9245 i[3-7]86-sequent-sysv4*) ;;
9246 i[3-7]86-sequent-sysv*)
9247 COREFILE=trad-core.lo
9248 TRAD_HEADER='"hosts/symmetry.h"'
9250 i[3-7]86-*-bsdi)
9251 COREFILE=
9253 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*)
9254 COREFILE=trad-core.lo
9255 TRAD_HEADER='"hosts/i386bsd.h"'
9257 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9258 COREFILE=''
9259 TRAD_HEADER='"hosts/i386bsd.h"'
9261 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9262 COREFILE=netbsd-core.lo
9264 i[3-7]86-esix-sysv3*)
9265 COREFILE=trad-core.lo
9266 TRAD_HEADER='"hosts/esix.h"'
9268 i[3-7]86-*-sco3.2v5*)
9269 COREFILE=sco5-core.lo
9271 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9272 COREFILE=trad-core.lo
9273 TRAD_HEADER='"hosts/i386sco.h"'
9275 i[3-7]86-*-mach3*)
9276 COREFILE=trad-core.lo
9277 TRAD_HEADER='"hosts/i386mach3.h"'
9279 i[3-7]86-*-linux-*)
9280 COREFILE=trad-core.lo
9281 TRAD_HEADER='"hosts/i386linux.h"'
9283 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9284 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9285 i860-*-mach3* | i860-*-osf1*)
9286 COREFILE=trad-core.lo
9287 TRAD_HEADER='"hosts/i860mach3.h"'
9289 mips-*-netbsd* | mips*-*-openbsd*)
9290 COREFILE=netbsd-core.lo
9292 mips-dec-*)
9293 COREFILE=trad-core.lo
9294 TRAD_HEADER='"hosts/decstation.h"'
9296 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9297 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9298 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9299 mips-*-sysv4*) ;;
9300 mips-*-sysv* | mips-*-riscos*)
9301 COREFILE=trad-core.lo
9302 TRAD_HEADER='"hosts/riscos.h"'
9304 mips-sony-bsd*)
9305 COREFILE=trad-core.lo
9306 TRAD_HEADER='"hosts/news-mips.h"'
9308 m68*-bull*-sysv*)
9309 COREFILE=trad-core.lo
9310 TRAD_HEADER='"hosts/dpx2.h"'
9312 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9313 m68*-hp-bsd*)
9314 COREFILE=trad-core.lo
9315 TRAD_HEADER='"hosts/hp300bsd.h"'
9317 m68*-*-linux-*)
9318 COREFILE=trad-core.lo
9319 TRAD_HEADER='"hosts/m68klinux.h"'
9321 m68*-motorola-sysv*)
9322 COREFILE=trad-core.lo
9323 TRAD_HEADER='"hosts/delta68.h"'
9325 m68*-sony-*)
9326 COREFILE=trad-core.lo
9327 TRAD_HEADER='"hosts/news.h"'
9329 m68*-*-netbsd* | m68*-*-openbsd*)
9330 COREFILE=netbsd-core.lo
9332 m68*-apple-aux*)
9333 COREFILE=trad-core.lo
9334 TRAD_HEADER='"hosts/m68kaux.h"'
9336 m88*-*-sysv4*)
9338 m88*-motorola-sysv*)
9339 COREFILE=ptrace-core.lo
9341 m88*-*-mach3*)
9342 COREFILE=trad-core.lo
9343 TRAD_HEADER='"hosts/m88kmach3.h"'
9345 m88*-*-openbsd*)
9346 COREFILE=netbsd-core.lo
9348 ns32k-pc532-mach)
9349 COREFILE=trad-core.lo
9350 TRAD_HEADER='"hosts/pc532mach.h"'
9352 ns32k-*-netbsd* | ns32k-*-openbsd*)
9353 COREFILE=netbsd-core.lo
9355 rs6000-*-lynx*)
9356 COREFILE=lynx-core.lo
9358 rs6000-*-aix5.* | powerpc-*-aix5.*)
9359 COREFILE=rs6000-core.lo
9360 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9362 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9363 COREFILE=rs6000-core.lo
9364 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9365 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9366 # have c_impl as a member of struct core_dumpx
9367 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9368 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 #include <core.h>
9377 main ()
9379 struct core_dumpx c; c.c_impl = 0;
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9407 cat >>confdefs.h <<\_ACEOF
9408 #define HAVE_ST_C_IMPL 1
9409 _ACEOF
9411 echo "$as_me:$LINENO: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 echo "$as_me:$LINENO: result: no" >&5
9418 echo "${ECHO_T}no" >&6
9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9422 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9423 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9424 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9425 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9426 powerpc-*-beos*) ;;
9427 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9428 COREFILE='' ;;
9429 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9430 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9431 s390*-*-*) COREFILE=trad-core.lo ;;
9432 sh*-*-netbsd* | sh*-*-openbsd*)
9433 COREFILE=netbsd-core.lo
9435 sparc-*-netbsd* | sparc*-*-openbsd*)
9436 COREFILE=netbsd-core.lo
9438 tahoe-*-*)
9439 COREFILE=trad-core.lo
9440 TRAD_HEADER='"hosts/tahoe.h"'
9442 vax-*-netbsd* | vax-*-openbsd*)
9443 COREFILE=netbsd-core.lo
9445 vax-*-ultrix2*)
9446 COREFILE=trad-core.lo
9447 TRAD_HEADER='"hosts/vaxult2.h"'
9449 vax-*-ultrix*)
9450 COREFILE=trad-core.lo
9451 TRAD_HEADER='"hosts/vaxult2.h"'
9453 vax-*-linux-*)
9454 COREFILE=trad-core.lo
9455 TRAD_HEADER='"hosts/vaxlinux.h"'
9457 vax-*-*)
9458 COREFILE=trad-core.lo
9459 TRAD_HEADER='"hosts/vaxbsd.h"'
9461 x86_64-*-netbsd* | x86_64-*-openbsd*)
9462 COREFILE=netbsd-core.lo
9464 esac
9466 case "$COREFILE" in
9467 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9468 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9469 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9470 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9471 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9472 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9473 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9474 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9475 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9476 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9477 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9478 esac
9480 # ELF corefile support has several flavors, but all of
9481 # them use something called <sys/procfs.h>
9483 for ac_header in sys/procfs.h
9485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9487 echo "$as_me:$LINENO: checking for $ac_header" >&5
9488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9494 else
9495 # Is the header compilable?
9496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9505 #include <$ac_header>
9506 _ACEOF
9507 rm -f conftest.$ac_objext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9509 (eval $ac_compile) 2>conftest.er1
9510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -z "$ac_c_werror_flag"
9517 || test ! -s conftest.err'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; } &&
9523 { ac_try='test -s conftest.$ac_objext'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 (eval $ac_try) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_header_compiler=yes
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_header_compiler=no
9536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9538 echo "${ECHO_T}$ac_header_compiler" >&6
9540 # Is the header present?
9541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 #include <$ac_header>
9550 _ACEOF
9551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } >/dev/null; then
9559 if test -s conftest.err; then
9560 ac_cpp_err=$ac_c_preproc_warn_flag
9561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9562 else
9563 ac_cpp_err=
9565 else
9566 ac_cpp_err=yes
9568 if test -z "$ac_cpp_err"; then
9569 ac_header_preproc=yes
9570 else
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_header_preproc=no
9576 rm -f conftest.err conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9578 echo "${ECHO_T}$ac_header_preproc" >&6
9580 # So? What about this header?
9581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9582 yes:no: )
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9587 ac_header_preproc=yes
9589 no:yes:* )
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9603 cat <<\_ASBOX
9604 ## ------------------------------------------ ##
9605 ## Report this to the AC_PACKAGE_NAME lists. ##
9606 ## ------------------------------------------ ##
9607 _ASBOX
9609 sed "s/^/$as_me: WARNING: /" >&2
9611 esac
9612 echo "$as_me:$LINENO: checking for $ac_header" >&5
9613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 eval "$as_ac_Header=\$ac_header_preproc"
9619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9626 _ACEOF
9630 done
9632 if test "$ac_cv_header_sys_procfs_h" = yes; then
9633 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9634 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9635 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 #define _SYSCALL32
9646 #include <sys/procfs.h>
9648 main ()
9650 prstatus_t avar
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 bfd_cv_have_sys_procfs_type_prstatus_t=no
9685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_PRSTATUS_T 1
9692 _ACEOF
9695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9696 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
9698 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9699 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9700 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9710 #define _SYSCALL32
9711 #include <sys/procfs.h>
9713 main ()
9715 prstatus32_t avar
9717 return 0;
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag"
9730 || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest.$ac_objext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9743 else
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 bfd_cv_have_sys_procfs_type_prstatus32_t=no
9750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9753 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
9755 cat >>confdefs.h <<\_ACEOF
9756 #define HAVE_PRSTATUS32_T 1
9757 _ACEOF
9760 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9761 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
9763 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9764 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9765 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9775 #define _SYSCALL32
9776 #include <sys/procfs.h>
9778 main ()
9780 prstatus_t avar; void* aref = (void*) &avar.pr_who
9782 return 0;
9784 _ACEOF
9785 rm -f conftest.$ac_objext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9787 (eval $ac_compile) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest.$ac_objext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
9820 cat >>confdefs.h <<\_ACEOF
9821 #define HAVE_PRSTATUS_T_PR_WHO 1
9822 _ACEOF
9825 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9826 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
9828 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9829 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9830 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 #define _SYSCALL32
9841 #include <sys/procfs.h>
9843 main ()
9845 prstatus32_t avar; void* aref = (void*) &avar.pr_who
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9883 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
9885 cat >>confdefs.h <<\_ACEOF
9886 #define HAVE_PRSTATUS32_T_PR_WHO 1
9887 _ACEOF
9890 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9891 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
9893 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9894 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9895 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9905 #define _SYSCALL32
9906 #include <sys/procfs.h>
9908 main ()
9910 pstatus_t avar
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 bfd_cv_have_sys_procfs_type_pstatus_t=no
9945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9948 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_PSTATUS_T 1
9952 _ACEOF
9955 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9956 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
9958 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9959 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9960 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 #define _SYSCALL32
9971 #include <sys/procfs.h>
9973 main ()
9975 pxstatus_t avar
9977 return 0;
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag"
9990 || test ! -s conftest.err'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest.$ac_objext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10013 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_PXSTATUS_T 1
10017 _ACEOF
10020 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10021 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10023 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10024 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10025 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10035 #define _SYSCALL32
10036 #include <sys/procfs.h>
10038 main ()
10040 pstatus32_t avar
10042 return 0;
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10078 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10080 cat >>confdefs.h <<\_ACEOF
10081 #define HAVE_PSTATUS32_T 1
10082 _ACEOF
10085 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10086 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10088 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10089 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10090 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h. */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10100 #define _SYSCALL32
10101 #include <sys/procfs.h>
10103 main ()
10105 prpsinfo_t avar
10107 return 0;
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag"
10120 || test ! -s conftest.err'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10143 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_PRPSINFO_T 1
10147 _ACEOF
10150 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10151 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10153 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10154 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10155 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 #define _SYSCALL32
10166 #include <sys/procfs.h>
10168 main ()
10170 prpsinfo32_t avar
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest.$ac_objext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10208 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_PRPSINFO32_T 1
10212 _ACEOF
10215 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10216 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10218 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10219 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10220 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10230 #define _SYSCALL32
10231 #include <sys/procfs.h>
10233 main ()
10235 psinfo_t avar
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 bfd_cv_have_sys_procfs_type_psinfo_t=no
10270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10273 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10275 cat >>confdefs.h <<\_ACEOF
10276 #define HAVE_PSINFO_T 1
10277 _ACEOF
10280 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10281 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10283 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10284 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10285 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10295 #define _SYSCALL32
10296 #include <sys/procfs.h>
10298 main ()
10300 psinfo32_t avar
10302 return 0;
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag"
10315 || test ! -s conftest.err'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest.$ac_objext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10338 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_PSINFO32_T 1
10342 _ACEOF
10345 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10346 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10348 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10349 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10350 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10360 #define _SYSCALL32
10361 #include <sys/procfs.h>
10363 main ()
10365 lwpstatus_t avar
10367 return 0;
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372 (eval $ac_compile) 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_c_werror_flag"
10380 || test ! -s conftest.err'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10393 else
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10405 cat >>confdefs.h <<\_ACEOF
10406 #define HAVE_LWPSTATUS_T 1
10407 _ACEOF
10410 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10411 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10413 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10414 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10415 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10425 #define _SYSCALL32
10426 #include <sys/procfs.h>
10428 main ()
10430 lwpxstatus_t avar
10432 return 0;
10434 _ACEOF
10435 rm -f conftest.$ac_objext
10436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437 (eval $ac_compile) 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_c_werror_flag"
10445 || test ! -s conftest.err'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try='test -s conftest.$ac_objext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10458 else
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10468 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10470 cat >>confdefs.h <<\_ACEOF
10471 #define HAVE_LWPXSTATUS_T 1
10472 _ACEOF
10475 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10476 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10478 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10479 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10480 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10490 #define _SYSCALL32
10491 #include <sys/procfs.h>
10493 main ()
10495 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10497 return 0;
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10535 cat >>confdefs.h <<\_ACEOF
10536 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10537 _ACEOF
10540 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10541 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10543 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10544 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10545 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 #define _SYSCALL32
10556 #include <sys/procfs.h>
10558 main ()
10560 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10598 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_LWPSTATUS_T_PR_REG 1
10602 _ACEOF
10605 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10606 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10608 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10609 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10610 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 #define _SYSCALL32
10621 #include <sys/procfs.h>
10623 main ()
10625 win32_pstatus_t avar
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest.$ac_objext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10663 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10665 cat >>confdefs.h <<\_ACEOF
10666 #define HAVE_WIN32_PSTATUS_T 1
10667 _ACEOF
10670 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10671 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10677 if test -n "$TRAD_HEADER"; then
10679 cat >>confdefs.h <<_ACEOF
10680 #define TRAD_HEADER $TRAD_HEADER
10681 _ACEOF
10685 # Horrible hacks to build DLLs on Windows.
10686 WIN32LDFLAGS=
10687 WIN32LIBADD=
10688 case "${host}" in
10689 *-*-cygwin*)
10690 if test "$enable_shared" = "yes"; then
10691 WIN32LDFLAGS="-no-undefined"
10692 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10695 *-*-linux*)
10696 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10697 # libiberty.a.
10698 case "${host}" in
10699 mips*-*-linux*)
10700 # Linux/MIPS uses PIC by default.
10701 if test "$enable_shared" = "yes"; then
10702 WIN32LIBADD="-L../libiberty -liberty"
10706 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
10707 if test -n "$x"; then
10708 WIN32LIBADD="-L../libiberty/pic -liberty"
10711 esac
10713 esac
10717 # target stuff:
10719 # Canonicalize the secondary target names.
10720 if test -n "$enable_targets" ; then
10721 for targ in `echo $enable_targets | sed 's/,/ /g'`
10723 result=`$ac_config_sub $targ 2>/dev/null`
10724 if test -n "$result" ; then
10725 canon_targets="$canon_targets $result"
10726 else
10727 # Allow targets that config.sub doesn't recognize, like "all".
10728 canon_targets="$canon_targets $targ"
10730 done
10733 all_targets=false
10734 defvec=
10735 selvecs=
10736 assocvecs=
10737 selarchs=
10738 TDEFINES=
10739 for targ in $target $canon_targets
10741 if test "x$targ" = "xall"; then
10742 all_targets=true
10743 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
10744 else
10745 . $srcdir/config.bfd
10746 if test "x$targ" = "x$target"; then
10747 defvec=$targ_defvec
10749 selvecs="$selvecs $targ_defvec $targ_selvecs"
10750 selarchs="$selarchs $targ_archs"
10751 TDEFINES="$TDEFINES $targ_cflags"
10753 done
10756 # This processing still needs to be done if we're to decide properly whether
10757 # 64-bit support needs to be compiled in. Currently, it will be included if
10758 # the default or any other explicitly requested target requires it; it
10759 # will not be included on a 32-bit host if no 64-bit target is requested, and
10760 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
10761 # used.
10763 # uniq the default and selected vectors in all the configured targets.
10764 f=""
10765 for i in $selvecs ; do
10766 case " $f " in
10767 *" $i "*) ;;
10768 *) f="$f $i" ;;
10769 esac
10770 done
10771 selvecs="$f"
10774 # uniq the associated vectors in all the configured targets.
10775 f=""
10776 for i in $assocvecs ; do
10777 case " $f " in
10778 *" $i "*) ;;
10779 *) f="$f $i" ;;
10780 esac
10781 done
10782 assocvecs="$f"
10785 # uniq the architectures in all the configured targets.
10786 f=""
10787 for i in $selarchs ; do
10788 case " $f " in
10789 *" $i "*) ;;
10790 *) f="$f $i" ;;
10791 esac
10792 done
10793 selarchs="$f"
10795 # Target backend .o files.
10798 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
10800 for vec in $selvecs
10802 target_size=32
10803 case "$vec" in
10804 # This list is alphabetized to make it easy to compare
10805 # with the two vector lists in targets.c. For the same reason,
10806 # use one entry per line, even though this leads to long lines.
10807 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
10808 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
10809 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10810 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10811 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10812 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
10813 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10814 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10815 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10816 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10817 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10818 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10819 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10820 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10821 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10822 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10823 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10824 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10825 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10826 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10827 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10828 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10829 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
10830 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
10831 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
10832 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
10833 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
10834 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
10835 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10836 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
10837 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10838 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10839 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10840 bfd_elf32_bigarm_symbian_vec)
10841 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10842 bfd_elf32_bigarm_vxworks_vec)
10843 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10844 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10845 bfd_elf32_bigmips_vxworks_vec)
10846 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10847 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
10848 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10849 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
10850 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10851 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
10852 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
10853 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
10854 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10855 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
10856 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
10857 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10858 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10859 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
10860 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
10861 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10862 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10863 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10864 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10865 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
10866 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
10867 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
10868 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
10869 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
10870 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
10871 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
10872 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
10873 bfd_elf32_littlearm_symbian_vec)
10874 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10875 bfd_elf32_littlearm_vxworks_vec)
10876 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10877 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10878 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10879 bfd_elf32_littlemips_vxworks_vec)
10880 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10881 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
10882 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10883 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10884 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10885 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10886 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10887 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10888 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10889 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10890 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10891 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10892 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10893 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10894 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10895 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
10896 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
10897 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
10898 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10899 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10900 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10901 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10902 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
10903 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
10904 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10905 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10906 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10907 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10908 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10909 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
10910 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10911 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10912 # FIXME: We include cofflink.lo not because it's needed for
10913 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10914 # which needs it but does not list it. Should be fixed in right place.
10915 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10916 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10917 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10918 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10919 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10920 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10921 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10922 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10923 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10924 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10925 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10926 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10927 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10928 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10929 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10930 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10931 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10932 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
10933 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10934 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10935 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
10936 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
10937 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
10938 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
10939 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
10940 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10941 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10942 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10943 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10944 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10945 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 ;;
10946 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10947 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10948 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10949 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10950 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10951 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10952 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 ;;
10953 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
10954 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10955 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10956 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
10957 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10958 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10959 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10960 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10961 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10962 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10963 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10964 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
10965 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 ;;
10966 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 ;;
10967 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10968 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
10969 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
10970 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10971 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10972 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10973 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10974 cris_aout_vec) tb="$tb aout-cris.lo" ;;
10975 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
10976 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10977 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10978 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10979 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
10980 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
10981 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
10982 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
10983 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
10984 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
10985 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
10986 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
10987 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
10988 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
10989 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
10990 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
10991 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
10992 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
10993 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
10994 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
10995 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
10996 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
10997 i386msdos_vec) tb="$tb i386msdos.lo" ;;
10998 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
10999 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11000 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11001 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11002 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11003 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11004 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11005 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11006 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11007 ieee_vec) tb="$tb ieee.lo" ;;
11008 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11009 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11010 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11011 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11012 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11013 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11014 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11015 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11016 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11017 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11018 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
11019 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11020 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11021 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11022 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11023 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11024 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11025 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11026 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11027 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11028 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11029 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11030 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11031 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11032 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11033 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11034 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11035 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11036 pef_vec) tb="$tb pef.lo" ;;
11037 pef_xlib_vec) tb="$tb pef.lo" ;;
11038 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11039 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11040 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11041 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11042 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11043 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11044 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11045 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11046 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11047 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11048 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11049 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11050 som_vec) tb="$tb som.lo" ;;
11051 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11052 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11053 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11054 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11055 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11056 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11057 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11058 sym_vec) tb="$tb xsym.lo" ;;
11059 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11060 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11061 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11062 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11063 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11064 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11065 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11066 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11067 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11068 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11069 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11070 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11071 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11072 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11073 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11074 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11075 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11076 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11077 versados_vec) tb="$tb versados.lo" ;;
11078 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11079 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11080 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11081 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11082 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
11083 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
11085 # These appear out of order in targets.c
11086 srec_vec) tb="$tb srec.lo" ;;
11087 symbolsrec_vec) tb="$tb srec.lo" ;;
11088 tekhex_vec) tb="$tb tekhex.lo" ;;
11089 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11090 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11092 "") ;;
11093 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11094 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11095 { (exit 1); exit 1; }; } ;;
11096 esac
11098 if test ${target_size} = 64; then
11099 target64=true
11101 if test x"${vec}" = x"${defvec}"; then
11102 bfd_default_target_size=${target_size}
11104 done
11106 # Target architecture .o files.
11107 # A couple of CPUs use shorter file names to avoid problems on DOS
11108 # filesystems.
11109 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11111 # Weed out duplicate .o files.
11112 f=""
11113 for i in $tb ; do
11114 case " $f " in
11115 *" $i "*) ;;
11116 *) f="$f $i" ;;
11117 esac
11118 done
11119 tb="$f"
11121 f=""
11122 for i in $ta ; do
11123 case " $f " in
11124 *" $i "*) ;;
11125 *) f="$f $i" ;;
11126 esac
11127 done
11128 ta="$f"
11130 bfd_backends="$tb"
11131 bfd_machines="$ta"
11133 if test x${all_targets} = xtrue ; then
11134 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11135 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11136 selvecs=
11137 havevecs=
11138 selarchs=
11139 test -n "$assocvecs" &&
11140 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11141 else # all_targets is true
11142 # Only set these if they will be nonempty, for the clever echo.
11143 havevecs=
11144 assocvecs=
11145 test -n "$selvecs" &&
11146 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11147 test -n "$selvecs" &&
11148 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11149 test -n "$selarchs" &&
11150 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11151 fi # all_targets is true
11153 case ${host64}-${target64}-${want64} in
11154 *true*)
11155 wordsize=64
11156 bfd64_libs='$(BFD64_LIBS)'
11157 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11158 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11159 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11160 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11162 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11164 if test -n "$GCC" ; then
11165 bad_64bit_gcc=no;
11166 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11167 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11168 # Add more tests for gcc versions with non-working 64-bit support here.
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 :__GNUC__:__GNUC_MINOR__:__i386__:
11176 _ACEOF
11177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11178 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11179 bad_64bit_gcc=yes;
11180 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11181 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11182 else
11183 echo "$as_me:$LINENO: result: no" >&5
11184 echo "${ECHO_T}no" >&6
11186 rm -f conftest*
11188 if test $bad_64bit_gcc = yes ; then
11189 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11190 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11191 { (exit 1); exit 1; }; }
11195 false-false-false)
11196 wordsize=32
11197 all_backends='$(BFD32_BACKENDS)'
11199 esac
11208 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11209 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11210 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11211 # Hopefully a reasonable assumption since fseeko et.al. should be
11212 # upward compatible.
11218 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
11220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11223 if eval "test \"\${$as_ac_var+set}\" = set"; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11241 #ifdef __STDC__
11242 # include <limits.h>
11243 #else
11244 # include <assert.h>
11245 #endif
11247 #undef $ac_func
11249 /* Override any gcc2 internal prototype to avoid an error. */
11250 #ifdef __cplusplus
11251 extern "C"
11253 #endif
11254 /* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11256 char $ac_func ();
11257 /* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11261 choke me
11262 #else
11263 char (*f) () = $ac_func;
11264 #endif
11265 #ifdef __cplusplus
11267 #endif
11270 main ()
11272 return f != $ac_func;
11274 return 0;
11276 _ACEOF
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279 (eval $ac_link) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -z "$ac_c_werror_flag"
11287 || test ! -s conftest.err'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 eval "$as_ac_var=yes"
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 eval "$as_ac_var=no"
11306 rm -f conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11311 if test `eval echo '${'$as_ac_var'}'` = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11314 _ACEOF
11317 done
11319 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11320 echo "$as_me:$LINENO: checking for off_t" >&5
11321 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11322 if test "${ac_cv_type_off_t+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 $ac_includes_default
11333 main ()
11335 if ((off_t *) 0)
11336 return 0;
11337 if (sizeof (off_t))
11338 return 0;
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -z "$ac_c_werror_flag"
11353 || test ! -s conftest.err'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_cv_type_off_t=yes
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_cv_type_off_t=no
11372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11374 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11375 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11377 echo "$as_me:$LINENO: checking size of off_t" >&5
11378 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11379 if test "${ac_cv_sizeof_off_t+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 if test "$ac_cv_type_off_t" = yes; then
11383 # The cast to unsigned long works around a bug in the HP C Compiler
11384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11386 # This bug is HP SR number 8606223364.
11387 if test "$cross_compiling" = yes; then
11388 # Depending upon the size, compute the lo and hi bounds.
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h. */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 $ac_includes_default
11397 main ()
11399 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11400 test_array [0] = 0
11403 return 0;
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_lo=0 ac_mid=0
11429 while :; do
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 $ac_includes_default
11438 main ()
11440 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11441 test_array [0] = 0
11444 return 0;
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag"
11457 || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_hi=$ac_mid; break
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_lo=`expr $ac_mid + 1`
11475 if test $ac_lo -le $ac_mid; then
11476 ac_lo= ac_hi=
11477 break
11479 ac_mid=`expr 2 '*' $ac_mid + 1`
11481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11482 done
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11495 main ()
11497 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11498 test_array [0] = 0
11501 return 0;
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11506 (eval $ac_compile) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_hi=-1 ac_mid=-1
11527 while :; do
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11536 main ()
11538 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11539 test_array [0] = 0
11542 return 0;
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag"
11555 || test ! -s conftest.err'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
11561 { ac_try='test -s conftest.$ac_objext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 ac_lo=$ac_mid; break
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_hi=`expr '(' $ac_mid ')' - 1`
11573 if test $ac_mid -le $ac_hi; then
11574 ac_lo= ac_hi=
11575 break
11577 ac_mid=`expr 2 '*' $ac_mid`
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 done
11581 else
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_lo= ac_hi=
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590 # Binary search between lo and hi bounds.
11591 while test "x$ac_lo" != "x$ac_hi"; do
11592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h. */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 $ac_includes_default
11601 main ()
11603 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11604 test_array [0] = 0
11607 return 0;
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -z "$ac_c_werror_flag"
11620 || test ! -s conftest.err'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_hi=$ac_mid
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_lo=`expr '(' $ac_mid ')' + 1`
11639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11640 done
11641 case $ac_lo in
11642 ?*) ac_cv_sizeof_off_t=$ac_lo;;
11643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11644 See \`config.log' for more details." >&5
11645 echo "$as_me: error: cannot compute sizeof (off_t), 77
11646 See \`config.log' for more details." >&2;}
11647 { (exit 1); exit 1; }; } ;;
11648 esac
11649 else
11650 if test "$cross_compiling" = yes; then
11651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11652 See \`config.log' for more details." >&5
11653 echo "$as_me: error: cannot run test program while cross compiling
11654 See \`config.log' for more details." >&2;}
11655 { (exit 1); exit 1; }; }
11656 else
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 long longval () { return (long) (sizeof (off_t)); }
11665 unsigned long ulongval () { return (long) (sizeof (off_t)); }
11666 #include <stdio.h>
11667 #include <stdlib.h>
11669 main ()
11672 FILE *f = fopen ("conftest.val", "w");
11673 if (! f)
11674 exit (1);
11675 if (((long) (sizeof (off_t))) < 0)
11677 long i = longval ();
11678 if (i != ((long) (sizeof (off_t))))
11679 exit (1);
11680 fprintf (f, "%ld\n", i);
11682 else
11684 unsigned long i = ulongval ();
11685 if (i != ((long) (sizeof (off_t))))
11686 exit (1);
11687 fprintf (f, "%lu\n", i);
11689 exit (ferror (f) || fclose (f) != 0);
11692 return 0;
11694 _ACEOF
11695 rm -f conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_cv_sizeof_off_t=`cat conftest.val`
11707 else
11708 echo "$as_me: program exited with status $ac_status" >&5
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ( exit $ac_status )
11713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11714 See \`config.log' for more details." >&5
11715 echo "$as_me: error: cannot compute sizeof (off_t), 77
11716 See \`config.log' for more details." >&2;}
11717 { (exit 1); exit 1; }; }
11719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11722 rm -f conftest.val
11723 else
11724 ac_cv_sizeof_off_t=0
11727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11728 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11729 cat >>confdefs.h <<_ACEOF
11730 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11731 _ACEOF
11735 echo "$as_me:$LINENO: checking file_ptr type" >&5
11736 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11737 bfd_file_ptr="long"
11738 bfd_ufile_ptr="unsigned long"
11739 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11740 -o x"${ac_cv_sizeof_off_t}" = x8; then
11741 bfd_file_ptr=BFD_HOST_64_BIT
11742 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11744 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11745 echo "${ECHO_T}$bfd_file_ptr" >&6
11750 tdefaults=""
11751 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11752 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11753 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11754 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11755 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11760 for ac_header in stdlib.h unistd.h
11762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11764 echo "$as_me:$LINENO: checking for $ac_header" >&5
11765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11771 else
11772 # Is the header compilable?
11773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 #include <$ac_header>
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag"
11794 || test ! -s conftest.err'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 ac_header_compiler=yes
11807 else
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_header_compiler=no
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11815 echo "${ECHO_T}$ac_header_compiler" >&6
11817 # Is the header present?
11818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #include <$ac_header>
11827 _ACEOF
11828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } >/dev/null; then
11836 if test -s conftest.err; then
11837 ac_cpp_err=$ac_c_preproc_warn_flag
11838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11839 else
11840 ac_cpp_err=
11842 else
11843 ac_cpp_err=yes
11845 if test -z "$ac_cpp_err"; then
11846 ac_header_preproc=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_header_preproc=no
11853 rm -f conftest.err conftest.$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855 echo "${ECHO_T}$ac_header_preproc" >&6
11857 # So? What about this header?
11858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11859 yes:no: )
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11864 ac_header_preproc=yes
11866 no:yes:* )
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11880 cat <<\_ASBOX
11881 ## ------------------------------------------ ##
11882 ## Report this to the AC_PACKAGE_NAME lists. ##
11883 ## ------------------------------------------ ##
11884 _ASBOX
11886 sed "s/^/$as_me: WARNING: /" >&2
11888 esac
11889 echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 eval "$as_ac_Header=\$ac_header_preproc"
11896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11903 _ACEOF
11907 done
11910 for ac_func in getpagesize
11912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11913 echo "$as_me:$LINENO: checking for $ac_func" >&5
11914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_var+set}\" = set"; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h. */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11926 #define $ac_func innocuous_$ac_func
11928 /* System header to define __stub macros and hopefully few prototypes,
11929 which can conflict with char $ac_func (); below.
11930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11931 <limits.h> exists even on freestanding compilers. */
11933 #ifdef __STDC__
11934 # include <limits.h>
11935 #else
11936 # include <assert.h>
11937 #endif
11939 #undef $ac_func
11941 /* Override any gcc2 internal prototype to avoid an error. */
11942 #ifdef __cplusplus
11943 extern "C"
11945 #endif
11946 /* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948 char $ac_func ();
11949 /* The GNU C library defines this for functions which it implements
11950 to always fail with ENOSYS. Some functions are actually named
11951 something starting with __ and the normal name is an alias. */
11952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11953 choke me
11954 #else
11955 char (*f) () = $ac_func;
11956 #endif
11957 #ifdef __cplusplus
11959 #endif
11962 main ()
11964 return f != $ac_func;
11966 return 0;
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_var=yes"
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 eval "$as_ac_var=no"
11998 rm -f conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12003 if test `eval echo '${'$as_ac_var'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006 _ACEOF
12009 done
12011 echo "$as_me:$LINENO: checking for working mmap" >&5
12012 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12013 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016 if test "$cross_compiling" = yes; then
12017 ac_cv_func_mmap_fixed_mapped=no
12018 else
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h. */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 $ac_includes_default
12026 /* malloc might have been renamed as rpl_malloc. */
12027 #undef malloc
12029 /* Thanks to Mike Haertel and Jim Avera for this test.
12030 Here is a matrix of mmap possibilities:
12031 mmap private not fixed
12032 mmap private fixed at somewhere currently unmapped
12033 mmap private fixed at somewhere already mapped
12034 mmap shared not fixed
12035 mmap shared fixed at somewhere currently unmapped
12036 mmap shared fixed at somewhere already mapped
12037 For private mappings, we should verify that changes cannot be read()
12038 back from the file, nor mmap's back from the file at a different
12039 address. (There have been systems where private was not correctly
12040 implemented like the infamous i386 svr4.0, and systems where the
12041 VM page cache was not coherent with the file system buffer cache
12042 like early versions of FreeBSD and possibly contemporary NetBSD.)
12043 For shared mappings, we should conversely verify that changes get
12044 propagated back to all the places they're supposed to be.
12046 Grep wants private fixed already mapped.
12047 The main things grep needs to know about mmap are:
12048 * does it exist and is it safe to write into the mmap'd area
12049 * how to use it (BSD variants) */
12051 #include <fcntl.h>
12052 #include <sys/mman.h>
12054 #if !STDC_HEADERS && !HAVE_STDLIB_H
12055 char *malloc ();
12056 #endif
12058 /* This mess was copied from the GNU getpagesize.h. */
12059 #if !HAVE_GETPAGESIZE
12060 /* Assume that all systems that can run configure have sys/param.h. */
12061 # if !HAVE_SYS_PARAM_H
12062 # define HAVE_SYS_PARAM_H 1
12063 # endif
12065 # ifdef _SC_PAGESIZE
12066 # define getpagesize() sysconf(_SC_PAGESIZE)
12067 # else /* no _SC_PAGESIZE */
12068 # if HAVE_SYS_PARAM_H
12069 # include <sys/param.h>
12070 # ifdef EXEC_PAGESIZE
12071 # define getpagesize() EXEC_PAGESIZE
12072 # else /* no EXEC_PAGESIZE */
12073 # ifdef NBPG
12074 # define getpagesize() NBPG * CLSIZE
12075 # ifndef CLSIZE
12076 # define CLSIZE 1
12077 # endif /* no CLSIZE */
12078 # else /* no NBPG */
12079 # ifdef NBPC
12080 # define getpagesize() NBPC
12081 # else /* no NBPC */
12082 # ifdef PAGESIZE
12083 # define getpagesize() PAGESIZE
12084 # endif /* PAGESIZE */
12085 # endif /* no NBPC */
12086 # endif /* no NBPG */
12087 # endif /* no EXEC_PAGESIZE */
12088 # else /* no HAVE_SYS_PARAM_H */
12089 # define getpagesize() 8192 /* punt totally */
12090 # endif /* no HAVE_SYS_PARAM_H */
12091 # endif /* no _SC_PAGESIZE */
12093 #endif /* no HAVE_GETPAGESIZE */
12096 main ()
12098 char *data, *data2, *data3;
12099 int i, pagesize;
12100 int fd;
12102 pagesize = getpagesize ();
12104 /* First, make a file with some known garbage in it. */
12105 data = (char *) malloc (pagesize);
12106 if (!data)
12107 exit (1);
12108 for (i = 0; i < pagesize; ++i)
12109 *(data + i) = rand ();
12110 umask (0);
12111 fd = creat ("conftest.mmap", 0600);
12112 if (fd < 0)
12113 exit (1);
12114 if (write (fd, data, pagesize) != pagesize)
12115 exit (1);
12116 close (fd);
12118 /* Next, try to mmap the file at a fixed address which already has
12119 something else allocated at it. If we can, also make sure that
12120 we see the same garbage. */
12121 fd = open ("conftest.mmap", O_RDWR);
12122 if (fd < 0)
12123 exit (1);
12124 data2 = (char *) malloc (2 * pagesize);
12125 if (!data2)
12126 exit (1);
12127 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12128 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12130 exit (1);
12131 for (i = 0; i < pagesize; ++i)
12132 if (*(data + i) != *(data2 + i))
12133 exit (1);
12135 /* Finally, make sure that changes to the mapped area do not
12136 percolate back to the file as seen by read(). (This is a bug on
12137 some variants of i386 svr4.0.) */
12138 for (i = 0; i < pagesize; ++i)
12139 *(data2 + i) = *(data2 + i) + 1;
12140 data3 = (char *) malloc (pagesize);
12141 if (!data3)
12142 exit (1);
12143 if (read (fd, data3, pagesize) != pagesize)
12144 exit (1);
12145 for (i = 0; i < pagesize; ++i)
12146 if (*(data + i) != *(data3 + i))
12147 exit (1);
12148 close (fd);
12149 exit (0);
12151 _ACEOF
12152 rm -f conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
12163 ac_cv_func_mmap_fixed_mapped=yes
12164 else
12165 echo "$as_me: program exited with status $ac_status" >&5
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ( exit $ac_status )
12170 ac_cv_func_mmap_fixed_mapped=no
12172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12176 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12179 cat >>confdefs.h <<\_ACEOF
12180 #define HAVE_MMAP 1
12181 _ACEOF
12184 rm -f conftest.mmap
12188 for ac_func in madvise mprotect
12190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191 echo "$as_me:$LINENO: checking for $ac_func" >&5
12192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12193 if eval "test \"\${$as_ac_var+set}\" = set"; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12204 #define $ac_func innocuous_$ac_func
12206 /* System header to define __stub macros and hopefully few prototypes,
12207 which can conflict with char $ac_func (); below.
12208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12209 <limits.h> exists even on freestanding compilers. */
12211 #ifdef __STDC__
12212 # include <limits.h>
12213 #else
12214 # include <assert.h>
12215 #endif
12217 #undef $ac_func
12219 /* Override any gcc2 internal prototype to avoid an error. */
12220 #ifdef __cplusplus
12221 extern "C"
12223 #endif
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226 char $ac_func ();
12227 /* The GNU C library defines this for functions which it implements
12228 to always fail with ENOSYS. Some functions are actually named
12229 something starting with __ and the normal name is an alias. */
12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12231 choke me
12232 #else
12233 char (*f) () = $ac_func;
12234 #endif
12235 #ifdef __cplusplus
12237 #endif
12240 main ()
12242 return f != $ac_func;
12244 return 0;
12246 _ACEOF
12247 rm -f conftest.$ac_objext conftest$ac_exeext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12249 (eval $ac_link) 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "$as_ac_var=yes"
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 eval "$as_ac_var=no"
12276 rm -f conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12284 _ACEOF
12287 done
12289 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12290 true+yes )
12291 cat >>confdefs.h <<\_ACEOF
12292 #define USE_MMAP 1
12293 _ACEOF
12295 esac
12297 rm -f doc/config.status
12298 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12301 ac_config_commands="$ac_config_commands default"
12308 cat >confcache <<\_ACEOF
12309 # This file is a shell script that caches the results of configure
12310 # tests run on this system so they can be shared between configure
12311 # scripts and configure runs, see configure's option --config-cache.
12312 # It is not useful on other systems. If it contains results you don't
12313 # want to keep, you may remove or edit it.
12315 # config.status only pays attention to the cache file if you give it
12316 # the --recheck option to rerun configure.
12318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12320 # following values.
12322 _ACEOF
12324 # The following way of writing the cache mishandles newlines in values,
12325 # but we know of no workaround that is simple, portable, and efficient.
12326 # So, don't put newlines in cache variables' values.
12327 # Ultrix sh set writes to stderr and can't be redirected directly,
12328 # and sets the high bit in the cache file unless we assign to the vars.
12330 (set) 2>&1 |
12331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12332 *ac_space=\ *)
12333 # `set' does not quote correctly, so add quotes (double-quote
12334 # substitution turns \\\\ into \\, and sed turns \\ into \).
12335 sed -n \
12336 "s/'/'\\\\''/g;
12337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12340 # `set' quotes correctly as required by POSIX, so do not add quotes.
12341 sed -n \
12342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12344 esac;
12346 sed '
12347 t clear
12348 : clear
12349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12350 t end
12351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12352 : end' >>confcache
12353 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12354 if test -w $cache_file; then
12355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12356 cat confcache >$cache_file
12357 else
12358 echo "not updating unwritable cache $cache_file"
12361 rm -f confcache
12363 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12364 # Let make expand exec_prefix.
12365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12367 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12368 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12369 # trailing colons and then remove the whole line if VPATH becomes empty
12370 # (actually we leave an empty line to preserve line numbers).
12371 if test "x$srcdir" = x.; then
12372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12373 s/:*\$(srcdir):*/:/;
12374 s/:*\${srcdir}:*/:/;
12375 s/:*@srcdir@:*/:/;
12376 s/^\([^=]*=[ ]*\):*/\1/;
12377 s/:*$//;
12378 s/^[^=]*=[ ]*$//;
12382 DEFS=-DHAVE_CONFIG_H
12384 ac_libobjs=
12385 ac_ltlibobjs=
12386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12387 # 1. Remove the extension, and $U if already installed.
12388 ac_i=`echo "$ac_i" |
12389 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12390 # 2. Add them.
12391 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12392 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12393 done
12394 LIBOBJS=$ac_libobjs
12396 LTLIBOBJS=$ac_ltlibobjs
12399 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12400 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12401 Usually this means the macro was only invoked conditionally." >&5
12402 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12403 Usually this means the macro was only invoked conditionally." >&2;}
12404 { (exit 1); exit 1; }; }
12406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12407 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12408 Usually this means the macro was only invoked conditionally." >&5
12409 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&2;}
12411 { (exit 1); exit 1; }; }
12413 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12414 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12415 Usually this means the macro was only invoked conditionally." >&5
12416 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12417 Usually this means the macro was only invoked conditionally." >&2;}
12418 { (exit 1); exit 1; }; }
12420 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12421 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12422 Usually this means the macro was only invoked conditionally." >&5
12423 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12424 Usually this means the macro was only invoked conditionally." >&2;}
12425 { (exit 1); exit 1; }; }
12427 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12428 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12429 Usually this means the macro was only invoked conditionally." >&5
12430 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12431 Usually this means the macro was only invoked conditionally." >&2;}
12432 { (exit 1); exit 1; }; }
12435 : ${CONFIG_STATUS=./config.status}
12436 ac_clean_files_save=$ac_clean_files
12437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12438 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12439 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12440 cat >$CONFIG_STATUS <<_ACEOF
12441 #! $SHELL
12442 # Generated by $as_me.
12443 # Run this file to recreate the current configuration.
12444 # Compiler output produced by configure, useful for debugging
12445 # configure, is in config.log if it exists.
12447 debug=false
12448 ac_cs_recheck=false
12449 ac_cs_silent=false
12450 SHELL=\${CONFIG_SHELL-$SHELL}
12451 _ACEOF
12453 cat >>$CONFIG_STATUS <<\_ACEOF
12454 ## --------------------- ##
12455 ## M4sh Initialization. ##
12456 ## --------------------- ##
12458 # Be Bourne compatible
12459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12460 emulate sh
12461 NULLCMD=:
12462 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12463 # is contrary to our usage. Disable this feature.
12464 alias -g '${1+"$@"}'='"$@"'
12465 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12466 set -o posix
12468 DUALCASE=1; export DUALCASE # for MKS sh
12470 # Support unset when possible.
12471 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12472 as_unset=unset
12473 else
12474 as_unset=false
12478 # Work around bugs in pre-3.0 UWIN ksh.
12479 $as_unset ENV MAIL MAILPATH
12480 PS1='$ '
12481 PS2='> '
12482 PS4='+ '
12484 # NLS nuisances.
12485 for as_var in \
12486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12488 LC_TELEPHONE LC_TIME
12490 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12491 eval $as_var=C; export $as_var
12492 else
12493 $as_unset $as_var
12495 done
12497 # Required to use basename.
12498 if expr a : '\(a\)' >/dev/null 2>&1; then
12499 as_expr=expr
12500 else
12501 as_expr=false
12504 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12505 as_basename=basename
12506 else
12507 as_basename=false
12511 # Name of the executable.
12512 as_me=`$as_basename "$0" ||
12513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12514 X"$0" : 'X\(//\)$' \| \
12515 X"$0" : 'X\(/\)$' \| \
12516 . : '\(.\)' 2>/dev/null ||
12517 echo X/"$0" |
12518 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12519 /^X\/\(\/\/\)$/{ s//\1/; q; }
12520 /^X\/\(\/\).*/{ s//\1/; q; }
12521 s/.*/./; q'`
12524 # PATH needs CR, and LINENO needs CR and PATH.
12525 # Avoid depending upon Character Ranges.
12526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12529 as_cr_digits='0123456789'
12530 as_cr_alnum=$as_cr_Letters$as_cr_digits
12532 # The user is always right.
12533 if test "${PATH_SEPARATOR+set}" != set; then
12534 echo "#! /bin/sh" >conf$$.sh
12535 echo "exit 0" >>conf$$.sh
12536 chmod +x conf$$.sh
12537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12538 PATH_SEPARATOR=';'
12539 else
12540 PATH_SEPARATOR=:
12542 rm -f conf$$.sh
12546 as_lineno_1=$LINENO
12547 as_lineno_2=$LINENO
12548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12549 test "x$as_lineno_1" != "x$as_lineno_2" &&
12550 test "x$as_lineno_3" = "x$as_lineno_2" || {
12551 # Find who we are. Look in the path if we contain no path at all
12552 # relative or not.
12553 case $0 in
12554 *[\\/]* ) as_myself=$0 ;;
12555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12561 done
12564 esac
12565 # We did not find ourselves, most probably we were run as `sh COMMAND'
12566 # in which case we are not to be found in the path.
12567 if test "x$as_myself" = x; then
12568 as_myself=$0
12570 if test ! -f "$as_myself"; then
12571 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12572 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12573 { (exit 1); exit 1; }; }
12575 case $CONFIG_SHELL in
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for as_base in sh bash ksh sh5; do
12583 case $as_dir in
12585 if ("$as_dir/$as_base" -c '
12586 as_lineno_1=$LINENO
12587 as_lineno_2=$LINENO
12588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12589 test "x$as_lineno_1" != "x$as_lineno_2" &&
12590 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12591 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12592 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12593 CONFIG_SHELL=$as_dir/$as_base
12594 export CONFIG_SHELL
12595 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12596 fi;;
12597 esac
12598 done
12599 done
12601 esac
12603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12604 # uniformly replaced by the line number. The first 'sed' inserts a
12605 # line-number line before each line; the second 'sed' does the real
12606 # work. The second script uses 'N' to pair each line-number line
12607 # with the numbered line, and appends trailing '-' during
12608 # substitution so that $LINENO is not a special case at line end.
12609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12610 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12611 sed '=' <$as_myself |
12612 sed '
12614 s,$,-,
12615 : loop
12616 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12617 t loop
12618 s,-$,,
12619 s,^['$as_cr_digits']*\n,,
12620 ' >$as_me.lineno &&
12621 chmod +x $as_me.lineno ||
12622 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12623 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12624 { (exit 1); exit 1; }; }
12626 # Don't try to exec as it changes $[0], causing all sort of problems
12627 # (the dirname of $[0] is not the place where we might find the
12628 # original and so on. Autoconf is especially sensible to this).
12629 . ./$as_me.lineno
12630 # Exit status is that of the last command.
12631 exit
12635 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12636 *c*,-n*) ECHO_N= ECHO_C='
12637 ' ECHO_T=' ' ;;
12638 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12639 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12640 esac
12642 if expr a : '\(a\)' >/dev/null 2>&1; then
12643 as_expr=expr
12644 else
12645 as_expr=false
12648 rm -f conf$$ conf$$.exe conf$$.file
12649 echo >conf$$.file
12650 if ln -s conf$$.file conf$$ 2>/dev/null; then
12651 # We could just check for DJGPP; but this test a) works b) is more generic
12652 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12653 if test -f conf$$.exe; then
12654 # Don't use ln at all; we don't have any links
12655 as_ln_s='cp -p'
12656 else
12657 as_ln_s='ln -s'
12659 elif ln conf$$.file conf$$ 2>/dev/null; then
12660 as_ln_s=ln
12661 else
12662 as_ln_s='cp -p'
12664 rm -f conf$$ conf$$.exe conf$$.file
12666 if mkdir -p . 2>/dev/null; then
12667 as_mkdir_p=:
12668 else
12669 test -d ./-p && rmdir ./-p
12670 as_mkdir_p=false
12673 as_executable_p="test -f"
12675 # Sed expression to map a string onto a valid CPP name.
12676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12678 # Sed expression to map a string onto a valid variable name.
12679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12682 # IFS
12683 # We need space, tab and new line, in precisely that order.
12684 as_nl='
12686 IFS=" $as_nl"
12688 # CDPATH.
12689 $as_unset CDPATH
12691 exec 6>&1
12693 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12694 # report actual input values of CONFIG_FILES etc. instead of their
12695 # values after options handling. Logging --version etc. is OK.
12696 exec 5>>config.log
12698 echo
12699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12700 ## Running $as_me. ##
12701 _ASBOX
12702 } >&5
12703 cat >&5 <<_CSEOF
12705 This file was extended by $as_me, which was
12706 generated by GNU Autoconf 2.59. Invocation command line was
12708 CONFIG_FILES = $CONFIG_FILES
12709 CONFIG_HEADERS = $CONFIG_HEADERS
12710 CONFIG_LINKS = $CONFIG_LINKS
12711 CONFIG_COMMANDS = $CONFIG_COMMANDS
12712 $ $0 $@
12714 _CSEOF
12715 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12716 echo >&5
12717 _ACEOF
12719 # Files that config.status was made for.
12720 if test -n "$ac_config_files"; then
12721 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12724 if test -n "$ac_config_headers"; then
12725 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12728 if test -n "$ac_config_links"; then
12729 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12732 if test -n "$ac_config_commands"; then
12733 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12736 cat >>$CONFIG_STATUS <<\_ACEOF
12738 ac_cs_usage="\
12739 \`$as_me' instantiates files from templates according to the
12740 current configuration.
12742 Usage: $0 [OPTIONS] [FILE]...
12744 -h, --help print this help, then exit
12745 -V, --version print version number, then exit
12746 -q, --quiet do not print progress messages
12747 -d, --debug don't remove temporary files
12748 --recheck update $as_me by reconfiguring in the same conditions
12749 --file=FILE[:TEMPLATE]
12750 instantiate the configuration file FILE
12751 --header=FILE[:TEMPLATE]
12752 instantiate the configuration header FILE
12754 Configuration files:
12755 $config_files
12757 Configuration headers:
12758 $config_headers
12760 Configuration commands:
12761 $config_commands
12763 Report bugs to <bug-autoconf@gnu.org>."
12764 _ACEOF
12766 cat >>$CONFIG_STATUS <<_ACEOF
12767 ac_cs_version="\\
12768 config.status
12769 configured by $0, generated by GNU Autoconf 2.59,
12770 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12772 Copyright (C) 2003 Free Software Foundation, Inc.
12773 This config.status script is free software; the Free Software Foundation
12774 gives unlimited permission to copy, distribute and modify it."
12775 srcdir=$srcdir
12776 INSTALL="$INSTALL"
12777 _ACEOF
12779 cat >>$CONFIG_STATUS <<\_ACEOF
12780 # If no file are specified by the user, then we need to provide default
12781 # value. By we need to know if files were specified by the user.
12782 ac_need_defaults=:
12783 while test $# != 0
12785 case $1 in
12786 --*=*)
12787 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12788 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12789 ac_shift=:
12792 ac_option=$1
12793 ac_optarg=$2
12794 ac_shift=shift
12796 *) # This is not an option, so the user has probably given explicit
12797 # arguments.
12798 ac_option=$1
12799 ac_need_defaults=false;;
12800 esac
12802 case $ac_option in
12803 # Handling of the options.
12804 _ACEOF
12805 cat >>$CONFIG_STATUS <<\_ACEOF
12806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12807 ac_cs_recheck=: ;;
12808 --version | --vers* | -V )
12809 echo "$ac_cs_version"; exit 0 ;;
12810 --he | --h)
12811 # Conflict between --help and --header
12812 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12813 Try \`$0 --help' for more information." >&5
12814 echo "$as_me: error: ambiguous option: $1
12815 Try \`$0 --help' for more information." >&2;}
12816 { (exit 1); exit 1; }; };;
12817 --help | --hel | -h )
12818 echo "$ac_cs_usage"; exit 0 ;;
12819 --debug | --d* | -d )
12820 debug=: ;;
12821 --file | --fil | --fi | --f )
12822 $ac_shift
12823 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12824 ac_need_defaults=false;;
12825 --header | --heade | --head | --hea )
12826 $ac_shift
12827 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12828 ac_need_defaults=false;;
12829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12831 ac_cs_silent=: ;;
12833 # This is an error.
12834 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12835 Try \`$0 --help' for more information." >&5
12836 echo "$as_me: error: unrecognized option: $1
12837 Try \`$0 --help' for more information." >&2;}
12838 { (exit 1); exit 1; }; } ;;
12840 *) ac_config_targets="$ac_config_targets $1" ;;
12842 esac
12843 shift
12844 done
12846 ac_configure_extra_args=
12848 if $ac_cs_silent; then
12849 exec 6>/dev/null
12850 ac_configure_extra_args="$ac_configure_extra_args --silent"
12853 _ACEOF
12854 cat >>$CONFIG_STATUS <<_ACEOF
12855 if \$ac_cs_recheck; then
12856 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12857 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12860 _ACEOF
12862 cat >>$CONFIG_STATUS <<_ACEOF
12864 # INIT-COMMANDS section.
12867 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12868 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12869 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12870 # from automake.
12871 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12872 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12873 LINGUAS="${LINGUAS-%UNSET%}"
12877 _ACEOF
12881 cat >>$CONFIG_STATUS <<\_ACEOF
12882 for ac_config_target in $ac_config_targets
12884 case "$ac_config_target" in
12885 # Handling of arguments.
12886 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12887 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12888 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12889 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12890 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12891 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12892 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12893 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12894 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12895 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12896 { (exit 1); exit 1; }; };;
12897 esac
12898 done
12900 # If the user did not use the arguments to specify the items to instantiate,
12901 # then the envvar interface is used. Set only those that are not.
12902 # We use the long form for the default assignment because of an extremely
12903 # bizarre bug on SunOS 4.1.3.
12904 if $ac_need_defaults; then
12905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12910 # Have a temporary directory for convenience. Make it in the build tree
12911 # simply because there is no reason to put it here, and in addition,
12912 # creating and moving files from /tmp can sometimes cause problems.
12913 # Create a temporary directory, and hook for its removal unless debugging.
12914 $debug ||
12916 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12917 trap '{ (exit 1); exit 1; }' 1 2 13 15
12920 # Create a (secure) tmp directory for tmp files.
12923 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12924 test -n "$tmp" && test -d "$tmp"
12925 } ||
12927 tmp=./confstat$$-$RANDOM
12928 (umask 077 && mkdir $tmp)
12929 } ||
12931 echo "$me: cannot create a temporary directory in ." >&2
12932 { (exit 1); exit 1; }
12935 _ACEOF
12937 cat >>$CONFIG_STATUS <<_ACEOF
12940 # CONFIG_FILES section.
12943 # No need to generate the scripts if there are no CONFIG_FILES.
12944 # This happens for instance when ./config.status config.h
12945 if test -n "\$CONFIG_FILES"; then
12946 # Protect against being on the right side of a sed subst in config.status.
12947 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12948 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12949 s,@SHELL@,$SHELL,;t t
12950 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12951 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12952 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12953 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12954 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12955 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12956 s,@exec_prefix@,$exec_prefix,;t t
12957 s,@prefix@,$prefix,;t t
12958 s,@program_transform_name@,$program_transform_name,;t t
12959 s,@bindir@,$bindir,;t t
12960 s,@sbindir@,$sbindir,;t t
12961 s,@libexecdir@,$libexecdir,;t t
12962 s,@datadir@,$datadir,;t t
12963 s,@sysconfdir@,$sysconfdir,;t t
12964 s,@sharedstatedir@,$sharedstatedir,;t t
12965 s,@localstatedir@,$localstatedir,;t t
12966 s,@libdir@,$libdir,;t t
12967 s,@includedir@,$includedir,;t t
12968 s,@oldincludedir@,$oldincludedir,;t t
12969 s,@infodir@,$infodir,;t t
12970 s,@mandir@,$mandir,;t t
12971 s,@build_alias@,$build_alias,;t t
12972 s,@host_alias@,$host_alias,;t t
12973 s,@target_alias@,$target_alias,;t t
12974 s,@DEFS@,$DEFS,;t t
12975 s,@ECHO_C@,$ECHO_C,;t t
12976 s,@ECHO_N@,$ECHO_N,;t t
12977 s,@ECHO_T@,$ECHO_T,;t t
12978 s,@LIBS@,$LIBS,;t t
12979 s,@build@,$build,;t t
12980 s,@build_cpu@,$build_cpu,;t t
12981 s,@build_vendor@,$build_vendor,;t t
12982 s,@build_os@,$build_os,;t t
12983 s,@host@,$host,;t t
12984 s,@host_cpu@,$host_cpu,;t t
12985 s,@host_vendor@,$host_vendor,;t t
12986 s,@host_os@,$host_os,;t t
12987 s,@target@,$target,;t t
12988 s,@target_cpu@,$target_cpu,;t t
12989 s,@target_vendor@,$target_vendor,;t t
12990 s,@target_os@,$target_os,;t t
12991 s,@CC@,$CC,;t t
12992 s,@CFLAGS@,$CFLAGS,;t t
12993 s,@LDFLAGS@,$LDFLAGS,;t t
12994 s,@CPPFLAGS@,$CPPFLAGS,;t t
12995 s,@ac_ct_CC@,$ac_ct_CC,;t t
12996 s,@EXEEXT@,$EXEEXT,;t t
12997 s,@OBJEXT@,$OBJEXT,;t t
12998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13001 s,@CYGPATH_W@,$CYGPATH_W,;t t
13002 s,@PACKAGE@,$PACKAGE,;t t
13003 s,@VERSION@,$VERSION,;t t
13004 s,@ACLOCAL@,$ACLOCAL,;t t
13005 s,@AUTOCONF@,$AUTOCONF,;t t
13006 s,@AUTOMAKE@,$AUTOMAKE,;t t
13007 s,@AUTOHEADER@,$AUTOHEADER,;t t
13008 s,@MAKEINFO@,$MAKEINFO,;t t
13009 s,@install_sh@,$install_sh,;t t
13010 s,@STRIP@,$STRIP,;t t
13011 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13012 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13013 s,@mkdir_p@,$mkdir_p,;t t
13014 s,@AWK@,$AWK,;t t
13015 s,@SET_MAKE@,$SET_MAKE,;t t
13016 s,@am__leading_dot@,$am__leading_dot,;t t
13017 s,@AMTAR@,$AMTAR,;t t
13018 s,@am__tar@,$am__tar,;t t
13019 s,@am__untar@,$am__untar,;t t
13020 s,@DEPDIR@,$DEPDIR,;t t
13021 s,@am__include@,$am__include,;t t
13022 s,@am__quote@,$am__quote,;t t
13023 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13024 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13025 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13026 s,@CCDEPMODE@,$CCDEPMODE,;t t
13027 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13028 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13029 s,@AR@,$AR,;t t
13030 s,@ac_ct_AR@,$ac_ct_AR,;t t
13031 s,@RANLIB@,$RANLIB,;t t
13032 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13033 s,@LN_S@,$LN_S,;t t
13034 s,@LIBTOOL@,$LIBTOOL,;t t
13035 s,@PKGVERSION@,$PKGVERSION,;t t
13036 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13037 s,@NO_WERROR@,$NO_WERROR,;t t
13038 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13039 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13040 s,@MAINT@,$MAINT,;t t
13041 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13042 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13043 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13044 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13045 s,@host_noncanonical@,$host_noncanonical,;t t
13046 s,@target_noncanonical@,$target_noncanonical,;t t
13047 s,@bfdlibdir@,$bfdlibdir,;t t
13048 s,@bfdincludedir@,$bfdincludedir,;t t
13049 s,@USE_NLS@,$USE_NLS,;t t
13050 s,@LIBINTL@,$LIBINTL,;t t
13051 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13052 s,@INCINTL@,$INCINTL,;t t
13053 s,@XGETTEXT@,$XGETTEXT,;t t
13054 s,@GMSGFMT@,$GMSGFMT,;t t
13055 s,@POSUB@,$POSUB,;t t
13056 s,@CATALOGS@,$CATALOGS,;t t
13057 s,@DATADIRNAME@,$DATADIRNAME,;t t
13058 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13059 s,@GENCAT@,$GENCAT,;t t
13060 s,@CATOBJEXT@,$CATOBJEXT,;t t
13061 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13062 s,@MSGFMT@,$MSGFMT,;t t
13063 s,@MSGMERGE@,$MSGMERGE,;t t
13064 s,@HDEFINES@,$HDEFINES,;t t
13065 s,@CPP@,$CPP,;t t
13066 s,@EGREP@,$EGREP,;t t
13067 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13068 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13069 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13070 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13071 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13072 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13073 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13074 s,@COREFILE@,$COREFILE,;t t
13075 s,@COREFLAG@,$COREFLAG,;t t
13076 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13077 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13078 s,@TDEFINES@,$TDEFINES,;t t
13079 s,@wordsize@,$wordsize,;t t
13080 s,@bfd64_libs@,$bfd64_libs,;t t
13081 s,@all_backends@,$all_backends,;t t
13082 s,@bfd_backends@,$bfd_backends,;t t
13083 s,@bfd_machines@,$bfd_machines,;t t
13084 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13085 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13086 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13087 s,@tdefaults@,$tdefaults,;t t
13088 s,@datarootdir@,$datarootdir,;t t
13089 s,@docdir@,$docdir,;t t
13090 s,@htmldir@,$htmldir,;t t
13091 s,@LIBOBJS@,$LIBOBJS,;t t
13092 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13093 CEOF
13095 _ACEOF
13097 cat >>$CONFIG_STATUS <<\_ACEOF
13098 # Split the substitutions into bite-sized pieces for seds with
13099 # small command number limits, like on Digital OSF/1 and HP-UX.
13100 ac_max_sed_lines=48
13101 ac_sed_frag=1 # Number of current file.
13102 ac_beg=1 # First line for current file.
13103 ac_end=$ac_max_sed_lines # Line after last line for current file.
13104 ac_more_lines=:
13105 ac_sed_cmds=
13106 while $ac_more_lines; do
13107 if test $ac_beg -gt 1; then
13108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13109 else
13110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13112 if test ! -s $tmp/subs.frag; then
13113 ac_more_lines=false
13114 else
13115 # The purpose of the label and of the branching condition is to
13116 # speed up the sed processing (if there are no `@' at all, there
13117 # is no need to browse any of the substitutions).
13118 # These are the two extra sed commands mentioned above.
13119 (echo ':t
13120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13121 if test -z "$ac_sed_cmds"; then
13122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13123 else
13124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13126 ac_sed_frag=`expr $ac_sed_frag + 1`
13127 ac_beg=$ac_end
13128 ac_end=`expr $ac_end + $ac_max_sed_lines`
13130 done
13131 if test -z "$ac_sed_cmds"; then
13132 ac_sed_cmds=cat
13134 fi # test -n "$CONFIG_FILES"
13136 _ACEOF
13137 cat >>$CONFIG_STATUS <<\_ACEOF
13138 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13140 case $ac_file in
13141 - | *:- | *:-:* ) # input from stdin
13142 cat >$tmp/stdin
13143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13147 * ) ac_file_in=$ac_file.in ;;
13148 esac
13150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13153 X"$ac_file" : 'X\(//\)[^/]' \| \
13154 X"$ac_file" : 'X\(//\)$' \| \
13155 X"$ac_file" : 'X\(/\)' \| \
13156 . : '\(.\)' 2>/dev/null ||
13157 echo X"$ac_file" |
13158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13160 /^X\(\/\/\)$/{ s//\1/; q; }
13161 /^X\(\/\).*/{ s//\1/; q; }
13162 s/.*/./; q'`
13163 { if $as_mkdir_p; then
13164 mkdir -p "$ac_dir"
13165 else
13166 as_dir="$ac_dir"
13167 as_dirs=
13168 while test ! -d "$as_dir"; do
13169 as_dirs="$as_dir $as_dirs"
13170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13172 X"$as_dir" : 'X\(//\)[^/]' \| \
13173 X"$as_dir" : 'X\(//\)$' \| \
13174 X"$as_dir" : 'X\(/\)' \| \
13175 . : '\(.\)' 2>/dev/null ||
13176 echo X"$as_dir" |
13177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13179 /^X\(\/\/\)$/{ s//\1/; q; }
13180 /^X\(\/\).*/{ s//\1/; q; }
13181 s/.*/./; q'`
13182 done
13183 test ! -n "$as_dirs" || mkdir $as_dirs
13184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13186 { (exit 1); exit 1; }; }; }
13188 ac_builddir=.
13190 if test "$ac_dir" != .; then
13191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13192 # A "../" for each directory in $ac_dir_suffix.
13193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13194 else
13195 ac_dir_suffix= ac_top_builddir=
13198 case $srcdir in
13199 .) # No --srcdir option. We are building in place.
13200 ac_srcdir=.
13201 if test -z "$ac_top_builddir"; then
13202 ac_top_srcdir=.
13203 else
13204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13205 fi ;;
13206 [\\/]* | ?:[\\/]* ) # Absolute path.
13207 ac_srcdir=$srcdir$ac_dir_suffix;
13208 ac_top_srcdir=$srcdir ;;
13209 *) # Relative path.
13210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13212 esac
13214 # Do not use `cd foo && pwd` to compute absolute paths, because
13215 # the directories may not exist.
13216 case `pwd` in
13217 .) ac_abs_builddir="$ac_dir";;
13219 case "$ac_dir" in
13220 .) ac_abs_builddir=`pwd`;;
13221 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13222 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13223 esac;;
13224 esac
13225 case $ac_abs_builddir in
13226 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13228 case ${ac_top_builddir}. in
13229 .) ac_abs_top_builddir=$ac_abs_builddir;;
13230 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13231 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13232 esac;;
13233 esac
13234 case $ac_abs_builddir in
13235 .) ac_abs_srcdir=$ac_srcdir;;
13237 case $ac_srcdir in
13238 .) ac_abs_srcdir=$ac_abs_builddir;;
13239 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13240 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13241 esac;;
13242 esac
13243 case $ac_abs_builddir in
13244 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13246 case $ac_top_srcdir in
13247 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13248 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13249 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13250 esac;;
13251 esac
13254 case $INSTALL in
13255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13257 esac
13259 if test x"$ac_file" != x-; then
13260 { echo "$as_me:$LINENO: creating $ac_file" >&5
13261 echo "$as_me: creating $ac_file" >&6;}
13262 rm -f "$ac_file"
13264 # Let's still pretend it is `configure' which instantiates (i.e., don't
13265 # use $as_me), people would be surprised to read:
13266 # /* config.h. Generated by config.status. */
13267 if test x"$ac_file" = x-; then
13268 configure_input=
13269 else
13270 configure_input="$ac_file. "
13272 configure_input=$configure_input"Generated from `echo $ac_file_in |
13273 sed 's,.*/,,'` by configure."
13275 # First look for the input files in the build tree, otherwise in the
13276 # src tree.
13277 ac_file_inputs=`IFS=:
13278 for f in $ac_file_in; do
13279 case $f in
13280 -) echo $tmp/stdin ;;
13281 [\\/$]*)
13282 # Absolute (can't be DOS-style, as IFS=:)
13283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13284 echo "$as_me: error: cannot find input file: $f" >&2;}
13285 { (exit 1); exit 1; }; }
13286 echo "$f";;
13287 *) # Relative
13288 if test -f "$f"; then
13289 # Build tree
13290 echo "$f"
13291 elif test -f "$srcdir/$f"; then
13292 # Source tree
13293 echo "$srcdir/$f"
13294 else
13295 # /dev/null tree
13296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13297 echo "$as_me: error: cannot find input file: $f" >&2;}
13298 { (exit 1); exit 1; }; }
13299 fi;;
13300 esac
13301 done` || { (exit 1); exit 1; }
13302 _ACEOF
13303 cat >>$CONFIG_STATUS <<_ACEOF
13304 sed "$ac_vpsub
13305 $extrasub
13306 _ACEOF
13307 cat >>$CONFIG_STATUS <<\_ACEOF
13309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13310 s,@configure_input@,$configure_input,;t t
13311 s,@srcdir@,$ac_srcdir,;t t
13312 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13313 s,@top_srcdir@,$ac_top_srcdir,;t t
13314 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13315 s,@builddir@,$ac_builddir,;t t
13316 s,@abs_builddir@,$ac_abs_builddir,;t t
13317 s,@top_builddir@,$ac_top_builddir,;t t
13318 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13319 s,@INSTALL@,$ac_INSTALL,;t t
13320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13321 rm -f $tmp/stdin
13322 if test x"$ac_file" != x-; then
13323 mv $tmp/out $ac_file
13324 else
13325 cat $tmp/out
13326 rm -f $tmp/out
13329 done
13330 _ACEOF
13331 cat >>$CONFIG_STATUS <<\_ACEOF
13334 # CONFIG_HEADER section.
13337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13340 # ac_d sets the value in "#define NAME VALUE" lines.
13341 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13342 ac_dB='[ ].*$,\1#\2'
13343 ac_dC=' '
13344 ac_dD=',;t'
13345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13346 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13347 ac_uB='$,\1#\2define\3'
13348 ac_uC=' '
13349 ac_uD=',;t'
13351 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13353 case $ac_file in
13354 - | *:- | *:-:* ) # input from stdin
13355 cat >$tmp/stdin
13356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13360 * ) ac_file_in=$ac_file.in ;;
13361 esac
13363 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13364 echo "$as_me: creating $ac_file" >&6;}
13366 # First look for the input files in the build tree, otherwise in the
13367 # src tree.
13368 ac_file_inputs=`IFS=:
13369 for f in $ac_file_in; do
13370 case $f in
13371 -) echo $tmp/stdin ;;
13372 [\\/$]*)
13373 # Absolute (can't be DOS-style, as IFS=:)
13374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13375 echo "$as_me: error: cannot find input file: $f" >&2;}
13376 { (exit 1); exit 1; }; }
13377 # Do quote $f, to prevent DOS paths from being IFS'd.
13378 echo "$f";;
13379 *) # Relative
13380 if test -f "$f"; then
13381 # Build tree
13382 echo "$f"
13383 elif test -f "$srcdir/$f"; then
13384 # Source tree
13385 echo "$srcdir/$f"
13386 else
13387 # /dev/null tree
13388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13389 echo "$as_me: error: cannot find input file: $f" >&2;}
13390 { (exit 1); exit 1; }; }
13391 fi;;
13392 esac
13393 done` || { (exit 1); exit 1; }
13394 # Remove the trailing spaces.
13395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13397 _ACEOF
13399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13400 # `conftest.undefs', that substitutes the proper values into
13401 # config.h.in to produce config.h. The first handles `#define'
13402 # templates, and the second `#undef' templates.
13403 # And first: Protect against being on the right side of a sed subst in
13404 # config.status. Protect against being in an unquoted here document
13405 # in config.status.
13406 rm -f conftest.defines conftest.undefs
13407 # Using a here document instead of a string reduces the quoting nightmare.
13408 # Putting comments in sed scripts is not portable.
13410 # `end' is used to avoid that the second main sed command (meant for
13411 # 0-ary CPP macros) applies to n-ary macro definitions.
13412 # See the Autoconf documentation for `clear'.
13413 cat >confdef2sed.sed <<\_ACEOF
13414 s/[\\&,]/\\&/g
13415 s,[\\$`],\\&,g
13416 t clear
13417 : clear
13418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13419 t end
13420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13421 : end
13422 _ACEOF
13423 # If some macros were called several times there might be several times
13424 # the same #defines, which is useless. Nevertheless, we may not want to
13425 # sort them, since we want the *last* AC-DEFINE to be honored.
13426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13428 rm -f confdef2sed.sed
13430 # This sed command replaces #undef with comments. This is necessary, for
13431 # example, in the case of _POSIX_SOURCE, which is predefined and required
13432 # on some systems where configure will not decide to define it.
13433 cat >>conftest.undefs <<\_ACEOF
13434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13435 _ACEOF
13437 # Break up conftest.defines because some shells have a limit on the size
13438 # of here documents, and old seds have small limits too (100 cmds).
13439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13440 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13442 echo ' :' >>$CONFIG_STATUS
13443 rm -f conftest.tail
13444 while grep . conftest.defines >/dev/null
13446 # Write a limited-size here document to $tmp/defines.sed.
13447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13448 # Speed up: don't consider the non `#define' lines.
13449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13450 # Work around the forget-to-reset-the-flag bug.
13451 echo 't clr' >>$CONFIG_STATUS
13452 echo ': clr' >>$CONFIG_STATUS
13453 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13454 echo 'CEOF
13455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13456 rm -f $tmp/in
13457 mv $tmp/out $tmp/in
13458 ' >>$CONFIG_STATUS
13459 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13460 rm -f conftest.defines
13461 mv conftest.tail conftest.defines
13462 done
13463 rm -f conftest.defines
13464 echo ' fi # grep' >>$CONFIG_STATUS
13465 echo >>$CONFIG_STATUS
13467 # Break up conftest.undefs because some shells have a limit on the size
13468 # of here documents, and old seds have small limits too (100 cmds).
13469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13470 rm -f conftest.tail
13471 while grep . conftest.undefs >/dev/null
13473 # Write a limited-size here document to $tmp/undefs.sed.
13474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13475 # Speed up: don't consider the non `#undef'
13476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13477 # Work around the forget-to-reset-the-flag bug.
13478 echo 't clr' >>$CONFIG_STATUS
13479 echo ': clr' >>$CONFIG_STATUS
13480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13481 echo 'CEOF
13482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13483 rm -f $tmp/in
13484 mv $tmp/out $tmp/in
13485 ' >>$CONFIG_STATUS
13486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13487 rm -f conftest.undefs
13488 mv conftest.tail conftest.undefs
13489 done
13490 rm -f conftest.undefs
13492 cat >>$CONFIG_STATUS <<\_ACEOF
13493 # Let's still pretend it is `configure' which instantiates (i.e., don't
13494 # use $as_me), people would be surprised to read:
13495 # /* config.h. Generated by config.status. */
13496 if test x"$ac_file" = x-; then
13497 echo "/* Generated by configure. */" >$tmp/config.h
13498 else
13499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13501 cat $tmp/in >>$tmp/config.h
13502 rm -f $tmp/in
13503 if test x"$ac_file" != x-; then
13504 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13506 echo "$as_me: $ac_file is unchanged" >&6;}
13507 else
13508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13510 X"$ac_file" : 'X\(//\)[^/]' \| \
13511 X"$ac_file" : 'X\(//\)$' \| \
13512 X"$ac_file" : 'X\(/\)' \| \
13513 . : '\(.\)' 2>/dev/null ||
13514 echo X"$ac_file" |
13515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13517 /^X\(\/\/\)$/{ s//\1/; q; }
13518 /^X\(\/\).*/{ s//\1/; q; }
13519 s/.*/./; q'`
13520 { if $as_mkdir_p; then
13521 mkdir -p "$ac_dir"
13522 else
13523 as_dir="$ac_dir"
13524 as_dirs=
13525 while test ! -d "$as_dir"; do
13526 as_dirs="$as_dir $as_dirs"
13527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13529 X"$as_dir" : 'X\(//\)[^/]' \| \
13530 X"$as_dir" : 'X\(//\)$' \| \
13531 X"$as_dir" : 'X\(/\)' \| \
13532 . : '\(.\)' 2>/dev/null ||
13533 echo X"$as_dir" |
13534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13536 /^X\(\/\/\)$/{ s//\1/; q; }
13537 /^X\(\/\).*/{ s//\1/; q; }
13538 s/.*/./; q'`
13539 done
13540 test ! -n "$as_dirs" || mkdir $as_dirs
13541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13543 { (exit 1); exit 1; }; }; }
13545 rm -f $ac_file
13546 mv $tmp/config.h $ac_file
13548 else
13549 cat $tmp/config.h
13550 rm -f $tmp/config.h
13552 # Compute $ac_file's index in $config_headers.
13553 _am_stamp_count=1
13554 for _am_header in $config_headers :; do
13555 case $_am_header in
13556 $ac_file | $ac_file:* )
13557 break ;;
13559 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13560 esac
13561 done
13562 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13563 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13564 X$ac_file : 'X\(//\)[^/]' \| \
13565 X$ac_file : 'X\(//\)$' \| \
13566 X$ac_file : 'X\(/\)' \| \
13567 . : '\(.\)' 2>/dev/null ||
13568 echo X$ac_file |
13569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13571 /^X\(\/\/\)$/{ s//\1/; q; }
13572 /^X\(\/\).*/{ s//\1/; q; }
13573 s/.*/./; q'`/stamp-h$_am_stamp_count
13574 done
13575 _ACEOF
13576 cat >>$CONFIG_STATUS <<\_ACEOF
13579 # CONFIG_COMMANDS section.
13581 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13582 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13583 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13584 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13585 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13586 X"$ac_dest" : 'X\(//\)[^/]' \| \
13587 X"$ac_dest" : 'X\(//\)$' \| \
13588 X"$ac_dest" : 'X\(/\)' \| \
13589 . : '\(.\)' 2>/dev/null ||
13590 echo X"$ac_dest" |
13591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13593 /^X\(\/\/\)$/{ s//\1/; q; }
13594 /^X\(\/\).*/{ s//\1/; q; }
13595 s/.*/./; q'`
13596 { if $as_mkdir_p; then
13597 mkdir -p "$ac_dir"
13598 else
13599 as_dir="$ac_dir"
13600 as_dirs=
13601 while test ! -d "$as_dir"; do
13602 as_dirs="$as_dir $as_dirs"
13603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13605 X"$as_dir" : 'X\(//\)[^/]' \| \
13606 X"$as_dir" : 'X\(//\)$' \| \
13607 X"$as_dir" : 'X\(/\)' \| \
13608 . : '\(.\)' 2>/dev/null ||
13609 echo X"$as_dir" |
13610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13612 /^X\(\/\/\)$/{ s//\1/; q; }
13613 /^X\(\/\).*/{ s//\1/; q; }
13614 s/.*/./; q'`
13615 done
13616 test ! -n "$as_dirs" || mkdir $as_dirs
13617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13619 { (exit 1); exit 1; }; }; }
13621 ac_builddir=.
13623 if test "$ac_dir" != .; then
13624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13625 # A "../" for each directory in $ac_dir_suffix.
13626 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13627 else
13628 ac_dir_suffix= ac_top_builddir=
13631 case $srcdir in
13632 .) # No --srcdir option. We are building in place.
13633 ac_srcdir=.
13634 if test -z "$ac_top_builddir"; then
13635 ac_top_srcdir=.
13636 else
13637 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13638 fi ;;
13639 [\\/]* | ?:[\\/]* ) # Absolute path.
13640 ac_srcdir=$srcdir$ac_dir_suffix;
13641 ac_top_srcdir=$srcdir ;;
13642 *) # Relative path.
13643 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13644 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13645 esac
13647 # Do not use `cd foo && pwd` to compute absolute paths, because
13648 # the directories may not exist.
13649 case `pwd` in
13650 .) ac_abs_builddir="$ac_dir";;
13652 case "$ac_dir" in
13653 .) ac_abs_builddir=`pwd`;;
13654 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13655 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13656 esac;;
13657 esac
13658 case $ac_abs_builddir in
13659 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13661 case ${ac_top_builddir}. in
13662 .) ac_abs_top_builddir=$ac_abs_builddir;;
13663 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13664 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13665 esac;;
13666 esac
13667 case $ac_abs_builddir in
13668 .) ac_abs_srcdir=$ac_srcdir;;
13670 case $ac_srcdir in
13671 .) ac_abs_srcdir=$ac_abs_builddir;;
13672 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13673 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13674 esac;;
13675 esac
13676 case $ac_abs_builddir in
13677 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13679 case $ac_top_srcdir in
13680 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13681 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13682 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13683 esac;;
13684 esac
13687 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13688 echo "$as_me: executing $ac_dest commands" >&6;}
13689 case $ac_dest in
13690 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13691 # Strip MF so we end up with the name of the file.
13692 mf=`echo "$mf" | sed -e 's/:.*$//'`
13693 # Check whether this is an Automake generated Makefile or not.
13694 # We used to match only the files named `Makefile.in', but
13695 # some people rename them; so instead we look at the file content.
13696 # Grep'ing the first line is not enough: some people post-process
13697 # each Makefile.in and add a new line on top of each file to say so.
13698 # So let's grep whole file.
13699 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13700 dirpart=`(dirname "$mf") 2>/dev/null ||
13701 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13702 X"$mf" : 'X\(//\)[^/]' \| \
13703 X"$mf" : 'X\(//\)$' \| \
13704 X"$mf" : 'X\(/\)' \| \
13705 . : '\(.\)' 2>/dev/null ||
13706 echo X"$mf" |
13707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13709 /^X\(\/\/\)$/{ s//\1/; q; }
13710 /^X\(\/\).*/{ s//\1/; q; }
13711 s/.*/./; q'`
13712 else
13713 continue
13715 # Extract the definition of DEPDIR, am__include, and am__quote
13716 # from the Makefile without running `make'.
13717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13718 test -z "$DEPDIR" && continue
13719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13720 test -z "am__include" && continue
13721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13722 # When using ansi2knr, U may be empty or an underscore; expand it
13723 U=`sed -n 's/^U = //p' < "$mf"`
13724 # Find all dependency output files, they are included files with
13725 # $(DEPDIR) in their names. We invoke sed twice because it is the
13726 # simplest approach to changing $(DEPDIR) to its actual value in the
13727 # expansion.
13728 for file in `sed -n "
13729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13731 # Make sure the directory exists.
13732 test -f "$dirpart/$file" && continue
13733 fdir=`(dirname "$file") 2>/dev/null ||
13734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13735 X"$file" : 'X\(//\)[^/]' \| \
13736 X"$file" : 'X\(//\)$' \| \
13737 X"$file" : 'X\(/\)' \| \
13738 . : '\(.\)' 2>/dev/null ||
13739 echo X"$file" |
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13742 /^X\(\/\/\)$/{ s//\1/; q; }
13743 /^X\(\/\).*/{ s//\1/; q; }
13744 s/.*/./; q'`
13745 { if $as_mkdir_p; then
13746 mkdir -p $dirpart/$fdir
13747 else
13748 as_dir=$dirpart/$fdir
13749 as_dirs=
13750 while test ! -d "$as_dir"; do
13751 as_dirs="$as_dir $as_dirs"
13752 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13754 X"$as_dir" : 'X\(//\)[^/]' \| \
13755 X"$as_dir" : 'X\(//\)$' \| \
13756 X"$as_dir" : 'X\(/\)' \| \
13757 . : '\(.\)' 2>/dev/null ||
13758 echo X"$as_dir" |
13759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13761 /^X\(\/\/\)$/{ s//\1/; q; }
13762 /^X\(\/\).*/{ s//\1/; q; }
13763 s/.*/./; q'`
13764 done
13765 test ! -n "$as_dirs" || mkdir $as_dirs
13766 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13767 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13768 { (exit 1); exit 1; }; }; }
13770 # echo "creating $dirpart/$file"
13771 echo '# dummy' > "$dirpart/$file"
13772 done
13773 done
13775 default-1 )
13776 for ac_file in $CONFIG_FILES; do
13777 # Support "outfile[:infile[:infile...]]"
13778 case "$ac_file" in
13779 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13780 esac
13781 # PO directories have a Makefile.in generated from Makefile.in.in.
13782 case "$ac_file" in */Makefile.in)
13783 # Adjust a relative srcdir.
13784 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13785 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13786 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13787 # In autoconf-2.13 it is called $ac_given_srcdir.
13788 # In autoconf-2.50 it is called $srcdir.
13789 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13790 case "$ac_given_srcdir" in
13791 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13792 /*) top_srcdir="$ac_given_srcdir" ;;
13793 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13794 esac
13795 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13796 rm -f "$ac_dir/POTFILES"
13797 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13798 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13799 POMAKEFILEDEPS="POTFILES.in"
13800 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13801 # on $ac_dir but don't depend on user-specified configuration
13802 # parameters.
13803 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13804 # The LINGUAS file contains the set of available languages.
13805 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13806 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13808 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13809 # Hide the ALL_LINGUAS assigment from automake.
13810 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13811 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13812 else
13813 # The set of available languages was given in configure.in.
13814 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13816 case "$ac_given_srcdir" in
13817 .) srcdirpre= ;;
13818 *) srcdirpre='$(srcdir)/' ;;
13819 esac
13820 POFILES=
13821 GMOFILES=
13822 UPDATEPOFILES=
13823 DUMMYPOFILES=
13824 for lang in $ALL_LINGUAS; do
13825 POFILES="$POFILES $srcdirpre$lang.po"
13826 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13827 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13828 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13829 done
13830 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13831 # environment variable.
13832 INST_LINGUAS=
13833 if test -n "$ALL_LINGUAS"; then
13834 for presentlang in $ALL_LINGUAS; do
13835 useit=no
13836 if test "%UNSET%" != "$LINGUAS"; then
13837 desiredlanguages="$LINGUAS"
13838 else
13839 desiredlanguages="$ALL_LINGUAS"
13841 for desiredlang in $desiredlanguages; do
13842 # Use the presentlang catalog if desiredlang is
13843 # a. equal to presentlang, or
13844 # b. a variant of presentlang (because in this case,
13845 # presentlang can be used as a fallback for messages
13846 # which are not translated in the desiredlang catalog).
13847 case "$desiredlang" in
13848 "$presentlang"*) useit=yes;;
13849 esac
13850 done
13851 if test $useit = yes; then
13852 INST_LINGUAS="$INST_LINGUAS $presentlang"
13854 done
13856 CATALOGS=
13857 if test -n "$INST_LINGUAS"; then
13858 for lang in $INST_LINGUAS; do
13859 CATALOGS="$CATALOGS $lang.gmo"
13860 done
13862 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13863 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"
13864 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13865 if test -f "$f"; then
13866 case "$f" in
13867 *.orig | *.bak | *~) ;;
13868 *) cat "$f" >> "$ac_dir/Makefile" ;;
13869 esac
13871 done
13874 esac
13875 done ;;
13876 default )
13877 case "$srcdir" in
13878 .) srcdirpre= ;;
13879 *) srcdirpre='$(srcdir)/' ;;
13880 esac
13881 POFILES=
13882 GMOFILES=
13883 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13884 if test $lang != dummy; then
13885 POFILES="$POFILES $srcdirpre$lang.po"
13886 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13888 done
13889 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13890 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13891 -e "s,@POFILES@,$POFILES," \
13892 -e "s,@GMOFILES@,$GMOFILES," \
13893 po/Makefile.in > po/Makefile ;;
13894 esac
13895 done
13896 _ACEOF
13898 cat >>$CONFIG_STATUS <<\_ACEOF
13900 { (exit 0); exit 0; }
13901 _ACEOF
13902 chmod +x $CONFIG_STATUS
13903 ac_clean_files=$ac_clean_files_save
13906 # configure is writing to config.log, and then calls config.status.
13907 # config.status does its own redirection, appending to config.log.
13908 # Unfortunately, on DOS this fails, as config.log is still kept open
13909 # by configure, so config.status won't be able to write to it; its
13910 # output is simply discarded. So we exec the FD to /dev/null,
13911 # effectively closing config.log, so it can be properly (re)opened and
13912 # appended to by config.status. When coming back to configure, we
13913 # need to make the FD available again.
13914 if test "$no_create" != yes; then
13915 ac_cs_success=:
13916 ac_config_status_args=
13917 test "$silent" = yes &&
13918 ac_config_status_args="$ac_config_status_args --quiet"
13919 exec 5>/dev/null
13920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13921 exec 5>>config.log
13922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13923 # would make configure fail if this is the last instruction.
13924 $ac_cs_success || { (exit 1); exit 1; }