* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
[binutils.git] / bfd / configure
blob0669a41c3e3ca6a2b865a349cef5ed023374d585
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-shared=PKGS build shared libraries default=no
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
858 --enable-targets alternative target configurations
859 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
860 --enable-build-warnings Enable build-time compiler warnings if gcc is used
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-install-libbfd controls installation of libbfd and related headers
864 --disable-nls do not use Native Language Support
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-mmap try using mmap for BFD input files if available
872 --with-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 _ACEOF
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd $ac_popdir
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
996 $ $0 $@
998 _ACEOF
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022 _ASUNAME
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1032 } >&5
1034 cat >&5 <<_ACEOF
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1041 _ACEOF
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1056 for ac_arg
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1103 echo
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 esac;
1126 echo
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1227 done
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_aux_dir=
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif 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/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1689 done
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1731 done
1733 CC=$ac_ct_CC
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 conftest.$ac_ext )
1808 # This is the source file.
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_compiler_gnu=no
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 main ()
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_cv_prog_cc_g=no
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2120 return p[i];
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2148 main ()
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 return 0;
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2259 main ()
2261 exit (42);
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 continue
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2304 main ()
2306 exit (42);
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2363 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2364 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 ac_check_lib_save_LIBS=$LIBS
2368 LIBS="-lcposix $LIBS"
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 #ifdef __cplusplus
2378 extern "C"
2379 #endif
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char strerror ();
2384 main ()
2386 strerror ();
2388 return 0;
2390 _ACEOF
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_lib_cposix_strerror=yes
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2418 ac_cv_lib_cposix_strerror=no
2420 rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422 LIBS=$ac_check_lib_save_LIBS
2424 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2425 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2426 if test $ac_cv_lib_cposix_strerror = yes; then
2427 LIBS="$LIBS -lcposix"
2433 am__api_version="1.4"
2434 # Find a good install program. We prefer a C program (faster),
2435 # so one script is as good as another. But avoid the broken or
2436 # incompatible versions:
2437 # SysV /etc/install, /usr/sbin/install
2438 # SunOS /usr/etc/install
2439 # IRIX /sbin/install
2440 # AIX /bin/install
2441 # AmigaOS /C/install, which installs bootblocks on floppy discs
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # OS/2's system install, which has a completely different semantic
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2449 if test -z "$INSTALL"; then
2450 if test "${ac_cv_path_install+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2459 case $as_dir/ in
2460 ./ | .// | /cC/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2463 /usr/ucb/* ) ;;
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2467 # by default.
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2471 if test $ac_prog = install &&
2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # AIX install. It has an incompatible calling convention.
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2479 else
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 break 3
2484 done
2485 done
2487 esac
2488 done
2492 if test "${ac_cv_path_install+set}" = set; then
2493 INSTALL=$ac_cv_path_install
2494 else
2495 # As a last resort, use the slow shell script. We don't cache a
2496 # path for INSTALL within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the path is relative.
2499 INSTALL=$ac_install_sh
2502 echo "$as_me:$LINENO: result: $INSTALL" >&5
2503 echo "${ECHO_T}$INSTALL" >&6
2505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506 # It thinks the first close brace ends the variable substitution.
2507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2514 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2515 # Just in case
2516 sleep 1
2517 echo timestamp > conftestfile
2518 # Do `set' in a subshell so we don't clobber the current shell's
2519 # arguments. Must try -L first in case configure is actually a
2520 # symlink; some systems play weird games with the mod time of symlinks
2521 # (eg FreeBSD returns the mod time of the symlink's containing
2522 # directory).
2523 if (
2524 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2525 if test "$*" = "X"; then
2526 # -L didn't work.
2527 set X `ls -t $srcdir/configure conftestfile`
2529 if test "$*" != "X $srcdir/configure conftestfile" \
2530 && test "$*" != "X conftestfile $srcdir/configure"; then
2532 # If neither matched, then we have a broken ls. This can happen
2533 # if, for instance, CONFIG_SHELL is bash and it inherits a
2534 # broken ls alias from the environment. This has actually
2535 # happened. Such a system could not be considered "sane".
2536 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2537 alias in your environment" >&5
2538 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2539 alias in your environment" >&2;}
2540 { (exit 1); exit 1; }; }
2543 test "$2" = conftestfile
2545 then
2546 # Ok.
2548 else
2549 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2550 Check your system clock" >&5
2551 echo "$as_me: error: newly created file is older than distributed files!
2552 Check your system clock" >&2;}
2553 { (exit 1); exit 1; }; }
2555 rm -f conftest*
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2558 test "$program_prefix" != NONE &&
2559 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2560 # Use a double $ so make ignores it.
2561 test "$program_suffix" != NONE &&
2562 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2563 # Double any \ or $. echo might interpret backslashes.
2564 # By default was `s,x,x', remove it if useless.
2565 cat <<\_ACEOF >conftest.sed
2566 s/[\\$]/&&/g;s/;s,x,x,$//
2567 _ACEOF
2568 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2569 rm conftest.sed
2571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 cat >conftest.make <<\_ACEOF
2578 all:
2579 @echo 'ac_maketemp="$(MAKE)"'
2580 _ACEOF
2581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2583 if test -n "$ac_maketemp"; then
2584 eval ac_cv_prog_make_${ac_make}_set=yes
2585 else
2586 eval ac_cv_prog_make_${ac_make}_set=no
2588 rm -f conftest.make
2590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2591 echo "$as_me:$LINENO: result: yes" >&5
2592 echo "${ECHO_T}yes" >&6
2593 SET_MAKE=
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6
2597 SET_MAKE="MAKE=${MAKE-make}"
2601 PACKAGE=bfd
2603 VERSION=2.15.91
2605 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2606 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2607 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2608 { (exit 1); exit 1; }; }
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE "$PACKAGE"
2613 _ACEOF
2616 cat >>confdefs.h <<_ACEOF
2617 #define VERSION "$VERSION"
2618 _ACEOF
2622 missing_dir=`cd $ac_aux_dir && pwd`
2623 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2624 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2625 # Run test in a subshell; some versions of sh will print an error if
2626 # an executable is not found, even if stderr is redirected.
2627 # Redirect stdin to placate older versions of autoconf. Sigh.
2628 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2629 ACLOCAL=aclocal-${am__api_version}
2630 echo "$as_me:$LINENO: result: found" >&5
2631 echo "${ECHO_T}found" >&6
2632 else
2633 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2634 echo "$as_me:$LINENO: result: missing" >&5
2635 echo "${ECHO_T}missing" >&6
2638 echo "$as_me:$LINENO: checking for working autoconf" >&5
2639 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2640 # Run test in a subshell; some versions of sh will print an error if
2641 # an executable is not found, even if stderr is redirected.
2642 # Redirect stdin to placate older versions of autoconf. Sigh.
2643 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2644 AUTOCONF=autoconf
2645 echo "$as_me:$LINENO: result: found" >&5
2646 echo "${ECHO_T}found" >&6
2647 else
2648 AUTOCONF="$missing_dir/missing autoconf"
2649 echo "$as_me:$LINENO: result: missing" >&5
2650 echo "${ECHO_T}missing" >&6
2653 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2654 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2655 # Run test in a subshell; some versions of sh will print an error if
2656 # an executable is not found, even if stderr is redirected.
2657 # Redirect stdin to placate older versions of autoconf. Sigh.
2658 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2659 AUTOMAKE=automake-${am__api_version}
2660 echo "$as_me:$LINENO: result: found" >&5
2661 echo "${ECHO_T}found" >&6
2662 else
2663 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2664 echo "$as_me:$LINENO: result: missing" >&5
2665 echo "${ECHO_T}missing" >&6
2668 echo "$as_me:$LINENO: checking for working autoheader" >&5
2669 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2670 # Run test in a subshell; some versions of sh will print an error if
2671 # an executable is not found, even if stderr is redirected.
2672 # Redirect stdin to placate older versions of autoconf. Sigh.
2673 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2674 AUTOHEADER=autoheader
2675 echo "$as_me:$LINENO: result: found" >&5
2676 echo "${ECHO_T}found" >&6
2677 else
2678 AUTOHEADER="$missing_dir/missing autoheader"
2679 echo "$as_me:$LINENO: result: missing" >&5
2680 echo "${ECHO_T}missing" >&6
2683 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2684 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2685 # Run test in a subshell; some versions of sh will print an error if
2686 # an executable is not found, even if stderr is redirected.
2687 # Redirect stdin to placate older versions of autoconf. Sigh.
2688 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2689 MAKEINFO=makeinfo
2690 echo "$as_me:$LINENO: result: found" >&5
2691 echo "${ECHO_T}found" >&6
2692 else
2693 MAKEINFO="$missing_dir/missing makeinfo"
2694 echo "$as_me:$LINENO: result: missing" >&5
2695 echo "${ECHO_T}missing" >&6
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}ar; ac_word=$2
2703 echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_prog_AR+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 if test -n "$AR"; then
2709 ac_cv_prog_AR="$AR" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_AR="${ac_tool_prefix}ar"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2722 done
2723 done
2727 AR=$ac_cv_prog_AR
2728 if test -n "$AR"; then
2729 echo "$as_me:$LINENO: result: $AR" >&5
2730 echo "${ECHO_T}$AR" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2737 if test -z "$ac_cv_prog_AR"; then
2738 ac_ct_AR=$AR
2739 # Extract the first word of "ar", so it can be a program name with args.
2740 set dummy ar; ac_word=$2
2741 echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$ac_ct_AR"; then
2747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_ac_ct_AR="ar"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2766 if test -n "$ac_ct_AR"; then
2767 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2768 echo "${ECHO_T}$ac_ct_AR" >&6
2769 else
2770 echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2774 AR=$ac_ct_AR
2775 else
2776 AR="$ac_cv_prog_AR"
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_RANLIB+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$RANLIB"; then
2788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2806 RANLIB=$ac_cv_prog_RANLIB
2807 if test -n "$RANLIB"; then
2808 echo "$as_me:$LINENO: result: $RANLIB" >&5
2809 echo "${ECHO_T}$RANLIB" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_RANLIB"; then
2817 ac_ct_RANLIB=$RANLIB
2818 # Extract the first word of "ranlib", so it can be a program name with args.
2819 set dummy ranlib; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_RANLIB"; then
2826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_RANLIB="ranlib"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2846 if test -n "$ac_ct_RANLIB"; then
2847 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2848 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2849 else
2850 echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6
2854 RANLIB=$ac_ct_RANLIB
2855 else
2856 RANLIB="$ac_cv_prog_RANLIB"
2860 # Check whether --enable-shared or --disable-shared was given.
2861 if test "${enable_shared+set}" = set; then
2862 enableval="$enable_shared"
2863 p=${PACKAGE-default}
2864 case $enableval in
2865 yes) enable_shared=yes ;;
2866 no) enable_shared=no ;;
2868 enable_shared=no
2869 # Look at the argument we got. We use all the common list separators.
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2871 for pkg in $enableval; do
2872 if test "X$pkg" = "X$p"; then
2873 enable_shared=yes
2875 done
2876 IFS="$ac_save_ifs"
2878 esac
2879 else
2880 enable_shared=no
2883 # Check whether --enable-static or --disable-static was given.
2884 if test "${enable_static+set}" = set; then
2885 enableval="$enable_static"
2886 p=${PACKAGE-default}
2887 case $enableval in
2888 yes) enable_static=yes ;;
2889 no) enable_static=no ;;
2891 enable_static=no
2892 # Look at the argument we got. We use all the common list separators.
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2894 for pkg in $enableval; do
2895 if test "X$pkg" = "X$p"; then
2896 enable_static=yes
2898 done
2899 IFS="$ac_save_ifs"
2901 esac
2902 else
2903 enable_static=yes
2905 # Check whether --enable-fast-install or --disable-fast-install was given.
2906 if test "${enable_fast_install+set}" = set; then
2907 enableval="$enable_fast_install"
2908 p=${PACKAGE-default}
2909 case $enableval in
2910 yes) enable_fast_install=yes ;;
2911 no) enable_fast_install=no ;;
2913 enable_fast_install=no
2914 # Look at the argument we got. We use all the common list separators.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2916 for pkg in $enableval; do
2917 if test "X$pkg" = "X$p"; then
2918 enable_fast_install=yes
2920 done
2921 IFS="$ac_save_ifs"
2923 esac
2924 else
2925 enable_fast_install=yes
2928 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2929 if test "${with_gnu_ld+set}" = set; then
2930 withval="$with_gnu_ld"
2931 test "$withval" = no || with_gnu_ld=yes
2932 else
2933 with_gnu_ld=no
2935 ac_prog=ld
2936 if test "$GCC" = yes; then
2937 # Check if gcc -print-prog-name=ld gives a path.
2938 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2939 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2940 case $host in
2941 *-*-mingw*)
2942 # gcc leaves a trailing carriage return which upsets mingw
2943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2946 esac
2947 case $ac_prog in
2948 # Accept absolute paths.
2949 [\\/]* | [A-Za-z]:[\\/]*)
2950 re_direlt='/[^/][^/]*/\.\./'
2951 # Canonicalize the path of ld
2952 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2954 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2955 done
2956 test -z "$LD" && LD="$ac_prog"
2959 # If it fails, then pretend we aren't using GCC.
2960 ac_prog=ld
2963 # If it is relative, then search for the first ld in PATH.
2964 with_gnu_ld=unknown
2966 esac
2967 elif test "$with_gnu_ld" = yes; then
2968 echo "$as_me:$LINENO: checking for GNU ld" >&5
2969 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2970 else
2971 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2972 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2974 if test "${lt_cv_path_LD+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -z "$LD"; then
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2979 for ac_dir in $PATH; do
2980 test -z "$ac_dir" && ac_dir=.
2981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2982 lt_cv_path_LD="$ac_dir/$ac_prog"
2983 # Check to see if the program is GNU ld. I'd rather use --version,
2984 # but apparently some GNU ld's only accept -v.
2985 # Break only if it was the GNU/non-GNU ld that we prefer.
2986 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2987 test "$with_gnu_ld" != no && break
2988 else
2989 test "$with_gnu_ld" != yes && break
2992 done
2993 IFS="$ac_save_ifs"
2994 else
2995 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2999 LD="$lt_cv_path_LD"
3000 if test -n "$LD"; then
3001 echo "$as_me:$LINENO: result: $LD" >&5
3002 echo "${ECHO_T}$LD" >&6
3003 else
3004 echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3007 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3008 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3009 { (exit 1); exit 1; }; }
3010 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3011 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3012 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3016 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3017 lt_cv_prog_gnu_ld=yes
3018 else
3019 lt_cv_prog_gnu_ld=no
3022 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3023 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3024 with_gnu_ld=$lt_cv_prog_gnu_ld
3027 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3028 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3029 if test "${lt_cv_ld_reload_flag+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 lt_cv_ld_reload_flag='-r'
3034 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3035 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3036 reload_flag=$lt_cv_ld_reload_flag
3037 test -n "$reload_flag" && reload_flag=" $reload_flag"
3039 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3040 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3041 if test "${lt_cv_path_NM+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 if test -n "$NM"; then
3045 # Let the user override the test.
3046 lt_cv_path_NM="$NM"
3047 else
3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3049 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3050 test -z "$ac_dir" && ac_dir=.
3051 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3052 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3053 # Check to see if the nm accepts a BSD-compat flag.
3054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3055 # nm: unknown option "B" ignored
3056 # Tru64's nm complains that /dev/null is an invalid object file
3057 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3058 lt_cv_path_NM="$tmp_nm -B"
3059 break
3060 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3061 lt_cv_path_NM="$tmp_nm -p"
3062 break
3063 else
3064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3065 continue # so that we can try to find one that supports BSD flags
3068 done
3069 IFS="$ac_save_ifs"
3070 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3074 NM="$lt_cv_path_NM"
3075 echo "$as_me:$LINENO: result: $NM" >&5
3076 echo "${ECHO_T}$NM" >&6
3078 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3079 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3080 LN_S=$as_ln_s
3081 if test "$LN_S" = "ln -s"; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3086 echo "${ECHO_T}no, using $LN_S" >&6
3089 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3090 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3091 if test "${lt_cv_deplibs_check_method+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 lt_cv_file_magic_cmd='$MAGIC_CMD'
3095 lt_cv_file_magic_test_file=
3096 lt_cv_deplibs_check_method='unknown'
3097 # Need to set the preceding variable on all platforms that support
3098 # interlibrary dependencies.
3099 # 'none' -- dependencies not supported.
3100 # `unknown' -- same as none, but documents that we really don't know.
3101 # 'pass_all' -- all dependencies passed with no checks.
3102 # 'test_compile' -- check by making test program.
3103 # 'file_magic [regex]' -- check by looking for files in library path
3104 # which responds to the $file_magic_cmd with a given egrep regex.
3105 # If you have `file' or equivalent on your system and you're not sure
3106 # whether `pass_all' will *always* work, you probably want this one.
3108 case $host_os in
3109 aix*)
3110 lt_cv_deplibs_check_method=pass_all
3113 beos*)
3114 lt_cv_deplibs_check_method=pass_all
3117 bsdi4*)
3118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3119 lt_cv_file_magic_cmd='/usr/bin/file -L'
3120 lt_cv_file_magic_test_file=/shlib/libc.so
3123 cygwin* | mingw* |pw32*)
3124 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3125 lt_cv_file_magic_cmd='$OBJDUMP -f'
3128 darwin* | rhapsody*)
3129 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3130 lt_cv_file_magic_cmd='/usr/bin/file -L'
3131 case "$host_os" in
3132 rhapsody* | darwin1.012)
3133 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3135 *) # Darwin 1.3 on
3136 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3138 esac
3141 freebsd* | kfreebsd*-gnu)
3142 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3143 case $host_cpu in
3144 i*86 )
3145 # Not sure whether the presence of OpenBSD here was a mistake.
3146 # Let's accept both of them until this is cleared up.
3147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3148 lt_cv_file_magic_cmd=/usr/bin/file
3149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3151 esac
3152 else
3153 lt_cv_deplibs_check_method=pass_all
3157 gnu*)
3158 lt_cv_deplibs_check_method=pass_all
3161 hpux10.20*|hpux11*)
3162 case $host_cpu in
3163 hppa*)
3164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3165 lt_cv_file_magic_cmd=/usr/bin/file
3166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3168 ia64*)
3169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3170 lt_cv_file_magic_cmd=/usr/bin/file
3171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3173 esac
3176 irix5* | irix6*)
3177 case $host_os in
3178 irix5*)
3179 # this will be overridden with pass_all, but let us keep it just in case
3180 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3183 case $LD in
3184 *-32|*"-32 ") libmagic=32-bit;;
3185 *-n32|*"-n32 ") libmagic=N32;;
3186 *-64|*"-64 ") libmagic=64-bit;;
3187 *) libmagic=never-match;;
3188 esac
3189 # this will be overridden with pass_all, but let us keep it just in case
3190 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3192 esac
3193 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3194 lt_cv_deplibs_check_method=pass_all
3197 # This must be Linux ELF.
3198 linux-gnu*)
3199 case $host_cpu in
3200 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3201 lt_cv_deplibs_check_method=pass_all ;;
3203 # glibc up to 2.1.1 does not perform some relocations on ARM
3204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3205 esac
3206 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3209 netbsd* | knetbsd*-gnu)
3210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3211 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3212 else
3213 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3217 newsos6)
3218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3219 lt_cv_file_magic_cmd=/usr/bin/file
3220 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3223 osf3* | osf4* | osf5*)
3224 # this will be overridden with pass_all, but let us keep it just in case
3225 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3226 lt_cv_file_magic_test_file=/shlib/libc.so
3227 lt_cv_deplibs_check_method=pass_all
3230 sco3.2v5*)
3231 lt_cv_deplibs_check_method=pass_all
3234 solaris*)
3235 lt_cv_deplibs_check_method=pass_all
3236 lt_cv_file_magic_test_file=/lib/libc.so
3239 sysv5uw[78]* | sysv4*uw2*)
3240 lt_cv_deplibs_check_method=pass_all
3243 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3244 case $host_vendor in
3245 ncr)
3246 lt_cv_deplibs_check_method=pass_all
3248 motorola)
3249 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]'
3250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3252 esac
3254 esac
3257 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3258 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3259 file_magic_cmd=$lt_cv_file_magic_cmd
3260 deplibs_check_method=$lt_cv_deplibs_check_method
3265 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3267 # Only perform the check for file, if the check method requires it
3268 case $deplibs_check_method in
3269 file_magic*)
3270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3271 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3272 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3273 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 case $MAGIC_CMD in
3278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3280 ?:/*)
3281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3284 ac_save_MAGIC_CMD="$MAGIC_CMD"
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 ac_dummy="/usr/bin:$PATH"
3287 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/${ac_tool_prefix}file; then
3290 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3291 if test -n "$file_magic_test_file"; then
3292 case $deplibs_check_method in
3293 "file_magic "*)
3294 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3297 egrep "$file_magic_regex" > /dev/null; then
3299 else
3300 cat <<EOF 1>&2
3302 *** Warning: the command libtool uses to detect shared libraries,
3303 *** $file_magic_cmd, produces output that libtool cannot recognize.
3304 *** The result is that libtool may fail to recognize shared libraries
3305 *** as such. This will affect the creation of libtool libraries that
3306 *** depend on shared libraries, but programs linked with such libtool
3307 *** libraries will work regardless of this problem. Nevertheless, you
3308 *** may want to report the problem to your system manager and/or to
3309 *** bug-libtool@gnu.org
3312 fi ;;
3313 esac
3315 break
3317 done
3318 IFS="$ac_save_ifs"
3319 MAGIC_CMD="$ac_save_MAGIC_CMD"
3321 esac
3324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3325 if test -n "$MAGIC_CMD"; then
3326 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3327 echo "${ECHO_T}$MAGIC_CMD" >&6
3328 else
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3333 if test -z "$lt_cv_path_MAGIC_CMD"; then
3334 if test -n "$ac_tool_prefix"; then
3335 echo "$as_me:$LINENO: checking for file" >&5
3336 echo $ECHO_N "checking for file... $ECHO_C" >&6
3337 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 case $MAGIC_CMD in
3342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3344 ?:/*)
3345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3348 ac_save_MAGIC_CMD="$MAGIC_CMD"
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3350 ac_dummy="/usr/bin:$PATH"
3351 for ac_dir in $ac_dummy; do
3352 test -z "$ac_dir" && ac_dir=.
3353 if test -f $ac_dir/file; then
3354 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3355 if test -n "$file_magic_test_file"; then
3356 case $deplibs_check_method in
3357 "file_magic "*)
3358 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3361 egrep "$file_magic_regex" > /dev/null; then
3363 else
3364 cat <<EOF 1>&2
3366 *** Warning: the command libtool uses to detect shared libraries,
3367 *** $file_magic_cmd, produces output that libtool cannot recognize.
3368 *** The result is that libtool may fail to recognize shared libraries
3369 *** as such. This will affect the creation of libtool libraries that
3370 *** depend on shared libraries, but programs linked with such libtool
3371 *** libraries will work regardless of this problem. Nevertheless, you
3372 *** may want to report the problem to your system manager and/or to
3373 *** bug-libtool@gnu.org
3376 fi ;;
3377 esac
3379 break
3381 done
3382 IFS="$ac_save_ifs"
3383 MAGIC_CMD="$ac_save_MAGIC_CMD"
3385 esac
3388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3389 if test -n "$MAGIC_CMD"; then
3390 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3391 echo "${ECHO_T}$MAGIC_CMD" >&6
3392 else
3393 echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3397 else
3398 MAGIC_CMD=:
3404 esac
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444 ac_ct_RANLIB=$RANLIB
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3476 else
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 RANLIB=$ac_ct_RANLIB
3482 else
3483 RANLIB="$ac_cv_prog_RANLIB"
3486 if test -n "$ac_tool_prefix"; then
3487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}strip; ac_word=$2
3489 echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491 if test "${ac_cv_prog_STRIP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if test -n "$STRIP"; then
3495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3508 done
3509 done
3513 STRIP=$ac_cv_prog_STRIP
3514 if test -n "$STRIP"; then
3515 echo "$as_me:$LINENO: result: $STRIP" >&5
3516 echo "${ECHO_T}$STRIP" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3523 if test -z "$ac_cv_prog_STRIP"; then
3524 ac_ct_STRIP=$STRIP
3525 # Extract the first word of "strip", so it can be a program name with args.
3526 set dummy strip; ac_word=$2
3527 echo "$as_me:$LINENO: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 if test -n "$ac_ct_STRIP"; then
3533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_STRIP="strip"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3549 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3553 if test -n "$ac_ct_STRIP"; then
3554 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3555 echo "${ECHO_T}$ac_ct_STRIP" >&6
3556 else
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3561 STRIP=$ac_ct_STRIP
3562 else
3563 STRIP="$ac_cv_prog_STRIP"
3567 # Check for any special flags to pass to ltconfig.
3568 libtool_flags="--cache-file=$cache_file"
3569 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3570 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3571 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3572 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3573 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3576 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3577 if test "${enable_libtool_lock+set}" = set; then
3578 enableval="$enable_libtool_lock"
3581 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3582 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3585 # Check whether --with-pic or --without-pic was given.
3586 if test "${with_pic+set}" = set; then
3587 withval="$with_pic"
3588 pic_mode="$withval"
3589 else
3590 pic_mode=default
3592 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3593 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3595 # Some flags need to be propagated to the compiler or linker for good
3596 # libtool support.
3597 case $host in
3598 *-*-irix6*)
3599 # Find out which ABI we are using.
3600 echo '#line 3600 "configure"' > conftest.$ac_ext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
3606 if test "$lt_cv_prog_gnu_ld" = yes; then
3607 case `/usr/bin/file conftest.$ac_objext` in
3608 *32-bit*)
3609 LD="${LD-ld} -melf32bsmip"
3611 *N32*)
3612 LD="${LD-ld} -melf32bmipn32"
3614 *64-bit*)
3615 LD="${LD-ld} -melf64bmip"
3617 esac
3618 else
3619 case `/usr/bin/file conftest.$ac_objext` in
3620 *32-bit*)
3621 LD="${LD-ld} -32"
3623 *N32*)
3624 LD="${LD-ld} -n32"
3626 *64-bit*)
3627 LD="${LD-ld} -64"
3629 esac
3632 rm -rf conftest*
3635 ia64-*-hpux*)
3636 # Find out which ABI we are using.
3637 echo 'int i;' > conftest.$ac_ext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; then
3643 case "`/usr/bin/file conftest.o`" in
3644 *ELF-32*)
3645 HPUX_IA64_MODE="32"
3647 *ELF-64*)
3648 HPUX_IA64_MODE="64"
3650 esac
3652 rm -rf conftest*
3655 *-*-sco3.2v5*)
3656 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3657 SAVE_CFLAGS="$CFLAGS"
3658 CFLAGS="$CFLAGS -belf"
3659 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3660 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3661 if test "${lt_cv_cc_needs_belf+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3680 main ()
3684 return 0;
3686 _ACEOF
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 lt_cv_cc_needs_belf=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 lt_cv_cc_needs_belf=no
3716 rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3726 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3727 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3728 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3729 CFLAGS="$SAVE_CFLAGS"
3734 esac
3737 # Save cache, so that ltconfig can load it
3738 cat >confcache <<\_ACEOF
3739 # This file is a shell script that caches the results of configure
3740 # tests run on this system so they can be shared between configure
3741 # scripts and configure runs, see configure's option --config-cache.
3742 # It is not useful on other systems. If it contains results you don't
3743 # want to keep, you may remove or edit it.
3745 # config.status only pays attention to the cache file if you give it
3746 # the --recheck option to rerun configure.
3748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3750 # following values.
3752 _ACEOF
3754 # The following way of writing the cache mishandles newlines in values,
3755 # but we know of no workaround that is simple, portable, and efficient.
3756 # So, don't put newlines in cache variables' values.
3757 # Ultrix sh set writes to stderr and can't be redirected directly,
3758 # and sets the high bit in the cache file unless we assign to the vars.
3760 (set) 2>&1 |
3761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3762 *ac_space=\ *)
3763 # `set' does not quote correctly, so add quotes (double-quote
3764 # substitution turns \\\\ into \\, and sed turns \\ into \).
3765 sed -n \
3766 "s/'/'\\\\''/g;
3767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3770 # `set' quotes correctly as required by POSIX, so do not add quotes.
3771 sed -n \
3772 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3774 esac;
3776 sed '
3777 t clear
3778 : clear
3779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3780 t end
3781 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3782 : end' >>confcache
3783 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3784 if test -w $cache_file; then
3785 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3786 cat confcache >$cache_file
3787 else
3788 echo "not updating unwritable cache $cache_file"
3791 rm -f confcache
3793 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3794 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3795 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3796 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3797 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3798 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3799 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3800 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3801 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3802 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3803 echo "$as_me: error: libtool configure failed" >&2;}
3804 { (exit 1); exit 1; }; }
3806 # Reload cache, that may have been modified by ltconfig
3807 if test -r "$cache_file"; then
3808 # Some versions of bash will fail to source /dev/null (special
3809 # files actually), so we avoid doing that.
3810 if test -f "$cache_file"; then
3811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3812 echo "$as_me: loading cache $cache_file" >&6;}
3813 case $cache_file in
3814 [\\/]* | ?:[\\/]* ) . $cache_file;;
3815 *) . ./$cache_file;;
3816 esac
3818 else
3819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3820 echo "$as_me: creating cache $cache_file" >&6;}
3821 >$cache_file
3825 # This can be used to rebuild libtool when needed
3826 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3828 # Always use our own libtool.
3829 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3831 # Redirect the config.log output again, so that the ltconfig log is not
3832 # clobbered by the next message.
3833 exec 5>>./config.log
3841 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3842 if test "${enable_64_bit_bfd+set}" = set; then
3843 enableval="$enable_64_bit_bfd"
3844 case "${enableval}" in
3845 yes) want64=true ;;
3846 no) want64=false ;;
3847 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3848 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3849 { (exit 1); exit 1; }; } ;;
3850 esac
3851 else
3852 want64=false
3853 fi; # Check whether --enable-targets or --disable-targets was given.
3854 if test "${enable_targets+set}" = set; then
3855 enableval="$enable_targets"
3856 case "${enableval}" in
3857 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3858 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3859 { (exit 1); exit 1; }; }
3861 no) enable_targets= ;;
3862 *) enable_targets=$enableval ;;
3863 esac
3864 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3865 if test "${enable_commonbfdlib+set}" = set; then
3866 enableval="$enable_commonbfdlib"
3867 case "${enableval}" in
3868 yes) commonbfdlib=true ;;
3869 no) commonbfdlib=false ;;
3870 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3871 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3872 { (exit 1); exit 1; }; } ;;
3873 esac
3875 # Check whether --with-mmap or --without-mmap was given.
3876 if test "${with_mmap+set}" = set; then
3877 withval="$with_mmap"
3878 case "${withval}" in
3879 yes) want_mmap=true ;;
3880 no) want_mmap=false ;;
3881 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
3882 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3883 { (exit 1); exit 1; }; } ;;
3884 esac
3885 else
3886 want_mmap=false
3888 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3889 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3890 if test "${enable_build_warnings+set}" = set; then
3891 enableval="$enable_build_warnings"
3892 case "${enableval}" in
3893 yes) ;;
3894 no) build_warnings="-w";;
3895 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3896 build_warnings="${build_warnings} ${t}";;
3897 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3898 build_warnings="${t} ${build_warnings}";;
3899 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3900 esac
3901 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3902 echo "Setting warning flags = $build_warnings" 6>&1
3904 fi; WARN_CFLAGS=""
3905 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
3906 WARN_CFLAGS="${build_warnings}"
3911 ac_config_headers="$ac_config_headers config.h:config.in"
3913 ac_config_commands="$ac_config_commands default-1"
3916 if test -z "$target" ; then
3917 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3918 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3919 { (exit 1); exit 1; }; }
3922 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3923 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3924 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3925 if test "${enable_maintainer_mode+set}" = set; then
3926 enableval="$enable_maintainer_mode"
3927 USE_MAINTAINER_MODE=$enableval
3928 else
3929 USE_MAINTAINER_MODE=no
3931 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3932 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3935 if test $USE_MAINTAINER_MODE = yes; then
3936 MAINTAINER_MODE_TRUE=
3937 MAINTAINER_MODE_FALSE='#'
3938 else
3939 MAINTAINER_MODE_TRUE='#'
3940 MAINTAINER_MODE_FALSE=
3942 MAINT=$MAINTAINER_MODE_TRUE
3945 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3946 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
3947 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3948 if test "${enable_install_libbfd+set}" = set; then
3949 enableval="$enable_install_libbfd"
3950 install_libbfd_p=$enableval
3951 else
3952 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
3953 install_libbfd_p=yes
3954 else
3955 install_libbfd_p=no
3958 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3959 echo "${ECHO_T}$install_libbfd_p" >&6
3962 if test $install_libbfd_p = yes; then
3963 INSTALL_LIBBFD_TRUE=
3964 INSTALL_LIBBFD_FALSE='#'
3965 else
3966 INSTALL_LIBBFD_TRUE='#'
3967 INSTALL_LIBBFD_FALSE=
3969 # Need _noncanonical variables for this.
3970 ACX_HOST_NONCANONICAL
3971 ACX_TARGET_NONCANONICAL
3972 # libbfd.a is a host library containing target dependent code
3973 bfdlibdir='$(libdir)'
3974 bfdincludedir='$(includedir)'
3975 if test "${host}" != "${target}"; then
3976 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3977 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
3985 host64=false
3986 target64=false
3987 bfd_default_target_size=32
3989 # host stuff:
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_prog_CC+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4018 done
4019 done
4023 CC=$ac_cv_prog_CC
4024 if test -n "$CC"; then
4025 echo "$as_me:$LINENO: result: $CC" >&5
4026 echo "${ECHO_T}$CC" >&6
4027 else
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4033 if test -z "$ac_cv_prog_CC"; then
4034 ac_ct_CC=$CC
4035 # Extract the first word of "gcc", so it can be a program name with args.
4036 set dummy gcc; ac_word=$2
4037 echo "$as_me:$LINENO: checking for $ac_word" >&5
4038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 if test -n "$ac_ct_CC"; then
4043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_ac_ct_CC="gcc"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062 if test -n "$ac_ct_CC"; then
4063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4064 echo "${ECHO_T}$ac_ct_CC" >&6
4065 else
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4070 CC=$ac_ct_CC
4071 else
4072 CC="$ac_cv_prog_CC"
4075 if test -z "$CC"; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}cc; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_CC+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 if test -n "$CC"; then
4085 ac_cv_prog_CC="$CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC="${ac_tool_prefix}cc"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105 echo "$as_me:$LINENO: result: $CC" >&5
4106 echo "${ECHO_T}$CC" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4113 if test -z "$ac_cv_prog_CC"; then
4114 ac_ct_CC=$CC
4115 # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_CC="cc"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142 if test -n "$ac_ct_CC"; then
4143 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4144 echo "${ECHO_T}$ac_ct_CC" >&6
4145 else
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 CC=$ac_ct_CC
4151 else
4152 CC="$ac_cv_prog_CC"
4156 if test -z "$CC"; then
4157 # Extract the first word of "cc", so it can be a program name with args.
4158 set dummy cc; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_CC+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 else
4167 ac_prog_rejected=no
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4176 ac_prog_rejected=yes
4177 continue
4179 ac_cv_prog_CC="cc"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4186 if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4200 CC=$ac_cv_prog_CC
4201 if test -n "$CC"; then
4202 echo "$as_me:$LINENO: result: $CC" >&5
4203 echo "${ECHO_T}$CC" >&6
4204 else
4205 echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6
4210 if test -z "$CC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in cl
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4240 CC=$ac_cv_prog_CC
4241 if test -n "$CC"; then
4242 echo "$as_me:$LINENO: result: $CC" >&5
4243 echo "${ECHO_T}$CC" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4249 test -n "$CC" && break
4250 done
4252 if test -z "$CC"; then
4253 ac_ct_CC=$CC
4254 for ac_prog in cl
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 if test -n "$ac_ct_CC"; then
4264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_ac_ct_CC="$ac_prog"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4283 if test -n "$ac_ct_CC"; then
4284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4285 echo "${ECHO_T}$ac_ct_CC" >&6
4286 else
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4291 test -n "$ac_ct_CC" && break
4292 done
4294 CC=$ac_ct_CC
4300 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4301 See \`config.log' for more details." >&5
4302 echo "$as_me: error: no acceptable C compiler found in \$PATH
4303 See \`config.log' for more details." >&2;}
4304 { (exit 1); exit 1; }; }
4306 # Provide some information about the compiler.
4307 echo "$as_me:$LINENO:" \
4308 "checking for C compiler version" >&5
4309 ac_compiler=`set X $ac_compile; echo $2`
4310 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4311 (eval $ac_compiler --version </dev/null >&5) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }
4315 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4316 (eval $ac_compiler -v </dev/null >&5) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }
4320 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4321 (eval $ac_compiler -V </dev/null >&5) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }
4326 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4327 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4328 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4339 main ()
4341 #ifndef __GNUC__
4342 choke me
4343 #endif
4346 return 0;
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag"
4359 || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_compiler_gnu=yes
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 ac_compiler_gnu=no
4378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4384 GCC=`test $ac_compiler_gnu = yes && echo yes`
4385 ac_test_CFLAGS=${CFLAGS+set}
4386 ac_save_CFLAGS=$CFLAGS
4387 CFLAGS="-g"
4388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4390 if test "${ac_cv_prog_cc_g+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4401 main ()
4405 return 0;
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_prog_cc_g=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_cv_prog_cc_g=no
4437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4440 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4441 if test "$ac_test_CFLAGS" = set; then
4442 CFLAGS=$ac_save_CFLAGS
4443 elif test $ac_cv_prog_cc_g = yes; then
4444 if test "$GCC" = yes; then
4445 CFLAGS="-g -O2"
4446 else
4447 CFLAGS="-g"
4449 else
4450 if test "$GCC" = yes; then
4451 CFLAGS="-O2"
4452 else
4453 CFLAGS=
4456 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4457 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4458 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 ac_cv_prog_cc_stdc=no
4462 ac_save_CC=$CC
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <stdarg.h>
4470 #include <stdio.h>
4471 #include <sys/types.h>
4472 #include <sys/stat.h>
4473 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4474 struct buf { int x; };
4475 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4476 static char *e (p, i)
4477 char **p;
4478 int i;
4480 return p[i];
4482 static char *f (char * (*g) (char **, int), char **p, ...)
4484 char *s;
4485 va_list v;
4486 va_start (v,p);
4487 s = g (p, va_arg (v,int));
4488 va_end (v);
4489 return s;
4492 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4493 function prototypes and stuff, but not '\xHH' hex character constants.
4494 These don't provoke an error unfortunately, instead are silently treated
4495 as 'x'. The following induces an error, until -std1 is added to get
4496 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4497 array size at least. It's necessary to write '\x00'==0 to get something
4498 that's true only with -std1. */
4499 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4501 int test (int i, double x);
4502 struct s1 {int (*f) (int a);};
4503 struct s2 {int (*f) (double a);};
4504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4505 int argc;
4506 char **argv;
4508 main ()
4510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4512 return 0;
4514 _ACEOF
4515 # Don't try gcc -ansi; that turns off useful extensions and
4516 # breaks some systems' header files.
4517 # AIX -qlanglvl=ansi
4518 # Ultrix and OSF/1 -std1
4519 # HP-UX 10.20 and later -Ae
4520 # HP-UX older versions -Aa -D_HPUX_SOURCE
4521 # SVR4 -Xc -D__EXTENSIONS__
4522 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4524 CC="$ac_save_CC $ac_arg"
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 ac_cv_prog_cc_stdc=$ac_arg
4548 break
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4554 rm -f conftest.err conftest.$ac_objext
4555 done
4556 rm -f conftest.$ac_ext conftest.$ac_objext
4557 CC=$ac_save_CC
4561 case "x$ac_cv_prog_cc_stdc" in
4562 x|xno)
4563 echo "$as_me:$LINENO: result: none needed" >&5
4564 echo "${ECHO_T}none needed" >&6 ;;
4566 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4568 CC="$CC $ac_cv_prog_cc_stdc" ;;
4569 esac
4571 # Some people use a C++ compiler to compile C. Since we use `exit',
4572 # in C++ we need to declare it. In case someone uses the same compiler
4573 # for both compiling C and C++ we need to have the C++ compiler decide
4574 # the declaration of exit, since it's the most demanding environment.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 #ifndef __cplusplus
4577 choke me
4578 #endif
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 for ac_declaration in \
4603 '' \
4604 'extern "C" void std::exit (int) throw (); using std::exit;' \
4605 'extern "C" void std::exit (int); using std::exit;' \
4606 'extern "C" void exit (int) throw ();' \
4607 'extern "C" void exit (int);' \
4608 'void exit (int);'
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_declaration
4617 #include <stdlib.h>
4619 main ()
4621 exit (42);
4623 return 0;
4625 _ACEOF
4626 rm -f conftest.$ac_objext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -z "$ac_c_werror_flag"
4636 || test ! -s conftest.err'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 continue
4655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_declaration
4664 main ()
4666 exit (42);
4668 return 0;
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 break
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 done
4701 rm -f conftest*
4702 if test -n "$ac_declaration"; then
4703 echo '#ifdef __cplusplus' >>confdefs.h
4704 echo $ac_declaration >>confdefs.h
4705 echo '#endif' >>confdefs.h
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4725 echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4727 if test "${ac_cv_prog_RANLIB+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 if test -n "$RANLIB"; then
4731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4744 done
4745 done
4749 RANLIB=$ac_cv_prog_RANLIB
4750 if test -n "$RANLIB"; then
4751 echo "$as_me:$LINENO: result: $RANLIB" >&5
4752 echo "${ECHO_T}$RANLIB" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4759 if test -z "$ac_cv_prog_RANLIB"; then
4760 ac_ct_RANLIB=$RANLIB
4761 # Extract the first word of "ranlib", so it can be a program name with args.
4762 set dummy ranlib; ac_word=$2
4763 echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 if test -n "$ac_ct_RANLIB"; then
4769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_ac_ct_RANLIB="ranlib"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4785 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4789 if test -n "$ac_ct_RANLIB"; then
4790 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4791 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4792 else
4793 echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4797 RANLIB=$ac_ct_RANLIB
4798 else
4799 RANLIB="$ac_cv_prog_RANLIB"
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4808 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4809 # On Suns, sometimes $CPP names a directory.
4810 if test -n "$CPP" && test -d "$CPP"; then
4811 CPP=
4813 if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 # Double quotes because CPP needs to be expanded
4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4820 ac_preproc_ok=false
4821 for ac_c_preproc_warn_flag in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #ifdef __STDC__
4836 # include <limits.h>
4837 #else
4838 # include <assert.h>
4839 #endif
4840 Syntax error
4841 _ACEOF
4842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_c_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4853 else
4854 ac_cpp_err=
4856 else
4857 ac_cpp_err=yes
4859 if test -z "$ac_cpp_err"; then
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Broken: fails on valid input.
4866 continue
4868 rm -f conftest.err conftest.$ac_ext
4870 # OK, works on sane cases. Now check whether non-existent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 #include <ac_nonexistent.h>
4879 _ACEOF
4880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_c_preproc_warn_flag
4890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4891 else
4892 ac_cpp_err=
4894 else
4895 ac_cpp_err=yes
4897 if test -z "$ac_cpp_err"; then
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 # Passes both tests.
4905 ac_preproc_ok=:
4906 break
4908 rm -f conftest.err conftest.$ac_ext
4910 done
4911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912 rm -f conftest.err conftest.$ac_ext
4913 if $ac_preproc_ok; then
4914 break
4917 done
4918 ac_cv_prog_CPP=$CPP
4921 CPP=$ac_cv_prog_CPP
4922 else
4923 ac_cv_prog_CPP=$CPP
4925 echo "$as_me:$LINENO: result: $CPP" >&5
4926 echo "${ECHO_T}$CPP" >&6
4927 ac_preproc_ok=false
4928 for ac_c_preproc_warn_flag in '' yes
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947 Syntax error
4948 _ACEOF
4949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_c_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960 else
4961 ac_cpp_err=
4963 else
4964 ac_cpp_err=yes
4966 if test -z "$ac_cpp_err"; then
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 # Broken: fails on valid input.
4973 continue
4975 rm -f conftest.err conftest.$ac_ext
4977 # OK, works on sane cases. Now check whether non-existent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #include <ac_nonexistent.h>
4986 _ACEOF
4987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_c_preproc_warn_flag
4997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4998 else
4999 ac_cpp_err=
5001 else
5002 ac_cpp_err=yes
5004 if test -z "$ac_cpp_err"; then
5005 # Broken: success on invalid input.
5006 continue
5007 else
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5015 rm -f conftest.err conftest.$ac_ext
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then
5022 else
5023 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5024 See \`config.log' for more details." >&5
5025 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5026 See \`config.log' for more details." >&2;}
5027 { (exit 1); exit 1; }; }
5030 ac_ext=c
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 echo "$as_me:$LINENO: checking for egrep" >&5
5038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5039 if test "${ac_cv_prog_egrep+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5043 then ac_cv_prog_egrep='grep -E'
5044 else ac_cv_prog_egrep='egrep'
5047 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5048 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5049 EGREP=$ac_cv_prog_egrep
5052 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5053 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5054 if test "${ac_cv_header_stdc+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 #include <stdlib.h>
5064 #include <stdarg.h>
5065 #include <string.h>
5066 #include <float.h>
5069 main ()
5073 return 0;
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag"
5086 || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_cv_header_stdc=yes
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ac_cv_header_stdc=no
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 if test $ac_cv_header_stdc = yes; then
5108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5109 cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5115 #include <string.h>
5117 _ACEOF
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119 $EGREP "memchr" >/dev/null 2>&1; then
5121 else
5122 ac_cv_header_stdc=no
5124 rm -f conftest*
5128 if test $ac_cv_header_stdc = yes; then
5129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h. */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 #include <stdlib.h>
5138 _ACEOF
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "free" >/dev/null 2>&1; then
5142 else
5143 ac_cv_header_stdc=no
5145 rm -f conftest*
5149 if test $ac_cv_header_stdc = yes; then
5150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5151 if test "$cross_compiling" = yes; then
5153 else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 #include <ctype.h>
5161 #if ((' ' & 0x0FF) == 0x020)
5162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5164 #else
5165 # define ISLOWER(c) \
5166 (('a' <= (c) && (c) <= 'i') \
5167 || ('j' <= (c) && (c) <= 'r') \
5168 || ('s' <= (c) && (c) <= 'z'))
5169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5170 #endif
5172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5174 main ()
5176 int i;
5177 for (i = 0; i < 256; i++)
5178 if (XOR (islower (i), ISLOWER (i))
5179 || toupper (i) != TOUPPER (i))
5180 exit(2);
5181 exit (0);
5183 _ACEOF
5184 rm -f conftest$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5196 else
5197 echo "$as_me: program exited with status $ac_status" >&5
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ( exit $ac_status )
5202 ac_cv_header_stdc=no
5204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5208 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5210 if test $ac_cv_header_stdc = yes; then
5212 cat >>confdefs.h <<\_ACEOF
5213 #define STDC_HEADERS 1
5214 _ACEOF
5218 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5219 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5220 if test "${ac_cv_c_const+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5231 main ()
5233 /* FIXME: Include the comments suggested by Paul. */
5234 #ifndef __cplusplus
5235 /* Ultrix mips cc rejects this. */
5236 typedef int charset[2];
5237 const charset x;
5238 /* SunOS 4.1.1 cc rejects this. */
5239 char const *const *ccp;
5240 char **p;
5241 /* NEC SVR4.0.2 mips cc rejects this. */
5242 struct point {int x, y;};
5243 static struct point const zero = {0,0};
5244 /* AIX XL C 1.02.0.0 rejects this.
5245 It does not let you subtract one const X* pointer from another in
5246 an arm of an if-expression whose if-part is not a constant
5247 expression */
5248 const char *g = "string";
5249 ccp = &g + (g ? g-g : 0);
5250 /* HPUX 7.0 cc rejects these. */
5251 ++ccp;
5252 p = (char**) ccp;
5253 ccp = (char const *const *) p;
5254 { /* SCO 3.2v4 cc rejects this. */
5255 char *t;
5256 char const *s = 0 ? (char *) 0 : (char const *) 0;
5258 *t++ = 0;
5260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5261 int x[] = {25, 17};
5262 const int *foo = &x[0];
5263 ++foo;
5265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5266 typedef const int *iptr;
5267 iptr p = 0;
5268 ++p;
5270 { /* AIX XL C 1.02.0.0 rejects this saying
5271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5272 struct s { int j; const int *ap[3]; };
5273 struct s *b; b->j = 5;
5275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5276 const int foo = 10;
5278 #endif
5281 return 0;
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag"
5294 || test ! -s conftest.err'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest.$ac_objext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_cv_c_const=yes
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_cv_c_const=no
5313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5316 echo "${ECHO_T}$ac_cv_c_const" >&6
5317 if test $ac_cv_c_const = no; then
5319 cat >>confdefs.h <<\_ACEOF
5320 #define const
5321 _ACEOF
5325 echo "$as_me:$LINENO: checking for inline" >&5
5326 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5327 if test "${ac_cv_c_inline+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 ac_cv_c_inline=no
5331 for ac_kw in inline __inline__ __inline; do
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #ifndef __cplusplus
5339 typedef int foo_t;
5340 static $ac_kw foo_t static_foo () {return 0; }
5341 $ac_kw foo_t foo () {return 0; }
5342 #endif
5344 _ACEOF
5345 rm -f conftest.$ac_objext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347 (eval $ac_compile) 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag"
5355 || test ! -s conftest.err'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_c_inline=$ac_kw; break
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374 done
5377 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5378 echo "${ECHO_T}$ac_cv_c_inline" >&6
5381 case $ac_cv_c_inline in
5382 inline | yes) ;;
5384 case $ac_cv_c_inline in
5385 no) ac_val=;;
5386 *) ac_val=$ac_cv_c_inline;;
5387 esac
5388 cat >>confdefs.h <<_ACEOF
5389 #ifndef __cplusplus
5390 #define inline $ac_val
5391 #endif
5392 _ACEOF
5394 esac
5396 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5406 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5407 inttypes.h stdint.h unistd.h
5409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5410 echo "$as_me:$LINENO: checking for $ac_header" >&5
5411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 $ac_includes_default
5423 #include <$ac_header>
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 eval "$as_ac_Header=yes"
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 eval "$as_ac_Header=no"
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5459 cat >>confdefs.h <<_ACEOF
5460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5461 _ACEOF
5465 done
5468 echo "$as_me:$LINENO: checking for off_t" >&5
5469 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5470 if test "${ac_cv_type_off_t+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5481 main ()
5483 if ((off_t *) 0)
5484 return 0;
5485 if (sizeof (off_t))
5486 return 0;
5488 return 0;
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_cv_type_off_t=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_cv_type_off_t=no
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5522 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5523 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5524 if test $ac_cv_type_off_t = yes; then
5526 else
5528 cat >>confdefs.h <<_ACEOF
5529 #define off_t long
5530 _ACEOF
5534 echo "$as_me:$LINENO: checking for size_t" >&5
5535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5536 if test "${ac_cv_type_size_t+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 $ac_includes_default
5547 main ()
5549 if ((size_t *) 0)
5550 return 0;
5551 if (sizeof (size_t))
5552 return 0;
5554 return 0;
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -z "$ac_c_werror_flag"
5567 || test ! -s conftest.err'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_type_size_t=yes
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 ac_cv_type_size_t=no
5586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5588 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5589 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5590 if test $ac_cv_type_size_t = yes; then
5592 else
5594 cat >>confdefs.h <<_ACEOF
5595 #define size_t unsigned
5596 _ACEOF
5600 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5601 # for constant arguments. Useless!
5602 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5603 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5604 if test "${ac_cv_working_alloca_h+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <alloca.h>
5615 main ()
5617 char *p = (char *) alloca (2 * sizeof (int));
5619 return 0;
5621 _ACEOF
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_working_alloca_h=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_cv_working_alloca_h=no
5651 rm -f conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5655 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5656 if test $ac_cv_working_alloca_h = yes; then
5658 cat >>confdefs.h <<\_ACEOF
5659 #define HAVE_ALLOCA_H 1
5660 _ACEOF
5664 echo "$as_me:$LINENO: checking for alloca" >&5
5665 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5666 if test "${ac_cv_func_alloca_works+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #ifdef __GNUC__
5676 # define alloca __builtin_alloca
5677 #else
5678 # ifdef _MSC_VER
5679 # include <malloc.h>
5680 # define alloca _alloca
5681 # else
5682 # if HAVE_ALLOCA_H
5683 # include <alloca.h>
5684 # else
5685 # ifdef _AIX
5686 #pragma alloca
5687 # else
5688 # ifndef alloca /* predefined by HP cc +Olibcalls */
5689 char *alloca ();
5690 # endif
5691 # endif
5692 # endif
5693 # endif
5694 #endif
5697 main ()
5699 char *p = (char *) alloca (1);
5701 return 0;
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_func_alloca_works=yes
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cv_func_alloca_works=no
5733 rm -f conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5737 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5739 if test $ac_cv_func_alloca_works = yes; then
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_ALLOCA 1
5743 _ACEOF
5745 else
5746 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5747 # that cause trouble. Some versions do not even contain alloca or
5748 # contain a buggy version. If you still want to use their alloca,
5749 # use ar to extract alloca.o from them instead of compiling alloca.c.
5751 ALLOCA=alloca.$ac_objext
5753 cat >>confdefs.h <<\_ACEOF
5754 #define C_ALLOCA 1
5755 _ACEOF
5758 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5759 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5760 if test "${ac_cv_os_cray+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #if defined(CRAY) && ! defined(CRAY2)
5770 webecray
5771 #else
5772 wenotbecray
5773 #endif
5775 _ACEOF
5776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5777 $EGREP "webecray" >/dev/null 2>&1; then
5778 ac_cv_os_cray=yes
5779 else
5780 ac_cv_os_cray=no
5782 rm -f conftest*
5785 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5786 echo "${ECHO_T}$ac_cv_os_cray" >&6
5787 if test $ac_cv_os_cray = yes; then
5788 for ac_func in _getb67 GETB67 getb67; do
5789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5790 echo "$as_me:$LINENO: checking for $ac_func" >&5
5791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5792 if eval "test \"\${$as_ac_var+set}\" = set"; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5803 #define $ac_func innocuous_$ac_func
5805 /* System header to define __stub macros and hopefully few prototypes,
5806 which can conflict with char $ac_func (); below.
5807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 <limits.h> exists even on freestanding compilers. */
5810 #ifdef __STDC__
5811 # include <limits.h>
5812 #else
5813 # include <assert.h>
5814 #endif
5816 #undef $ac_func
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 #ifdef __cplusplus
5820 extern "C"
5822 #endif
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5825 char $ac_func ();
5826 /* The GNU C library defines this for functions which it implements
5827 to always fail with ENOSYS. Some functions are actually named
5828 something starting with __ and the normal name is an alias. */
5829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5830 choke me
5831 #else
5832 char (*f) () = $ac_func;
5833 #endif
5834 #ifdef __cplusplus
5836 #endif
5839 main ()
5841 return f != $ac_func;
5843 return 0;
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 eval "$as_ac_var=yes"
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 eval "$as_ac_var=no"
5875 rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5880 if test `eval echo '${'$as_ac_var'}'` = yes; then
5882 cat >>confdefs.h <<_ACEOF
5883 #define CRAY_STACKSEG_END $ac_func
5884 _ACEOF
5886 break
5889 done
5892 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5893 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5894 if test "${ac_cv_c_stack_direction+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 if test "$cross_compiling" = yes; then
5898 ac_cv_c_stack_direction=0
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5907 find_stack_direction ()
5909 static char *addr = 0;
5910 auto char dummy;
5911 if (addr == 0)
5913 addr = &dummy;
5914 return find_stack_direction ();
5916 else
5917 return (&dummy > addr) ? 1 : -1;
5921 main ()
5923 exit (find_stack_direction () < 0);
5925 _ACEOF
5926 rm -f conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_c_stack_direction=1
5938 else
5939 echo "$as_me: program exited with status $ac_status" >&5
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 ( exit $ac_status )
5944 ac_cv_c_stack_direction=-1
5946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5950 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5952 cat >>confdefs.h <<_ACEOF
5953 #define STACK_DIRECTION $ac_cv_c_stack_direction
5954 _ACEOF
5961 for ac_header in stdlib.h unistd.h
5963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5972 else
5973 # Is the header compilable?
5974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5983 #include <$ac_header>
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_header_compiler=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_header_compiler=no
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6016 echo "${ECHO_T}$ac_header_compiler" >&6
6018 # Is the header present?
6019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <$ac_header>
6028 _ACEOF
6029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } >/dev/null; then
6037 if test -s conftest.err; then
6038 ac_cpp_err=$ac_c_preproc_warn_flag
6039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6040 else
6041 ac_cpp_err=
6043 else
6044 ac_cpp_err=yes
6046 if test -z "$ac_cpp_err"; then
6047 ac_header_preproc=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_header_preproc=no
6054 rm -f conftest.err conftest.$ac_ext
6055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6056 echo "${ECHO_T}$ac_header_preproc" >&6
6058 # So? What about this header?
6059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6060 yes:no: )
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6065 ac_header_preproc=yes
6067 no:yes:* )
6068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6081 cat <<\_ASBOX
6082 ## ------------------------------------------ ##
6083 ## Report this to the AC_PACKAGE_NAME lists. ##
6084 ## ------------------------------------------ ##
6085 _ASBOX
6087 sed "s/^/$as_me: WARNING: /" >&2
6089 esac
6090 echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 eval "$as_ac_Header=\$ac_header_preproc"
6097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6102 cat >>confdefs.h <<_ACEOF
6103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6104 _ACEOF
6108 done
6111 for ac_func in getpagesize
6113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6114 echo "$as_me:$LINENO: checking for $ac_func" >&5
6115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6116 if eval "test \"\${$as_ac_var+set}\" = set"; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6127 #define $ac_func innocuous_$ac_func
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char $ac_func (); below.
6131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132 <limits.h> exists even on freestanding compilers. */
6134 #ifdef __STDC__
6135 # include <limits.h>
6136 #else
6137 # include <assert.h>
6138 #endif
6140 #undef $ac_func
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 #ifdef __cplusplus
6144 extern "C"
6146 #endif
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char $ac_func ();
6150 /* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6154 choke me
6155 #else
6156 char (*f) () = $ac_func;
6157 #endif
6158 #ifdef __cplusplus
6160 #endif
6163 main ()
6165 return f != $ac_func;
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 eval "$as_ac_var=yes"
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 eval "$as_ac_var=no"
6199 rm -f conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6204 if test `eval echo '${'$as_ac_var'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6207 _ACEOF
6210 done
6212 echo "$as_me:$LINENO: checking for working mmap" >&5
6213 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6214 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 if test "$cross_compiling" = yes; then
6218 ac_cv_func_mmap_fixed_mapped=no
6219 else
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6227 /* malloc might have been renamed as rpl_malloc. */
6228 #undef malloc
6230 /* Thanks to Mike Haertel and Jim Avera for this test.
6231 Here is a matrix of mmap possibilities:
6232 mmap private not fixed
6233 mmap private fixed at somewhere currently unmapped
6234 mmap private fixed at somewhere already mapped
6235 mmap shared not fixed
6236 mmap shared fixed at somewhere currently unmapped
6237 mmap shared fixed at somewhere already mapped
6238 For private mappings, we should verify that changes cannot be read()
6239 back from the file, nor mmap's back from the file at a different
6240 address. (There have been systems where private was not correctly
6241 implemented like the infamous i386 svr4.0, and systems where the
6242 VM page cache was not coherent with the file system buffer cache
6243 like early versions of FreeBSD and possibly contemporary NetBSD.)
6244 For shared mappings, we should conversely verify that changes get
6245 propagated back to all the places they're supposed to be.
6247 Grep wants private fixed already mapped.
6248 The main things grep needs to know about mmap are:
6249 * does it exist and is it safe to write into the mmap'd area
6250 * how to use it (BSD variants) */
6252 #include <fcntl.h>
6253 #include <sys/mman.h>
6255 #if !STDC_HEADERS && !HAVE_STDLIB_H
6256 char *malloc ();
6257 #endif
6259 /* This mess was copied from the GNU getpagesize.h. */
6260 #if !HAVE_GETPAGESIZE
6261 /* Assume that all systems that can run configure have sys/param.h. */
6262 # if !HAVE_SYS_PARAM_H
6263 # define HAVE_SYS_PARAM_H 1
6264 # endif
6266 # ifdef _SC_PAGESIZE
6267 # define getpagesize() sysconf(_SC_PAGESIZE)
6268 # else /* no _SC_PAGESIZE */
6269 # if HAVE_SYS_PARAM_H
6270 # include <sys/param.h>
6271 # ifdef EXEC_PAGESIZE
6272 # define getpagesize() EXEC_PAGESIZE
6273 # else /* no EXEC_PAGESIZE */
6274 # ifdef NBPG
6275 # define getpagesize() NBPG * CLSIZE
6276 # ifndef CLSIZE
6277 # define CLSIZE 1
6278 # endif /* no CLSIZE */
6279 # else /* no NBPG */
6280 # ifdef NBPC
6281 # define getpagesize() NBPC
6282 # else /* no NBPC */
6283 # ifdef PAGESIZE
6284 # define getpagesize() PAGESIZE
6285 # endif /* PAGESIZE */
6286 # endif /* no NBPC */
6287 # endif /* no NBPG */
6288 # endif /* no EXEC_PAGESIZE */
6289 # else /* no HAVE_SYS_PARAM_H */
6290 # define getpagesize() 8192 /* punt totally */
6291 # endif /* no HAVE_SYS_PARAM_H */
6292 # endif /* no _SC_PAGESIZE */
6294 #endif /* no HAVE_GETPAGESIZE */
6297 main ()
6299 char *data, *data2, *data3;
6300 int i, pagesize;
6301 int fd;
6303 pagesize = getpagesize ();
6305 /* First, make a file with some known garbage in it. */
6306 data = (char *) malloc (pagesize);
6307 if (!data)
6308 exit (1);
6309 for (i = 0; i < pagesize; ++i)
6310 *(data + i) = rand ();
6311 umask (0);
6312 fd = creat ("conftest.mmap", 0600);
6313 if (fd < 0)
6314 exit (1);
6315 if (write (fd, data, pagesize) != pagesize)
6316 exit (1);
6317 close (fd);
6319 /* Next, try to mmap the file at a fixed address which already has
6320 something else allocated at it. If we can, also make sure that
6321 we see the same garbage. */
6322 fd = open ("conftest.mmap", O_RDWR);
6323 if (fd < 0)
6324 exit (1);
6325 data2 = (char *) malloc (2 * pagesize);
6326 if (!data2)
6327 exit (1);
6328 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6329 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6330 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6331 exit (1);
6332 for (i = 0; i < pagesize; ++i)
6333 if (*(data + i) != *(data2 + i))
6334 exit (1);
6336 /* Finally, make sure that changes to the mapped area do not
6337 percolate back to the file as seen by read(). (This is a bug on
6338 some variants of i386 svr4.0.) */
6339 for (i = 0; i < pagesize; ++i)
6340 *(data2 + i) = *(data2 + i) + 1;
6341 data3 = (char *) malloc (pagesize);
6342 if (!data3)
6343 exit (1);
6344 if (read (fd, data3, pagesize) != pagesize)
6345 exit (1);
6346 for (i = 0; i < pagesize; ++i)
6347 if (*(data + i) != *(data3 + i))
6348 exit (1);
6349 close (fd);
6350 exit (0);
6352 _ACEOF
6353 rm -f conftest$ac_exeext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_func_mmap_fixed_mapped=yes
6365 else
6366 echo "$as_me: program exited with status $ac_status" >&5
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ( exit $ac_status )
6371 ac_cv_func_mmap_fixed_mapped=no
6373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6377 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6378 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6380 cat >>confdefs.h <<\_ACEOF
6381 #define HAVE_MMAP 1
6382 _ACEOF
6385 rm -f conftest.mmap
6397 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6398 unistd.h values.h sys/param.h
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409 else
6410 # Is the header compilable?
6411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <$ac_header>
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477 else
6478 ac_cpp_err=
6480 else
6481 ac_cpp_err=yes
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497 yes:no: )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6504 no:yes:* )
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6518 cat <<\_ASBOX
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6522 _ASBOX
6524 sed "s/^/$as_me: WARNING: /" >&2
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 eval "$as_ac_Header=\$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6545 done
6557 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6558 __argz_count __argz_stringify __argz_next
6560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561 echo "$as_me:$LINENO: checking for $ac_func" >&5
6562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_var+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6574 #define $ac_func innocuous_$ac_func
6576 /* System header to define __stub macros and hopefully few prototypes,
6577 which can conflict with char $ac_func (); below.
6578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579 <limits.h> exists even on freestanding compilers. */
6581 #ifdef __STDC__
6582 # include <limits.h>
6583 #else
6584 # include <assert.h>
6585 #endif
6587 #undef $ac_func
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 #ifdef __cplusplus
6591 extern "C"
6593 #endif
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6596 char $ac_func ();
6597 /* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601 choke me
6602 #else
6603 char (*f) () = $ac_func;
6604 #endif
6605 #ifdef __cplusplus
6607 #endif
6610 main ()
6612 return f != $ac_func;
6614 return 0;
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest$ac_exeext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 (eval $ac_try) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 eval "$as_ac_var=yes"
6640 else
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 eval "$as_ac_var=no"
6646 rm -f conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6651 if test `eval echo '${'$as_ac_var'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6654 _ACEOF
6657 done
6660 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6662 for ac_func in stpcpy
6664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6665 echo "$as_me:$LINENO: checking for $ac_func" >&5
6666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6667 if eval "test \"\${$as_ac_var+set}\" = set"; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6678 #define $ac_func innocuous_$ac_func
6680 /* System header to define __stub macros and hopefully few prototypes,
6681 which can conflict with char $ac_func (); below.
6682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6683 <limits.h> exists even on freestanding compilers. */
6685 #ifdef __STDC__
6686 # include <limits.h>
6687 #else
6688 # include <assert.h>
6689 #endif
6691 #undef $ac_func
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 #ifdef __cplusplus
6695 extern "C"
6697 #endif
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6700 char $ac_func ();
6701 /* The GNU C library defines this for functions which it implements
6702 to always fail with ENOSYS. Some functions are actually named
6703 something starting with __ and the normal name is an alias. */
6704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6705 choke me
6706 #else
6707 char (*f) () = $ac_func;
6708 #endif
6709 #ifdef __cplusplus
6711 #endif
6714 main ()
6716 return f != $ac_func;
6718 return 0;
6720 _ACEOF
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -z "$ac_c_werror_flag"
6731 || test ! -s conftest.err'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 eval "$as_ac_var=yes"
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 eval "$as_ac_var=no"
6750 rm -f conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6755 if test `eval echo '${'$as_ac_var'}'` = yes; then
6756 cat >>confdefs.h <<_ACEOF
6757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6758 _ACEOF
6761 done
6764 if test "${ac_cv_func_stpcpy}" = "yes"; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_STPCPY 1
6768 _ACEOF
6772 if test $ac_cv_header_locale_h = yes; then
6773 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6774 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6775 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <locale.h>
6786 main ()
6788 return LC_MESSAGES
6790 return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 am_cv_val_LC_MESSAGES=yes
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 am_cv_val_LC_MESSAGES=no
6822 rm -f conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6826 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6827 if test $am_cv_val_LC_MESSAGES = yes; then
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_LC_MESSAGES 1
6831 _ACEOF
6835 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6836 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6837 # Check whether --enable-nls or --disable-nls was given.
6838 if test "${enable_nls+set}" = set; then
6839 enableval="$enable_nls"
6840 USE_NLS=$enableval
6841 else
6842 USE_NLS=yes
6844 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6845 echo "${ECHO_T}$USE_NLS" >&6
6848 USE_INCLUDED_LIBINTL=no
6850 if test "$USE_NLS" = "yes"; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define ENABLE_NLS 1
6854 _ACEOF
6856 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6857 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6859 # Check whether --with-included-gettext or --without-included-gettext was given.
6860 if test "${with_included_gettext+set}" = set; then
6861 withval="$with_included_gettext"
6862 nls_cv_force_use_gnu_gettext=$withval
6863 else
6864 nls_cv_force_use_gnu_gettext=no
6866 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6867 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6869 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6870 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6871 nls_cv_header_intl=
6872 nls_cv_header_libgt=
6873 CATOBJEXT=NONE
6875 if test "${ac_cv_header_libintl_h+set}" = set; then
6876 echo "$as_me:$LINENO: checking for libintl.h" >&5
6877 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6878 if test "${ac_cv_header_libintl_h+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6882 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6883 else
6884 # Is the header compilable?
6885 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6886 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 $ac_includes_default
6894 #include <libintl.h>
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_header_compiler=yes
6919 else
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_header_compiler=no
6925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6927 echo "${ECHO_T}$ac_header_compiler" >&6
6929 # Is the header present?
6930 echo "$as_me:$LINENO: checking libintl.h presence" >&5
6931 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <libintl.h>
6939 _ACEOF
6940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } >/dev/null; then
6948 if test -s conftest.err; then
6949 ac_cpp_err=$ac_c_preproc_warn_flag
6950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6951 else
6952 ac_cpp_err=
6954 else
6955 ac_cpp_err=yes
6957 if test -z "$ac_cpp_err"; then
6958 ac_header_preproc=yes
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_header_preproc=no
6965 rm -f conftest.err conftest.$ac_ext
6966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6967 echo "${ECHO_T}$ac_header_preproc" >&6
6969 # So? What about this header?
6970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6971 yes:no: )
6972 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6973 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6975 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6976 ac_header_preproc=yes
6978 no:yes:* )
6979 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6980 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6981 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6982 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6983 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6984 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6986 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6987 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6988 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6989 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6990 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6992 cat <<\_ASBOX
6993 ## ------------------------------------------ ##
6994 ## Report this to the AC_PACKAGE_NAME lists. ##
6995 ## ------------------------------------------ ##
6996 _ASBOX
6998 sed "s/^/$as_me: WARNING: /" >&2
7000 esac
7001 echo "$as_me:$LINENO: checking for libintl.h" >&5
7002 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7003 if test "${ac_cv_header_libintl_h+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 ac_cv_header_libintl_h=$ac_header_preproc
7008 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7009 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7012 if test $ac_cv_header_libintl_h = yes; then
7013 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7014 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7015 if test "${gt_cv_func_gettext_libc+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <libintl.h>
7026 main ()
7028 return (int) gettext ("")
7030 return 0;
7032 _ACEOF
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 gt_cv_func_gettext_libc=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 gt_cv_func_gettext_libc=no
7062 rm -f conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7065 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7066 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7068 if test "$gt_cv_func_gettext_libc" != "yes"; then
7069 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7070 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7071 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 ac_check_lib_save_LIBS=$LIBS
7075 LIBS="-lintl $LIBS"
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7083 /* Override any gcc2 internal prototype to avoid an error. */
7084 #ifdef __cplusplus
7085 extern "C"
7086 #endif
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089 char bindtextdomain ();
7091 main ()
7093 bindtextdomain ();
7095 return 0;
7097 _ACEOF
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag"
7108 || test ! -s conftest.err'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; } &&
7114 { ac_try='test -s conftest$ac_exeext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7120 ac_cv_lib_intl_bindtextdomain=yes
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_lib_intl_bindtextdomain=no
7127 rm -f conftest.err conftest.$ac_objext \
7128 conftest$ac_exeext conftest.$ac_ext
7129 LIBS=$ac_check_lib_save_LIBS
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7132 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7133 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7134 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7135 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7136 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7147 main ()
7149 return (int) gettext ("")
7151 return 0;
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag"
7164 || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 gt_cv_func_gettext_libintl=yes
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 gt_cv_func_gettext_libintl=no
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7186 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7187 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7192 if test "$gt_cv_func_gettext_libc" = "yes" \
7193 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_GETTEXT 1
7197 _ACEOF
7199 # Extract the first word of "msgfmt", so it can be a program name with args.
7200 set dummy msgfmt; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_path_MSGFMT+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 case "$MSGFMT" in
7208 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7212 for ac_dir in $PATH; do
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/$ac_word; then
7215 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7216 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7217 break
7220 done
7221 IFS="$ac_save_ifs"
7222 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7224 esac
7226 MSGFMT="$ac_cv_path_MSGFMT"
7227 if test -n "$MSGFMT"; then
7228 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7229 echo "${ECHO_T}$MSGFMT" >&6
7230 else
7231 echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7234 if test "$MSGFMT" != "no"; then
7236 for ac_func in dcgettext
7238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7239 echo "$as_me:$LINENO: checking for $ac_func" >&5
7240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7241 if eval "test \"\${$as_ac_var+set}\" = set"; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7252 #define $ac_func innocuous_$ac_func
7254 /* System header to define __stub macros and hopefully few prototypes,
7255 which can conflict with char $ac_func (); below.
7256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7257 <limits.h> exists even on freestanding compilers. */
7259 #ifdef __STDC__
7260 # include <limits.h>
7261 #else
7262 # include <assert.h>
7263 #endif
7265 #undef $ac_func
7267 /* Override any gcc2 internal prototype to avoid an error. */
7268 #ifdef __cplusplus
7269 extern "C"
7271 #endif
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274 char $ac_func ();
7275 /* The GNU C library defines this for functions which it implements
7276 to always fail with ENOSYS. Some functions are actually named
7277 something starting with __ and the normal name is an alias. */
7278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279 choke me
7280 #else
7281 char (*f) () = $ac_func;
7282 #endif
7283 #ifdef __cplusplus
7285 #endif
7288 main ()
7290 return f != $ac_func;
7292 return 0;
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 eval "$as_ac_var=yes"
7318 else
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 eval "$as_ac_var=no"
7324 rm -f conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7329 if test `eval echo '${'$as_ac_var'}'` = yes; then
7330 cat >>confdefs.h <<_ACEOF
7331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7332 _ACEOF
7335 done
7337 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7338 set dummy gmsgfmt; ac_word=$2
7339 echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 case $GMSGFMT in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7360 done
7361 done
7363 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7365 esac
7367 GMSGFMT=$ac_cv_path_GMSGFMT
7369 if test -n "$GMSGFMT"; then
7370 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7371 echo "${ECHO_T}$GMSGFMT" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7377 # Extract the first word of "xgettext", so it can be a program name with args.
7378 set dummy xgettext; ac_word=$2
7379 echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 case "$XGETTEXT" in
7386 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7390 for ac_dir in $PATH; do
7391 test -z "$ac_dir" && ac_dir=.
7392 if test -f $ac_dir/$ac_word; then
7393 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7394 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7395 break
7398 done
7399 IFS="$ac_save_ifs"
7400 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7402 esac
7404 XGETTEXT="$ac_cv_path_XGETTEXT"
7405 if test -n "$XGETTEXT"; then
7406 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7407 echo "${ECHO_T}$XGETTEXT" >&6
7408 else
7409 echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7421 main ()
7423 extern int _nl_msg_cat_cntr;
7424 return _nl_msg_cat_cntr
7426 return 0;
7428 _ACEOF
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 CATOBJEXT=.gmo
7452 DATADIRNAME=share
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 CATOBJEXT=.mo
7458 DATADIRNAME=lib
7460 rm -f conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
7462 INSTOBJEXT=.mo
7471 if test "$CATOBJEXT" = "NONE"; then
7472 nls_cv_use_gnu_gettext=yes
7476 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7477 INTLOBJS="\$(GETTOBJS)"
7478 # Extract the first word of "msgfmt", so it can be a program name with args.
7479 set dummy msgfmt; ac_word=$2
7480 echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7482 if test "${ac_cv_path_MSGFMT+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 case "$MSGFMT" in
7487 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7491 for ac_dir in $PATH; do
7492 test -z "$ac_dir" && ac_dir=.
7493 if test -f $ac_dir/$ac_word; then
7494 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7495 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7496 break
7499 done
7500 IFS="$ac_save_ifs"
7501 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7503 esac
7505 MSGFMT="$ac_cv_path_MSGFMT"
7506 if test -n "$MSGFMT"; then
7507 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7508 echo "${ECHO_T}$MSGFMT" >&6
7509 else
7510 echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7514 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7515 set dummy gmsgfmt; ac_word=$2
7516 echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 case $GMSGFMT in
7522 [\\/]* | ?:[\\/]*)
7523 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7537 done
7538 done
7540 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7542 esac
7544 GMSGFMT=$ac_cv_path_GMSGFMT
7546 if test -n "$GMSGFMT"; then
7547 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7548 echo "${ECHO_T}$GMSGFMT" >&6
7549 else
7550 echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7554 # Extract the first word of "xgettext", so it can be a program name with args.
7555 set dummy xgettext; ac_word=$2
7556 echo "$as_me:$LINENO: checking for $ac_word" >&5
7557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 case "$XGETTEXT" in
7563 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7567 for ac_dir in $PATH; do
7568 test -z "$ac_dir" && ac_dir=.
7569 if test -f $ac_dir/$ac_word; then
7570 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7571 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7572 break
7575 done
7576 IFS="$ac_save_ifs"
7577 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7579 esac
7581 XGETTEXT="$ac_cv_path_XGETTEXT"
7582 if test -n "$XGETTEXT"; then
7583 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7584 echo "${ECHO_T}$XGETTEXT" >&6
7585 else
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7591 USE_INCLUDED_LIBINTL=yes
7592 CATOBJEXT=.gmo
7593 INSTOBJEXT=.mo
7594 DATADIRNAME=share
7595 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7596 INTLLIBS=$INTLDEPS
7597 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7598 nls_cv_header_intl=libintl.h
7599 nls_cv_header_libgt=libgettext.h
7602 if test "$XGETTEXT" != ":"; then
7603 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7605 else
7606 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7607 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7608 XGETTEXT=":"
7612 # We need to process the po/ directory.
7613 POSUB=po
7614 else
7615 DATADIRNAME=share
7616 nls_cv_header_intl=libintl.h
7617 nls_cv_header_libgt=libgettext.h
7620 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7621 # because some of the sources are only built for this goal.
7622 if test "$PACKAGE" = gettext; then
7623 USE_NLS=yes
7624 USE_INCLUDED_LIBINTL=yes
7627 for lang in $ALL_LINGUAS; do
7628 GMOFILES="$GMOFILES $lang.gmo"
7629 POFILES="$POFILES $lang.po"
7630 done
7645 if test "x$CATOBJEXT" != "x"; then
7646 if test "x$ALL_LINGUAS" = "x"; then
7647 LINGUAS=
7648 else
7649 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7650 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7651 NEW_LINGUAS=
7652 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7653 case "$ALL_LINGUAS" in
7654 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7655 esac
7656 done
7657 LINGUAS=$NEW_LINGUAS
7658 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7659 echo "${ECHO_T}$LINGUAS" >&6
7662 if test -n "$LINGUAS"; then
7663 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7667 if test $ac_cv_header_locale_h = yes; then
7668 INCLUDE_LOCALE_H="#include <locale.h>"
7669 else
7670 INCLUDE_LOCALE_H="\
7671 /* The system does not provide the header <locale.h>. Take care yourself. */"
7675 if test -f $srcdir/po2tbl.sed.in; then
7676 if test "$CATOBJEXT" = ".cat"; then
7677 if test "${ac_cv_header_linux_version_h+set}" = set; then
7678 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7679 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7680 if test "${ac_cv_header_linux_version_h+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7684 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7685 else
7686 # Is the header compilable?
7687 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7688 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 $ac_includes_default
7696 #include <linux/version.h>
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_header_compiler=yes
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 ac_header_compiler=no
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7729 echo "${ECHO_T}$ac_header_compiler" >&6
7731 # Is the header present?
7732 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7733 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 #include <linux/version.h>
7741 _ACEOF
7742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } >/dev/null; then
7750 if test -s conftest.err; then
7751 ac_cpp_err=$ac_c_preproc_warn_flag
7752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7753 else
7754 ac_cpp_err=
7756 else
7757 ac_cpp_err=yes
7759 if test -z "$ac_cpp_err"; then
7760 ac_header_preproc=yes
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_header_preproc=no
7767 rm -f conftest.err conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769 echo "${ECHO_T}$ac_header_preproc" >&6
7771 # So? What about this header?
7772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7773 yes:no: )
7774 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7775 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7777 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7778 ac_header_preproc=yes
7780 no:yes:* )
7781 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7782 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7784 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7786 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7788 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7790 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7791 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7792 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7794 cat <<\_ASBOX
7795 ## ------------------------------------------ ##
7796 ## Report this to the AC_PACKAGE_NAME lists. ##
7797 ## ------------------------------------------ ##
7798 _ASBOX
7800 sed "s/^/$as_me: WARNING: /" >&2
7802 esac
7803 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7804 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7805 if test "${ac_cv_header_linux_version_h+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 ac_cv_header_linux_version_h=$ac_header_preproc
7810 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7811 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7814 if test $ac_cv_header_linux_version_h = yes; then
7815 msgformat=linux
7816 else
7817 msgformat=xopen
7822 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7824 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7825 $srcdir/po2tbl.sed.in > po2tbl.sed
7828 if test "$PACKAGE" = "gettext"; then
7829 GT_NO="#NO#"
7830 GT_YES=
7831 else
7832 GT_NO=
7833 GT_YES="#YES#"
7838 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7844 if test -f $srcdir/po/POTFILES.in; then
7845 test -d po || mkdir po
7846 if test "x$srcdir" != "x."; then
7847 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7848 posrcprefix="$srcdir/"
7849 else
7850 posrcprefix="../$srcdir/"
7852 else
7853 posrcprefix="../"
7855 rm -f po/POTFILES
7856 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7857 < $srcdir/po/POTFILES.in > po/POTFILES
7861 # Permit host specific settings.
7862 . ${srcdir}/configure.host
7865 # Find a good install program. We prefer a C program (faster),
7866 # so one script is as good as another. But avoid the broken or
7867 # incompatible versions:
7868 # SysV /etc/install, /usr/sbin/install
7869 # SunOS /usr/etc/install
7870 # IRIX /sbin/install
7871 # AIX /bin/install
7872 # AmigaOS /C/install, which installs bootblocks on floppy discs
7873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7876 # OS/2's system install, which has a completely different semantic
7877 # ./install, which can be erroneously created by make from ./install.sh.
7878 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7880 if test -z "$INSTALL"; then
7881 if test "${ac_cv_path_install+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 # Account for people who put trailing slashes in PATH elements.
7890 case $as_dir/ in
7891 ./ | .// | /cC/* | \
7892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7894 /usr/ucb/* ) ;;
7896 # OSF1 and SCO ODT 3.0 have their own names for install.
7897 # Don't use installbsd from OSF since it installs stuff as root
7898 # by default.
7899 for ac_prog in ginstall scoinst install; do
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7902 if test $ac_prog = install &&
7903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7904 # AIX install. It has an incompatible calling convention.
7906 elif test $ac_prog = install &&
7907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908 # program-specific install script used by HP pwplus--don't use.
7910 else
7911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7912 break 3
7915 done
7916 done
7918 esac
7919 done
7923 if test "${ac_cv_path_install+set}" = set; then
7924 INSTALL=$ac_cv_path_install
7925 else
7926 # As a last resort, use the slow shell script. We don't cache a
7927 # path for INSTALL within a source directory, because that will
7928 # break other packages using the cache if that directory is
7929 # removed, or if the path is relative.
7930 INSTALL=$ac_install_sh
7933 echo "$as_me:$LINENO: result: $INSTALL" >&5
7934 echo "${ECHO_T}$INSTALL" >&6
7936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7937 # It thinks the first close brace ends the variable substitution.
7938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7945 BFD_HOST_64BIT_LONG=0
7946 BFD_HOST_LONG_LONG=0
7947 BFD_HOST_64_BIT_DEFINED=0
7948 BFD_HOST_64_BIT=
7949 BFD_HOST_U_64_BIT=
7951 echo "$as_me:$LINENO: checking for long long" >&5
7952 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7953 if test "${bfd_cv_has_long_long+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7964 main ()
7966 unsigned long long ll = 18446744073709551615ULL;
7968 return 0;
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 bfd_cv_has_long_long=yes
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 bfd_cv_has_long_long=no
8000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8003 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8004 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8005 if test $bfd_cv_has_long_long = yes; then
8006 BFD_HOST_LONG_LONG=1
8007 echo "$as_me:$LINENO: checking size of long long" >&5
8008 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8009 if test "${ac_cv_sizeof_long_long+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 #include "confdefs.h"
8020 #include <sys/types.h>
8024 main ()
8026 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_sizeof_long_long=$ac_size
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8060 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8061 done
8065 if test x$ac_cv_sizeof_long_long = x ; then
8066 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8067 echo "$as_me: error: cannot determine a size for long long" >&2;}
8068 { (exit 1); exit 1; }; }
8070 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8071 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8073 cat >>confdefs.h <<_ACEOF
8074 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8075 _ACEOF
8080 echo "$as_me:$LINENO: checking size of long" >&5
8081 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8082 if test "${ac_cv_sizeof_long+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 #include "confdefs.h"
8093 #include <sys/types.h>
8097 main ()
8099 switch (0) case 0: case (sizeof (long) == $ac_size):;
8101 return 0;
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106 (eval $ac_compile) 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -z "$ac_c_werror_flag"
8114 || test ! -s conftest.err'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try='test -s conftest.$ac_objext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 ac_cv_sizeof_long=$ac_size
8127 else
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8133 if test x$ac_cv_sizeof_long != x ; then break; fi
8134 done
8138 if test x$ac_cv_sizeof_long = x ; then
8139 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8140 echo "$as_me: error: cannot determine a size for long" >&2;}
8141 { (exit 1); exit 1; }; }
8143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8144 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8146 cat >>confdefs.h <<_ACEOF
8147 #define SIZEOF_LONG $ac_cv_sizeof_long
8148 _ACEOF
8151 if test "x${ac_cv_sizeof_long}" = "x8"; then
8152 host64=true
8153 BFD_HOST_64BIT_LONG=1
8154 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8155 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8156 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8157 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8158 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8161 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8162 BFD_HOST_64_BIT_DEFINED=1
8163 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8164 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8173 # Put a plausible default for CC_FOR_BUILD in Makefile.
8174 if test -z "$CC_FOR_BUILD"; then
8175 if test "x$cross_compiling" = "xno"; then
8176 CC_FOR_BUILD='$(CC)'
8177 else
8178 CC_FOR_BUILD=gcc
8182 # Also set EXEEXT_FOR_BUILD.
8183 if test "x$cross_compiling" = "xno"; then
8184 EXEEXT_FOR_BUILD='$(EXEEXT)'
8185 else
8186 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8187 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8188 if test "${bfd_cv_build_exeext+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 rm -f conftest*
8192 echo 'int main () { return 0; }' > conftest.c
8193 bfd_cv_build_exeext=
8194 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8195 for file in conftest.*; do
8196 case $file in
8197 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8198 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8199 esac
8200 done
8201 rm -f conftest*
8202 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8204 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8205 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8206 EXEEXT_FOR_BUILD=""
8207 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8217 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8221 echo "$as_me:$LINENO: checking for $ac_header" >&5
8222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228 else
8229 # Is the header compilable?
8230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8239 #include <$ac_header>
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243 (eval $ac_compile) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_header_compiler=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 ac_header_compiler=no
8270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8272 echo "${ECHO_T}$ac_header_compiler" >&6
8274 # Is the header present?
8275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 #include <$ac_header>
8284 _ACEOF
8285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } >/dev/null; then
8293 if test -s conftest.err; then
8294 ac_cpp_err=$ac_c_preproc_warn_flag
8295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8296 else
8297 ac_cpp_err=
8299 else
8300 ac_cpp_err=yes
8302 if test -z "$ac_cpp_err"; then
8303 ac_header_preproc=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_header_preproc=no
8310 rm -f conftest.err conftest.$ac_ext
8311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8312 echo "${ECHO_T}$ac_header_preproc" >&6
8314 # So? What about this header?
8315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8316 yes:no: )
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8321 ac_header_preproc=yes
8323 no:yes:* )
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8337 cat <<\_ASBOX
8338 ## ------------------------------------------ ##
8339 ## Report this to the AC_PACKAGE_NAME lists. ##
8340 ## ------------------------------------------ ##
8341 _ASBOX
8343 sed "s/^/$as_me: WARNING: /" >&2
8345 esac
8346 echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 eval "$as_ac_Header=\$ac_header_preproc"
8353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8360 _ACEOF
8364 done
8369 for ac_header in fcntl.h sys/file.h sys/time.h
8371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8380 else
8381 # Is the header compilable?
8382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 #include <$ac_header>
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_header_compiler=yes
8416 else
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_header_compiler=no
8422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8424 echo "${ECHO_T}$ac_header_compiler" >&6
8426 # Is the header present?
8427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 #include <$ac_header>
8436 _ACEOF
8437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } >/dev/null; then
8445 if test -s conftest.err; then
8446 ac_cpp_err=$ac_c_preproc_warn_flag
8447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8448 else
8449 ac_cpp_err=
8451 else
8452 ac_cpp_err=yes
8454 if test -z "$ac_cpp_err"; then
8455 ac_header_preproc=yes
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 ac_header_preproc=no
8462 rm -f conftest.err conftest.$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464 echo "${ECHO_T}$ac_header_preproc" >&6
8466 # So? What about this header?
8467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468 yes:no: )
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8473 ac_header_preproc=yes
8475 no:yes:* )
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8489 cat <<\_ASBOX
8490 ## ------------------------------------------ ##
8491 ## Report this to the AC_PACKAGE_NAME lists. ##
8492 ## ------------------------------------------ ##
8493 _ASBOX
8495 sed "s/^/$as_me: WARNING: /" >&2
8497 esac
8498 echo "$as_me:$LINENO: checking for $ac_header" >&5
8499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 eval "$as_ac_Header=\$ac_header_preproc"
8505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8510 cat >>confdefs.h <<_ACEOF
8511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8512 _ACEOF
8516 done
8518 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8519 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8520 if test "${ac_cv_header_time+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 #include <sys/types.h>
8530 #include <sys/time.h>
8531 #include <time.h>
8534 main ()
8536 if ((struct tm *) 0)
8537 return 0;
8539 return 0;
8541 _ACEOF
8542 rm -f conftest.$ac_objext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8544 (eval $ac_compile) 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag"
8552 || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest.$ac_objext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_header_time=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_cv_header_time=no
8571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8574 echo "${ECHO_T}$ac_cv_header_time" >&6
8575 if test $ac_cv_header_time = yes; then
8577 cat >>confdefs.h <<\_ACEOF
8578 #define TIME_WITH_SYS_TIME 1
8579 _ACEOF
8588 ac_header_dirent=no
8589 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8590 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8591 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8592 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 #include <sys/types.h>
8603 #include <$ac_hdr>
8606 main ()
8608 if ((DIR *) 0)
8609 return 0;
8611 return 0;
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 eval "$as_ac_Header=yes"
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 eval "$as_ac_Header=no"
8643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8648 cat >>confdefs.h <<_ACEOF
8649 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8650 _ACEOF
8652 ac_header_dirent=$ac_hdr; break
8655 done
8656 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8657 if test $ac_header_dirent = dirent.h; then
8658 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8659 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8660 if test "${ac_cv_search_opendir+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 ac_func_search_save_LIBS=$LIBS
8664 ac_cv_search_opendir=no
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h. */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8672 /* Override any gcc2 internal prototype to avoid an error. */
8673 #ifdef __cplusplus
8674 extern "C"
8675 #endif
8676 /* We use char because int might match the return type of a gcc2
8677 builtin and then its argument prototype would still apply. */
8678 char opendir ();
8680 main ()
8682 opendir ();
8684 return 0;
8686 _ACEOF
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -z "$ac_c_werror_flag"
8697 || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest$ac_exeext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_cv_search_opendir="none required"
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8715 rm -f conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 if test "$ac_cv_search_opendir" = no; then
8718 for ac_lib in dir; do
8719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8727 /* Override any gcc2 internal prototype to avoid an error. */
8728 #ifdef __cplusplus
8729 extern "C"
8730 #endif
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733 char opendir ();
8735 main ()
8737 opendir ();
8739 return 0;
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_search_opendir="-l$ac_lib"
8765 break
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8771 rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 done
8775 LIBS=$ac_func_search_save_LIBS
8777 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8778 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8779 if test "$ac_cv_search_opendir" != no; then
8780 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8784 else
8785 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8786 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8787 if test "${ac_cv_search_opendir+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 ac_func_search_save_LIBS=$LIBS
8791 ac_cv_search_opendir=no
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char opendir ();
8807 main ()
8809 opendir ();
8811 return 0;
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_search_opendir="none required"
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8842 rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 if test "$ac_cv_search_opendir" = no; then
8845 for ac_lib in x; do
8846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860 char opendir ();
8862 main ()
8864 opendir ();
8866 return 0;
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_search_opendir="-l$ac_lib"
8892 break
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8898 rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 done
8902 LIBS=$ac_func_search_save_LIBS
8904 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8905 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8906 if test "$ac_cv_search_opendir" != no; then
8907 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8920 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
8922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8923 echo "$as_me:$LINENO: checking for $ac_func" >&5
8924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8925 if eval "test \"\${$as_ac_var+set}\" = set"; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8936 #define $ac_func innocuous_$ac_func
8938 /* System header to define __stub macros and hopefully few prototypes,
8939 which can conflict with char $ac_func (); below.
8940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8941 <limits.h> exists even on freestanding compilers. */
8943 #ifdef __STDC__
8944 # include <limits.h>
8945 #else
8946 # include <assert.h>
8947 #endif
8949 #undef $ac_func
8951 /* Override any gcc2 internal prototype to avoid an error. */
8952 #ifdef __cplusplus
8953 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char $ac_func ();
8959 /* The GNU C library defines this for functions which it implements
8960 to always fail with ENOSYS. Some functions are actually named
8961 something starting with __ and the normal name is an alias. */
8962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8963 choke me
8964 #else
8965 char (*f) () = $ac_func;
8966 #endif
8967 #ifdef __cplusplus
8969 #endif
8972 main ()
8974 return f != $ac_func;
8976 return 0;
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_c_werror_flag"
8989 || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 eval "$as_ac_var=yes"
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 eval "$as_ac_var=no"
9008 rm -f conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9013 if test `eval echo '${'$as_ac_var'}'` = yes; then
9014 cat >>confdefs.h <<_ACEOF
9015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9016 _ACEOF
9019 done
9022 for ac_func in strtoull
9024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9025 echo "$as_me:$LINENO: checking for $ac_func" >&5
9026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9027 if eval "test \"\${$as_ac_var+set}\" = set"; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9038 #define $ac_func innocuous_$ac_func
9040 /* System header to define __stub macros and hopefully few prototypes,
9041 which can conflict with char $ac_func (); below.
9042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9043 <limits.h> exists even on freestanding compilers. */
9045 #ifdef __STDC__
9046 # include <limits.h>
9047 #else
9048 # include <assert.h>
9049 #endif
9051 #undef $ac_func
9053 /* Override any gcc2 internal prototype to avoid an error. */
9054 #ifdef __cplusplus
9055 extern "C"
9057 #endif
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9060 char $ac_func ();
9061 /* The GNU C library defines this for functions which it implements
9062 to always fail with ENOSYS. Some functions are actually named
9063 something starting with __ and the normal name is an alias. */
9064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9065 choke me
9066 #else
9067 char (*f) () = $ac_func;
9068 #endif
9069 #ifdef __cplusplus
9071 #endif
9074 main ()
9076 return f != $ac_func;
9078 return 0;
9080 _ACEOF
9081 rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083 (eval $ac_link) 2>conftest.er1
9084 ac_status=$?
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try='test -z "$ac_c_werror_flag"
9091 || test ! -s conftest.err'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 (eval $ac_try) 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; } &&
9097 { ac_try='test -s conftest$ac_exeext'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 eval "$as_ac_var=yes"
9104 else
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 eval "$as_ac_var=no"
9110 rm -f conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9115 if test `eval echo '${'$as_ac_var'}'` = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9118 _ACEOF
9121 done
9125 case "${host}" in
9126 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9128 cat >>confdefs.h <<\_ACEOF
9129 #define USE_BINARY_FOPEN 1
9130 _ACEOF
9132 esac
9134 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9135 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9136 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9146 #include <stdio.h>
9147 #ifdef HAVE_STRING_H
9148 #include <string.h>
9149 #else
9150 #ifdef HAVE_STRINGS_H
9151 #include <strings.h>
9152 #endif
9153 #endif
9154 #ifdef HAVE_STDLIB_H
9155 #include <stdlib.h>
9156 #endif
9157 #ifdef HAVE_UNISTD_H
9158 #include <unistd.h>
9159 #endif
9161 main ()
9163 char *(*pfn) = (char *(*)) strstr
9165 return 0;
9167 _ACEOF
9168 rm -f conftest.$ac_objext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9170 (eval $ac_compile) 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -z "$ac_c_werror_flag"
9178 || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try='test -s conftest.$ac_objext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 bfd_cv_decl_needed_strstr=no
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 bfd_cv_decl_needed_strstr=yes
9197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9201 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9202 if test $bfd_cv_decl_needed_strstr = yes; then
9204 cat >>confdefs.h <<\_ACEOF
9205 #define NEED_DECLARATION_STRSTR 1
9206 _ACEOF
9210 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9211 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9212 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 #include <stdio.h>
9223 #ifdef HAVE_STRING_H
9224 #include <string.h>
9225 #else
9226 #ifdef HAVE_STRINGS_H
9227 #include <strings.h>
9228 #endif
9229 #endif
9230 #ifdef HAVE_STDLIB_H
9231 #include <stdlib.h>
9232 #endif
9233 #ifdef HAVE_UNISTD_H
9234 #include <unistd.h>
9235 #endif
9237 main ()
9239 char *(*pfn) = (char *(*)) malloc
9241 return 0;
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 bfd_cv_decl_needed_malloc=no
9267 else
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 bfd_cv_decl_needed_malloc=yes
9273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9277 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9278 if test $bfd_cv_decl_needed_malloc = yes; then
9280 cat >>confdefs.h <<\_ACEOF
9281 #define NEED_DECLARATION_MALLOC 1
9282 _ACEOF
9286 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9287 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9288 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 #include <stdio.h>
9299 #ifdef HAVE_STRING_H
9300 #include <string.h>
9301 #else
9302 #ifdef HAVE_STRINGS_H
9303 #include <strings.h>
9304 #endif
9305 #endif
9306 #ifdef HAVE_STDLIB_H
9307 #include <stdlib.h>
9308 #endif
9309 #ifdef HAVE_UNISTD_H
9310 #include <unistd.h>
9311 #endif
9313 main ()
9315 char *(*pfn) = (char *(*)) realloc
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 bfd_cv_decl_needed_realloc=no
9343 else
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 bfd_cv_decl_needed_realloc=yes
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9353 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9354 if test $bfd_cv_decl_needed_realloc = yes; then
9356 cat >>confdefs.h <<\_ACEOF
9357 #define NEED_DECLARATION_REALLOC 1
9358 _ACEOF
9362 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9363 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9364 if test "${bfd_cv_decl_needed_free+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9374 #include <stdio.h>
9375 #ifdef HAVE_STRING_H
9376 #include <string.h>
9377 #else
9378 #ifdef HAVE_STRINGS_H
9379 #include <strings.h>
9380 #endif
9381 #endif
9382 #ifdef HAVE_STDLIB_H
9383 #include <stdlib.h>
9384 #endif
9385 #ifdef HAVE_UNISTD_H
9386 #include <unistd.h>
9387 #endif
9389 main ()
9391 char *(*pfn) = (char *(*)) free
9393 return 0;
9395 _ACEOF
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 bfd_cv_decl_needed_free=no
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 bfd_cv_decl_needed_free=yes
9425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9429 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9430 if test $bfd_cv_decl_needed_free = yes; then
9432 cat >>confdefs.h <<\_ACEOF
9433 #define NEED_DECLARATION_FREE 1
9434 _ACEOF
9438 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9439 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9440 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9450 #include <stdio.h>
9451 #ifdef HAVE_STRING_H
9452 #include <string.h>
9453 #else
9454 #ifdef HAVE_STRINGS_H
9455 #include <strings.h>
9456 #endif
9457 #endif
9458 #ifdef HAVE_STDLIB_H
9459 #include <stdlib.h>
9460 #endif
9461 #ifdef HAVE_UNISTD_H
9462 #include <unistd.h>
9463 #endif
9465 main ()
9467 char *(*pfn) = (char *(*)) getenv
9469 return 0;
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 bfd_cv_decl_needed_getenv=no
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 bfd_cv_decl_needed_getenv=yes
9501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9505 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9506 if test $bfd_cv_decl_needed_getenv = yes; then
9508 cat >>confdefs.h <<\_ACEOF
9509 #define NEED_DECLARATION_GETENV 1
9510 _ACEOF
9515 # If we are configured native, pick a core file support file.
9516 COREFILE=
9517 COREFLAG=
9518 TRAD_HEADER=
9519 if test "${target}" = "${host}"; then
9520 case "${host}" in
9521 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9522 COREFILE=''
9524 alpha*-*-linux-gnu*)
9525 COREFILE=trad-core.lo
9526 TRAD_HEADER='"hosts/alphalinux.h"'
9528 alpha*-*-netbsd* | alpha*-*-openbsd*)
9529 COREFILE=netbsd-core.lo
9531 alpha*-*-*) COREFILE=osf-core.lo ;;
9532 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9533 COREFILE='' ;;
9534 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
9535 arm-*-riscix) COREFILE=trad-core.lo ;;
9536 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9537 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9538 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9539 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9540 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9541 hppa*-*-netbsd* | hppa*-*-openbsd*)
9542 COREFILE=netbsd-core.lo
9545 i370-*-*)
9546 COREFILE=trad-core.lo
9547 TRAD_HEADER='"hosts/i370linux.h"'
9550 i[3-7]86-sequent-bsd*)
9551 COREFILE=trad-core.lo
9552 TRAD_HEADER='"hosts/symmetry.h"'
9554 i[3-7]86-sequent-sysv4*) ;;
9555 i[3-7]86-sequent-sysv*)
9556 COREFILE=trad-core.lo
9557 TRAD_HEADER='"hosts/symmetry.h"'
9559 i[3-7]86-*-bsdi)
9560 COREFILE=
9562 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*)
9563 COREFILE=trad-core.lo
9564 TRAD_HEADER='"hosts/i386bsd.h"'
9566 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9567 COREFILE=''
9568 TRAD_HEADER='"hosts/i386bsd.h"'
9570 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9571 COREFILE=netbsd-core.lo
9573 i[3-7]86-esix-sysv3*)
9574 COREFILE=trad-core.lo
9575 TRAD_HEADER='"hosts/esix.h"'
9577 i[3-7]86-*-sco3.2v5*)
9578 COREFILE=sco5-core.lo
9580 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9581 COREFILE=trad-core.lo
9582 TRAD_HEADER='"hosts/i386sco.h"'
9584 i[3-7]86-*-mach3*)
9585 COREFILE=trad-core.lo
9586 TRAD_HEADER='"hosts/i386mach3.h"'
9588 i[3-7]86-*-linux-gnu*)
9589 COREFILE=trad-core.lo
9590 TRAD_HEADER='"hosts/i386linux.h"'
9592 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9593 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9594 i860-*-mach3* | i860-*-osf1*)
9595 COREFILE=trad-core.lo
9596 TRAD_HEADER='"hosts/i860mach3.h"'
9598 mips-*-netbsd* | mips*-*-openbsd*)
9599 COREFILE=netbsd-core.lo
9601 mips-dec-*)
9602 COREFILE=trad-core.lo
9603 TRAD_HEADER='"hosts/decstation.h"'
9605 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9606 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9607 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9608 mips-*-sysv4*) ;;
9609 mips-*-sysv* | mips-*-riscos*)
9610 COREFILE=trad-core.lo
9611 TRAD_HEADER='"hosts/riscos.h"'
9613 mips-sony-bsd*)
9614 COREFILE=trad-core.lo
9615 TRAD_HEADER='"hosts/news-mips.h"'
9617 m68*-bull*-sysv*)
9618 COREFILE=trad-core.lo
9619 TRAD_HEADER='"hosts/dpx2.h"'
9621 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9622 m68*-hp-bsd*)
9623 COREFILE=trad-core.lo
9624 TRAD_HEADER='"hosts/hp300bsd.h"'
9626 m68*-*-linux-gnu*)
9627 COREFILE=trad-core.lo
9628 TRAD_HEADER='"hosts/m68klinux.h"'
9630 m68*-motorola-sysv*)
9631 COREFILE=trad-core.lo
9632 TRAD_HEADER='"hosts/delta68.h"'
9634 m68*-sony-*)
9635 COREFILE=trad-core.lo
9636 TRAD_HEADER='"hosts/news.h"'
9638 m68*-*-netbsd* | m68*-*-openbsd*)
9639 COREFILE=netbsd-core.lo
9641 m68*-apple-aux*)
9642 COREFILE=trad-core.lo
9643 TRAD_HEADER='"hosts/m68kaux.h"'
9645 m88*-*-sysv4*)
9647 m88*-motorola-sysv*)
9648 COREFILE=ptrace-core.lo
9650 m88*-*-mach3*)
9651 COREFILE=trad-core.lo
9652 TRAD_HEADER='"hosts/m88kmach3.h"'
9654 m88*-*-openbsd*)
9655 COREFILE=netbsd-core.lo
9657 ns32k-pc532-mach)
9658 COREFILE=trad-core.lo
9659 TRAD_HEADER='"hosts/pc532mach.h"'
9661 ns32k-*-netbsd* | ns32k-*-openbsd*)
9662 COREFILE=netbsd-core.lo
9664 rs6000-*-lynx*)
9665 COREFILE=lynx-core.lo
9667 rs6000-*-aix5.* | powerpc-*-aix5.*)
9668 COREFILE=rs6000-core.lo
9669 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9671 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9672 COREFILE=rs6000-core.lo
9673 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9674 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9675 # have c_impl as a member of struct core_dumpx
9676 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9677 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 #include <core.h>
9686 main ()
9688 struct core_dumpx c; c.c_impl = 0;
9690 return 0;
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_ST_C_IMPL 1
9718 _ACEOF
9720 echo "$as_me:$LINENO: result: yes" >&5
9721 echo "${ECHO_T}yes" >&6
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9731 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9732 rs6000-*-*) COREFILE=rs6000-core.lo ;;
9733 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9734 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9735 powerpc-*-beos*) ;;
9736 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9737 COREFILE='' ;;
9738 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
9739 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
9740 s390*-*-*) COREFILE=trad-core.lo ;;
9741 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
9742 sparc-*-netbsd* | sparc*-*-openbsd*)
9743 COREFILE=netbsd-core.lo
9745 tahoe-*-*)
9746 COREFILE=trad-core.lo
9747 TRAD_HEADER='"hosts/tahoe.h"'
9749 vax-*-netbsd* | vax-*-openbsd*)
9750 COREFILE=netbsd-core.lo
9752 vax-*-ultrix2*)
9753 COREFILE=trad-core.lo
9754 TRAD_HEADER='"hosts/vaxult2.h"'
9756 vax-*-ultrix*)
9757 COREFILE=trad-core.lo
9758 TRAD_HEADER='"hosts/vaxult2.h"'
9760 vax-*-linux-gnu*)
9761 COREFILE=trad-core.lo
9762 TRAD_HEADER='"hosts/vaxlinux.h"'
9764 vax-*-*)
9765 COREFILE=trad-core.lo
9766 TRAD_HEADER='"hosts/vaxbsd.h"'
9768 x86_64-*-netbsd* | x86_64-*-openbsd*)
9769 COREFILE=netbsd-core.lo
9771 esac
9773 case "$COREFILE" in
9774 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9775 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9776 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9777 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9778 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9779 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9780 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9781 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9782 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9783 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9784 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9785 esac
9787 # ELF corefile support has several flavors, but all of
9788 # them use something called <sys/procfs.h>
9790 for ac_header in sys/procfs.h
9792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794 echo "$as_me:$LINENO: checking for $ac_header" >&5
9795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9801 else
9802 # Is the header compilable?
9803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h. */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 $ac_includes_default
9812 #include <$ac_header>
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_header_compiler=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_header_compiler=no
9843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9845 echo "${ECHO_T}$ac_header_compiler" >&6
9847 # Is the header present?
9848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 #include <$ac_header>
9857 _ACEOF
9858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } >/dev/null; then
9866 if test -s conftest.err; then
9867 ac_cpp_err=$ac_c_preproc_warn_flag
9868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9869 else
9870 ac_cpp_err=
9872 else
9873 ac_cpp_err=yes
9875 if test -z "$ac_cpp_err"; then
9876 ac_header_preproc=yes
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_header_preproc=no
9883 rm -f conftest.err conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9885 echo "${ECHO_T}$ac_header_preproc" >&6
9887 # So? What about this header?
9888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9889 yes:no: )
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9894 ac_header_preproc=yes
9896 no:yes:* )
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9910 cat <<\_ASBOX
9911 ## ------------------------------------------ ##
9912 ## Report this to the AC_PACKAGE_NAME lists. ##
9913 ## ------------------------------------------ ##
9914 _ASBOX
9916 sed "s/^/$as_me: WARNING: /" >&2
9918 esac
9919 echo "$as_me:$LINENO: checking for $ac_header" >&5
9920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 eval "$as_ac_Header=\$ac_header_preproc"
9926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933 _ACEOF
9937 done
9939 if test "$ac_cv_header_sys_procfs_h" = yes; then
9940 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9941 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9942 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9952 #define _SYSCALL32
9953 #include <sys/procfs.h>
9955 main ()
9957 prstatus_t avar
9959 return 0;
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest.$ac_objext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 bfd_cv_have_sys_procfs_type_prstatus_t=no
9992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9995 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_PRSTATUS_T 1
9999 _ACEOF
10002 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10003 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10005 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10006 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10007 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10017 #define _SYSCALL32
10018 #include <sys/procfs.h>
10020 main ()
10022 prstatus32_t avar
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10029 (eval $ac_compile) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10060 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_PRSTATUS32_T 1
10064 _ACEOF
10067 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10068 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10070 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10071 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10072 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10082 #define _SYSCALL32
10083 #include <sys/procfs.h>
10085 main ()
10087 prstatus_t avar; void* aref = (void*) &avar.pr_who
10089 return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_c_werror_flag"
10102 || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest.$ac_objext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10125 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10127 cat >>confdefs.h <<\_ACEOF
10128 #define HAVE_PRSTATUS_T_PR_WHO 1
10129 _ACEOF
10132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10133 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10135 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10136 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10137 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h. */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10147 #define _SYSCALL32
10148 #include <sys/procfs.h>
10150 main ()
10152 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10154 return 0;
10156 _ACEOF
10157 rm -f conftest.$ac_objext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest.$ac_objext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10180 else
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10190 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10192 cat >>confdefs.h <<\_ACEOF
10193 #define HAVE_PRSTATUS32_T_PR_WHO 1
10194 _ACEOF
10197 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10198 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10200 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10201 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10202 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 #define _SYSCALL32
10213 #include <sys/procfs.h>
10215 main ()
10217 pstatus_t avar
10219 return 0;
10221 _ACEOF
10222 rm -f conftest.$ac_objext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224 (eval $ac_compile) 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10245 else
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 bfd_cv_have_sys_procfs_type_pstatus_t=no
10252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10257 cat >>confdefs.h <<\_ACEOF
10258 #define HAVE_PSTATUS_T 1
10259 _ACEOF
10262 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10263 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10265 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10266 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10267 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10277 #define _SYSCALL32
10278 #include <sys/procfs.h>
10280 main ()
10282 pxstatus_t avar
10284 return 0;
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest.$ac_objext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10322 cat >>confdefs.h <<\_ACEOF
10323 #define HAVE_PXSTATUS_T 1
10324 _ACEOF
10327 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10328 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10330 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10331 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10332 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10342 #define _SYSCALL32
10343 #include <sys/procfs.h>
10345 main ()
10347 pstatus32_t avar
10349 return 0;
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_PSTATUS32_T 1
10389 _ACEOF
10392 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10393 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10395 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10396 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10397 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10407 #define _SYSCALL32
10408 #include <sys/procfs.h>
10410 main ()
10412 prpsinfo_t avar
10414 return 0;
10416 _ACEOF
10417 rm -f conftest.$ac_objext
10418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10419 (eval $ac_compile) 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10450 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_PRPSINFO_T 1
10454 _ACEOF
10457 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10458 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10460 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10461 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10462 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10472 #define _SYSCALL32
10473 #include <sys/procfs.h>
10475 main ()
10477 prpsinfo32_t avar
10479 return 0;
10481 _ACEOF
10482 rm -f conftest.$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484 (eval $ac_compile) 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -z "$ac_c_werror_flag"
10492 || test ! -s conftest.err'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest.$ac_objext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10505 else
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10515 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10517 cat >>confdefs.h <<\_ACEOF
10518 #define HAVE_PRPSINFO32_T 1
10519 _ACEOF
10522 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10523 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10525 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10526 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10527 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10537 #define _SYSCALL32
10538 #include <sys/procfs.h>
10540 main ()
10542 psinfo_t avar
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag"
10557 || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest.$ac_objext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10570 else
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 bfd_cv_have_sys_procfs_type_psinfo_t=no
10577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10580 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10582 cat >>confdefs.h <<\_ACEOF
10583 #define HAVE_PSINFO_T 1
10584 _ACEOF
10587 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10588 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10590 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10591 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10592 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10602 #define _SYSCALL32
10603 #include <sys/procfs.h>
10605 main ()
10607 psinfo32_t avar
10609 return 0;
10611 _ACEOF
10612 rm -f conftest.$ac_objext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614 (eval $ac_compile) 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try='test -z "$ac_c_werror_flag"
10622 || test ! -s conftest.err'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest.$ac_objext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10635 else
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10647 cat >>confdefs.h <<\_ACEOF
10648 #define HAVE_PSINFO32_T 1
10649 _ACEOF
10652 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10653 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10655 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10656 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10657 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10667 #define _SYSCALL32
10668 #include <sys/procfs.h>
10670 main ()
10672 lwpstatus_t avar
10674 return 0;
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679 (eval $ac_compile) 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } &&
10686 { ac_try='test -z "$ac_c_werror_flag"
10687 || test ! -s conftest.err'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10700 else
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10710 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10712 cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_LWPSTATUS_T 1
10714 _ACEOF
10717 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10718 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10720 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10721 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10722 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 #define _SYSCALL32
10733 #include <sys/procfs.h>
10735 main ()
10737 lwpxstatus_t avar
10739 return 0;
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -z "$ac_c_werror_flag"
10752 || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10765 else
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10775 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10777 cat >>confdefs.h <<\_ACEOF
10778 #define HAVE_LWPXSTATUS_T 1
10779 _ACEOF
10782 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10783 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10785 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10786 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10787 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10797 #define _SYSCALL32
10798 #include <sys/procfs.h>
10800 main ()
10802 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10804 return 0;
10806 _ACEOF
10807 rm -f conftest.$ac_objext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809 (eval $ac_compile) 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_c_werror_flag"
10817 || test ! -s conftest.err'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10842 cat >>confdefs.h <<\_ACEOF
10843 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10844 _ACEOF
10847 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10848 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10850 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10851 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10852 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10862 #define _SYSCALL32
10863 #include <sys/procfs.h>
10865 main ()
10867 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10869 return 0;
10871 _ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874 (eval $ac_compile) 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_c_werror_flag"
10882 || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10905 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_LWPSTATUS_T_PR_REG 1
10909 _ACEOF
10912 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10913 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10915 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10916 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10917 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10927 #define _SYSCALL32
10928 #include <sys/procfs.h>
10930 main ()
10932 win32_pstatus_t avar
10934 return 0;
10936 _ACEOF
10937 rm -f conftest.$ac_objext
10938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag"
10947 || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10972 cat >>confdefs.h <<\_ACEOF
10973 #define HAVE_WIN32_PSTATUS_T 1
10974 _ACEOF
10977 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10978 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10984 if test -n "$TRAD_HEADER"; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define TRAD_HEADER $TRAD_HEADER
10988 _ACEOF
10992 # Horrible hacks to build DLLs on Windows.
10993 WIN32LDFLAGS=
10994 WIN32LIBADD=
10995 case "${host}" in
10996 *-*-cygwin*)
10997 if test "$enable_shared" = "yes"; then
10998 WIN32LDFLAGS="-no-undefined"
10999 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11002 *-*-linux*)
11003 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11004 # libiberty.a.
11005 case "${host}" in
11006 mips*-*-linux*)
11007 # Linux/MIPS uses PIC by default.
11008 if test "$enable_shared" = "yes"; then
11009 WIN32LIBADD="-L../libiberty -liberty"
11013 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11014 if test -n "$x"; then
11015 WIN32LIBADD="-L../libiberty/pic -liberty"
11018 esac
11020 esac
11024 # target stuff:
11026 # Canonicalize the secondary target names.
11027 if test -n "$enable_targets" ; then
11028 for targ in `echo $enable_targets | sed 's/,/ /g'`
11030 result=`$ac_config_sub $targ 2>/dev/null`
11031 if test -n "$result" ; then
11032 canon_targets="$canon_targets $result"
11033 else
11034 # Allow targets that config.sub doesn't recognize, like "all".
11035 canon_targets="$canon_targets $targ"
11037 done
11040 all_targets=false
11041 defvec=
11042 selvecs=
11043 assocvecs=
11044 selarchs=
11045 TDEFINES=
11046 for targ in $target $canon_targets
11048 if test "x$targ" = "xall"; then
11049 all_targets=true
11050 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11051 else
11052 . $srcdir/config.bfd
11053 if test "x$targ" = "x$target"; then
11054 defvec=$targ_defvec
11056 selvecs="$selvecs $targ_defvec $targ_selvecs"
11057 selarchs="$selarchs $targ_archs"
11058 TDEFINES="$TDEFINES $targ_cflags"
11060 done
11063 # This processing still needs to be done if we're to decide properly whether
11064 # 64-bit support needs to be compiled in. Currently, it will be included if
11065 # the default or any other explicitly requested target requires it; it
11066 # will not be included on a 32-bit host if no 64-bit target is requested, and
11067 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11068 # used.
11070 # uniq the default and selected vectors in all the configured targets.
11071 f=""
11072 for i in $selvecs ; do
11073 case " $f " in
11074 *" $i "*) ;;
11075 *) f="$f $i" ;;
11076 esac
11077 done
11078 selvecs="$f"
11081 # uniq the associated vectors in all the configured targets.
11082 f=""
11083 for i in $assocvecs ; do
11084 case " $f " in
11085 *" $i "*) ;;
11086 *) f="$f $i" ;;
11087 esac
11088 done
11089 assocvecs="$f"
11092 # uniq the architectures in all the configured targets.
11093 f=""
11094 for i in $selarchs ; do
11095 case " $f " in
11096 *" $i "*) ;;
11097 *) f="$f $i" ;;
11098 esac
11099 done
11100 selarchs="$f"
11102 # Target backend .o files.
11105 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11107 for vec in $selvecs
11109 target_size=32
11110 case "$vec" in
11111 # This list is alphabetized to make it easy to compare
11112 # with the two vector lists in targets.c. For the same reason,
11113 # use one entry per line, even though this leads to long lines.
11114 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11115 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
11116 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11117 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11118 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11119 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11120 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
11121 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11122 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11123 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11124 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11125 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11126 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11127 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11128 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11129 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11130 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11131 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11132 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11133 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
11134 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11135 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11136 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11137 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11138 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11139 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11140 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
11141 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11142 bfd_elf32_bigarm_symbian_vec)
11143 tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11144 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11145 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11146 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11147 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11148 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11149 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11150 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11151 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11152 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11153 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11154 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11155 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11156 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11157 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11158 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11159 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11160 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11161 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11162 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11163 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11164 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11165 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11166 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11167 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11168 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11169 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11170 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
11171 bfd_elf32_littlearm_symbian_vec)
11172 tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11173 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11174 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11175 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11176 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11177 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11178 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11179 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11180 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11181 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11182 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11183 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11184 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11185 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11186 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11187 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11188 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11189 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11190 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11191 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11192 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11193 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11194 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11195 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11196 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11197 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11198 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11199 # FIXME: We include cofflink.lo not because it's needed for
11200 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11201 # which needs it but does not list it. Should be fixed in right place.
11202 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11203 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11204 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11205 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11206 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11207 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11208 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11209 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11210 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11211 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11212 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11213 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11214 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11215 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11216 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11217 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11218 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11219 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11220 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11221 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11222 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11223 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11224 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11225 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11226 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11227 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11228 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11229 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11230 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11231 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11232 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11233 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11234 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11235 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11236 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11237 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11238 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11239 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11240 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11241 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11242 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11243 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11244 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11245 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11246 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11247 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11248 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11249 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
11250 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11251 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11252 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11253 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11254 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11255 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11256 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11257 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11258 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11259 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11260 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11261 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11262 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11263 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11264 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11265 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11266 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11267 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11268 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11269 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11270 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11271 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11272 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11273 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11274 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11275 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11276 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11277 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11278 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11279 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11280 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11281 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11282 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11283 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11284 ieee_vec) tb="$tb ieee.lo" ;;
11285 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11286 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11287 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11288 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11289 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11290 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11291 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11292 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11293 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11294 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11295 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11296 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11297 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11298 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11299 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11300 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11301 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11302 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11303 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11304 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11305 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11306 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11307 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11308 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11309 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11310 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11311 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11312 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11313 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11314 pef_vec) tb="$tb pef.lo" ;;
11315 pef_xlib_vec) tb="$tb pef.lo" ;;
11316 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11317 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11318 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11319 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11320 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11321 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11322 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11323 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11324 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11325 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11326 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11327 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11328 som_vec) tb="$tb som.lo" ;;
11329 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11330 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11331 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11332 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11333 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11334 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11335 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11336 sym_vec) tb="$tb xsym.lo" ;;
11337 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11338 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11339 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11340 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11341 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11342 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11343 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11344 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11345 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11346 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11347 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11348 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11349 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11350 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11351 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11352 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11353 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11354 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11355 versados_vec) tb="$tb versados.lo" ;;
11356 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11357 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11358 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11359 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11360 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11362 # These appear out of order in targets.c
11363 srec_vec) tb="$tb srec.lo" ;;
11364 symbolsrec_vec) tb="$tb srec.lo" ;;
11365 tekhex_vec) tb="$tb tekhex.lo" ;;
11366 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11367 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11369 "") ;;
11370 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11371 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11372 { (exit 1); exit 1; }; } ;;
11373 esac
11375 if test ${target_size} = 64; then
11376 target64=true
11378 if test x"${vec}" = x"${defvec}"; then
11379 bfd_default_target_size=${target_size}
11381 done
11383 # Target architecture .o files.
11384 # A couple of CPUs use shorter file names to avoid problems on DOS
11385 # filesystems.
11386 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11388 # Weed out duplicate .o files.
11389 f=""
11390 for i in $tb ; do
11391 case " $f " in
11392 *" $i "*) ;;
11393 *) f="$f $i" ;;
11394 esac
11395 done
11396 tb="$f"
11398 f=""
11399 for i in $ta ; do
11400 case " $f " in
11401 *" $i "*) ;;
11402 *) f="$f $i" ;;
11403 esac
11404 done
11405 ta="$f"
11407 bfd_backends="$tb"
11408 bfd_machines="$ta"
11410 if test x${all_targets} = xtrue ; then
11411 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11412 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11413 selvecs=
11414 havevecs=
11415 selarchs=
11416 test -n "$assocvecs" &&
11417 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11418 else # all_targets is true
11419 # Only set these if they will be nonempty, for the clever echo.
11420 havevecs=
11421 assocvecs=
11422 test -n "$selvecs" &&
11423 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11424 test -n "$selvecs" &&
11425 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11426 test -n "$selarchs" &&
11427 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11428 fi # all_targets is true
11430 case ${host64}-${target64}-${want64} in
11431 *true*)
11432 wordsize=64
11433 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11434 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11435 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11436 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11437 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11439 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11441 if test -n "$GCC" ; then
11442 bad_64bit_gcc=no;
11443 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11444 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11445 # Add more tests for gcc versions with non-working 64-bit support here.
11446 cat >conftest.$ac_ext <<_ACEOF
11447 /* confdefs.h. */
11448 _ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11452 :__GNUC__:__GNUC_MINOR__:__i386__:
11453 _ACEOF
11454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11455 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11456 bad_64bit_gcc=yes;
11457 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11458 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11459 else
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11463 rm -f conftest*
11465 if test $bad_64bit_gcc = yes ; then
11466 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11467 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11468 { (exit 1); exit 1; }; }
11472 false-false-false)
11473 wordsize=32
11474 bfd_libs='$(BFD32_LIBS)'
11475 all_backends='$(BFD32_BACKENDS)'
11477 esac
11486 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11487 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11488 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11489 # Hopefully a reasonable assumption since fseeko et.al. should be
11490 # upward compatible.
11495 for ac_func in ftello ftello64 fseeko fseeko64
11497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11500 if eval "test \"\${$as_ac_var+set}\" = set"; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11518 #ifdef __STDC__
11519 # include <limits.h>
11520 #else
11521 # include <assert.h>
11522 #endif
11524 #undef $ac_func
11526 /* Override any gcc2 internal prototype to avoid an error. */
11527 #ifdef __cplusplus
11528 extern "C"
11530 #endif
11531 /* We use char because int might match the return type of a gcc2
11532 builtin and then its argument prototype would still apply. */
11533 char $ac_func ();
11534 /* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11538 choke me
11539 #else
11540 char (*f) () = $ac_func;
11541 #endif
11542 #ifdef __cplusplus
11544 #endif
11547 main ()
11549 return f != $ac_func;
11551 return 0;
11553 _ACEOF
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 eval "$as_ac_var=yes"
11577 else
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 eval "$as_ac_var=no"
11583 rm -f conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11588 if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591 _ACEOF
11594 done
11596 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11597 echo "$as_me:$LINENO: checking size of off_t" >&5
11598 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11599 if test "${ac_cv_sizeof_off_t+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 #include "confdefs.h"
11610 #include <sys/types.h>
11614 main ()
11616 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
11618 return 0;
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_sizeof_off_t=$ac_size
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11650 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11651 done
11655 if test x$ac_cv_sizeof_off_t = x ; then
11656 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11657 echo "$as_me: error: cannot determine a size for off_t" >&2;}
11658 { (exit 1); exit 1; }; }
11660 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11661 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11663 cat >>confdefs.h <<_ACEOF
11664 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11665 _ACEOF
11669 echo "$as_me:$LINENO: checking file_ptr type" >&5
11670 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11671 bfd_file_ptr="long"
11672 bfd_ufile_ptr="unsigned long"
11673 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11674 -o x"${ac_cv_sizeof_off_t}" = x8; then
11675 bfd_file_ptr=BFD_HOST_64_BIT
11676 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11678 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11679 echo "${ECHO_T}$bfd_file_ptr" >&6
11684 tdefaults=""
11685 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11686 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11687 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11688 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11689 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11694 for ac_header in stdlib.h unistd.h
11696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11698 echo "$as_me:$LINENO: checking for $ac_header" >&5
11699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11705 else
11706 # Is the header compilable?
11707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h. */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 $ac_includes_default
11716 #include <$ac_header>
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720 (eval $ac_compile) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest.$ac_objext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_header_compiler=yes
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_header_compiler=no
11747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11749 echo "${ECHO_T}$ac_header_compiler" >&6
11751 # Is the header present?
11752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h. */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 #include <$ac_header>
11761 _ACEOF
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11773 else
11774 ac_cpp_err=
11776 else
11777 ac_cpp_err=yes
11779 if test -z "$ac_cpp_err"; then
11780 ac_header_preproc=yes
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_header_preproc=no
11787 rm -f conftest.err conftest.$ac_ext
11788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11789 echo "${ECHO_T}$ac_header_preproc" >&6
11791 # So? What about this header?
11792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11793 yes:no: )
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11798 ac_header_preproc=yes
11800 no:yes:* )
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11814 cat <<\_ASBOX
11815 ## ------------------------------------------ ##
11816 ## Report this to the AC_PACKAGE_NAME lists. ##
11817 ## ------------------------------------------ ##
11818 _ASBOX
11820 sed "s/^/$as_me: WARNING: /" >&2
11822 esac
11823 echo "$as_me:$LINENO: checking for $ac_header" >&5
11824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 eval "$as_ac_Header=\$ac_header_preproc"
11830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11835 cat >>confdefs.h <<_ACEOF
11836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11837 _ACEOF
11841 done
11844 for ac_func in getpagesize
11846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847 echo "$as_me:$LINENO: checking for $ac_func" >&5
11848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11849 if eval "test \"\${$as_ac_var+set}\" = set"; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11860 #define $ac_func innocuous_$ac_func
11862 /* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char $ac_func (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11867 #ifdef __STDC__
11868 # include <limits.h>
11869 #else
11870 # include <assert.h>
11871 #endif
11873 #undef $ac_func
11875 /* Override any gcc2 internal prototype to avoid an error. */
11876 #ifdef __cplusplus
11877 extern "C"
11879 #endif
11880 /* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882 char $ac_func ();
11883 /* The GNU C library defines this for functions which it implements
11884 to always fail with ENOSYS. Some functions are actually named
11885 something starting with __ and the normal name is an alias. */
11886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11887 choke me
11888 #else
11889 char (*f) () = $ac_func;
11890 #endif
11891 #ifdef __cplusplus
11893 #endif
11896 main ()
11898 return f != $ac_func;
11900 return 0;
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -z "$ac_c_werror_flag"
11913 || test ! -s conftest.err'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 eval "$as_ac_var=yes"
11926 else
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 eval "$as_ac_var=no"
11932 rm -f conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11937 if test `eval echo '${'$as_ac_var'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11940 _ACEOF
11943 done
11945 echo "$as_me:$LINENO: checking for working mmap" >&5
11946 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11947 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 if test "$cross_compiling" = yes; then
11951 ac_cv_func_mmap_fixed_mapped=no
11952 else
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 $ac_includes_default
11960 /* malloc might have been renamed as rpl_malloc. */
11961 #undef malloc
11963 /* Thanks to Mike Haertel and Jim Avera for this test.
11964 Here is a matrix of mmap possibilities:
11965 mmap private not fixed
11966 mmap private fixed at somewhere currently unmapped
11967 mmap private fixed at somewhere already mapped
11968 mmap shared not fixed
11969 mmap shared fixed at somewhere currently unmapped
11970 mmap shared fixed at somewhere already mapped
11971 For private mappings, we should verify that changes cannot be read()
11972 back from the file, nor mmap's back from the file at a different
11973 address. (There have been systems where private was not correctly
11974 implemented like the infamous i386 svr4.0, and systems where the
11975 VM page cache was not coherent with the file system buffer cache
11976 like early versions of FreeBSD and possibly contemporary NetBSD.)
11977 For shared mappings, we should conversely verify that changes get
11978 propagated back to all the places they're supposed to be.
11980 Grep wants private fixed already mapped.
11981 The main things grep needs to know about mmap are:
11982 * does it exist and is it safe to write into the mmap'd area
11983 * how to use it (BSD variants) */
11985 #include <fcntl.h>
11986 #include <sys/mman.h>
11988 #if !STDC_HEADERS && !HAVE_STDLIB_H
11989 char *malloc ();
11990 #endif
11992 /* This mess was copied from the GNU getpagesize.h. */
11993 #if !HAVE_GETPAGESIZE
11994 /* Assume that all systems that can run configure have sys/param.h. */
11995 # if !HAVE_SYS_PARAM_H
11996 # define HAVE_SYS_PARAM_H 1
11997 # endif
11999 # ifdef _SC_PAGESIZE
12000 # define getpagesize() sysconf(_SC_PAGESIZE)
12001 # else /* no _SC_PAGESIZE */
12002 # if HAVE_SYS_PARAM_H
12003 # include <sys/param.h>
12004 # ifdef EXEC_PAGESIZE
12005 # define getpagesize() EXEC_PAGESIZE
12006 # else /* no EXEC_PAGESIZE */
12007 # ifdef NBPG
12008 # define getpagesize() NBPG * CLSIZE
12009 # ifndef CLSIZE
12010 # define CLSIZE 1
12011 # endif /* no CLSIZE */
12012 # else /* no NBPG */
12013 # ifdef NBPC
12014 # define getpagesize() NBPC
12015 # else /* no NBPC */
12016 # ifdef PAGESIZE
12017 # define getpagesize() PAGESIZE
12018 # endif /* PAGESIZE */
12019 # endif /* no NBPC */
12020 # endif /* no NBPG */
12021 # endif /* no EXEC_PAGESIZE */
12022 # else /* no HAVE_SYS_PARAM_H */
12023 # define getpagesize() 8192 /* punt totally */
12024 # endif /* no HAVE_SYS_PARAM_H */
12025 # endif /* no _SC_PAGESIZE */
12027 #endif /* no HAVE_GETPAGESIZE */
12030 main ()
12032 char *data, *data2, *data3;
12033 int i, pagesize;
12034 int fd;
12036 pagesize = getpagesize ();
12038 /* First, make a file with some known garbage in it. */
12039 data = (char *) malloc (pagesize);
12040 if (!data)
12041 exit (1);
12042 for (i = 0; i < pagesize; ++i)
12043 *(data + i) = rand ();
12044 umask (0);
12045 fd = creat ("conftest.mmap", 0600);
12046 if (fd < 0)
12047 exit (1);
12048 if (write (fd, data, pagesize) != pagesize)
12049 exit (1);
12050 close (fd);
12052 /* Next, try to mmap the file at a fixed address which already has
12053 something else allocated at it. If we can, also make sure that
12054 we see the same garbage. */
12055 fd = open ("conftest.mmap", O_RDWR);
12056 if (fd < 0)
12057 exit (1);
12058 data2 = (char *) malloc (2 * pagesize);
12059 if (!data2)
12060 exit (1);
12061 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12062 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12063 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12064 exit (1);
12065 for (i = 0; i < pagesize; ++i)
12066 if (*(data + i) != *(data2 + i))
12067 exit (1);
12069 /* Finally, make sure that changes to the mapped area do not
12070 percolate back to the file as seen by read(). (This is a bug on
12071 some variants of i386 svr4.0.) */
12072 for (i = 0; i < pagesize; ++i)
12073 *(data2 + i) = *(data2 + i) + 1;
12074 data3 = (char *) malloc (pagesize);
12075 if (!data3)
12076 exit (1);
12077 if (read (fd, data3, pagesize) != pagesize)
12078 exit (1);
12079 for (i = 0; i < pagesize; ++i)
12080 if (*(data + i) != *(data3 + i))
12081 exit (1);
12082 close (fd);
12083 exit (0);
12085 _ACEOF
12086 rm -f conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_func_mmap_fixed_mapped=yes
12098 else
12099 echo "$as_me: program exited with status $ac_status" >&5
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ( exit $ac_status )
12104 ac_cv_func_mmap_fixed_mapped=no
12106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12109 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12110 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12111 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define HAVE_MMAP 1
12115 _ACEOF
12118 rm -f conftest.mmap
12122 for ac_func in madvise mprotect
12124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125 echo "$as_me:$LINENO: checking for $ac_func" >&5
12126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12127 if eval "test \"\${$as_ac_var+set}\" = set"; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138 #define $ac_func innocuous_$ac_func
12140 /* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12145 #ifdef __STDC__
12146 # include <limits.h>
12147 #else
12148 # include <assert.h>
12149 #endif
12151 #undef $ac_func
12153 /* Override any gcc2 internal prototype to avoid an error. */
12154 #ifdef __cplusplus
12155 extern "C"
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160 char $ac_func ();
12161 /* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165 choke me
12166 #else
12167 char (*f) () = $ac_func;
12168 #endif
12169 #ifdef __cplusplus
12171 #endif
12174 main ()
12176 return f != $ac_func;
12178 return 0;
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183 (eval $ac_link) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 eval "$as_ac_var=yes"
12204 else
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 eval "$as_ac_var=no"
12210 rm -f conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12215 if test `eval echo '${'$as_ac_var'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12218 _ACEOF
12221 done
12223 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12224 true+yes )
12225 cat >>confdefs.h <<\_ACEOF
12226 #define USE_MMAP 1
12227 _ACEOF
12229 esac
12231 rm -f doc/config.status
12232 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12234 ac_config_commands="$ac_config_commands default"
12236 cat >confcache <<\_ACEOF
12237 # This file is a shell script that caches the results of configure
12238 # tests run on this system so they can be shared between configure
12239 # scripts and configure runs, see configure's option --config-cache.
12240 # It is not useful on other systems. If it contains results you don't
12241 # want to keep, you may remove or edit it.
12243 # config.status only pays attention to the cache file if you give it
12244 # the --recheck option to rerun configure.
12246 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12247 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12248 # following values.
12250 _ACEOF
12252 # The following way of writing the cache mishandles newlines in values,
12253 # but we know of no workaround that is simple, portable, and efficient.
12254 # So, don't put newlines in cache variables' values.
12255 # Ultrix sh set writes to stderr and can't be redirected directly,
12256 # and sets the high bit in the cache file unless we assign to the vars.
12258 (set) 2>&1 |
12259 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12260 *ac_space=\ *)
12261 # `set' does not quote correctly, so add quotes (double-quote
12262 # substitution turns \\\\ into \\, and sed turns \\ into \).
12263 sed -n \
12264 "s/'/'\\\\''/g;
12265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12268 # `set' quotes correctly as required by POSIX, so do not add quotes.
12269 sed -n \
12270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12272 esac;
12274 sed '
12275 t clear
12276 : clear
12277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12278 t end
12279 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12280 : end' >>confcache
12281 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12282 if test -w $cache_file; then
12283 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12284 cat confcache >$cache_file
12285 else
12286 echo "not updating unwritable cache $cache_file"
12289 rm -f confcache
12291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12292 # Let make expand exec_prefix.
12293 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12295 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12296 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12297 # trailing colons and then remove the whole line if VPATH becomes empty
12298 # (actually we leave an empty line to preserve line numbers).
12299 if test "x$srcdir" = x.; then
12300 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12301 s/:*\$(srcdir):*/:/;
12302 s/:*\${srcdir}:*/:/;
12303 s/:*@srcdir@:*/:/;
12304 s/^\([^=]*=[ ]*\):*/\1/;
12305 s/:*$//;
12306 s/^[^=]*=[ ]*$//;
12310 DEFS=-DHAVE_CONFIG_H
12312 ac_libobjs=
12313 ac_ltlibobjs=
12314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12315 # 1. Remove the extension, and $U if already installed.
12316 ac_i=`echo "$ac_i" |
12317 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12318 # 2. Add them.
12319 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12320 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12321 done
12322 LIBOBJS=$ac_libobjs
12324 LTLIBOBJS=$ac_ltlibobjs
12328 : ${CONFIG_STATUS=./config.status}
12329 ac_clean_files_save=$ac_clean_files
12330 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12331 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12332 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12333 cat >$CONFIG_STATUS <<_ACEOF
12334 #! $SHELL
12335 # Generated by $as_me.
12336 # Run this file to recreate the current configuration.
12337 # Compiler output produced by configure, useful for debugging
12338 # configure, is in config.log if it exists.
12340 debug=false
12341 ac_cs_recheck=false
12342 ac_cs_silent=false
12343 SHELL=\${CONFIG_SHELL-$SHELL}
12344 _ACEOF
12346 cat >>$CONFIG_STATUS <<\_ACEOF
12347 ## --------------------- ##
12348 ## M4sh Initialization. ##
12349 ## --------------------- ##
12351 # Be Bourne compatible
12352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12353 emulate sh
12354 NULLCMD=:
12355 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12356 # is contrary to our usage. Disable this feature.
12357 alias -g '${1+"$@"}'='"$@"'
12358 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12359 set -o posix
12361 DUALCASE=1; export DUALCASE # for MKS sh
12363 # Support unset when possible.
12364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12365 as_unset=unset
12366 else
12367 as_unset=false
12371 # Work around bugs in pre-3.0 UWIN ksh.
12372 $as_unset ENV MAIL MAILPATH
12373 PS1='$ '
12374 PS2='> '
12375 PS4='+ '
12377 # NLS nuisances.
12378 for as_var in \
12379 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12380 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12381 LC_TELEPHONE LC_TIME
12383 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12384 eval $as_var=C; export $as_var
12385 else
12386 $as_unset $as_var
12388 done
12390 # Required to use basename.
12391 if expr a : '\(a\)' >/dev/null 2>&1; then
12392 as_expr=expr
12393 else
12394 as_expr=false
12397 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12398 as_basename=basename
12399 else
12400 as_basename=false
12404 # Name of the executable.
12405 as_me=`$as_basename "$0" ||
12406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12407 X"$0" : 'X\(//\)$' \| \
12408 X"$0" : 'X\(/\)$' \| \
12409 . : '\(.\)' 2>/dev/null ||
12410 echo X/"$0" |
12411 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12412 /^X\/\(\/\/\)$/{ s//\1/; q; }
12413 /^X\/\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12417 # PATH needs CR, and LINENO needs CR and PATH.
12418 # Avoid depending upon Character Ranges.
12419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12422 as_cr_digits='0123456789'
12423 as_cr_alnum=$as_cr_Letters$as_cr_digits
12425 # The user is always right.
12426 if test "${PATH_SEPARATOR+set}" != set; then
12427 echo "#! /bin/sh" >conf$$.sh
12428 echo "exit 0" >>conf$$.sh
12429 chmod +x conf$$.sh
12430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12431 PATH_SEPARATOR=';'
12432 else
12433 PATH_SEPARATOR=:
12435 rm -f conf$$.sh
12439 as_lineno_1=$LINENO
12440 as_lineno_2=$LINENO
12441 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12442 test "x$as_lineno_1" != "x$as_lineno_2" &&
12443 test "x$as_lineno_3" = "x$as_lineno_2" || {
12444 # Find who we are. Look in the path if we contain no path at all
12445 # relative or not.
12446 case $0 in
12447 *[\\/]* ) as_myself=$0 ;;
12448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12454 done
12457 esac
12458 # We did not find ourselves, most probably we were run as `sh COMMAND'
12459 # in which case we are not to be found in the path.
12460 if test "x$as_myself" = x; then
12461 as_myself=$0
12463 if test ! -f "$as_myself"; then
12464 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12465 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12466 { (exit 1); exit 1; }; }
12468 case $CONFIG_SHELL in
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for as_base in sh bash ksh sh5; do
12476 case $as_dir in
12478 if ("$as_dir/$as_base" -c '
12479 as_lineno_1=$LINENO
12480 as_lineno_2=$LINENO
12481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12482 test "x$as_lineno_1" != "x$as_lineno_2" &&
12483 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12484 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12485 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12486 CONFIG_SHELL=$as_dir/$as_base
12487 export CONFIG_SHELL
12488 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12489 fi;;
12490 esac
12491 done
12492 done
12494 esac
12496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12497 # uniformly replaced by the line number. The first 'sed' inserts a
12498 # line-number line before each line; the second 'sed' does the real
12499 # work. The second script uses 'N' to pair each line-number line
12500 # with the numbered line, and appends trailing '-' during
12501 # substitution so that $LINENO is not a special case at line end.
12502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12503 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12504 sed '=' <$as_myself |
12505 sed '
12507 s,$,-,
12508 : loop
12509 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12510 t loop
12511 s,-$,,
12512 s,^['$as_cr_digits']*\n,,
12513 ' >$as_me.lineno &&
12514 chmod +x $as_me.lineno ||
12515 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12516 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12517 { (exit 1); exit 1; }; }
12519 # Don't try to exec as it changes $[0], causing all sort of problems
12520 # (the dirname of $[0] is not the place where we might find the
12521 # original and so on. Autoconf is especially sensible to this).
12522 . ./$as_me.lineno
12523 # Exit status is that of the last command.
12524 exit
12528 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12529 *c*,-n*) ECHO_N= ECHO_C='
12530 ' ECHO_T=' ' ;;
12531 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12532 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12533 esac
12535 if expr a : '\(a\)' >/dev/null 2>&1; then
12536 as_expr=expr
12537 else
12538 as_expr=false
12541 rm -f conf$$ conf$$.exe conf$$.file
12542 echo >conf$$.file
12543 if ln -s conf$$.file conf$$ 2>/dev/null; then
12544 # We could just check for DJGPP; but this test a) works b) is more generic
12545 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12546 if test -f conf$$.exe; then
12547 # Don't use ln at all; we don't have any links
12548 as_ln_s='cp -p'
12549 else
12550 as_ln_s='ln -s'
12552 elif ln conf$$.file conf$$ 2>/dev/null; then
12553 as_ln_s=ln
12554 else
12555 as_ln_s='cp -p'
12557 rm -f conf$$ conf$$.exe conf$$.file
12559 if mkdir -p . 2>/dev/null; then
12560 as_mkdir_p=:
12561 else
12562 test -d ./-p && rmdir ./-p
12563 as_mkdir_p=false
12566 as_executable_p="test -f"
12568 # Sed expression to map a string onto a valid CPP name.
12569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12571 # Sed expression to map a string onto a valid variable name.
12572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12575 # IFS
12576 # We need space, tab and new line, in precisely that order.
12577 as_nl='
12579 IFS=" $as_nl"
12581 # CDPATH.
12582 $as_unset CDPATH
12584 exec 6>&1
12586 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12587 # report actual input values of CONFIG_FILES etc. instead of their
12588 # values after options handling. Logging --version etc. is OK.
12589 exec 5>>config.log
12591 echo
12592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12593 ## Running $as_me. ##
12594 _ASBOX
12595 } >&5
12596 cat >&5 <<_CSEOF
12598 This file was extended by $as_me, which was
12599 generated by GNU Autoconf 2.59. Invocation command line was
12601 CONFIG_FILES = $CONFIG_FILES
12602 CONFIG_HEADERS = $CONFIG_HEADERS
12603 CONFIG_LINKS = $CONFIG_LINKS
12604 CONFIG_COMMANDS = $CONFIG_COMMANDS
12605 $ $0 $@
12607 _CSEOF
12608 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12609 echo >&5
12610 _ACEOF
12612 # Files that config.status was made for.
12613 if test -n "$ac_config_files"; then
12614 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12617 if test -n "$ac_config_headers"; then
12618 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12621 if test -n "$ac_config_links"; then
12622 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12625 if test -n "$ac_config_commands"; then
12626 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12629 cat >>$CONFIG_STATUS <<\_ACEOF
12631 ac_cs_usage="\
12632 \`$as_me' instantiates files from templates according to the
12633 current configuration.
12635 Usage: $0 [OPTIONS] [FILE]...
12637 -h, --help print this help, then exit
12638 -V, --version print version number, then exit
12639 -q, --quiet do not print progress messages
12640 -d, --debug don't remove temporary files
12641 --recheck update $as_me by reconfiguring in the same conditions
12642 --file=FILE[:TEMPLATE]
12643 instantiate the configuration file FILE
12644 --header=FILE[:TEMPLATE]
12645 instantiate the configuration header FILE
12647 Configuration files:
12648 $config_files
12650 Configuration headers:
12651 $config_headers
12653 Configuration commands:
12654 $config_commands
12656 Report bugs to <bug-autoconf@gnu.org>."
12657 _ACEOF
12659 cat >>$CONFIG_STATUS <<_ACEOF
12660 ac_cs_version="\\
12661 config.status
12662 configured by $0, generated by GNU Autoconf 2.59,
12663 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12665 Copyright (C) 2003 Free Software Foundation, Inc.
12666 This config.status script is free software; the Free Software Foundation
12667 gives unlimited permission to copy, distribute and modify it."
12668 srcdir=$srcdir
12669 INSTALL="$INSTALL"
12670 _ACEOF
12672 cat >>$CONFIG_STATUS <<\_ACEOF
12673 # If no file are specified by the user, then we need to provide default
12674 # value. By we need to know if files were specified by the user.
12675 ac_need_defaults=:
12676 while test $# != 0
12678 case $1 in
12679 --*=*)
12680 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12681 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12682 ac_shift=:
12685 ac_option=$1
12686 ac_optarg=$2
12687 ac_shift=shift
12689 *) # This is not an option, so the user has probably given explicit
12690 # arguments.
12691 ac_option=$1
12692 ac_need_defaults=false;;
12693 esac
12695 case $ac_option in
12696 # Handling of the options.
12697 _ACEOF
12698 cat >>$CONFIG_STATUS <<\_ACEOF
12699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12700 ac_cs_recheck=: ;;
12701 --version | --vers* | -V )
12702 echo "$ac_cs_version"; exit 0 ;;
12703 --he | --h)
12704 # Conflict between --help and --header
12705 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12706 Try \`$0 --help' for more information." >&5
12707 echo "$as_me: error: ambiguous option: $1
12708 Try \`$0 --help' for more information." >&2;}
12709 { (exit 1); exit 1; }; };;
12710 --help | --hel | -h )
12711 echo "$ac_cs_usage"; exit 0 ;;
12712 --debug | --d* | -d )
12713 debug=: ;;
12714 --file | --fil | --fi | --f )
12715 $ac_shift
12716 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12717 ac_need_defaults=false;;
12718 --header | --heade | --head | --hea )
12719 $ac_shift
12720 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12721 ac_need_defaults=false;;
12722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12724 ac_cs_silent=: ;;
12726 # This is an error.
12727 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12728 Try \`$0 --help' for more information." >&5
12729 echo "$as_me: error: unrecognized option: $1
12730 Try \`$0 --help' for more information." >&2;}
12731 { (exit 1); exit 1; }; } ;;
12733 *) ac_config_targets="$ac_config_targets $1" ;;
12735 esac
12736 shift
12737 done
12739 ac_configure_extra_args=
12741 if $ac_cs_silent; then
12742 exec 6>/dev/null
12743 ac_configure_extra_args="$ac_configure_extra_args --silent"
12746 _ACEOF
12747 cat >>$CONFIG_STATUS <<_ACEOF
12748 if \$ac_cs_recheck; then
12749 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12750 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12753 _ACEOF
12755 cat >>$CONFIG_STATUS <<_ACEOF
12757 # INIT-COMMANDS section.
12763 _ACEOF
12767 cat >>$CONFIG_STATUS <<\_ACEOF
12768 for ac_config_target in $ac_config_targets
12770 case "$ac_config_target" in
12771 # Handling of arguments.
12772 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12773 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12774 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12775 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12776 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12777 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12778 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12780 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12781 { (exit 1); exit 1; }; };;
12782 esac
12783 done
12785 # If the user did not use the arguments to specify the items to instantiate,
12786 # then the envvar interface is used. Set only those that are not.
12787 # We use the long form for the default assignment because of an extremely
12788 # bizarre bug on SunOS 4.1.3.
12789 if $ac_need_defaults; then
12790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12795 # Have a temporary directory for convenience. Make it in the build tree
12796 # simply because there is no reason to put it here, and in addition,
12797 # creating and moving files from /tmp can sometimes cause problems.
12798 # Create a temporary directory, and hook for its removal unless debugging.
12799 $debug ||
12801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12802 trap '{ (exit 1); exit 1; }' 1 2 13 15
12805 # Create a (secure) tmp directory for tmp files.
12808 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12809 test -n "$tmp" && test -d "$tmp"
12810 } ||
12812 tmp=./confstat$$-$RANDOM
12813 (umask 077 && mkdir $tmp)
12814 } ||
12816 echo "$me: cannot create a temporary directory in ." >&2
12817 { (exit 1); exit 1; }
12820 _ACEOF
12822 cat >>$CONFIG_STATUS <<_ACEOF
12825 # CONFIG_FILES section.
12828 # No need to generate the scripts if there are no CONFIG_FILES.
12829 # This happens for instance when ./config.status config.h
12830 if test -n "\$CONFIG_FILES"; then
12831 # Protect against being on the right side of a sed subst in config.status.
12832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12834 s,@SHELL@,$SHELL,;t t
12835 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12836 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12837 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12838 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12839 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12840 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12841 s,@exec_prefix@,$exec_prefix,;t t
12842 s,@prefix@,$prefix,;t t
12843 s,@program_transform_name@,$program_transform_name,;t t
12844 s,@bindir@,$bindir,;t t
12845 s,@sbindir@,$sbindir,;t t
12846 s,@libexecdir@,$libexecdir,;t t
12847 s,@datadir@,$datadir,;t t
12848 s,@sysconfdir@,$sysconfdir,;t t
12849 s,@sharedstatedir@,$sharedstatedir,;t t
12850 s,@localstatedir@,$localstatedir,;t t
12851 s,@libdir@,$libdir,;t t
12852 s,@includedir@,$includedir,;t t
12853 s,@oldincludedir@,$oldincludedir,;t t
12854 s,@infodir@,$infodir,;t t
12855 s,@mandir@,$mandir,;t t
12856 s,@build_alias@,$build_alias,;t t
12857 s,@host_alias@,$host_alias,;t t
12858 s,@target_alias@,$target_alias,;t t
12859 s,@DEFS@,$DEFS,;t t
12860 s,@ECHO_C@,$ECHO_C,;t t
12861 s,@ECHO_N@,$ECHO_N,;t t
12862 s,@ECHO_T@,$ECHO_T,;t t
12863 s,@LIBS@,$LIBS,;t t
12864 s,@build@,$build,;t t
12865 s,@build_cpu@,$build_cpu,;t t
12866 s,@build_vendor@,$build_vendor,;t t
12867 s,@build_os@,$build_os,;t t
12868 s,@host@,$host,;t t
12869 s,@host_cpu@,$host_cpu,;t t
12870 s,@host_vendor@,$host_vendor,;t t
12871 s,@host_os@,$host_os,;t t
12872 s,@target@,$target,;t t
12873 s,@target_cpu@,$target_cpu,;t t
12874 s,@target_vendor@,$target_vendor,;t t
12875 s,@target_os@,$target_os,;t t
12876 s,@CC@,$CC,;t t
12877 s,@CFLAGS@,$CFLAGS,;t t
12878 s,@LDFLAGS@,$LDFLAGS,;t t
12879 s,@CPPFLAGS@,$CPPFLAGS,;t t
12880 s,@ac_ct_CC@,$ac_ct_CC,;t t
12881 s,@EXEEXT@,$EXEEXT,;t t
12882 s,@OBJEXT@,$OBJEXT,;t t
12883 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12884 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12885 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12886 s,@PACKAGE@,$PACKAGE,;t t
12887 s,@VERSION@,$VERSION,;t t
12888 s,@ACLOCAL@,$ACLOCAL,;t t
12889 s,@AUTOCONF@,$AUTOCONF,;t t
12890 s,@AUTOMAKE@,$AUTOMAKE,;t t
12891 s,@AUTOHEADER@,$AUTOHEADER,;t t
12892 s,@MAKEINFO@,$MAKEINFO,;t t
12893 s,@SET_MAKE@,$SET_MAKE,;t t
12894 s,@AR@,$AR,;t t
12895 s,@ac_ct_AR@,$ac_ct_AR,;t t
12896 s,@RANLIB@,$RANLIB,;t t
12897 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12898 s,@LN_S@,$LN_S,;t t
12899 s,@STRIP@,$STRIP,;t t
12900 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12901 s,@LIBTOOL@,$LIBTOOL,;t t
12902 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12903 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12904 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12905 s,@MAINT@,$MAINT,;t t
12906 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12907 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12908 s,@bfdlibdir@,$bfdlibdir,;t t
12909 s,@bfdincludedir@,$bfdincludedir,;t t
12910 s,@CPP@,$CPP,;t t
12911 s,@EGREP@,$EGREP,;t t
12912 s,@ALLOCA@,$ALLOCA,;t t
12913 s,@USE_NLS@,$USE_NLS,;t t
12914 s,@MSGFMT@,$MSGFMT,;t t
12915 s,@GMSGFMT@,$GMSGFMT,;t t
12916 s,@XGETTEXT@,$XGETTEXT,;t t
12917 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12918 s,@CATALOGS@,$CATALOGS,;t t
12919 s,@CATOBJEXT@,$CATOBJEXT,;t t
12920 s,@DATADIRNAME@,$DATADIRNAME,;t t
12921 s,@GMOFILES@,$GMOFILES,;t t
12922 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12923 s,@INTLDEPS@,$INTLDEPS,;t t
12924 s,@INTLLIBS@,$INTLLIBS,;t t
12925 s,@INTLOBJS@,$INTLOBJS,;t t
12926 s,@POFILES@,$POFILES,;t t
12927 s,@POSUB@,$POSUB,;t t
12928 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
12929 s,@GT_NO@,$GT_NO,;t t
12930 s,@GT_YES@,$GT_YES,;t t
12931 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12932 s,@l@,$l,;t t
12933 s,@HDEFINES@,$HDEFINES,;t t
12934 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
12935 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
12936 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
12937 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
12938 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
12939 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12940 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12941 s,@COREFILE@,$COREFILE,;t t
12942 s,@COREFLAG@,$COREFLAG,;t t
12943 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12944 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12945 s,@TDEFINES@,$TDEFINES,;t t
12946 s,@wordsize@,$wordsize,;t t
12947 s,@bfd_libs@,$bfd_libs,;t t
12948 s,@all_backends@,$all_backends,;t t
12949 s,@bfd_backends@,$bfd_backends,;t t
12950 s,@bfd_machines@,$bfd_machines,;t t
12951 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
12952 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
12953 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
12954 s,@tdefaults@,$tdefaults,;t t
12955 s,@LIBOBJS@,$LIBOBJS,;t t
12956 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12957 CEOF
12959 _ACEOF
12961 cat >>$CONFIG_STATUS <<\_ACEOF
12962 # Split the substitutions into bite-sized pieces for seds with
12963 # small command number limits, like on Digital OSF/1 and HP-UX.
12964 ac_max_sed_lines=48
12965 ac_sed_frag=1 # Number of current file.
12966 ac_beg=1 # First line for current file.
12967 ac_end=$ac_max_sed_lines # Line after last line for current file.
12968 ac_more_lines=:
12969 ac_sed_cmds=
12970 while $ac_more_lines; do
12971 if test $ac_beg -gt 1; then
12972 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12973 else
12974 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12976 if test ! -s $tmp/subs.frag; then
12977 ac_more_lines=false
12978 else
12979 # The purpose of the label and of the branching condition is to
12980 # speed up the sed processing (if there are no `@' at all, there
12981 # is no need to browse any of the substitutions).
12982 # These are the two extra sed commands mentioned above.
12983 (echo ':t
12984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12985 if test -z "$ac_sed_cmds"; then
12986 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12987 else
12988 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12990 ac_sed_frag=`expr $ac_sed_frag + 1`
12991 ac_beg=$ac_end
12992 ac_end=`expr $ac_end + $ac_max_sed_lines`
12994 done
12995 if test -z "$ac_sed_cmds"; then
12996 ac_sed_cmds=cat
12998 fi # test -n "$CONFIG_FILES"
13000 _ACEOF
13001 cat >>$CONFIG_STATUS <<\_ACEOF
13002 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13004 case $ac_file in
13005 - | *:- | *:-:* ) # input from stdin
13006 cat >$tmp/stdin
13007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13011 * ) ac_file_in=$ac_file.in ;;
13012 esac
13014 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13015 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13017 X"$ac_file" : 'X\(//\)[^/]' \| \
13018 X"$ac_file" : 'X\(//\)$' \| \
13019 X"$ac_file" : 'X\(/\)' \| \
13020 . : '\(.\)' 2>/dev/null ||
13021 echo X"$ac_file" |
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13024 /^X\(\/\/\)$/{ s//\1/; q; }
13025 /^X\(\/\).*/{ s//\1/; q; }
13026 s/.*/./; q'`
13027 { if $as_mkdir_p; then
13028 mkdir -p "$ac_dir"
13029 else
13030 as_dir="$ac_dir"
13031 as_dirs=
13032 while test ! -d "$as_dir"; do
13033 as_dirs="$as_dir $as_dirs"
13034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$as_dir" : 'X\(//\)[^/]' \| \
13037 X"$as_dir" : 'X\(//\)$' \| \
13038 X"$as_dir" : 'X\(/\)' \| \
13039 . : '\(.\)' 2>/dev/null ||
13040 echo X"$as_dir" |
13041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13043 /^X\(\/\/\)$/{ s//\1/; q; }
13044 /^X\(\/\).*/{ s//\1/; q; }
13045 s/.*/./; q'`
13046 done
13047 test ! -n "$as_dirs" || mkdir $as_dirs
13048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13049 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13050 { (exit 1); exit 1; }; }; }
13052 ac_builddir=.
13054 if test "$ac_dir" != .; then
13055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13056 # A "../" for each directory in $ac_dir_suffix.
13057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13058 else
13059 ac_dir_suffix= ac_top_builddir=
13062 case $srcdir in
13063 .) # No --srcdir option. We are building in place.
13064 ac_srcdir=.
13065 if test -z "$ac_top_builddir"; then
13066 ac_top_srcdir=.
13067 else
13068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13069 fi ;;
13070 [\\/]* | ?:[\\/]* ) # Absolute path.
13071 ac_srcdir=$srcdir$ac_dir_suffix;
13072 ac_top_srcdir=$srcdir ;;
13073 *) # Relative path.
13074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13076 esac
13078 # Do not use `cd foo && pwd` to compute absolute paths, because
13079 # the directories may not exist.
13080 case `pwd` in
13081 .) ac_abs_builddir="$ac_dir";;
13083 case "$ac_dir" in
13084 .) ac_abs_builddir=`pwd`;;
13085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13087 esac;;
13088 esac
13089 case $ac_abs_builddir in
13090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13092 case ${ac_top_builddir}. in
13093 .) ac_abs_top_builddir=$ac_abs_builddir;;
13094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13096 esac;;
13097 esac
13098 case $ac_abs_builddir in
13099 .) ac_abs_srcdir=$ac_srcdir;;
13101 case $ac_srcdir in
13102 .) ac_abs_srcdir=$ac_abs_builddir;;
13103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13105 esac;;
13106 esac
13107 case $ac_abs_builddir in
13108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13110 case $ac_top_srcdir in
13111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13114 esac;;
13115 esac
13118 case $INSTALL in
13119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13120 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13121 esac
13123 if test x"$ac_file" != x-; then
13124 { echo "$as_me:$LINENO: creating $ac_file" >&5
13125 echo "$as_me: creating $ac_file" >&6;}
13126 rm -f "$ac_file"
13128 # Let's still pretend it is `configure' which instantiates (i.e., don't
13129 # use $as_me), people would be surprised to read:
13130 # /* config.h. Generated by config.status. */
13131 if test x"$ac_file" = x-; then
13132 configure_input=
13133 else
13134 configure_input="$ac_file. "
13136 configure_input=$configure_input"Generated from `echo $ac_file_in |
13137 sed 's,.*/,,'` by configure."
13139 # First look for the input files in the build tree, otherwise in the
13140 # src tree.
13141 ac_file_inputs=`IFS=:
13142 for f in $ac_file_in; do
13143 case $f in
13144 -) echo $tmp/stdin ;;
13145 [\\/$]*)
13146 # Absolute (can't be DOS-style, as IFS=:)
13147 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13148 echo "$as_me: error: cannot find input file: $f" >&2;}
13149 { (exit 1); exit 1; }; }
13150 echo "$f";;
13151 *) # Relative
13152 if test -f "$f"; then
13153 # Build tree
13154 echo "$f"
13155 elif test -f "$srcdir/$f"; then
13156 # Source tree
13157 echo "$srcdir/$f"
13158 else
13159 # /dev/null tree
13160 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13161 echo "$as_me: error: cannot find input file: $f" >&2;}
13162 { (exit 1); exit 1; }; }
13163 fi;;
13164 esac
13165 done` || { (exit 1); exit 1; }
13166 _ACEOF
13167 cat >>$CONFIG_STATUS <<_ACEOF
13168 sed "$ac_vpsub
13169 $extrasub
13170 _ACEOF
13171 cat >>$CONFIG_STATUS <<\_ACEOF
13173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13174 s,@configure_input@,$configure_input,;t t
13175 s,@srcdir@,$ac_srcdir,;t t
13176 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13177 s,@top_srcdir@,$ac_top_srcdir,;t t
13178 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13179 s,@builddir@,$ac_builddir,;t t
13180 s,@abs_builddir@,$ac_abs_builddir,;t t
13181 s,@top_builddir@,$ac_top_builddir,;t t
13182 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13183 s,@INSTALL@,$ac_INSTALL,;t t
13184 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13185 rm -f $tmp/stdin
13186 if test x"$ac_file" != x-; then
13187 mv $tmp/out $ac_file
13188 else
13189 cat $tmp/out
13190 rm -f $tmp/out
13193 done
13194 _ACEOF
13195 cat >>$CONFIG_STATUS <<\_ACEOF
13198 # CONFIG_HEADER section.
13201 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13202 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13204 # ac_d sets the value in "#define NAME VALUE" lines.
13205 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13206 ac_dB='[ ].*$,\1#\2'
13207 ac_dC=' '
13208 ac_dD=',;t'
13209 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13210 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13211 ac_uB='$,\1#\2define\3'
13212 ac_uC=' '
13213 ac_uD=',;t'
13215 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13217 case $ac_file in
13218 - | *:- | *:-:* ) # input from stdin
13219 cat >$tmp/stdin
13220 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13222 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13224 * ) ac_file_in=$ac_file.in ;;
13225 esac
13227 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13228 echo "$as_me: creating $ac_file" >&6;}
13230 # First look for the input files in the build tree, otherwise in the
13231 # src tree.
13232 ac_file_inputs=`IFS=:
13233 for f in $ac_file_in; do
13234 case $f in
13235 -) echo $tmp/stdin ;;
13236 [\\/$]*)
13237 # Absolute (can't be DOS-style, as IFS=:)
13238 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13239 echo "$as_me: error: cannot find input file: $f" >&2;}
13240 { (exit 1); exit 1; }; }
13241 # Do quote $f, to prevent DOS paths from being IFS'd.
13242 echo "$f";;
13243 *) # Relative
13244 if test -f "$f"; then
13245 # Build tree
13246 echo "$f"
13247 elif test -f "$srcdir/$f"; then
13248 # Source tree
13249 echo "$srcdir/$f"
13250 else
13251 # /dev/null tree
13252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13253 echo "$as_me: error: cannot find input file: $f" >&2;}
13254 { (exit 1); exit 1; }; }
13255 fi;;
13256 esac
13257 done` || { (exit 1); exit 1; }
13258 # Remove the trailing spaces.
13259 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13261 _ACEOF
13263 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13264 # `conftest.undefs', that substitutes the proper values into
13265 # config.h.in to produce config.h. The first handles `#define'
13266 # templates, and the second `#undef' templates.
13267 # And first: Protect against being on the right side of a sed subst in
13268 # config.status. Protect against being in an unquoted here document
13269 # in config.status.
13270 rm -f conftest.defines conftest.undefs
13271 # Using a here document instead of a string reduces the quoting nightmare.
13272 # Putting comments in sed scripts is not portable.
13274 # `end' is used to avoid that the second main sed command (meant for
13275 # 0-ary CPP macros) applies to n-ary macro definitions.
13276 # See the Autoconf documentation for `clear'.
13277 cat >confdef2sed.sed <<\_ACEOF
13278 s/[\\&,]/\\&/g
13279 s,[\\$`],\\&,g
13280 t clear
13281 : clear
13282 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13283 t end
13284 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13285 : end
13286 _ACEOF
13287 # If some macros were called several times there might be several times
13288 # the same #defines, which is useless. Nevertheless, we may not want to
13289 # sort them, since we want the *last* AC-DEFINE to be honored.
13290 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13291 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13292 rm -f confdef2sed.sed
13294 # This sed command replaces #undef with comments. This is necessary, for
13295 # example, in the case of _POSIX_SOURCE, which is predefined and required
13296 # on some systems where configure will not decide to define it.
13297 cat >>conftest.undefs <<\_ACEOF
13298 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13299 _ACEOF
13301 # Break up conftest.defines because some shells have a limit on the size
13302 # of here documents, and old seds have small limits too (100 cmds).
13303 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13304 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13305 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13306 echo ' :' >>$CONFIG_STATUS
13307 rm -f conftest.tail
13308 while grep . conftest.defines >/dev/null
13310 # Write a limited-size here document to $tmp/defines.sed.
13311 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13312 # Speed up: don't consider the non `#define' lines.
13313 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13314 # Work around the forget-to-reset-the-flag bug.
13315 echo 't clr' >>$CONFIG_STATUS
13316 echo ': clr' >>$CONFIG_STATUS
13317 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13318 echo 'CEOF
13319 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13320 rm -f $tmp/in
13321 mv $tmp/out $tmp/in
13322 ' >>$CONFIG_STATUS
13323 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13324 rm -f conftest.defines
13325 mv conftest.tail conftest.defines
13326 done
13327 rm -f conftest.defines
13328 echo ' fi # grep' >>$CONFIG_STATUS
13329 echo >>$CONFIG_STATUS
13331 # Break up conftest.undefs because some shells have a limit on the size
13332 # of here documents, and old seds have small limits too (100 cmds).
13333 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13334 rm -f conftest.tail
13335 while grep . conftest.undefs >/dev/null
13337 # Write a limited-size here document to $tmp/undefs.sed.
13338 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13339 # Speed up: don't consider the non `#undef'
13340 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13341 # Work around the forget-to-reset-the-flag bug.
13342 echo 't clr' >>$CONFIG_STATUS
13343 echo ': clr' >>$CONFIG_STATUS
13344 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13345 echo 'CEOF
13346 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13347 rm -f $tmp/in
13348 mv $tmp/out $tmp/in
13349 ' >>$CONFIG_STATUS
13350 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13351 rm -f conftest.undefs
13352 mv conftest.tail conftest.undefs
13353 done
13354 rm -f conftest.undefs
13356 cat >>$CONFIG_STATUS <<\_ACEOF
13357 # Let's still pretend it is `configure' which instantiates (i.e., don't
13358 # use $as_me), people would be surprised to read:
13359 # /* config.h. Generated by config.status. */
13360 if test x"$ac_file" = x-; then
13361 echo "/* Generated by configure. */" >$tmp/config.h
13362 else
13363 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13365 cat $tmp/in >>$tmp/config.h
13366 rm -f $tmp/in
13367 if test x"$ac_file" != x-; then
13368 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13369 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13370 echo "$as_me: $ac_file is unchanged" >&6;}
13371 else
13372 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13374 X"$ac_file" : 'X\(//\)[^/]' \| \
13375 X"$ac_file" : 'X\(//\)$' \| \
13376 X"$ac_file" : 'X\(/\)' \| \
13377 . : '\(.\)' 2>/dev/null ||
13378 echo X"$ac_file" |
13379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13381 /^X\(\/\/\)$/{ s//\1/; q; }
13382 /^X\(\/\).*/{ s//\1/; q; }
13383 s/.*/./; q'`
13384 { if $as_mkdir_p; then
13385 mkdir -p "$ac_dir"
13386 else
13387 as_dir="$ac_dir"
13388 as_dirs=
13389 while test ! -d "$as_dir"; do
13390 as_dirs="$as_dir $as_dirs"
13391 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13393 X"$as_dir" : 'X\(//\)[^/]' \| \
13394 X"$as_dir" : 'X\(//\)$' \| \
13395 X"$as_dir" : 'X\(/\)' \| \
13396 . : '\(.\)' 2>/dev/null ||
13397 echo X"$as_dir" |
13398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13400 /^X\(\/\/\)$/{ s//\1/; q; }
13401 /^X\(\/\).*/{ s//\1/; q; }
13402 s/.*/./; q'`
13403 done
13404 test ! -n "$as_dirs" || mkdir $as_dirs
13405 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13406 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13407 { (exit 1); exit 1; }; }; }
13409 rm -f $ac_file
13410 mv $tmp/config.h $ac_file
13412 else
13413 cat $tmp/config.h
13414 rm -f $tmp/config.h
13416 done
13417 _ACEOF
13418 cat >>$CONFIG_STATUS <<\_ACEOF
13421 # CONFIG_COMMANDS section.
13423 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13424 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13425 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13426 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13427 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13428 X"$ac_dest" : 'X\(//\)[^/]' \| \
13429 X"$ac_dest" : 'X\(//\)$' \| \
13430 X"$ac_dest" : 'X\(/\)' \| \
13431 . : '\(.\)' 2>/dev/null ||
13432 echo X"$ac_dest" |
13433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13435 /^X\(\/\/\)$/{ s//\1/; q; }
13436 /^X\(\/\).*/{ s//\1/; q; }
13437 s/.*/./; q'`
13438 { if $as_mkdir_p; then
13439 mkdir -p "$ac_dir"
13440 else
13441 as_dir="$ac_dir"
13442 as_dirs=
13443 while test ! -d "$as_dir"; do
13444 as_dirs="$as_dir $as_dirs"
13445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13447 X"$as_dir" : 'X\(//\)[^/]' \| \
13448 X"$as_dir" : 'X\(//\)$' \| \
13449 X"$as_dir" : 'X\(/\)' \| \
13450 . : '\(.\)' 2>/dev/null ||
13451 echo X"$as_dir" |
13452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13454 /^X\(\/\/\)$/{ s//\1/; q; }
13455 /^X\(\/\).*/{ s//\1/; q; }
13456 s/.*/./; q'`
13457 done
13458 test ! -n "$as_dirs" || mkdir $as_dirs
13459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13461 { (exit 1); exit 1; }; }; }
13463 ac_builddir=.
13465 if test "$ac_dir" != .; then
13466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13467 # A "../" for each directory in $ac_dir_suffix.
13468 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13469 else
13470 ac_dir_suffix= ac_top_builddir=
13473 case $srcdir in
13474 .) # No --srcdir option. We are building in place.
13475 ac_srcdir=.
13476 if test -z "$ac_top_builddir"; then
13477 ac_top_srcdir=.
13478 else
13479 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13480 fi ;;
13481 [\\/]* | ?:[\\/]* ) # Absolute path.
13482 ac_srcdir=$srcdir$ac_dir_suffix;
13483 ac_top_srcdir=$srcdir ;;
13484 *) # Relative path.
13485 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13486 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13487 esac
13489 # Do not use `cd foo && pwd` to compute absolute paths, because
13490 # the directories may not exist.
13491 case `pwd` in
13492 .) ac_abs_builddir="$ac_dir";;
13494 case "$ac_dir" in
13495 .) ac_abs_builddir=`pwd`;;
13496 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13497 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13498 esac;;
13499 esac
13500 case $ac_abs_builddir in
13501 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13503 case ${ac_top_builddir}. in
13504 .) ac_abs_top_builddir=$ac_abs_builddir;;
13505 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13506 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13507 esac;;
13508 esac
13509 case $ac_abs_builddir in
13510 .) ac_abs_srcdir=$ac_srcdir;;
13512 case $ac_srcdir in
13513 .) ac_abs_srcdir=$ac_abs_builddir;;
13514 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13515 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13516 esac;;
13517 esac
13518 case $ac_abs_builddir in
13519 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13521 case $ac_top_srcdir in
13522 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13523 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13524 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13525 esac;;
13526 esac
13529 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13530 echo "$as_me: executing $ac_dest commands" >&6;}
13531 case $ac_dest in
13532 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13533 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
13534 esac
13535 done
13536 _ACEOF
13538 cat >>$CONFIG_STATUS <<\_ACEOF
13540 { (exit 0); exit 0; }
13541 _ACEOF
13542 chmod +x $CONFIG_STATUS
13543 ac_clean_files=$ac_clean_files_save
13546 # configure is writing to config.log, and then calls config.status.
13547 # config.status does its own redirection, appending to config.log.
13548 # Unfortunately, on DOS this fails, as config.log is still kept open
13549 # by configure, so config.status won't be able to write to it; its
13550 # output is simply discarded. So we exec the FD to /dev/null,
13551 # effectively closing config.log, so it can be properly (re)opened and
13552 # appended to by config.status. When coming back to configure, we
13553 # need to make the FD available again.
13554 if test "$no_create" != yes; then
13555 ac_cs_success=:
13556 ac_config_status_args=
13557 test "$silent" = yes &&
13558 ac_config_status_args="$ac_config_status_args --quiet"
13559 exec 5>/dev/null
13560 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13561 exec 5>>config.log
13562 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13563 # would make configure fail if this is the last instruction.
13564 $ac_cs_success || { (exit 1); exit 1; }