* elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
[deliverable/binutils-gdb.git] / bfd / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="libbfd.c"
275# Factoring default headers for most tests.
276ac_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"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical 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'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
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.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
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
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
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 ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
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 ;;
394
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" ;;
403
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'" ;;
416
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 ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
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 ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
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 ;;
491
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 ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
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 ;;
546
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 ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
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'" ;;
598
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" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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 ;;
618
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 ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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 ;;
640
641 *)
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}
647 ;;
648
649 esac
650done
651
652if 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; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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
679done
680
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if 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 ||
715echo 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=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if 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; }; }
735 fi
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if 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.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
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 \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation 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]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine 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
831
832 cat <<\_ACEOF
833
834Program 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
838
839System 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
844fi
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings Enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-included-gettext use the GNU gettext library included here
877
878Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
886
887Use these variables to override the choices made by `configure' or to help
888it to find libraries and programs with nonstandard names/locations.
889
890_ACEOF
891fi
892
893if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
899
900if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904else
905 ac_dir_suffix= ac_top_builddir=
906fi
907
908case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922esac
923
924# Do not use `cd foo && pwd` to compute absolute paths, because
925# the directories may not exist.
926case `pwd` in
927.) ac_abs_builddir="$ac_dir";;
928*)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_builddir=${ac_top_builddir}.;;
937*)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_srcdir=$ac_srcdir;;
946*)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_srcdir=$ac_top_srcdir;;
955*)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961esac
962
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 fi
978 cd $ac_popdir
979 done
980fi
981
982test -n "$ac_init_help" && exit 0
983if $ac_init_version; then
984 cat <<\_ACEOF
985
986Copyright (C) 2003 Free Software Foundation, Inc.
987This configure script is free software; the Free Software Foundation
988gives unlimited permission to copy, distribute and modify it.
989_ACEOF
990 exit 0
991fi
992exec 5>config.log
993cat >&5 <<_ACEOF
994This file contains any messages produced by compilers while
995running configure, to aid debugging if configure makes a mistake.
996
997It was created by $as_me, which was
998generated by GNU Autoconf 2.59. Invocation command line was
999
1000 $ $0 $@
1001
1002_ACEOF
1003{
1004cat <<_ASUNAME
1005## --------- ##
1006## Platform. ##
1007## --------- ##
1008
1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026_ASUNAME
1027
1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029for as_dir in $PATH
1030do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034done
1035
1036} >&5
1037
1038cat >&5 <<_ACEOF
1039
1040
1041## ----------- ##
1042## Core tests. ##
1043## ----------- ##
1044
1045_ACEOF
1046
1047
1048# Keep a trace of the command line.
1049# Strip out --no-create and --no-recursion so they do not pile up.
1050# Strip out --silent because we don't want to record it for future runs.
1051# Also quote any args containing shell meta-characters.
1052# Make two passes to allow for proper duplicate-argument suppression.
1053ac_configure_args=
1054ac_configure_args0=
1055ac_configure_args1=
1056ac_sep=
1057ac_must_keep_next=false
1058for ac_pass in 1 2
1059do
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
1095done
1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099# When interrupted or exit'd, cleanup temporary files, and complete
1100# config.log. We remove comments because anyway the quotes in there
1101# would cause problems or look ugly.
1102# WARNING: Be sure not to use single quotes in there, as some shells,
1103# such as our DU 5.0 friend, will then `close' the trap.
1104trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
1108
1109 cat <<\_ASBOX
1110## ---------------- ##
1111## Cache variables. ##
1112## ---------------- ##
1113_ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116{
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 ;;
1124 *)
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ;;
1128 esac;
1129}
1130 echo
1131
1132 cat <<\_ASBOX
1133## ----------------- ##
1134## Output variables. ##
1135## ----------------- ##
1136_ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147## ------------- ##
1148## Output files. ##
1149## ------------- ##
1150_ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158 fi
1159
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162## ----------- ##
1163## confdefs.h. ##
1164## ----------- ##
1165_ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180done
1181ac_signal=0
1182
1183# confdefs.h avoids OS command line length limits that DEFS can exceed.
1184rm -rf conftest* confdefs.h
1185# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186echo >confdefs.h
1187
1188# Predefined preprocessor variables.
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_NAME "$PACKAGE_NAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_VERSION "$PACKAGE_VERSION"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_STRING "$PACKAGE_STRING"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212_ACEOF
1213
1214
1215# Let the site file select an alternate cache file if it wants to.
1216# Prefer explicitly selected file to automatically selected ones.
1217if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223fi
1224for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1230 fi
1231done
1232
1233if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
1244else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248fi
1249
1250# Check that the precious variables saved in the cache have kept the same
1251# value.
1252ac_cache_corrupted=false
1253for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292done
1293if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1299fi
1300
1301ac_ext=c
1302ac_cpp='$CPP $CPPFLAGS'
1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327ac_aux_dir=
1328for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1341 fi
1342done
1343if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1347fi
1348ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352# Make sure we can run config.sub.
1353$ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1357
1358echo "$as_me:$LINENO: checking build system type" >&5
1359echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362else
1363 ac_cv_build_alias=$build_alias
1364test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375fi
1376echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377echo "${ECHO_T}$ac_cv_build" >&6
1378build=$ac_cv_build
1379build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384echo "$as_me:$LINENO: checking host system type" >&5
1385echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 ac_cv_host_alias=$host_alias
1390test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1396
1397fi
1398echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399echo "${ECHO_T}$ac_cv_host" >&6
1400host=$ac_cv_host
1401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406echo "$as_me:$LINENO: checking target system type" >&5
1407echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411 ac_cv_target_alias=$target_alias
1412test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421echo "${ECHO_T}$ac_cv_target" >&6
1422target=$ac_cv_target
1423target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428# The aliases save the names the user supplied, while $host etc.
1429# will get canonicalized.
1430test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434ac_ext=c
1435ac_cpp='$CPP $CPPFLAGS'
1436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442echo "$as_me:$LINENO: checking for $ac_word" >&5
1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449else
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
1462done
1463
1464fi
1465fi
1466CC=$ac_cv_prog_CC
1467if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469echo "${ECHO_T}$CC" >&6
1470else
1471 echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475fi
1476if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479set dummy gcc; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487else
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
1502fi
1503fi
1504ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507echo "${ECHO_T}$ac_ct_CC" >&6
1508else
1509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513 CC=$ac_ct_CC
1514else
1515 CC="$ac_cv_prog_CC"
1516fi
1517
1518if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521set dummy ${ac_tool_prefix}cc; ac_word=$2
1522echo "$as_me:$LINENO: checking for $ac_word" >&5
1523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529else
1530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531for as_dir in $PATH
1532do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
1542done
1543
1544fi
1545fi
1546CC=$ac_cv_prog_CC
1547if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549echo "${ECHO_T}$CC" >&6
1550else
1551 echo "$as_me:$LINENO: result: no" >&5
1552echo "${ECHO_T}no" >&6
1553fi
1554
1555fi
1556if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559set dummy cc; ac_word=$2
1560echo "$as_me:$LINENO: checking for $ac_word" >&5
1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567else
1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582fi
1583fi
1584ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587echo "${ECHO_T}$ac_ct_CC" >&6
1588else
1589 echo "$as_me:$LINENO: result: no" >&5
1590echo "${ECHO_T}no" >&6
1591fi
1592
1593 CC=$ac_ct_CC
1594else
1595 CC="$ac_cv_prog_CC"
1596fi
1597
1598fi
1599if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601set dummy cc; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609else
1610 ac_prog_rejected=no
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1621 fi
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
1627done
1628
1629if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 fi
1640fi
1641fi
1642fi
1643CC=$ac_cv_prog_CC
1644if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
1647else
1648 echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
1650fi
1651
1652fi
1653if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1656 do
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
1679done
1680
1681fi
1682fi
1683CC=$ac_cv_prog_CC
1684if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686echo "${ECHO_T}$CC" >&6
1687else
1688 echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692 test -n "$CC" && break
1693 done
1694fi
1695if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1698do
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700set dummy $ac_prog; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
1721done
1722
1723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734 test -n "$ac_ct_CC" && break
1735done
1736
1737 CC=$ac_ct_CC
1738fi
1739
1740fi
1741
1742
1743test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&5
1745echo "$as_me: error: no acceptable C compiler found in \$PATH
1746See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1748
1749# Provide some information about the compiler.
1750echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752ac_compiler=`set X $ac_compile; echo $2`
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768
1769cat >conftest.$ac_ext <<_ACEOF
1770/* confdefs.h. */
1771_ACEOF
1772cat confdefs.h >>conftest.$ac_ext
1773cat >>conftest.$ac_ext <<_ACEOF
1774/* end confdefs.h. */
1775
1776int
1777main ()
1778{
1779
1780 ;
1781 return 0;
1782}
1783_ACEOF
1784ac_clean_files_save=$ac_clean_files
1785ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786# Try to create an executable without -o first, disregard a.out.
1787# It will help us diagnose broken compilers, and finding out an intuition
1788# of exeext.
1789echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799# resort.
1800
1801# Be careful to initialize this variable, since it used to be cached.
1802# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803ac_cv_exeext=
1804# b.out is created by i960 compilers.
1805for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806do
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 ;;
1811 conftest.$ac_ext )
1812 # This is the source file.
1813 ;;
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1825 * )
1826 break;;
1827 esac
1828done
1829else
1830 echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834See \`config.log' for more details." >&5
1835echo "$as_me: error: C compiler cannot create executables
1836See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1838fi
1839
1840ac_exeext=$ac_cv_exeext
1841echo "$as_me:$LINENO: result: $ac_file" >&5
1842echo "${ECHO_T}$ac_file" >&6
1843
1844# Check the compiler produces executables we can run. If not, either
1845# the compiler is broken, or we cross compile.
1846echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849# If not cross compiling, check that we can run a simple program.
1850if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863If you meant to cross compile, use \`--host'.
1864See \`config.log' for more details." >&5
1865echo "$as_me: error: cannot run C compiled programs.
1866If you meant to cross compile, use \`--host'.
1867See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1869 fi
1870 fi
1871fi
1872echo "$as_me:$LINENO: result: yes" >&5
1873echo "${ECHO_T}yes" >&6
1874
1875rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876ac_clean_files=$ac_clean_files_save
1877# Check the compiler produces executables we can run. If not, either
1878# the compiler is broken, or we cross compile.
1879echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882echo "${ECHO_T}$cross_compiling" >&6
1883
1884echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893# work properly (i.e., refer to `conftest.exe'), while it won't with
1894# `rm'.
1895for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904done
1905else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest$ac_cv_exeext
1914echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915echo "${ECHO_T}$ac_cv_exeext" >&6
1916
1917rm -f conftest.$ac_ext
1918EXEEXT=$ac_cv_exeext
1919ac_exeext=$EXEEXT
1920echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 cat >conftest.$ac_ext <<_ACEOF
1926/* confdefs.h. */
1927_ACEOF
1928cat confdefs.h >>conftest.$ac_ext
1929cat >>conftest.$ac_ext <<_ACEOF
1930/* end confdefs.h. */
1931
1932int
1933main ()
1934{
1935
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940rm -f conftest.o conftest.obj
1941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952done
1953else
1954 echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&5
1959echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1962fi
1963
1964rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965fi
1966echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967echo "${ECHO_T}$ac_cv_objext" >&6
1968OBJEXT=$ac_cv_objext
1969ac_objext=$OBJEXT
1970echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 cat >conftest.$ac_ext <<_ACEOF
1976/* confdefs.h. */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h. */
1981
1982int
1983main ()
1984{
1985#ifndef __GNUC__
1986 choke me
1987#endif
1988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993rm -f conftest.$ac_objext
1994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 ac_compiler_gnu=yes
2016else
2017 echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020ac_compiler_gnu=no
2021fi
2022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024
2025fi
2026echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028GCC=`test $ac_compiler_gnu = yes && echo yes`
2029ac_test_CFLAGS=${CFLAGS+set}
2030ac_save_CFLAGS=$CFLAGS
2031CFLAGS="-g"
2032echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 cat >conftest.$ac_ext <<_ACEOF
2038/* confdefs.h. */
2039_ACEOF
2040cat confdefs.h >>conftest.$ac_ext
2041cat >>conftest.$ac_ext <<_ACEOF
2042/* end confdefs.h. */
2043
2044int
2045main ()
2046{
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052rm -f conftest.$ac_objext
2053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075else
2076 echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079ac_cv_prog_cc_g=no
2080fi
2081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082fi
2083echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2092 fi
2093else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2098 fi
2099fi
2100echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 ac_cv_prog_cc_stdc=no
2106ac_save_CC=$CC
2107cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h. */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h. */
2113#include <stdarg.h>
2114#include <stdio.h>
2115#include <sys/types.h>
2116#include <sys/stat.h>
2117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118struct buf { int x; };
2119FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120static char *e (p, i)
2121 char **p;
2122 int i;
2123{
2124 return p[i];
2125}
2126static char *f (char * (*g) (char **, int), char **p, ...)
2127{
2128 char *s;
2129 va_list v;
2130 va_start (v,p);
2131 s = g (p, va_arg (v,int));
2132 va_end (v);
2133 return s;
2134}
2135
2136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144
2145int test (int i, double x);
2146struct s1 {int (*f) (int a);};
2147struct s2 {int (*f) (double a);};
2148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149int argc;
2150char **argv;
2151int
2152main ()
2153{
2154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159# Don't try gcc -ansi; that turns off useful extensions and
2160# breaks some systems' header files.
2161# AIX -qlanglvl=ansi
2162# Ultrix and OSF/1 -std1
2163# HP-UX 10.20 and later -Ae
2164# HP-UX older versions -Aa -D_HPUX_SOURCE
2165# SVR4 -Xc -D__EXTENSIONS__
2166for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167do
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2192break
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197fi
2198rm -f conftest.err conftest.$ac_objext
2199done
2200rm -f conftest.$ac_ext conftest.$ac_objext
2201CC=$ac_save_CC
2202
2203fi
2204
2205case "x$ac_cv_prog_cc_stdc" in
2206 x|xno)
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208echo "${ECHO_T}none needed" >&6 ;;
2209 *)
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213esac
2214
2215# Some people use a C++ compiler to compile C. Since we use `exit',
2216# in C++ we need to declare it. In case someone uses the same compiler
2217# for both compiling C and C++ we need to have the C++ compiler decide
2218# the declaration of exit, since it's the most demanding environment.
2219cat >conftest.$ac_ext <<_ACEOF
2220#ifndef __cplusplus
2221 choke me
2222#endif
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2253do
2254 cat >conftest.$ac_ext <<_ACEOF
2255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
2260$ac_declaration
2261#include <stdlib.h>
2262int
2263main ()
2264{
2265exit (42);
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 :
2293else
2294 echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297continue
2298fi
2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h. */
2306$ac_declaration
2307int
2308main ()
2309{
2310exit (42);
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.$ac_objext
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 break
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342fi
2343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2344done
2345rm -f conftest*
2346if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2350fi
2351
2352else
2353 echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356fi
2357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
2365echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367if test "${ac_cv_search_strerror+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 ac_func_search_save_LIBS=$LIBS
2371ac_cv_search_strerror=no
2372cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378
2379/* Override any gcc2 internal prototype to avoid an error. */
2380#ifdef __cplusplus
2381extern "C"
2382#endif
2383/* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385char strerror ();
2386int
2387main ()
2388{
2389strerror ();
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394rm -f conftest.$ac_objext conftest$ac_exeext
2395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_search_strerror="none required"
2417else
2418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421fi
2422rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
2433
2434/* Override any gcc2 internal prototype to avoid an error. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438/* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2440char strerror ();
2441int
2442main ()
2443{
2444strerror ();
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext conftest$ac_exeext
2450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2472break
2473else
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477fi
2478rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2480 done
2481fi
2482LIBS=$ac_func_search_save_LIBS
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488
2489fi
2490
2491
2492am__api_version="1.9"
2493# Find a good install program. We prefer a C program (faster),
2494# so one script is as good as another. But avoid the broken or
2495# incompatible versions:
2496# SysV /etc/install, /usr/sbin/install
2497# SunOS /usr/etc/install
2498# IRIX /sbin/install
2499# AIX /bin/install
2500# AmigaOS /C/install, which installs bootblocks on floppy discs
2501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504# OS/2's system install, which has a completely different semantic
2505# ./install, which can be erroneously created by make from ./install.sh.
2506echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2508if test -z "$INSTALL"; then
2509if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518case $as_dir/ in
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2533 :
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
2538 else
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
2541 fi
2542 fi
2543 done
2544 done
2545 ;;
2546esac
2547done
2548
2549
2550fi
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL=$ac_cv_path_install
2553 else
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
2558 INSTALL=$ac_install_sh
2559 fi
2560fi
2561echo "$as_me:$LINENO: result: $INSTALL" >&5
2562echo "${ECHO_T}$INSTALL" >&6
2563
2564# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565# It thinks the first close brace ends the variable substitution.
2566test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567
2568test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569
2570test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571
2572echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2574# Just in case
2575sleep 1
2576echo timestamp > conftest.file
2577# Do `set' in a subshell so we don't clobber the current shell's
2578# arguments. Must try -L first in case configure is actually a
2579# symlink; some systems play weird games with the mod time of symlinks
2580# (eg FreeBSD returns the mod time of the symlink's containing
2581# directory).
2582if (
2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t $srcdir/configure conftest.file`
2587 fi
2588 rm -f conftest.file
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2591
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597alias in your environment" >&5
2598echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
2601 fi
2602
2603 test "$2" = conftest.file
2604 )
2605then
2606 # Ok.
2607 :
2608else
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610Check your system clock" >&5
2611echo "$as_me: error: newly created file is older than distributed files!
2612Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
2614fi
2615echo "$as_me:$LINENO: result: yes" >&5
2616echo "${ECHO_T}yes" >&6
2617test "$program_prefix" != NONE &&
2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2619# Use a double $ so make ignores it.
2620test "$program_suffix" != NONE &&
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622# Double any \ or $. echo might interpret backslashes.
2623# By default was `s,x,x', remove it if useless.
2624cat <<\_ACEOF >conftest.sed
2625s/[\\$]/&&/g;s/;s,x,x,$//
2626_ACEOF
2627program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628rm conftest.sed
2629
2630# expand $ac_aux_dir to an absolute path
2631am_aux_dir=`cd $ac_aux_dir && pwd`
2632
2633test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634# Use eval to expand $SHELL
2635if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2637else
2638 am_missing_run=
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641fi
2642
2643if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2648 # for two reasons:
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2659else
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2663 # exists.
2664 for d in ./-p ./--version;
2665 do
2666 test -d $d && rmdir $d
2667 done
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2671 else
2672 mkdir_p='$(install_sh) -d'
2673 fi
2674fi
2675
2676for ac_prog in gawk mawk nawk awk
2677do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679set dummy $ac_prog; ac_word=$2
2680echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700done
2701
2702fi
2703fi
2704AWK=$ac_cv_prog_AWK
2705if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707echo "${ECHO_T}$AWK" >&6
2708else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711fi
2712
2713 test -n "$AWK" && break
2714done
2715
2716echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 cat >conftest.make <<\_ACEOF
2723all:
2724 @echo 'ac_maketemp="$(MAKE)"'
2725_ACEOF
2726# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2730else
2731 eval ac_cv_prog_make_${ac_make}_set=no
2732fi
2733rm -f conftest.make
2734fi
2735if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737echo "${ECHO_T}yes" >&6
2738 SET_MAKE=
2739else
2740 echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
2742 SET_MAKE="MAKE=${MAKE-make}"
2743fi
2744
2745rm -rf .tst 2>/dev/null
2746mkdir .tst 2>/dev/null
2747if test -d .tst; then
2748 am__leading_dot=.
2749else
2750 am__leading_dot=_
2751fi
2752rmdir .tst 2>/dev/null
2753
2754DEPDIR="${am__leading_dot}deps"
2755
2756 ac_config_commands="$ac_config_commands depfiles"
2757
2758
2759am_make=${MAKE-make}
2760cat > confinc << 'END'
2761am__doit:
2762 @echo done
2763.PHONY: am__doit
2764END
2765# If we don't find an include directive, just comment out the code.
2766echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768am__include="#"
2769am__quote=
2770_am_result=none
2771# First try GNU make style include.
2772echo "include confinc" > confmf
2773# We grep out `Entering directory' and `Leaving directory'
2774# messages which can occur if `w' ends up in MAKEFLAGS.
2775# In particular we don't look at `^make:' because GNU make might
2776# be invoked under some other name (usually "gmake"), in which
2777# case it prints its new name instead of `make'.
2778if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779 am__include=include
2780 am__quote=
2781 _am_result=GNU
2782fi
2783# Now try BSD make style include.
2784if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2788 am__quote="\""
2789 _am_result=BSD
2790 fi
2791fi
2792
2793
2794echo "$as_me:$LINENO: result: $_am_result" >&5
2795echo "${ECHO_T}$_am_result" >&6
2796rm -f confinc confmf
2797
2798# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2801
2802fi;
2803if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2805 AMDEPBACKSLASH='\'
2806fi
2807
2808
2809if test "x$enable_dependency_tracking" != xno; then
2810 AMDEP_TRUE=
2811 AMDEP_FALSE='#'
2812else
2813 AMDEP_TRUE='#'
2814 AMDEP_FALSE=
2815fi
2816
2817
2818
2819# test to see if srcdir already configured
2820if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
2825fi
2826
2827# test whether we have cygpath
2828if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2833 fi
2834fi
2835
2836
2837# Define the identity of the package.
2838 PACKAGE=bfd
2839 VERSION=2.16.91
2840
2841
2842cat >>confdefs.h <<_ACEOF
2843#define PACKAGE "$PACKAGE"
2844_ACEOF
2845
2846
2847cat >>confdefs.h <<_ACEOF
2848#define VERSION "$VERSION"
2849_ACEOF
2850
2851# Some tools Automake needs.
2852
2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866
2867install_sh=${install_sh-"$am_aux_dir/install-sh"}
2868
2869# Installed binaries are usually stripped using `strip' when the user
2870# run `make install-strip'. However `strip' might not be the right
2871# tool to use in cross-compilation environments, therefore Automake
2872# will honor the `STRIP' environment variable to overrule this program.
2873if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}strip; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901STRIP=$ac_cv_prog_STRIP
2902if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904echo "${ECHO_T}$STRIP" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910fi
2911if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914set dummy strip; ac_word=$2
2915echo "$as_me:$LINENO: checking for $ac_word" >&5
2916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934done
2935done
2936
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2938fi
2939fi
2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943echo "${ECHO_T}$ac_ct_STRIP" >&6
2944else
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
2947fi
2948
2949 STRIP=$ac_ct_STRIP
2950else
2951 STRIP="$ac_cv_prog_STRIP"
2952fi
2953
2954fi
2955INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956
2957# We need awk for the "check" target. The system "awk" is bad on
2958# some platforms.
2959# Always define AMTAR for backward compatibility.
2960
2961AMTAR=${AMTAR-"${am_missing_run}tar"}
2962
2963am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964
2965
2966
2967
2968depcc="$CC" am_compiler_list=
2969
2970echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2980 # in D'.
2981 mkdir conftest.dir
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2985 cd conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2991 # directory.
2992 mkdir sub
2993
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 fi
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3002 #
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3006 : > sub/conftest.c
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3012 done
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014
3015 case $depmode in
3016 nosideeffect)
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3020 continue
3021 else
3022 break
3023 fi
3024 ;;
3025 none) break ;;
3026 esac
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3048 break
3049 fi
3050 fi
3051 done
3052
3053 cd ..
3054 rm -rf conftest.dir
3055else
3056 am_cv_CC_dependencies_compiler_type=none
3057fi
3058
3059fi
3060echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3063
3064
3065
3066if
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_TRUE=
3070 am__fastdepCC_FALSE='#'
3071else
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
3074fi
3075
3076
3077
3078
3079if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3081set dummy ${ac_tool_prefix}ar; ac_word=$2
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
3104fi
3105fi
3106AR=$ac_cv_prog_AR
3107if test -n "$AR"; then
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109echo "${ECHO_T}$AR" >&6
3110else
3111 echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
3115fi
3116if test -z "$ac_cv_prog_AR"; then
3117 ac_ct_AR=$AR
3118 # Extract the first word of "ar", so it can be a program name with args.
3119set dummy ar; ac_word=$2
3120echo "$as_me:$LINENO: checking for $ac_word" >&5
3121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140done
3141
3142fi
3143fi
3144ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147echo "${ECHO_T}$ac_ct_AR" >&6
3148else
3149 echo "$as_me:$LINENO: result: no" >&5
3150echo "${ECHO_T}no" >&6
3151fi
3152
3153 AR=$ac_ct_AR
3154else
3155 AR="$ac_cv_prog_AR"
3156fi
3157
3158if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3160set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181done
3182
3183fi
3184fi
3185RANLIB=$ac_cv_prog_RANLIB
3186if test -n "$RANLIB"; then
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188echo "${ECHO_T}$RANLIB" >&6
3189else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194fi
3195if test -z "$ac_cv_prog_RANLIB"; then
3196 ac_ct_RANLIB=$RANLIB
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198set dummy ranlib; ac_word=$2
3199echo "$as_me:$LINENO: checking for $ac_word" >&5
3200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203else
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218done
3219done
3220
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3222fi
3223fi
3224ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227echo "${ECHO_T}$ac_ct_RANLIB" >&6
3228else
3229 echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
3231fi
3232
3233 RANLIB=$ac_ct_RANLIB
3234else
3235 RANLIB="$ac_cv_prog_RANLIB"
3236fi
3237
3238
3239# Check whether --enable-shared or --disable-shared was given.
3240if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
3243case $enableval in
3244yes) enable_shared=yes ;;
3245no) enable_shared=no ;;
3246*)
3247 enable_shared=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_shared=yes
3253 fi
3254 done
3255 IFS="$ac_save_ifs"
3256 ;;
3257esac
3258else
3259 enable_shared=no
3260fi;
3261
3262# Check whether --enable-static or --disable-static was given.
3263if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
3266case $enableval in
3267yes) enable_static=yes ;;
3268no) enable_static=no ;;
3269*)
3270 enable_static=no
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3276 fi
3277 done
3278 IFS="$ac_save_ifs"
3279 ;;
3280esac
3281else
3282 enable_static=yes
3283fi;
3284# Check whether --enable-fast-install or --disable-fast-install was given.
3285if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
3288case $enableval in
3289yes) enable_fast_install=yes ;;
3290no) enable_fast_install=no ;;
3291*)
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3298 fi
3299 done
3300 IFS="$ac_save_ifs"
3301 ;;
3302esac
3303else
3304 enable_fast_install=yes
3305fi;
3306
3307# Check whether --with-gnu-ld or --without-gnu-ld was given.
3308if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311else
3312 with_gnu_ld=no
3313fi;
3314ac_prog=ld
3315if test "$GCC" = yes; then
3316 # Check if gcc -print-prog-name=ld gives a path.
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 *)
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
3326 case $ac_prog in
3327 # Accept absolute paths.
3328 [\\/]* | [A-Za-z]:[\\/]*)
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3336 ;;
3337 "")
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3340 ;;
3341 *)
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3344 ;;
3345 esac
3346elif test "$with_gnu_ld" = yes; then
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349else
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3352fi
3353if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356 if test -z "$LD"; then
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3361 lt_cv_path_LD="$ac_dir/$ac_prog"
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3366 test "$with_gnu_ld" != no && break
3367 else
3368 test "$with_gnu_ld" != yes && break
3369 fi
3370 fi
3371 done
3372 IFS="$ac_save_ifs"
3373else
3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3375fi
3376fi
3377
3378LD="$lt_cv_path_LD"
3379if test -n "$LD"; then
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381echo "${ECHO_T}$LD" >&6
3382else
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385fi
3386test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3396 lt_cv_prog_gnu_ld=yes
3397else
3398 lt_cv_prog_gnu_ld=no
3399fi
3400fi
3401echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3403with_gnu_ld=$lt_cv_prog_gnu_ld
3404
3405
3406echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411 lt_cv_ld_reload_flag='-r'
3412fi
3413echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3415reload_flag=$lt_cv_ld_reload_flag
3416test -n "$reload_flag" && reload_flag=" $reload_flag"
3417
3418echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
3425 lt_cv_path_NM="$NM"
3426else
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3429 test -z "$ac_dir" && ac_dir=.
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3437 lt_cv_path_NM="$tmp_nm -B"
3438 break
3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -p"
3441 break
3442 else
3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3444 continue # so that we can try to find one that supports BSD flags
3445 fi
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3450fi
3451fi
3452
3453NM="$lt_cv_path_NM"
3454echo "$as_me:$LINENO: result: $NM" >&5
3455echo "${ECHO_T}$NM" >&6
3456
3457echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459LN_S=$as_ln_s
3460if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462echo "${ECHO_T}yes" >&6
3463else
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465echo "${ECHO_T}no, using $LN_S" >&6
3466fi
3467
3468echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
3474lt_cv_file_magic_test_file=
3475lt_cv_deplibs_check_method='unknown'
3476# Need to set the preceding variable on all platforms that support
3477# interlibrary dependencies.
3478# 'none' -- dependencies not supported.
3479# `unknown' -- same as none, but documents that we really don't know.
3480# 'pass_all' -- all dependencies passed with no checks.
3481# 'test_compile' -- check by making test program.
3482# 'file_magic [regex]' -- check by looking for files in library path
3483# which responds to the $file_magic_cmd with a given egrep regex.
3484# If you have `file' or equivalent on your system and you're not sure
3485# whether `pass_all' will *always* work, you probably want this one.
3486
3487case $host_os in
3488aix*)
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491
3492beos*)
3493 lt_cv_deplibs_check_method=pass_all
3494 ;;
3495
3496bsdi4*)
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3500 ;;
3501
3502cygwin* | mingw* |pw32*)
3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
3505 ;;
3506
3507darwin* | rhapsody*)
3508 # this will be overwritten by pass_all, but leave it in just in case
3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3510 lt_cv_file_magic_cmd='/usr/bin/file -L'
3511 case "$host_os" in
3512 rhapsody* | darwin1.012)
3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3514 ;;
3515 *) # Darwin 1.3 on
3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3517 ;;
3518 esac
3519 lt_cv_deplibs_check_method=pass_all
3520 ;;
3521
3522freebsd* | kfreebsd*-gnu)
3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3524 case $host_cpu in
3525 i*86 )
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531 ;;
3532 esac
3533 else
3534 lt_cv_deplibs_check_method=pass_all
3535 fi
3536 ;;
3537
3538gnu*)
3539 lt_cv_deplibs_check_method=pass_all
3540 ;;
3541
3542hpux10.20*|hpux11*)
3543 case $host_cpu in
3544 hppa*)
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546 lt_cv_file_magic_cmd=/usr/bin/file
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3548 ;;
3549 ia64*)
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3553 ;;
3554 esac
3555 ;;
3556
3557irix5* | irix6*)
3558 case $host_os in
3559 irix5*)
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3562 ;;
3563 *)
3564 case $LD in
3565 *-32|*"-32 ") libmagic=32-bit;;
3566 *-n32|*"-n32 ") libmagic=N32;;
3567 *-64|*"-64 ") libmagic=64-bit;;
3568 *) libmagic=never-match;;
3569 esac
3570 # this will be overridden with pass_all, but let us keep it just in case
3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3572 ;;
3573 esac
3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3575 lt_cv_deplibs_check_method=pass_all
3576 ;;
3577
3578# This must be Linux ELF.
3579linux-gnu*)
3580 lt_cv_deplibs_check_method=pass_all
3581 ;;
3582
3583netbsd* | knetbsd*-gnu)
3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3586 else
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3588 fi
3589 ;;
3590
3591newsos6)
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3595 ;;
3596
3597osf3* | osf4* | osf5*)
3598 # this will be overridden with pass_all, but let us keep it just in case
3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 lt_cv_deplibs_check_method=pass_all
3602 ;;
3603
3604sco3.2v5*)
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608solaris*)
3609 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_file_magic_test_file=/lib/libc.so
3611 ;;
3612
3613sysv5uw[78]* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
3617sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3618 case $host_vendor in
3619 ncr)
3620 lt_cv_deplibs_check_method=pass_all
3621 ;;
3622 motorola)
3623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3625 ;;
3626 esac
3627 ;;
3628esac
3629
3630fi
3631echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3632echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3633file_magic_cmd=$lt_cv_file_magic_cmd
3634deplibs_check_method=$lt_cv_deplibs_check_method
3635
3636
3637
3638
3639# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3640
3641# find the maximum length of command line arguments
3642echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3643echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3644if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 i=0
3648 teststring="ABCD"
3649
3650 case $build_os in
3651 msdosdjgpp*)
3652 # On DJGPP, this test can blow up pretty badly due to problems in libc
3653 # (any single argument exceeding 2000 bytes causes a buffer overrun
3654 # during glob expansion). Even if it were fixed, the result of this
3655 # check would be larger than it should be.
3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3657 ;;
3658
3659 cygwin* | mingw*)
3660 # On Win9x/ME, this test blows up -- it succeeds, but takes
3661 # about 5 minutes as the teststring grows exponentially.
3662 # Worse, since 9x/ME are not pre-emptively multitasking,
3663 # you end up with a "frozen" computer, even though with patience
3664 # the test eventually succeeds (with a max line length of 256k).
3665 # Instead, let's just punt: use the minimum linelength reported by
3666 # all of the supported platforms: 8192 (on NT/2K/XP).
3667 lt_cv_sys_max_cmd_len=8192;
3668 ;;
3669
3670 amigaos*)
3671 # On AmigaOS with pdksh, this test takes hours, literally.
3672 # So we just punt and use a minimum line length of 8192.
3673 lt_cv_sys_max_cmd_len=8192;
3674 ;;
3675
3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3677 # This has been around since 386BSD, at least. Likely further.
3678 if test -x /sbin/sysctl; then
3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3680 elif test -x /usr/sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3682 else
3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3684 fi
3685 # And add a safety zone
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3688 ;;
3689 esac
3690
3691fi
3692
3693if test -n "$lt_cv_sys_max_cmd_len" ; then
3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3695echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3696else
3697 echo "$as_me:$LINENO: result: none" >&5
3698echo "${ECHO_T}none" >&6
3699fi
3700
3701
3702# Only perform the check for file, if the check method requires it
3703case $deplibs_check_method in
3704file_magic*)
3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3707echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 case $MAGIC_CMD in
3712 /*)
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3714 ;;
3715 ?:/*)
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3717 ;;
3718 *)
3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/${ac_tool_prefix}file; then
3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3726 if test -n "$file_magic_test_file"; then
3727 case $deplibs_check_method in
3728 "file_magic "*)
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3733 :
3734 else
3735 cat <<EOF 1>&2
3736
3737*** Warning: the command libtool uses to detect shared libraries,
3738*** $file_magic_cmd, produces output that libtool cannot recognize.
3739*** The result is that libtool may fail to recognize shared libraries
3740*** as such. This will affect the creation of libtool libraries that
3741*** depend on shared libraries, but programs linked with such libtool
3742*** libraries will work regardless of this problem. Nevertheless, you
3743*** may want to report the problem to your system manager and/or to
3744*** bug-libtool@gnu.org
3745
3746EOF
3747 fi ;;
3748 esac
3749 fi
3750 break
3751 fi
3752 done
3753 IFS="$ac_save_ifs"
3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
3755 ;;
3756esac
3757fi
3758
3759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760if test -n "$MAGIC_CMD"; then
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762echo "${ECHO_T}$MAGIC_CMD" >&6
3763else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766fi
3767
3768if test -z "$lt_cv_path_MAGIC_CMD"; then
3769 if test -n "$ac_tool_prefix"; then
3770 echo "$as_me:$LINENO: checking for file" >&5
3771echo $ECHO_N "checking for file... $ECHO_C" >&6
3772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 case $MAGIC_CMD in
3776 /*)
3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3778 ;;
3779 ?:/*)
3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3781 ;;
3782 *)
3783 ac_save_MAGIC_CMD="$MAGIC_CMD"
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 ac_dummy="/usr/bin:$PATH"
3786 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/file; then
3789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3790 if test -n "$file_magic_test_file"; then
3791 case $deplibs_check_method in
3792 "file_magic "*)
3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3796 egrep "$file_magic_regex" > /dev/null; then
3797 :
3798 else
3799 cat <<EOF 1>&2
3800
3801*** Warning: the command libtool uses to detect shared libraries,
3802*** $file_magic_cmd, produces output that libtool cannot recognize.
3803*** The result is that libtool may fail to recognize shared libraries
3804*** as such. This will affect the creation of libtool libraries that
3805*** depend on shared libraries, but programs linked with such libtool
3806*** libraries will work regardless of this problem. Nevertheless, you
3807*** may want to report the problem to your system manager and/or to
3808*** bug-libtool@gnu.org
3809
3810EOF
3811 fi ;;
3812 esac
3813 fi
3814 break
3815 fi
3816 done
3817 IFS="$ac_save_ifs"
3818 MAGIC_CMD="$ac_save_MAGIC_CMD"
3819 ;;
3820esac
3821fi
3822
3823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824if test -n "$MAGIC_CMD"; then
3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3826echo "${ECHO_T}$MAGIC_CMD" >&6
3827else
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
3830fi
3831
3832 else
3833 MAGIC_CMD=:
3834 fi
3835fi
3836
3837 fi
3838 ;;
3839esac
3840
3841if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864done
3865
3866fi
3867fi
3868RANLIB=$ac_cv_prog_RANLIB
3869if test -n "$RANLIB"; then
3870 echo "$as_me:$LINENO: result: $RANLIB" >&5
3871echo "${ECHO_T}$RANLIB" >&6
3872else
3873 echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
3875fi
3876
3877fi
3878if test -z "$ac_cv_prog_RANLIB"; then
3879 ac_ct_RANLIB=$RANLIB
3880 # Extract the first word of "ranlib", so it can be a program name with args.
3881set dummy ranlib; ac_word=$2
3882echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 if test -n "$ac_ct_RANLIB"; then
3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3889else
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_RANLIB="ranlib"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902done
3903
3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3905fi
3906fi
3907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3908if test -n "$ac_ct_RANLIB"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3910echo "${ECHO_T}$ac_ct_RANLIB" >&6
3911else
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
3914fi
3915
3916 RANLIB=$ac_ct_RANLIB
3917else
3918 RANLIB="$ac_cv_prog_RANLIB"
3919fi
3920
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3923set dummy ${ac_tool_prefix}strip; ac_word=$2
3924echo "$as_me:$LINENO: checking for $ac_word" >&5
3925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926if test "${ac_cv_prog_STRIP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944done
3945
3946fi
3947fi
3948STRIP=$ac_cv_prog_STRIP
3949if test -n "$STRIP"; then
3950 echo "$as_me:$LINENO: result: $STRIP" >&5
3951echo "${ECHO_T}$STRIP" >&6
3952else
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
3955fi
3956
3957fi
3958if test -z "$ac_cv_prog_STRIP"; then
3959 ac_ct_STRIP=$STRIP
3960 # Extract the first word of "strip", so it can be a program name with args.
3961set dummy strip; ac_word=$2
3962echo "$as_me:$LINENO: checking for $ac_word" >&5
3963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966else
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_STRIP="strip"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982done
3983
3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3985fi
3986fi
3987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988if test -n "$ac_ct_STRIP"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3990echo "${ECHO_T}$ac_ct_STRIP" >&6
3991else
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
3994fi
3995
3996 STRIP=$ac_ct_STRIP
3997else
3998 STRIP="$ac_cv_prog_STRIP"
3999fi
4000
4001
4002# Check for any special flags to pass to ltconfig.
4003libtool_flags="--cache-file=$cache_file"
4004test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4005test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4006test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4007test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4008test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4009
4010
4011# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4012if test "${enable_libtool_lock+set}" = set; then
4013 enableval="$enable_libtool_lock"
4014
4015fi;
4016test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4017test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4018
4019
4020# Check whether --with-pic or --without-pic was given.
4021if test "${with_pic+set}" = set; then
4022 withval="$with_pic"
4023 pic_mode="$withval"
4024else
4025 pic_mode=default
4026fi;
4027test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4028test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4029
4030# Some flags need to be propagated to the compiler or linker for good
4031# libtool support.
4032case $host in
4033*-*-irix6*)
4034 # Find out which ABI we are using.
4035 echo '#line 4035 "configure"' > conftest.$ac_ext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; then
4041 if test "$lt_cv_prog_gnu_ld" = yes; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4043 *32-bit*)
4044 LD="${LD-ld} -melf32bsmip"
4045 ;;
4046 *N32*)
4047 LD="${LD-ld} -melf32bmipn32"
4048 ;;
4049 *64-bit*)
4050 LD="${LD-ld} -melf64bmip"
4051 ;;
4052 esac
4053 else
4054 case `/usr/bin/file conftest.$ac_objext` in
4055 *32-bit*)
4056 LD="${LD-ld} -32"
4057 ;;
4058 *N32*)
4059 LD="${LD-ld} -n32"
4060 ;;
4061 *64-bit*)
4062 LD="${LD-ld} -64"
4063 ;;
4064 esac
4065 fi
4066 fi
4067 rm -rf conftest*
4068 ;;
4069
4070ia64-*-hpux*)
4071 # Find out which ABI we are using.
4072 echo 'int i;' > conftest.$ac_ext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; then
4078 case "`/usr/bin/file conftest.o`" in
4079 *ELF-32*)
4080 HPUX_IA64_MODE="32"
4081 ;;
4082 *ELF-64*)
4083 HPUX_IA64_MODE="64"
4084 ;;
4085 esac
4086 fi
4087 rm -rf conftest*
4088 ;;
4089
4090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_i386"
4103 ;;
4104 ppc64-*linux*|powerpc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4106 ;;
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4109 ;;
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4112 ;;
4113 esac
4114 ;;
4115 *64-bit*)
4116 case $host in
4117 x86_64-*linux*)
4118 LD="${LD-ld} -m elf_x86_64"
4119 ;;
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4122 ;;
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4125 ;;
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4128 ;;
4129 esac
4130 ;;
4131 esac
4132 fi
4133 rm -rf conftest*
4134 ;;
4135
4136*-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145
4146
4147 ac_ext=c
4148ac_cpp='$CPP $CPPFLAGS'
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153 cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
4159
4160int
4161main ()
4162{
4163
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168rm -f conftest.$ac_objext conftest$ac_exeext
4169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 lt_cv_cc_needs_belf=yes
4191else
4192 echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195lt_cv_cc_needs_belf=no
4196fi
4197rm -f conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 ac_ext=c
4200ac_cpp='$CPP $CPPFLAGS'
4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
4205fi
4206echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4207echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210 CFLAGS="$SAVE_CFLAGS"
4211 fi
4212 ;;
4213
4214
4215esac
4216
4217
4218# Save cache, so that ltconfig can load it
4219cat >confcache <<\_ACEOF
4220# This file is a shell script that caches the results of configure
4221# tests run on this system so they can be shared between configure
4222# scripts and configure runs, see configure's option --config-cache.
4223# It is not useful on other systems. If it contains results you don't
4224# want to keep, you may remove or edit it.
4225#
4226# config.status only pays attention to the cache file if you give it
4227# the --recheck option to rerun configure.
4228#
4229# `ac_cv_env_foo' variables (set or unset) will be overridden when
4230# loading this file, other *unset* `ac_cv_foo' will be assigned the
4231# following values.
4232
4233_ACEOF
4234
4235# The following way of writing the cache mishandles newlines in values,
4236# but we know of no workaround that is simple, portable, and efficient.
4237# So, don't put newlines in cache variables' values.
4238# Ultrix sh set writes to stderr and can't be redirected directly,
4239# and sets the high bit in the cache file unless we assign to the vars.
4240{
4241 (set) 2>&1 |
4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4243 *ac_space=\ *)
4244 # `set' does not quote correctly, so add quotes (double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \).
4246 sed -n \
4247 "s/'/'\\\\''/g;
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4249 ;;
4250 *)
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4252 sed -n \
4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4254 ;;
4255 esac;
4256} |
4257 sed '
4258 t clear
4259 : clear
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4261 t end
4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4263 : end' >>confcache
4264if diff $cache_file confcache >/dev/null 2>&1; then :; else
4265 if test -w $cache_file; then
4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4267 cat confcache >$cache_file
4268 else
4269 echo "not updating unwritable cache $cache_file"
4270 fi
4271fi
4272rm -f confcache
4273
4274# Actually configure libtool. ac_aux_dir is where install-sh is found.
4275AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4276MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4277LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4278AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4279objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4280deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4281${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4282$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4283|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4284echo "$as_me: error: libtool configure failed" >&2;}
4285 { (exit 1); exit 1; }; }
4286
4287# Reload cache, that may have been modified by ltconfig
4288if test -r "$cache_file"; then
4289 # Some versions of bash will fail to source /dev/null (special
4290 # files actually), so we avoid doing that.
4291 if test -f "$cache_file"; then
4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4293echo "$as_me: loading cache $cache_file" >&6;}
4294 case $cache_file in
4295 [\\/]* | ?:[\\/]* ) . $cache_file;;
4296 *) . ./$cache_file;;
4297 esac
4298 fi
4299else
4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4301echo "$as_me: creating cache $cache_file" >&6;}
4302 >$cache_file
4303fi
4304
4305
4306# This can be used to rebuild libtool when needed
4307LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4308
4309# Always use our own libtool.
4310LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4311
4312# Redirect the config.log output again, so that the ltconfig log is not
4313# clobbered by the next message.
4314exec 5>>./config.log
4315
4316
4317
4318
4319
4320
4321
4322# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4323if test "${enable_64_bit_bfd+set}" = set; then
4324 enableval="$enable_64_bit_bfd"
4325 case "${enableval}" in
4326 yes) want64=true ;;
4327 no) want64=false ;;
4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4329echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4330 { (exit 1); exit 1; }; } ;;
4331esac
4332else
4333 want64=false
4334fi; # Check whether --enable-targets or --disable-targets was given.
4335if test "${enable_targets+set}" = set; then
4336 enableval="$enable_targets"
4337 case "${enableval}" in
4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4339echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4340 { (exit 1); exit 1; }; }
4341 ;;
4342 no) enable_targets= ;;
4343 *) enable_targets=$enableval ;;
4344esac
4345fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4346if test "${enable_commonbfdlib+set}" = set; then
4347 enableval="$enable_commonbfdlib"
4348 case "${enableval}" in
4349 yes) commonbfdlib=true ;;
4350 no) commonbfdlib=false ;;
4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4352echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4353 { (exit 1); exit 1; }; } ;;
4354esac
4355fi;
4356# Check whether --with-mmap or --without-mmap was given.
4357if test "${with_mmap+set}" = set; then
4358 withval="$with_mmap"
4359 case "${withval}" in
4360 yes) want_mmap=true ;;
4361 no) want_mmap=false ;;
4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4363echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4364 { (exit 1); exit 1; }; } ;;
4365esac
4366else
4367 want_mmap=false
4368fi;
4369# Check whether --enable-secureplt or --disable-secureplt was given.
4370if test "${enable_secureplt+set}" = set; then
4371 enableval="$enable_secureplt"
4372 case "${enableval}" in
4373 yes) use_secureplt=true ;;
4374 no) use_secureplt=false ;;
4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4376echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4378esac
4379else
4380 use_secureplt=false
4381fi; if test $use_secureplt = true; then
4382
4383cat >>confdefs.h <<\_ACEOF
4384#define USE_SECUREPLT 1
4385_ACEOF
4386
4387fi
4388
4389
4390GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4391
4392# Check whether --enable-werror or --disable-werror was given.
4393if test "${enable_werror+set}" = set; then
4394 enableval="$enable_werror"
4395 case "${enableval}" in
4396 yes | y) ERROR_ON_WARNING="yes" ;;
4397 no | n) ERROR_ON_WARNING="no" ;;
4398 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4399echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4400 { (exit 1); exit 1; }; } ;;
4401 esac
4402fi;
4403
4404# Enable -Werror by default when using gcc
4405if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4406 ERROR_ON_WARNING=yes
4407fi
4408
4409NO_WERROR=
4410if test "${ERROR_ON_WARNING}" = yes ; then
4411 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4412 NO_WERROR="-Wno-error"
4413fi
4414
4415if test "${GCC}" = yes ; then
4416 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4417fi
4418
4419# Check whether --enable-build-warnings or --disable-build-warnings was given.
4420if test "${enable_build_warnings+set}" = set; then
4421 enableval="$enable_build_warnings"
4422 case "${enableval}" in
4423 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4424 no) if test "${GCC}" = yes ; then
4425 WARN_CFLAGS="-w"
4426 fi;;
4427 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4428 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4429 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4430 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4432esac
4433fi;
4434
4435if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4436 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4437fi
4438
4439
4440
4441
4442
4443 ac_config_headers="$ac_config_headers config.h:config.in"
4444
4445
4446if test -z "$target" ; then
4447 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4448echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4449 { (exit 1); exit 1; }; }
4450fi
4451
4452echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4453echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4454 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4455if test "${enable_maintainer_mode+set}" = set; then
4456 enableval="$enable_maintainer_mode"
4457 USE_MAINTAINER_MODE=$enableval
4458else
4459 USE_MAINTAINER_MODE=no
4460fi;
4461 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4462echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4463
4464
4465if test $USE_MAINTAINER_MODE = yes; then
4466 MAINTAINER_MODE_TRUE=
4467 MAINTAINER_MODE_FALSE='#'
4468else
4469 MAINTAINER_MODE_TRUE='#'
4470 MAINTAINER_MODE_FALSE=
4471fi
4472
4473 MAINT=$MAINTAINER_MODE_TRUE
4474
4475
4476 case ${build_alias} in
4477 "") build_noncanonical=${build} ;;
4478 *) build_noncanonical=${build_alias} ;;
4479esac
4480
4481 case ${host_alias} in
4482 "") host_noncanonical=${build_noncanonical} ;;
4483 *) host_noncanonical=${host_alias} ;;
4484esac
4485
4486 case ${target_alias} in
4487 "") target_noncanonical=${host_noncanonical} ;;
4488 *) target_noncanonical=${target_alias} ;;
4489esac
4490
4491echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4492echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4493 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4494if test "${enable_install_libbfd+set}" = set; then
4495 enableval="$enable_install_libbfd"
4496 install_libbfd_p=$enableval
4497else
4498 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4499 install_libbfd_p=yes
4500 else
4501 install_libbfd_p=no
4502 fi
4503fi;
4504 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4505echo "${ECHO_T}$install_libbfd_p" >&6
4506
4507
4508if test $install_libbfd_p = yes; then
4509 INSTALL_LIBBFD_TRUE=
4510 INSTALL_LIBBFD_FALSE='#'
4511else
4512 INSTALL_LIBBFD_TRUE='#'
4513 INSTALL_LIBBFD_FALSE=
4514fi
4515
4516 # Need _noncanonical variables for this.
4517
4518
4519
4520
4521 # libbfd.a is a host library containing target dependent code
4522 bfdlibdir='$(libdir)'
4523 bfdincludedir='$(includedir)'
4524 if test "${host}" != "${target}"; then
4525 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4526 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4527 fi
4528
4529
4530
4531
4532
4533
4534host64=false
4535target64=false
4536bfd_default_target_size=32
4537
4538# host stuff:
4539
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567done
4568done
4569
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
4574 echo "$as_me:$LINENO: result: $CC" >&5
4575echo "${ECHO_T}$CC" >&6
4576else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579fi
4580
4581fi
4582if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585set dummy gcc; ac_word=$2
4586echo "$as_me:$LINENO: checking for $ac_word" >&5
4587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593else
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605done
4606done
4607
4608fi
4609fi
4610ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611if test -n "$ac_ct_CC"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4613echo "${ECHO_T}$ac_ct_CC" >&6
4614else
4615 echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6
4617fi
4618
4619 CC=$ac_ct_CC
4620else
4621 CC="$ac_cv_prog_CC"
4622fi
4623
4624if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627set dummy ${ac_tool_prefix}cc; ac_word=$2
4628echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4646 fi
4647done
4648done
4649
4650fi
4651fi
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
4654 echo "$as_me:$LINENO: result: $CC" >&5
4655echo "${ECHO_T}$CC" >&6
4656else
4657 echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6
4659fi
4660
4661fi
4662if test -z "$ac_cv_prog_CC"; then
4663 ac_ct_CC=$CC
4664 # Extract the first word of "cc", so it can be a program name with args.
4665set dummy cc; ac_word=$2
4666echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685done
4686done
4687
4688fi
4689fi
4690ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691if test -n "$ac_ct_CC"; then
4692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4693echo "${ECHO_T}$ac_ct_CC" >&6
4694else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697fi
4698
4699 CC=$ac_ct_CC
4700else
4701 CC="$ac_cv_prog_CC"
4702fi
4703
4704fi
4705if test -z "$CC"; then
4706 # Extract the first word of "cc", so it can be a program name with args.
4707set dummy cc; ac_word=$2
4708echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715else
4716 ac_prog_rejected=no
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725 ac_prog_rejected=yes
4726 continue
4727 fi
4728 ac_cv_prog_CC="cc"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732done
4733done
4734
4735if test $ac_prog_rejected = yes; then
4736 # We found a bogon in the path, so make sure we never use it.
4737 set dummy $ac_cv_prog_CC
4738 shift
4739 if test $# != 0; then
4740 # We chose a different compiler from the bogus one.
4741 # However, it has the same basename, so the bogon will be chosen
4742 # first if we set CC to just the basename; use the full file name.
4743 shift
4744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4745 fi
4746fi
4747fi
4748fi
4749CC=$ac_cv_prog_CC
4750if test -n "$CC"; then
4751 echo "$as_me:$LINENO: result: $CC" >&5
4752echo "${ECHO_T}$CC" >&6
4753else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756fi
4757
4758fi
4759if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4761 for ac_prog in cl
4762 do
4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4765echo "$as_me:$LINENO: checking for $ac_word" >&5
4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767if test "${ac_cv_prog_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784done
4785done
4786
4787fi
4788fi
4789CC=$ac_cv_prog_CC
4790if test -n "$CC"; then
4791 echo "$as_me:$LINENO: result: $CC" >&5
4792echo "${ECHO_T}$CC" >&6
4793else
4794 echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796fi
4797
4798 test -n "$CC" && break
4799 done
4800fi
4801if test -z "$CC"; then
4802 ac_ct_CC=$CC
4803 for ac_prog in cl
4804do
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806set dummy $ac_prog; ac_word=$2
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 if test -n "$ac_ct_CC"; then
4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_ac_ct_CC="$ac_prog"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827done
4828
4829fi
4830fi
4831ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832if test -n "$ac_ct_CC"; then
4833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4834echo "${ECHO_T}$ac_ct_CC" >&6
4835else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838fi
4839
4840 test -n "$ac_ct_CC" && break
4841done
4842
4843 CC=$ac_ct_CC
4844fi
4845
4846fi
4847
4848
4849test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4850See \`config.log' for more details." >&5
4851echo "$as_me: error: no acceptable C compiler found in \$PATH
4852See \`config.log' for more details." >&2;}
4853 { (exit 1); exit 1; }; }
4854
4855# Provide some information about the compiler.
4856echo "$as_me:$LINENO:" \
4857 "checking for C compiler version" >&5
4858ac_compiler=`set X $ac_compile; echo $2`
4859{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4860 (eval $ac_compiler --version </dev/null >&5) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }
4864{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4865 (eval $ac_compiler -v </dev/null >&5) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }
4869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4870 (eval $ac_compiler -V </dev/null >&5) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }
4874
4875echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4876echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4877if test "${ac_cv_c_compiler_gnu+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880 cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h. */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h. */
4886
4887int
4888main ()
4889{
4890#ifndef __GNUC__
4891 choke me
4892#endif
4893
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898rm -f conftest.$ac_objext
4899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_compiler_gnu=yes
4921else
4922 echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925ac_compiler_gnu=no
4926fi
4927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928ac_cv_c_compiler_gnu=$ac_compiler_gnu
4929
4930fi
4931echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4932echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4933GCC=`test $ac_compiler_gnu = yes && echo yes`
4934ac_test_CFLAGS=${CFLAGS+set}
4935ac_save_CFLAGS=$CFLAGS
4936CFLAGS="-g"
4937echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4938echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4939if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
4942 cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h. */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h. */
4948
4949int
4950main ()
4951{
4952
4953 ;
4954 return 0;
4955}
4956_ACEOF
4957rm -f conftest.$ac_objext
4958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_cv_prog_cc_g=yes
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984ac_cv_prog_cc_g=no
4985fi
4986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4990if test "$ac_test_CFLAGS" = set; then
4991 CFLAGS=$ac_save_CFLAGS
4992elif test $ac_cv_prog_cc_g = yes; then
4993 if test "$GCC" = yes; then
4994 CFLAGS="-g -O2"
4995 else
4996 CFLAGS="-g"
4997 fi
4998else
4999 if test "$GCC" = yes; then
5000 CFLAGS="-O2"
5001 else
5002 CFLAGS=
5003 fi
5004fi
5005echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5006echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5007if test "${ac_cv_prog_cc_stdc+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 ac_cv_prog_cc_stdc=no
5011ac_save_CC=$CC
5012cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <stdarg.h>
5019#include <stdio.h>
5020#include <sys/types.h>
5021#include <sys/stat.h>
5022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5023struct buf { int x; };
5024FILE * (*rcsopen) (struct buf *, struct stat *, int);
5025static char *e (p, i)
5026 char **p;
5027 int i;
5028{
5029 return p[i];
5030}
5031static char *f (char * (*g) (char **, int), char **p, ...)
5032{
5033 char *s;
5034 va_list v;
5035 va_start (v,p);
5036 s = g (p, va_arg (v,int));
5037 va_end (v);
5038 return s;
5039}
5040
5041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5042 function prototypes and stuff, but not '\xHH' hex character constants.
5043 These don't provoke an error unfortunately, instead are silently treated
5044 as 'x'. The following induces an error, until -std1 is added to get
5045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5046 array size at least. It's necessary to write '\x00'==0 to get something
5047 that's true only with -std1. */
5048int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5049
5050int test (int i, double x);
5051struct s1 {int (*f) (int a);};
5052struct s2 {int (*f) (double a);};
5053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5054int argc;
5055char **argv;
5056int
5057main ()
5058{
5059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064# Don't try gcc -ansi; that turns off useful extensions and
5065# breaks some systems' header files.
5066# AIX -qlanglvl=ansi
5067# Ultrix and OSF/1 -std1
5068# HP-UX 10.20 and later -Ae
5069# HP-UX older versions -Aa -D_HPUX_SOURCE
5070# SVR4 -Xc -D__EXTENSIONS__
5071for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5072do
5073 CC="$ac_save_CC $ac_arg"
5074 rm -f conftest.$ac_objext
5075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_prog_cc_stdc=$ac_arg
5097break
5098else
5099 echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102fi
5103rm -f conftest.err conftest.$ac_objext
5104done
5105rm -f conftest.$ac_ext conftest.$ac_objext
5106CC=$ac_save_CC
5107
5108fi
5109
5110case "x$ac_cv_prog_cc_stdc" in
5111 x|xno)
5112 echo "$as_me:$LINENO: result: none needed" >&5
5113echo "${ECHO_T}none needed" >&6 ;;
5114 *)
5115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5116echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5117 CC="$CC $ac_cv_prog_cc_stdc" ;;
5118esac
5119
5120# Some people use a C++ compiler to compile C. Since we use `exit',
5121# in C++ we need to declare it. In case someone uses the same compiler
5122# for both compiling C and C++ we need to have the C++ compiler decide
5123# the declaration of exit, since it's the most demanding environment.
5124cat >conftest.$ac_ext <<_ACEOF
5125#ifndef __cplusplus
5126 choke me
5127#endif
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 for ac_declaration in \
5152 '' \
5153 'extern "C" void std::exit (int) throw (); using std::exit;' \
5154 'extern "C" void std::exit (int); using std::exit;' \
5155 'extern "C" void exit (int) throw ();' \
5156 'extern "C" void exit (int);' \
5157 'void exit (int);'
5158do
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165$ac_declaration
5166#include <stdlib.h>
5167int
5168main ()
5169{
5170exit (42);
5171 ;
5172 return 0;
5173}
5174_ACEOF
5175rm -f conftest.$ac_objext
5176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -z "$ac_c_werror_flag"
5185 || test ! -s conftest.err'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 :
5198else
5199 echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202continue
5203fi
5204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
5211$ac_declaration
5212int
5213main ()
5214{
5215exit (42);
5216 ;
5217 return 0;
5218}
5219_ACEOF
5220rm -f conftest.$ac_objext
5221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 break
5243else
5244 echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247fi
5248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249done
5250rm -f conftest*
5251if test -n "$ac_declaration"; then
5252 echo '#ifdef __cplusplus' >>confdefs.h
5253 echo $ac_declaration >>confdefs.h
5254 echo '#endif' >>confdefs.h
5255fi
5256
5257else
5258 echo "$as_me: failed program was:" >&5
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
5261fi
5262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263ac_ext=c
5264ac_cpp='$CPP $CPPFLAGS'
5265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268
5269
5270cat >>confdefs.h <<\_ACEOF
5271#define _GNU_SOURCE 1
5272_ACEOF
5273
5274
5275
5276ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5277if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5279set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5280echo "$as_me:$LINENO: checking for $ac_word" >&5
5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282if test "${ac_cv_prog_RANLIB+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 if test -n "$RANLIB"; then
5286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300done
5301
5302fi
5303fi
5304RANLIB=$ac_cv_prog_RANLIB
5305if test -n "$RANLIB"; then
5306 echo "$as_me:$LINENO: result: $RANLIB" >&5
5307echo "${ECHO_T}$RANLIB" >&6
5308else
5309 echo "$as_me:$LINENO: result: no" >&5
5310echo "${ECHO_T}no" >&6
5311fi
5312
5313fi
5314if test -z "$ac_cv_prog_RANLIB"; then
5315 ac_ct_RANLIB=$RANLIB
5316 # Extract the first word of "ranlib", so it can be a program name with args.
5317set dummy ranlib; ac_word=$2
5318echo "$as_me:$LINENO: checking for $ac_word" >&5
5319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323 if test -n "$ac_ct_RANLIB"; then
5324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5325else
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_RANLIB="ranlib"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337done
5338done
5339
5340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5341fi
5342fi
5343ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5344if test -n "$ac_ct_RANLIB"; then
5345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5346echo "${ECHO_T}$ac_ct_RANLIB" >&6
5347else
5348 echo "$as_me:$LINENO: result: no" >&5
5349echo "${ECHO_T}no" >&6
5350fi
5351
5352 RANLIB=$ac_ct_RANLIB
5353else
5354 RANLIB="$ac_cv_prog_RANLIB"
5355fi
5356
5357ac_ext=c
5358ac_cpp='$CPP $CPPFLAGS'
5359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5363echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5364# On Suns, sometimes $CPP names a directory.
5365if test -n "$CPP" && test -d "$CPP"; then
5366 CPP=
5367fi
5368if test -z "$CPP"; then
5369 if test "${ac_cv_prog_CPP+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372 # Double quotes because CPP needs to be expanded
5373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5374 do
5375 ac_preproc_ok=false
5376for ac_c_preproc_warn_flag in '' yes
5377do
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390#ifdef __STDC__
5391# include <limits.h>
5392#else
5393# include <assert.h>
5394#endif
5395 Syntax error
5396_ACEOF
5397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408 else
5409 ac_cpp_err=
5410 fi
5411else
5412 ac_cpp_err=yes
5413fi
5414if test -z "$ac_cpp_err"; then
5415 :
5416else
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 # Broken: fails on valid input.
5421continue
5422fi
5423rm -f conftest.err conftest.$ac_ext
5424
5425 # OK, works on sane cases. Now check whether non-existent headers
5426 # can be detected and how.
5427 cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <ac_nonexistent.h>
5434_ACEOF
5435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5448 fi
5449else
5450 ac_cpp_err=yes
5451fi
5452if test -z "$ac_cpp_err"; then
5453 # Broken: success on invalid input.
5454continue
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 # Passes both tests.
5460ac_preproc_ok=:
5461break
5462fi
5463rm -f conftest.err conftest.$ac_ext
5464
5465done
5466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467rm -f conftest.err conftest.$ac_ext
5468if $ac_preproc_ok; then
5469 break
5470fi
5471
5472 done
5473 ac_cv_prog_CPP=$CPP
5474
5475fi
5476 CPP=$ac_cv_prog_CPP
5477else
5478 ac_cv_prog_CPP=$CPP
5479fi
5480echo "$as_me:$LINENO: result: $CPP" >&5
5481echo "${ECHO_T}$CPP" >&6
5482ac_preproc_ok=false
5483for ac_c_preproc_warn_flag in '' yes
5484do
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497#ifdef __STDC__
5498# include <limits.h>
5499#else
5500# include <assert.h>
5501#endif
5502 Syntax error
5503_ACEOF
5504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } >/dev/null; then
5512 if test -s conftest.err; then
5513 ac_cpp_err=$ac_c_preproc_warn_flag
5514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5515 else
5516 ac_cpp_err=
5517 fi
5518else
5519 ac_cpp_err=yes
5520fi
5521if test -z "$ac_cpp_err"; then
5522 :
5523else
5524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 # Broken: fails on valid input.
5528continue
5529fi
5530rm -f conftest.err conftest.$ac_ext
5531
5532 # OK, works on sane cases. Now check whether non-existent headers
5533 # can be detected and how.
5534 cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h. */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h. */
5540#include <ac_nonexistent.h>
5541_ACEOF
5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5553 else
5554 ac_cpp_err=
5555 fi
5556else
5557 ac_cpp_err=yes
5558fi
5559if test -z "$ac_cpp_err"; then
5560 # Broken: success on invalid input.
5561continue
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 # Passes both tests.
5567ac_preproc_ok=:
5568break
5569fi
5570rm -f conftest.err conftest.$ac_ext
5571
5572done
5573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574rm -f conftest.err conftest.$ac_ext
5575if $ac_preproc_ok; then
5576 :
5577else
5578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5579See \`config.log' for more details." >&5
5580echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5581See \`config.log' for more details." >&2;}
5582 { (exit 1); exit 1; }; }
5583fi
5584
5585ac_ext=c
5586ac_cpp='$CPP $CPPFLAGS'
5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
5591
5592echo "$as_me:$LINENO: checking for egrep" >&5
5593echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5594if test "${ac_cv_prog_egrep+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5598 then ac_cv_prog_egrep='grep -E'
5599 else ac_cv_prog_egrep='egrep'
5600 fi
5601fi
5602echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5603echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5604 EGREP=$ac_cv_prog_egrep
5605
5606
5607echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618#include <stdlib.h>
5619#include <stdarg.h>
5620#include <string.h>
5621#include <float.h>
5622
5623int
5624main ()
5625{
5626
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_header_stdc=yes
5654else
5655 echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658ac_cv_header_stdc=no
5659fi
5660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661
5662if test $ac_cv_header_stdc = yes; then
5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670#include <string.h>
5671
5672_ACEOF
5673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "memchr" >/dev/null 2>&1; then
5675 :
5676else
5677 ac_cv_header_stdc=no
5678fi
5679rm -f conftest*
5680
5681fi
5682
5683if test $ac_cv_header_stdc = yes; then
5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5685 cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h. */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h. */
5691#include <stdlib.h>
5692
5693_ACEOF
5694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "free" >/dev/null 2>&1; then
5696 :
5697else
5698 ac_cv_header_stdc=no
5699fi
5700rm -f conftest*
5701
5702fi
5703
5704if test $ac_cv_header_stdc = yes; then
5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5706 if test "$cross_compiling" = yes; then
5707 :
5708else
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715#include <ctype.h>
5716#if ((' ' & 0x0FF) == 0x020)
5717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719#else
5720# define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5725#endif
5726
5727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5728int
5729main ()
5730{
5731 int i;
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5735 exit(2);
5736 exit (0);
5737}
5738_ACEOF
5739rm -f conftest$ac_exeext
5740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 :
5751else
5752 echo "$as_me: program exited with status $ac_status" >&5
5753echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756( exit $ac_status )
5757ac_cv_header_stdc=no
5758fi
5759rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5760fi
5761fi
5762fi
5763echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764echo "${ECHO_T}$ac_cv_header_stdc" >&6
5765if test $ac_cv_header_stdc = yes; then
5766
5767cat >>confdefs.h <<\_ACEOF
5768#define STDC_HEADERS 1
5769_ACEOF
5770
5771fi
5772
5773echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5774echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5775if test "${ac_cv_c_const+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778 cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h. */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h. */
5784
5785int
5786main ()
5787{
5788/* FIXME: Include the comments suggested by Paul. */
5789#ifndef __cplusplus
5790 /* Ultrix mips cc rejects this. */
5791 typedef int charset[2];
5792 const charset x;
5793 /* SunOS 4.1.1 cc rejects this. */
5794 char const *const *ccp;
5795 char **p;
5796 /* NEC SVR4.0.2 mips cc rejects this. */
5797 struct point {int x, y;};
5798 static struct point const zero = {0,0};
5799 /* AIX XL C 1.02.0.0 rejects this.
5800 It does not let you subtract one const X* pointer from another in
5801 an arm of an if-expression whose if-part is not a constant
5802 expression */
5803 const char *g = "string";
5804 ccp = &g + (g ? g-g : 0);
5805 /* HPUX 7.0 cc rejects these. */
5806 ++ccp;
5807 p = (char**) ccp;
5808 ccp = (char const *const *) p;
5809 { /* SCO 3.2v4 cc rejects this. */
5810 char *t;
5811 char const *s = 0 ? (char *) 0 : (char const *) 0;
5812
5813 *t++ = 0;
5814 }
5815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5816 int x[] = {25, 17};
5817 const int *foo = &x[0];
5818 ++foo;
5819 }
5820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5821 typedef const int *iptr;
5822 iptr p = 0;
5823 ++p;
5824 }
5825 { /* AIX XL C 1.02.0.0 rejects this saying
5826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5827 struct s { int j; const int *ap[3]; };
5828 struct s *b; b->j = 5;
5829 }
5830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5831 const int foo = 10;
5832 }
5833#endif
5834
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_c_werror_flag"
5849 || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_c_const=yes
5862else
5863 echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866ac_cv_c_const=no
5867fi
5868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869fi
5870echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5871echo "${ECHO_T}$ac_cv_c_const" >&6
5872if test $ac_cv_c_const = no; then
5873
5874cat >>confdefs.h <<\_ACEOF
5875#define const
5876_ACEOF
5877
5878fi
5879
5880echo "$as_me:$LINENO: checking for inline" >&5
5881echo $ECHO_N "checking for inline... $ECHO_C" >&6
5882if test "${ac_cv_c_inline+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 ac_cv_c_inline=no
5886for ac_kw in inline __inline__ __inline; do
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893#ifndef __cplusplus
5894typedef int foo_t;
5895static $ac_kw foo_t static_foo () {return 0; }
5896$ac_kw foo_t foo () {return 0; }
5897#endif
5898
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_c_inline=$ac_kw; break
5923else
5924 echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927fi
5928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929done
5930
5931fi
5932echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5933echo "${ECHO_T}$ac_cv_c_inline" >&6
5934
5935
5936case $ac_cv_c_inline in
5937 inline | yes) ;;
5938 *)
5939 case $ac_cv_c_inline in
5940 no) ac_val=;;
5941 *) ac_val=$ac_cv_c_inline;;
5942 esac
5943 cat >>confdefs.h <<_ACEOF
5944#ifndef __cplusplus
5945#define inline $ac_val
5946#endif
5947_ACEOF
5948 ;;
5949esac
5950
5951# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962 inttypes.h stdint.h unistd.h
5963do
5964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965echo "$as_me:$LINENO: checking for $ac_header" >&5
5966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976$ac_includes_default
5977
5978#include <$ac_header>
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_Header=yes"
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007eval "$as_ac_Header=no"
6008fi
6009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016_ACEOF
6017
6018fi
6019
6020done
6021
6022
6023echo "$as_me:$LINENO: checking for off_t" >&5
6024echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6025if test "${ac_cv_type_off_t+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027else
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034$ac_includes_default
6035int
6036main ()
6037{
6038if ((off_t *) 0)
6039 return 0;
6040if (sizeof (off_t))
6041 return 0;
6042 ;
6043 return 0;
6044}
6045_ACEOF
6046rm -f conftest.$ac_objext
6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_off_t=yes
6069else
6070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073ac_cv_type_off_t=no
6074fi
6075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6078echo "${ECHO_T}$ac_cv_type_off_t" >&6
6079if test $ac_cv_type_off_t = yes; then
6080 :
6081else
6082
6083cat >>confdefs.h <<_ACEOF
6084#define off_t long
6085_ACEOF
6086
6087fi
6088
6089echo "$as_me:$LINENO: checking for size_t" >&5
6090echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6091if test "${ac_cv_type_size_t+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
6100$ac_includes_default
6101int
6102main ()
6103{
6104if ((size_t *) 0)
6105 return 0;
6106if (sizeof (size_t))
6107 return 0;
6108 ;
6109 return 0;
6110}
6111_ACEOF
6112rm -f conftest.$ac_objext
6113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_type_size_t=yes
6135else
6136 echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139ac_cv_type_size_t=no
6140fi
6141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6142fi
6143echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6144echo "${ECHO_T}$ac_cv_type_size_t" >&6
6145if test $ac_cv_type_size_t = yes; then
6146 :
6147else
6148
6149cat >>confdefs.h <<_ACEOF
6150#define size_t unsigned
6151_ACEOF
6152
6153fi
6154
6155# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6156# for constant arguments. Useless!
6157echo "$as_me:$LINENO: checking for working alloca.h" >&5
6158echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6159if test "${ac_cv_working_alloca_h+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h. */
6168#include <alloca.h>
6169int
6170main ()
6171{
6172char *p = (char *) alloca (2 * sizeof (int));
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177rm -f conftest.$ac_objext conftest$ac_exeext
6178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_working_alloca_h=yes
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204ac_cv_working_alloca_h=no
6205fi
6206rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208fi
6209echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6210echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6211if test $ac_cv_working_alloca_h = yes; then
6212
6213cat >>confdefs.h <<\_ACEOF
6214#define HAVE_ALLOCA_H 1
6215_ACEOF
6216
6217fi
6218
6219echo "$as_me:$LINENO: checking for alloca" >&5
6220echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6221if test "${ac_cv_func_alloca_works+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
6230#ifdef __GNUC__
6231# define alloca __builtin_alloca
6232#else
6233# ifdef _MSC_VER
6234# include <malloc.h>
6235# define alloca _alloca
6236# else
6237# if HAVE_ALLOCA_H
6238# include <alloca.h>
6239# else
6240# ifdef _AIX
6241 #pragma alloca
6242# else
6243# ifndef alloca /* predefined by HP cc +Olibcalls */
6244char *alloca ();
6245# endif
6246# endif
6247# endif
6248# endif
6249#endif
6250
6251int
6252main ()
6253{
6254char *p = (char *) alloca (1);
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259rm -f conftest.$ac_objext conftest$ac_exeext
6260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_func_alloca_works=yes
6282else
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286ac_cv_func_alloca_works=no
6287fi
6288rm -f conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290fi
6291echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6292echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6293
6294if test $ac_cv_func_alloca_works = yes; then
6295
6296cat >>confdefs.h <<\_ACEOF
6297#define HAVE_ALLOCA 1
6298_ACEOF
6299
6300else
6301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6302# that cause trouble. Some versions do not even contain alloca or
6303# contain a buggy version. If you still want to use their alloca,
6304# use ar to extract alloca.o from them instead of compiling alloca.c.
6305
6306ALLOCA=alloca.$ac_objext
6307
6308cat >>confdefs.h <<\_ACEOF
6309#define C_ALLOCA 1
6310_ACEOF
6311
6312
6313echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6314echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6315if test "${ac_cv_os_cray+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318 cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
6324#if defined(CRAY) && ! defined(CRAY2)
6325webecray
6326#else
6327wenotbecray
6328#endif
6329
6330_ACEOF
6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "webecray" >/dev/null 2>&1; then
6333 ac_cv_os_cray=yes
6334else
6335 ac_cv_os_cray=no
6336fi
6337rm -f conftest*
6338
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6341echo "${ECHO_T}$ac_cv_os_cray" >&6
6342if test $ac_cv_os_cray = yes; then
6343 for ac_func in _getb67 GETB67 getb67; do
6344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6345echo "$as_me:$LINENO: checking for $ac_func" >&5
6346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6347if eval "test \"\${$as_ac_var+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h. */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h. */
6356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6358#define $ac_func innocuous_$ac_func
6359
6360/* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func (); below.
6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6363 <limits.h> exists even on freestanding compilers. */
6364
6365#ifdef __STDC__
6366# include <limits.h>
6367#else
6368# include <assert.h>
6369#endif
6370
6371#undef $ac_func
6372
6373/* Override any gcc2 internal prototype to avoid an error. */
6374#ifdef __cplusplus
6375extern "C"
6376{
6377#endif
6378/* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380char $ac_func ();
6381/* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6385choke me
6386#else
6387char (*f) () = $ac_func;
6388#endif
6389#ifdef __cplusplus
6390}
6391#endif
6392
6393int
6394main ()
6395{
6396return f != $ac_func;
6397 ;
6398 return 0;
6399}
6400_ACEOF
6401rm -f conftest.$ac_objext conftest$ac_exeext
6402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_var=yes"
6424else
6425 echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428eval "$as_ac_var=no"
6429fi
6430rm -f conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432fi
6433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6435if test `eval echo '${'$as_ac_var'}'` = yes; then
6436
6437cat >>confdefs.h <<_ACEOF
6438#define CRAY_STACKSEG_END $ac_func
6439_ACEOF
6440
6441 break
6442fi
6443
6444 done
6445fi
6446
6447echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6448echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6449if test "${ac_cv_c_stack_direction+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452 if test "$cross_compiling" = yes; then
6453 ac_cv_c_stack_direction=0
6454else
6455 cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h. */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h. */
6461int
6462find_stack_direction ()
6463{
6464 static char *addr = 0;
6465 auto char dummy;
6466 if (addr == 0)
6467 {
6468 addr = &dummy;
6469 return find_stack_direction ();
6470 }
6471 else
6472 return (&dummy > addr) ? 1 : -1;
6473}
6474
6475int
6476main ()
6477{
6478 exit (find_stack_direction () < 0);
6479}
6480_ACEOF
6481rm -f conftest$ac_exeext
6482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_c_stack_direction=1
6493else
6494 echo "$as_me: program exited with status $ac_status" >&5
6495echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498( exit $ac_status )
6499ac_cv_c_stack_direction=-1
6500fi
6501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6502fi
6503fi
6504echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6505echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6506
6507cat >>confdefs.h <<_ACEOF
6508#define STACK_DIRECTION $ac_cv_c_stack_direction
6509_ACEOF
6510
6511
6512fi
6513
6514
6515
6516for ac_header in stdlib.h unistd.h
6517do
6518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6519if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524fi
6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527else
6528 # Is the header compilable?
6529echo "$as_me:$LINENO: checking $ac_header usability" >&5
6530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6531cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
6537$ac_includes_default
6538#include <$ac_header>
6539_ACEOF
6540rm -f conftest.$ac_objext
6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_header_compiler=yes
6563else
6564 echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567ac_header_compiler=no
6568fi
6569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571echo "${ECHO_T}$ac_header_compiler" >&6
6572
6573# Is the header present?
6574echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6576cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h. */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h. */
6582#include <$ac_header>
6583_ACEOF
6584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null; then
6592 if test -s conftest.err; then
6593 ac_cpp_err=$ac_c_preproc_warn_flag
6594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6595 else
6596 ac_cpp_err=
6597 fi
6598else
6599 ac_cpp_err=yes
6600fi
6601if test -z "$ac_cpp_err"; then
6602 ac_header_preproc=yes
6603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 ac_header_preproc=no
6608fi
6609rm -f conftest.err conftest.$ac_ext
6610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611echo "${ECHO_T}$ac_header_preproc" >&6
6612
6613# So? What about this header?
6614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6615 yes:no: )
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc=yes
6621 ;;
6622 no:yes:* )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6635 (
6636 cat <<\_ASBOX
6637## ------------------------------------------ ##
6638## Report this to the AC_PACKAGE_NAME lists. ##
6639## ------------------------------------------ ##
6640_ASBOX
6641 ) |
6642 sed "s/^/$as_me: WARNING: /" >&2
6643 ;;
6644esac
6645echo "$as_me:$LINENO: checking for $ac_header" >&5
6646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650 eval "$as_ac_Header=\$ac_header_preproc"
6651fi
6652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6654
6655fi
6656if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659_ACEOF
6660
6661fi
6662
6663done
6664
6665
6666for ac_func in getpagesize
6667do
6668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669echo "$as_me:$LINENO: checking for $ac_func" >&5
6670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
6680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6682#define $ac_func innocuous_$ac_func
6683
6684/* System header to define __stub macros and hopefully few prototypes,
6685 which can conflict with char $ac_func (); below.
6686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6687 <limits.h> exists even on freestanding compilers. */
6688
6689#ifdef __STDC__
6690# include <limits.h>
6691#else
6692# include <assert.h>
6693#endif
6694
6695#undef $ac_func
6696
6697/* Override any gcc2 internal prototype to avoid an error. */
6698#ifdef __cplusplus
6699extern "C"
6700{
6701#endif
6702/* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6704char $ac_func ();
6705/* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709choke me
6710#else
6711char (*f) () = $ac_func;
6712#endif
6713#ifdef __cplusplus
6714}
6715#endif
6716
6717int
6718main ()
6719{
6720return f != $ac_func;
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725rm -f conftest.$ac_objext conftest$ac_exeext
6726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 eval "$as_ac_var=yes"
6748else
6749 echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
6751
6752eval "$as_ac_var=no"
6753fi
6754rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756fi
6757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6759if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h <<_ACEOF
6761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762_ACEOF
6763
6764fi
6765done
6766
6767echo "$as_me:$LINENO: checking for working mmap" >&5
6768echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6769if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 if test "$cross_compiling" = yes; then
6773 ac_cv_func_mmap_fixed_mapped=no
6774else
6775 cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781$ac_includes_default
6782/* malloc might have been renamed as rpl_malloc. */
6783#undef malloc
6784
6785/* Thanks to Mike Haertel and Jim Avera for this test.
6786 Here is a matrix of mmap possibilities:
6787 mmap private not fixed
6788 mmap private fixed at somewhere currently unmapped
6789 mmap private fixed at somewhere already mapped
6790 mmap shared not fixed
6791 mmap shared fixed at somewhere currently unmapped
6792 mmap shared fixed at somewhere already mapped
6793 For private mappings, we should verify that changes cannot be read()
6794 back from the file, nor mmap's back from the file at a different
6795 address. (There have been systems where private was not correctly
6796 implemented like the infamous i386 svr4.0, and systems where the
6797 VM page cache was not coherent with the file system buffer cache
6798 like early versions of FreeBSD and possibly contemporary NetBSD.)
6799 For shared mappings, we should conversely verify that changes get
6800 propagated back to all the places they're supposed to be.
6801
6802 Grep wants private fixed already mapped.
6803 The main things grep needs to know about mmap are:
6804 * does it exist and is it safe to write into the mmap'd area
6805 * how to use it (BSD variants) */
6806
6807#include <fcntl.h>
6808#include <sys/mman.h>
6809
6810#if !STDC_HEADERS && !HAVE_STDLIB_H
6811char *malloc ();
6812#endif
6813
6814/* This mess was copied from the GNU getpagesize.h. */
6815#if !HAVE_GETPAGESIZE
6816/* Assume that all systems that can run configure have sys/param.h. */
6817# if !HAVE_SYS_PARAM_H
6818# define HAVE_SYS_PARAM_H 1
6819# endif
6820
6821# ifdef _SC_PAGESIZE
6822# define getpagesize() sysconf(_SC_PAGESIZE)
6823# else /* no _SC_PAGESIZE */
6824# if HAVE_SYS_PARAM_H
6825# include <sys/param.h>
6826# ifdef EXEC_PAGESIZE
6827# define getpagesize() EXEC_PAGESIZE
6828# else /* no EXEC_PAGESIZE */
6829# ifdef NBPG
6830# define getpagesize() NBPG * CLSIZE
6831# ifndef CLSIZE
6832# define CLSIZE 1
6833# endif /* no CLSIZE */
6834# else /* no NBPG */
6835# ifdef NBPC
6836# define getpagesize() NBPC
6837# else /* no NBPC */
6838# ifdef PAGESIZE
6839# define getpagesize() PAGESIZE
6840# endif /* PAGESIZE */
6841# endif /* no NBPC */
6842# endif /* no NBPG */
6843# endif /* no EXEC_PAGESIZE */
6844# else /* no HAVE_SYS_PARAM_H */
6845# define getpagesize() 8192 /* punt totally */
6846# endif /* no HAVE_SYS_PARAM_H */
6847# endif /* no _SC_PAGESIZE */
6848
6849#endif /* no HAVE_GETPAGESIZE */
6850
6851int
6852main ()
6853{
6854 char *data, *data2, *data3;
6855 int i, pagesize;
6856 int fd;
6857
6858 pagesize = getpagesize ();
6859
6860 /* First, make a file with some known garbage in it. */
6861 data = (char *) malloc (pagesize);
6862 if (!data)
6863 exit (1);
6864 for (i = 0; i < pagesize; ++i)
6865 *(data + i) = rand ();
6866 umask (0);
6867 fd = creat ("conftest.mmap", 0600);
6868 if (fd < 0)
6869 exit (1);
6870 if (write (fd, data, pagesize) != pagesize)
6871 exit (1);
6872 close (fd);
6873
6874 /* Next, try to mmap the file at a fixed address which already has
6875 something else allocated at it. If we can, also make sure that
6876 we see the same garbage. */
6877 fd = open ("conftest.mmap", O_RDWR);
6878 if (fd < 0)
6879 exit (1);
6880 data2 = (char *) malloc (2 * pagesize);
6881 if (!data2)
6882 exit (1);
6883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6886 exit (1);
6887 for (i = 0; i < pagesize; ++i)
6888 if (*(data + i) != *(data2 + i))
6889 exit (1);
6890
6891 /* Finally, make sure that changes to the mapped area do not
6892 percolate back to the file as seen by read(). (This is a bug on
6893 some variants of i386 svr4.0.) */
6894 for (i = 0; i < pagesize; ++i)
6895 *(data2 + i) = *(data2 + i) + 1;
6896 data3 = (char *) malloc (pagesize);
6897 if (!data3)
6898 exit (1);
6899 if (read (fd, data3, pagesize) != pagesize)
6900 exit (1);
6901 for (i = 0; i < pagesize; ++i)
6902 if (*(data + i) != *(data3 + i))
6903 exit (1);
6904 close (fd);
6905 exit (0);
6906}
6907_ACEOF
6908rm -f conftest$ac_exeext
6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_mmap_fixed_mapped=yes
6920else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925( exit $ac_status )
6926ac_cv_func_mmap_fixed_mapped=no
6927fi
6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929fi
6930fi
6931echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6932echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6933if test $ac_cv_func_mmap_fixed_mapped = yes; then
6934
6935cat >>confdefs.h <<\_ACEOF
6936#define HAVE_MMAP 1
6937_ACEOF
6938
6939fi
6940rm -f conftest.mmap
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6953unistd.h values.h sys/param.h
6954do
6955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956if eval "test \"\${$as_ac_Header+set}\" = set"; then
6957 echo "$as_me:$LINENO: checking for $ac_header" >&5
6958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6959if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961fi
6962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6964else
6965 # Is the header compilable?
6966echo "$as_me:$LINENO: checking $ac_header usability" >&5
6967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6968cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974$ac_includes_default
6975#include <$ac_header>
6976_ACEOF
6977rm -f conftest.$ac_objext
6978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_header_compiler=yes
7000else
7001 echo "$as_me: failed program was:" >&5
7002sed 's/^/| /' conftest.$ac_ext >&5
7003
7004ac_header_compiler=no
7005fi
7006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7008echo "${ECHO_T}$ac_header_compiler" >&6
7009
7010# Is the header present?
7011echo "$as_me:$LINENO: checking $ac_header presence" >&5
7012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7013cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h. */
7019#include <$ac_header>
7020_ACEOF
7021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null; then
7029 if test -s conftest.err; then
7030 ac_cpp_err=$ac_c_preproc_warn_flag
7031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7032 else
7033 ac_cpp_err=
7034 fi
7035else
7036 ac_cpp_err=yes
7037fi
7038if test -z "$ac_cpp_err"; then
7039 ac_header_preproc=yes
7040else
7041 echo "$as_me: failed program was:" >&5
7042sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ac_header_preproc=no
7045fi
7046rm -f conftest.err conftest.$ac_ext
7047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7048echo "${ECHO_T}$ac_header_preproc" >&6
7049
7050# So? What about this header?
7051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7052 yes:no: )
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7057 ac_header_preproc=yes
7058 ;;
7059 no:yes:* )
7060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7072 (
7073 cat <<\_ASBOX
7074## ------------------------------------------ ##
7075## Report this to the AC_PACKAGE_NAME lists. ##
7076## ------------------------------------------ ##
7077_ASBOX
7078 ) |
7079 sed "s/^/$as_me: WARNING: /" >&2
7080 ;;
7081esac
7082echo "$as_me:$LINENO: checking for $ac_header" >&5
7083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 eval "$as_ac_Header=\$ac_header_preproc"
7088fi
7089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7091
7092fi
7093if test `eval echo '${'$as_ac_Header'}'` = yes; then
7094 cat >>confdefs.h <<_ACEOF
7095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096_ACEOF
7097
7098fi
7099
7100done
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7113__argz_count __argz_stringify __argz_next
7114do
7115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7116echo "$as_me:$LINENO: checking for $ac_func" >&5
7117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7118if eval "test \"\${$as_ac_var+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7129#define $ac_func innocuous_$ac_func
7130
7131/* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func (); below.
7133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7134 <limits.h> exists even on freestanding compilers. */
7135
7136#ifdef __STDC__
7137# include <limits.h>
7138#else
7139# include <assert.h>
7140#endif
7141
7142#undef $ac_func
7143
7144/* Override any gcc2 internal prototype to avoid an error. */
7145#ifdef __cplusplus
7146extern "C"
7147{
7148#endif
7149/* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7151char $ac_func ();
7152/* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156choke me
7157#else
7158char (*f) () = $ac_func;
7159#endif
7160#ifdef __cplusplus
7161}
7162#endif
7163
7164int
7165main ()
7166{
7167return f != $ac_func;
7168 ;
7169 return 0;
7170}
7171_ACEOF
7172rm -f conftest.$ac_objext conftest$ac_exeext
7173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
7195else
7196 echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
7199eval "$as_ac_var=no"
7200fi
7201rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203fi
7204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7206if test `eval echo '${'$as_ac_var'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7209_ACEOF
7210
7211fi
7212done
7213
7214
7215 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7216
7217for ac_func in stpcpy
7218do
7219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220echo "$as_me:$LINENO: checking for $ac_func" >&5
7221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7222if eval "test \"\${$as_ac_var+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225 cat >conftest.$ac_ext <<_ACEOF
7226/* confdefs.h. */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h. */
7231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7233#define $ac_func innocuous_$ac_func
7234
7235/* System header to define __stub macros and hopefully few prototypes,
7236 which can conflict with char $ac_func (); below.
7237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7238 <limits.h> exists even on freestanding compilers. */
7239
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245
7246#undef $ac_func
7247
7248/* Override any gcc2 internal prototype to avoid an error. */
7249#ifdef __cplusplus
7250extern "C"
7251{
7252#endif
7253/* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255char $ac_func ();
7256/* The GNU C library defines this for functions which it implements
7257 to always fail with ENOSYS. Some functions are actually named
7258 something starting with __ and the normal name is an alias. */
7259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260choke me
7261#else
7262char (*f) () = $ac_func;
7263#endif
7264#ifdef __cplusplus
7265}
7266#endif
7267
7268int
7269main ()
7270{
7271return f != $ac_func;
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext conftest$ac_exeext
7277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 eval "$as_ac_var=yes"
7299else
7300 echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303eval "$as_ac_var=no"
7304fi
7305rm -f conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7307fi
7308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7310if test `eval echo '${'$as_ac_var'}'` = yes; then
7311 cat >>confdefs.h <<_ACEOF
7312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7313_ACEOF
7314
7315fi
7316done
7317
7318 fi
7319 if test "${ac_cv_func_stpcpy}" = "yes"; then
7320
7321cat >>confdefs.h <<\_ACEOF
7322#define HAVE_STPCPY 1
7323_ACEOF
7324
7325 fi
7326
7327 if test $ac_cv_header_locale_h = yes; then
7328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7329echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7330if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h. */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h. */
7339#include <locale.h>
7340int
7341main ()
7342{
7343return LC_MESSAGES
7344 ;
7345 return 0;
7346}
7347_ACEOF
7348rm -f conftest.$ac_objext conftest$ac_exeext
7349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -z "$ac_c_werror_flag"
7358 || test ! -s conftest.err'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; } &&
7364 { ac_try='test -s conftest$ac_exeext'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 am_cv_val_LC_MESSAGES=yes
7371else
7372 echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
7374
7375am_cv_val_LC_MESSAGES=no
7376fi
7377rm -f conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7379fi
7380echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7381echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7382 if test $am_cv_val_LC_MESSAGES = yes; then
7383
7384cat >>confdefs.h <<\_ACEOF
7385#define HAVE_LC_MESSAGES 1
7386_ACEOF
7387
7388 fi
7389 fi
7390 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7391echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7392 # Check whether --enable-nls or --disable-nls was given.
7393if test "${enable_nls+set}" = set; then
7394 enableval="$enable_nls"
7395 USE_NLS=$enableval
7396else
7397 USE_NLS=yes
7398fi;
7399 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7400echo "${ECHO_T}$USE_NLS" >&6
7401
7402
7403 USE_INCLUDED_LIBINTL=no
7404
7405 if test "$USE_NLS" = "yes"; then
7406 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7407echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7408
7409# Check whether --with-included-gettext or --without-included-gettext was given.
7410if test "${with_included_gettext+set}" = set; then
7411 withval="$with_included_gettext"
7412 nls_cv_force_use_gnu_gettext=$withval
7413else
7414 nls_cv_force_use_gnu_gettext=no
7415fi;
7416 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7417echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7418
7419 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7420 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7421 nls_cv_header_intl=
7422 nls_cv_header_libgt=
7423 CATOBJEXT=
7424
7425 if test "${ac_cv_header_libintl_h+set}" = set; then
7426 echo "$as_me:$LINENO: checking for libintl.h" >&5
7427echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7428if test "${ac_cv_header_libintl_h+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430fi
7431echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7432echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7433else
7434 # Is the header compilable?
7435echo "$as_me:$LINENO: checking libintl.h usability" >&5
7436echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
7443$ac_includes_default
7444#include <libintl.h>
7445_ACEOF
7446rm -f conftest.$ac_objext
7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_header_compiler=yes
7469else
7470 echo "$as_me: failed program was:" >&5
7471sed 's/^/| /' conftest.$ac_ext >&5
7472
7473ac_header_compiler=no
7474fi
7475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7477echo "${ECHO_T}$ac_header_compiler" >&6
7478
7479# Is the header present?
7480echo "$as_me:$LINENO: checking libintl.h presence" >&5
7481echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7482cat >conftest.$ac_ext <<_ACEOF
7483/* confdefs.h. */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h. */
7488#include <libintl.h>
7489_ACEOF
7490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } >/dev/null; then
7498 if test -s conftest.err; then
7499 ac_cpp_err=$ac_c_preproc_warn_flag
7500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7501 else
7502 ac_cpp_err=
7503 fi
7504else
7505 ac_cpp_err=yes
7506fi
7507if test -z "$ac_cpp_err"; then
7508 ac_header_preproc=yes
7509else
7510 echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513 ac_header_preproc=no
7514fi
7515rm -f conftest.err conftest.$ac_ext
7516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7517echo "${ECHO_T}$ac_header_preproc" >&6
7518
7519# So? What about this header?
7520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7521 yes:no: )
7522 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7523echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7525echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7526 ac_header_preproc=yes
7527 ;;
7528 no:yes:* )
7529 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7530echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7532echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7534echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7536echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7538echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7540echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7541 (
7542 cat <<\_ASBOX
7543## ------------------------------------------ ##
7544## Report this to the AC_PACKAGE_NAME lists. ##
7545## ------------------------------------------ ##
7546_ASBOX
7547 ) |
7548 sed "s/^/$as_me: WARNING: /" >&2
7549 ;;
7550esac
7551echo "$as_me:$LINENO: checking for libintl.h" >&5
7552echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7553if test "${ac_cv_header_libintl_h+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556 ac_cv_header_libintl_h=$ac_header_preproc
7557fi
7558echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7559echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7560
7561fi
7562if test $ac_cv_header_libintl_h = yes; then
7563 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7564echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7565if test "${gt_cv_func_gettext_libc+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567else
7568 cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574#include <libintl.h>
7575int
7576main ()
7577{
7578return (int) gettext ("")
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext conftest$ac_exeext
7584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585 (eval $ac_link) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 gt_cv_func_gettext_libc=yes
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610gt_cv_func_gettext_libc=no
7611fi
7612rm -f conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
7614fi
7615echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7616echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7617
7618 if test "$gt_cv_func_gettext_libc" != "yes"; then
7619 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7620echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7621if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 ac_check_lib_save_LIBS=$LIBS
7625LIBS="-lintl $LIBS"
7626cat >conftest.$ac_ext <<_ACEOF
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
7632
7633/* Override any gcc2 internal prototype to avoid an error. */
7634#ifdef __cplusplus
7635extern "C"
7636#endif
7637/* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7639char bindtextdomain ();
7640int
7641main ()
7642{
7643bindtextdomain ();
7644 ;
7645 return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext conftest$ac_exeext
7649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_lib_intl_bindtextdomain=yes
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_cv_lib_intl_bindtextdomain=no
7676fi
7677rm -f conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
7679LIBS=$ac_check_lib_save_LIBS
7680fi
7681echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7682echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7683if test $ac_cv_lib_intl_bindtextdomain = yes; then
7684 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7685echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7686if test "${gt_cv_func_gettext_libintl+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689 cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695
7696int
7697main ()
7698{
7699return (int) gettext ("")
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704rm -f conftest.$ac_objext conftest$ac_exeext
7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
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); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 gt_cv_func_gettext_libintl=yes
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731gt_cv_func_gettext_libintl=no
7732fi
7733rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7735fi
7736echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7737echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7738fi
7739
7740 fi
7741
7742 if test "$gt_cv_func_gettext_libc" = "yes" \
7743 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7744
7745cat >>confdefs.h <<\_ACEOF
7746#define HAVE_GETTEXT 1
7747_ACEOF
7748
7749 # Extract the first word of "msgfmt", so it can be a program name with args.
7750set dummy msgfmt; ac_word=$2
7751echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753if test "${ac_cv_path_MSGFMT+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756 case "$MSGFMT" in
7757 /*)
7758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7759 ;;
7760 *)
7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7762 for ac_dir in $PATH; do
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/$ac_word; then
7765 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7766 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7767 break
7768 fi
7769 fi
7770 done
7771 IFS="$ac_save_ifs"
7772 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7773 ;;
7774esac
7775fi
7776MSGFMT="$ac_cv_path_MSGFMT"
7777if test -n "$MSGFMT"; then
7778 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7779echo "${ECHO_T}$MSGFMT" >&6
7780else
7781 echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784 if test "$MSGFMT" != "no"; then
7785
7786for ac_func in dcgettext
7787do
7788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7789echo "$as_me:$LINENO: checking for $ac_func" >&5
7790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7791if eval "test \"\${$as_ac_var+set}\" = set"; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7802#define $ac_func innocuous_$ac_func
7803
7804/* System header to define __stub macros and hopefully few prototypes,
7805 which can conflict with char $ac_func (); below.
7806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7807 <limits.h> exists even on freestanding compilers. */
7808
7809#ifdef __STDC__
7810# include <limits.h>
7811#else
7812# include <assert.h>
7813#endif
7814
7815#undef $ac_func
7816
7817/* Override any gcc2 internal prototype to avoid an error. */
7818#ifdef __cplusplus
7819extern "C"
7820{
7821#endif
7822/* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824char $ac_func ();
7825/* The GNU C library defines this for functions which it implements
7826 to always fail with ENOSYS. Some functions are actually named
7827 something starting with __ and the normal name is an alias. */
7828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7829choke me
7830#else
7831char (*f) () = $ac_func;
7832#endif
7833#ifdef __cplusplus
7834}
7835#endif
7836
7837int
7838main ()
7839{
7840return f != $ac_func;
7841 ;
7842 return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext conftest$ac_exeext
7846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 eval "$as_ac_var=yes"
7868else
7869 echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872eval "$as_ac_var=no"
7873fi
7874rm -f conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876fi
7877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7879if test `eval echo '${'$as_ac_var'}'` = yes; then
7880 cat >>confdefs.h <<_ACEOF
7881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7882_ACEOF
7883
7884fi
7885done
7886
7887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7888set dummy gmsgfmt; ac_word=$2
7889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891if test "${ac_cv_path_GMSGFMT+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893else
7894 case $GMSGFMT in
7895 [\\/]* | ?:[\\/]*)
7896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7897 ;;
7898 *)
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912
7913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7914 ;;
7915esac
7916fi
7917GMSGFMT=$ac_cv_path_GMSGFMT
7918
7919if test -n "$GMSGFMT"; then
7920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7921echo "${ECHO_T}$GMSGFMT" >&6
7922else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925fi
7926
7927 # Extract the first word of "xgettext", so it can be a program name with args.
7928set dummy xgettext; ac_word=$2
7929echo "$as_me:$LINENO: checking for $ac_word" >&5
7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7931if test "${ac_cv_path_XGETTEXT+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933else
7934 case "$XGETTEXT" in
7935 /*)
7936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7937 ;;
7938 *)
7939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7940 for ac_dir in $PATH; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/$ac_word; then
7943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7945 break
7946 fi
7947 fi
7948 done
7949 IFS="$ac_save_ifs"
7950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7951 ;;
7952esac
7953fi
7954XGETTEXT="$ac_cv_path_XGETTEXT"
7955if test -n "$XGETTEXT"; then
7956 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7957echo "${ECHO_T}$XGETTEXT" >&6
7958else
7959 echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6
7961fi
7962
7963 cat >conftest.$ac_ext <<_ACEOF
7964/* confdefs.h. */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h. */
7969
7970int
7971main ()
7972{
7973extern int _nl_msg_cat_cntr;
7974 return _nl_msg_cat_cntr
7975 ;
7976 return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 CATOBJEXT=.gmo
8002 DATADIRNAME=share
8003else
8004 echo "$as_me: failed program was:" >&5
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
8007CATOBJEXT=.mo
8008 DATADIRNAME=lib
8009fi
8010rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 INSTOBJEXT=.mo
8013 fi
8014 fi
8015
8016fi
8017
8018
8019
8020
8021 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8022 # Neither gettext nor catgets in included in the C library.
8023 # Fall back on GNU gettext library (assuming it is present).
8024 nls_cv_use_gnu_gettext=yes
8025 fi
8026 fi
8027
8028 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8029 INTLOBJS="\$(GETTOBJS)"
8030 # Extract the first word of "msgfmt", so it can be a program name with args.
8031set dummy msgfmt; ac_word=$2
8032echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8034if test "${ac_cv_path_MSGFMT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 case "$MSGFMT" in
8038 /*)
8039 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8043 for ac_dir in $PATH; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8047 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8048 break
8049 fi
8050 fi
8051 done
8052 IFS="$ac_save_ifs"
8053 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8054 ;;
8055esac
8056fi
8057MSGFMT="$ac_cv_path_MSGFMT"
8058if test -n "$MSGFMT"; then
8059 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8060echo "${ECHO_T}$MSGFMT" >&6
8061else
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
8064fi
8065
8066 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8067set dummy gmsgfmt; ac_word=$2
8068echo "$as_me:$LINENO: checking for $ac_word" >&5
8069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070if test "${ac_cv_path_GMSGFMT+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073 case $GMSGFMT in
8074 [\\/]* | ?:[\\/]*)
8075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8076 ;;
8077 *)
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089done
8090done
8091
8092 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8093 ;;
8094esac
8095fi
8096GMSGFMT=$ac_cv_path_GMSGFMT
8097
8098if test -n "$GMSGFMT"; then
8099 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8100echo "${ECHO_T}$GMSGFMT" >&6
8101else
8102 echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6
8104fi
8105
8106 # Extract the first word of "xgettext", so it can be a program name with args.
8107set dummy xgettext; ac_word=$2
8108echo "$as_me:$LINENO: checking for $ac_word" >&5
8109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8110if test "${ac_cv_path_XGETTEXT+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 case "$XGETTEXT" in
8114 /*)
8115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8116 ;;
8117 *)
8118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8119 for ac_dir in $PATH; do
8120 test -z "$ac_dir" && ac_dir=.
8121 if test -f $ac_dir/$ac_word; then
8122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8124 break
8125 fi
8126 fi
8127 done
8128 IFS="$ac_save_ifs"
8129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8130 ;;
8131esac
8132fi
8133XGETTEXT="$ac_cv_path_XGETTEXT"
8134if test -n "$XGETTEXT"; then
8135 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8136echo "${ECHO_T}$XGETTEXT" >&6
8137else
8138 echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6
8140fi
8141
8142
8143 USE_INCLUDED_LIBINTL=yes
8144 CATOBJEXT=.gmo
8145 INSTOBJEXT=.mo
8146 DATADIRNAME=share
8147 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8148 INTLLIBS=$INTLDEPS
8149 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8150 nls_cv_header_intl=libintl.h
8151 nls_cv_header_libgt=libgettext.h
8152 fi
8153
8154 if test "$XGETTEXT" != ":"; then
8155 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8156 : ;
8157 else
8158 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8159echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8160 XGETTEXT=":"
8161 fi
8162 fi
8163
8164 # We need to process the po/ directory.
8165 POSUB=po
8166 else
8167 DATADIRNAME=share
8168 nls_cv_header_intl=libintl.h
8169 nls_cv_header_libgt=libgettext.h
8170 fi
8171
8172 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8173 # because some of the sources are only built for this goal.
8174 if test "$PACKAGE" = gettext; then
8175 USE_NLS=yes
8176 USE_INCLUDED_LIBINTL=yes
8177 fi
8178
8179 for lang in $ALL_LINGUAS; do
8180 GMOFILES="$GMOFILES $lang.gmo"
8181 POFILES="$POFILES $lang.po"
8182 done
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195 if test "x$CATOBJEXT" != "x"; then
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define ENABLE_NLS 1
8199_ACEOF
8200
8201 fi
8202
8203
8204 if test "x$CATOBJEXT" != "x"; then
8205 if test "x$ALL_LINGUAS" = "x"; then
8206 LINGUAS=
8207 else
8208 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8209echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8210 NEW_LINGUAS=
8211 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8212 case "$ALL_LINGUAS" in
8213 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8214 esac
8215 done
8216 LINGUAS=$NEW_LINGUAS
8217 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8218echo "${ECHO_T}$LINGUAS" >&6
8219 fi
8220
8221 if test -n "$LINGUAS"; then
8222 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8223 fi
8224 fi
8225
8226 if test $ac_cv_header_locale_h = yes; then
8227 INCLUDE_LOCALE_H="#include <locale.h>"
8228 else
8229 INCLUDE_LOCALE_H="\
8230/* The system does not provide the header <locale.h>. Take care yourself. */"
8231 fi
8232
8233
8234 if test -f $srcdir/po2tbl.sed.in; then
8235 if test "$CATOBJEXT" = ".cat"; then
8236 if test "${ac_cv_header_linux_version_h+set}" = set; then
8237 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8238echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8239if test "${ac_cv_header_linux_version_h+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241fi
8242echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8243echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8244else
8245 # Is the header compilable?
8246echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8247echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8248cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254$ac_includes_default
8255#include <linux/version.h>
8256_ACEOF
8257rm -f conftest.$ac_objext
8258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag"
8267 || test ! -s conftest.err'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_header_compiler=yes
8280else
8281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284ac_header_compiler=no
8285fi
8286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288echo "${ECHO_T}$ac_header_compiler" >&6
8289
8290# Is the header present?
8291echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8292echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8293cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
8299#include <linux/version.h>
8300_ACEOF
8301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } >/dev/null; then
8309 if test -s conftest.err; then
8310 ac_cpp_err=$ac_c_preproc_warn_flag
8311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8312 else
8313 ac_cpp_err=
8314 fi
8315else
8316 ac_cpp_err=yes
8317fi
8318if test -z "$ac_cpp_err"; then
8319 ac_header_preproc=yes
8320else
8321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_header_preproc=no
8325fi
8326rm -f conftest.err conftest.$ac_ext
8327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328echo "${ECHO_T}$ac_header_preproc" >&6
8329
8330# So? What about this header?
8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332 yes:no: )
8333 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8336echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8338 ;;
8339 no:yes:* )
8340 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8341echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8343echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8345echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8347echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8349echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8351echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8352 (
8353 cat <<\_ASBOX
8354## ------------------------------------------ ##
8355## Report this to the AC_PACKAGE_NAME lists. ##
8356## ------------------------------------------ ##
8357_ASBOX
8358 ) |
8359 sed "s/^/$as_me: WARNING: /" >&2
8360 ;;
8361esac
8362echo "$as_me:$LINENO: checking for linux/version.h" >&5
8363echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8364if test "${ac_cv_header_linux_version_h+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367 ac_cv_header_linux_version_h=$ac_header_preproc
8368fi
8369echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8370echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8371
8372fi
8373if test $ac_cv_header_linux_version_h = yes; then
8374 msgformat=linux
8375else
8376 msgformat=xopen
8377fi
8378
8379
8380
8381 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8382 fi
8383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8384 $srcdir/po2tbl.sed.in > po2tbl.sed
8385 fi
8386
8387 if test "$PACKAGE" = "gettext"; then
8388 GT_NO="#NO#"
8389 GT_YES=
8390 else
8391 GT_NO=
8392 GT_YES="#YES#"
8393 fi
8394
8395
8396
8397 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8398
8399
8400 l=
8401
8402
8403 if test -f $srcdir/po/POTFILES.in; then
8404 test -d po || mkdir po
8405 if test "x$srcdir" != "x."; then
8406 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8407 posrcprefix="$srcdir/"
8408 else
8409 posrcprefix="../$srcdir/"
8410 fi
8411 else
8412 posrcprefix="../"
8413 fi
8414 rm -f po/POTFILES
8415 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8416 < $srcdir/po/POTFILES.in > po/POTFILES
8417 fi
8418
8419
8420# Permit host specific settings.
8421. ${srcdir}/configure.host
8422
8423
8424# Find a good install program. We prefer a C program (faster),
8425# so one script is as good as another. But avoid the broken or
8426# incompatible versions:
8427# SysV /etc/install, /usr/sbin/install
8428# SunOS /usr/etc/install
8429# IRIX /sbin/install
8430# AIX /bin/install
8431# AmigaOS /C/install, which installs bootblocks on floppy discs
8432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8433# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8435# OS/2's system install, which has a completely different semantic
8436# ./install, which can be erroneously created by make from ./install.sh.
8437echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8438echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8439if test -z "$INSTALL"; then
8440if test "${ac_cv_path_install+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 # Account for people who put trailing slashes in PATH elements.
8449case $as_dir/ in
8450 ./ | .// | /cC/* | \
8451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8453 /usr/ucb/* ) ;;
8454 *)
8455 # OSF1 and SCO ODT 3.0 have their own names for install.
8456 # Don't use installbsd from OSF since it installs stuff as root
8457 # by default.
8458 for ac_prog in ginstall scoinst install; do
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8461 if test $ac_prog = install &&
8462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8463 # AIX install. It has an incompatible calling convention.
8464 :
8465 elif test $ac_prog = install &&
8466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467 # program-specific install script used by HP pwplus--don't use.
8468 :
8469 else
8470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8471 break 3
8472 fi
8473 fi
8474 done
8475 done
8476 ;;
8477esac
8478done
8479
8480
8481fi
8482 if test "${ac_cv_path_install+set}" = set; then
8483 INSTALL=$ac_cv_path_install
8484 else
8485 # As a last resort, use the slow shell script. We don't cache a
8486 # path for INSTALL within a source directory, because that will
8487 # break other packages using the cache if that directory is
8488 # removed, or if the path is relative.
8489 INSTALL=$ac_install_sh
8490 fi
8491fi
8492echo "$as_me:$LINENO: result: $INSTALL" >&5
8493echo "${ECHO_T}$INSTALL" >&6
8494
8495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496# It thinks the first close brace ends the variable substitution.
8497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
8499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8500
8501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
8503
8504BFD_HOST_64BIT_LONG=0
8505BFD_HOST_LONG_LONG=0
8506BFD_HOST_64_BIT_DEFINED=0
8507BFD_HOST_64_BIT=
8508BFD_HOST_U_64_BIT=
8509
8510echo "$as_me:$LINENO: checking for long long" >&5
8511echo $ECHO_N "checking for long long... $ECHO_C" >&6
8512if test "${bfd_cv_has_long_long+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515 cat >conftest.$ac_ext <<_ACEOF
8516/* confdefs.h. */
8517_ACEOF
8518cat confdefs.h >>conftest.$ac_ext
8519cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h. */
8521
8522int
8523main ()
8524{
8525unsigned long long ll = 18446744073709551615ULL;
8526 ;
8527 return 0;
8528}
8529_ACEOF
8530rm -f conftest.$ac_objext
8531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 bfd_cv_has_long_long=yes
8553else
8554 echo "$as_me: failed program was:" >&5
8555sed 's/^/| /' conftest.$ac_ext >&5
8556
8557bfd_cv_has_long_long=no
8558fi
8559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560fi
8561
8562echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8563echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8564if test $bfd_cv_has_long_long = yes; then
8565 BFD_HOST_LONG_LONG=1
8566 echo "$as_me:$LINENO: checking for long long" >&5
8567echo $ECHO_N "checking for long long... $ECHO_C" >&6
8568if test "${ac_cv_type_long_long+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570else
8571 cat >conftest.$ac_ext <<_ACEOF
8572/* confdefs.h. */
8573_ACEOF
8574cat confdefs.h >>conftest.$ac_ext
8575cat >>conftest.$ac_ext <<_ACEOF
8576/* end confdefs.h. */
8577$ac_includes_default
8578int
8579main ()
8580{
8581if ((long long *) 0)
8582 return 0;
8583if (sizeof (long long))
8584 return 0;
8585 ;
8586 return 0;
8587}
8588_ACEOF
8589rm -f conftest.$ac_objext
8590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -z "$ac_c_werror_flag"
8599 || test ! -s conftest.err'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try='test -s conftest.$ac_objext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_cv_type_long_long=yes
8612else
8613 echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616ac_cv_type_long_long=no
8617fi
8618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619fi
8620echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8621echo "${ECHO_T}$ac_cv_type_long_long" >&6
8622
8623echo "$as_me:$LINENO: checking size of long long" >&5
8624echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8625if test "${ac_cv_sizeof_long_long+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627else
8628 if test "$ac_cv_type_long_long" = yes; then
8629 # The cast to unsigned long works around a bug in the HP C Compiler
8630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8632 # This bug is HP SR number 8606223364.
8633 if test "$cross_compiling" = yes; then
8634 # Depending upon the size, compute the lo and hi bounds.
8635cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641$ac_includes_default
8642int
8643main ()
8644{
8645static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8646test_array [0] = 0
8647
8648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext
8653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>conftest.er1
8655 ac_status=$?
8656 grep -v '^ *+' conftest.er1 >conftest.err
8657 rm -f conftest.er1
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_lo=0 ac_mid=0
8675 while :; do
8676 cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
8682$ac_includes_default
8683int
8684main ()
8685{
8686static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8687test_array [0] = 0
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
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); }; } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_hi=$ac_mid; break
8716else
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720ac_lo=`expr $ac_mid + 1`
8721 if test $ac_lo -le $ac_mid; then
8722 ac_lo= ac_hi=
8723 break
8724 fi
8725 ac_mid=`expr 2 '*' $ac_mid + 1`
8726fi
8727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8728 done
8729else
8730 echo "$as_me: failed program was:" >&5
8731sed 's/^/| /' conftest.$ac_ext >&5
8732
8733cat >conftest.$ac_ext <<_ACEOF
8734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
8739$ac_includes_default
8740int
8741main ()
8742{
8743static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8744test_array [0] = 0
8745
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext
8751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_hi=-1 ac_mid=-1
8773 while :; do
8774 cat >conftest.$ac_ext <<_ACEOF
8775/* confdefs.h. */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
8779/* end confdefs.h. */
8780$ac_includes_default
8781int
8782main ()
8783{
8784static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8785test_array [0] = 0
8786
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791rm -f conftest.$ac_objext
8792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest.$ac_objext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_lo=$ac_mid; break
8814else
8815 echo "$as_me: failed program was:" >&5
8816sed 's/^/| /' conftest.$ac_ext >&5
8817
8818ac_hi=`expr '(' $ac_mid ')' - 1`
8819 if test $ac_mid -le $ac_hi; then
8820 ac_lo= ac_hi=
8821 break
8822 fi
8823 ac_mid=`expr 2 '*' $ac_mid`
8824fi
8825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826 done
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831ac_lo= ac_hi=
8832fi
8833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834fi
8835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836# Binary search between lo and hi bounds.
8837while test "x$ac_lo" != "x$ac_hi"; do
8838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8839 cat >conftest.$ac_ext <<_ACEOF
8840/* confdefs.h. */
8841_ACEOF
8842cat confdefs.h >>conftest.$ac_ext
8843cat >>conftest.$ac_ext <<_ACEOF
8844/* end confdefs.h. */
8845$ac_includes_default
8846int
8847main ()
8848{
8849static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8850test_array [0] = 0
8851
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext
8857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest.$ac_objext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_hi=$ac_mid
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883ac_lo=`expr '(' $ac_mid ')' + 1`
8884fi
8885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8886done
8887case $ac_lo in
8888?*) ac_cv_sizeof_long_long=$ac_lo;;
8889'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8890See \`config.log' for more details." >&5
8891echo "$as_me: error: cannot compute sizeof (long long), 77
8892See \`config.log' for more details." >&2;}
8893 { (exit 1); exit 1; }; } ;;
8894esac
8895else
8896 if test "$cross_compiling" = yes; then
8897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8898See \`config.log' for more details." >&5
8899echo "$as_me: error: cannot run test program while cross compiling
8900See \`config.log' for more details." >&2;}
8901 { (exit 1); exit 1; }; }
8902else
8903 cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h. */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h. */
8909$ac_includes_default
8910long longval () { return (long) (sizeof (long long)); }
8911unsigned long ulongval () { return (long) (sizeof (long long)); }
8912#include <stdio.h>
8913#include <stdlib.h>
8914int
8915main ()
8916{
8917
8918 FILE *f = fopen ("conftest.val", "w");
8919 if (! f)
8920 exit (1);
8921 if (((long) (sizeof (long long))) < 0)
8922 {
8923 long i = longval ();
8924 if (i != ((long) (sizeof (long long))))
8925 exit (1);
8926 fprintf (f, "%ld\n", i);
8927 }
8928 else
8929 {
8930 unsigned long i = ulongval ();
8931 if (i != ((long) (sizeof (long long))))
8932 exit (1);
8933 fprintf (f, "%lu\n", i);
8934 }
8935 exit (ferror (f) || fclose (f) != 0);
8936
8937 ;
8938 return 0;
8939}
8940_ACEOF
8941rm -f conftest$ac_exeext
8942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_sizeof_long_long=`cat conftest.val`
8953else
8954 echo "$as_me: program exited with status $ac_status" >&5
8955echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958( exit $ac_status )
8959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8960See \`config.log' for more details." >&5
8961echo "$as_me: error: cannot compute sizeof (long long), 77
8962See \`config.log' for more details." >&2;}
8963 { (exit 1); exit 1; }; }
8964fi
8965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8966fi
8967fi
8968rm -f conftest.val
8969else
8970 ac_cv_sizeof_long_long=0
8971fi
8972fi
8973echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8974echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8975cat >>confdefs.h <<_ACEOF
8976#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8977_ACEOF
8978
8979
8980fi
8981
8982echo "$as_me:$LINENO: checking for long" >&5
8983echo $ECHO_N "checking for long... $ECHO_C" >&6
8984if test "${ac_cv_type_long+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986else
8987 cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
8993$ac_includes_default
8994int
8995main ()
8996{
8997if ((long *) 0)
8998 return 0;
8999if (sizeof (long))
9000 return 0;
9001 ;
9002 return 0;
9003}
9004_ACEOF
9005rm -f conftest.$ac_objext
9006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_type_long=yes
9028else
9029 echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032ac_cv_type_long=no
9033fi
9034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035fi
9036echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9037echo "${ECHO_T}$ac_cv_type_long" >&6
9038
9039echo "$as_me:$LINENO: checking size of long" >&5
9040echo $ECHO_N "checking size of long... $ECHO_C" >&6
9041if test "${ac_cv_sizeof_long+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043else
9044 if test "$ac_cv_type_long" = yes; then
9045 # The cast to unsigned long works around a bug in the HP C Compiler
9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9048 # This bug is HP SR number 8606223364.
9049 if test "$cross_compiling" = yes; then
9050 # Depending upon the size, compute the lo and hi bounds.
9051cat >conftest.$ac_ext <<_ACEOF
9052/* confdefs.h. */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h. */
9057$ac_includes_default
9058int
9059main ()
9060{
9061static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9062test_array [0] = 0
9063
9064 ;
9065 return 0;
9066}
9067_ACEOF
9068rm -f conftest.$ac_objext
9069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 (eval $ac_compile) 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag"
9078 || test ! -s conftest.err'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_lo=0 ac_mid=0
9091 while :; do
9092 cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h. */
9098$ac_includes_default
9099int
9100main ()
9101{
9102static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9103test_array [0] = 0
9104
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109rm -f conftest.$ac_objext
9110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_hi=$ac_mid; break
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
9136ac_lo=`expr $ac_mid + 1`
9137 if test $ac_lo -le $ac_mid; then
9138 ac_lo= ac_hi=
9139 break
9140 fi
9141 ac_mid=`expr 2 '*' $ac_mid + 1`
9142fi
9143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9144 done
9145else
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149cat >conftest.$ac_ext <<_ACEOF
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
9155$ac_includes_default
9156int
9157main ()
9158{
9159static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9160test_array [0] = 0
9161
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext
9167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_hi=-1 ac_mid=-1
9189 while :; do
9190 cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
9196$ac_includes_default
9197int
9198main ()
9199{
9200static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9201test_array [0] = 0
9202
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207rm -f conftest.$ac_objext
9208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest.$ac_objext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_lo=$ac_mid; break
9230else
9231 echo "$as_me: failed program was:" >&5
9232sed 's/^/| /' conftest.$ac_ext >&5
9233
9234ac_hi=`expr '(' $ac_mid ')' - 1`
9235 if test $ac_mid -le $ac_hi; then
9236 ac_lo= ac_hi=
9237 break
9238 fi
9239 ac_mid=`expr 2 '*' $ac_mid`
9240fi
9241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242 done
9243else
9244 echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
9247ac_lo= ac_hi=
9248fi
9249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250fi
9251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252# Binary search between lo and hi bounds.
9253while test "x$ac_lo" != "x$ac_hi"; do
9254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9255 cat >conftest.$ac_ext <<_ACEOF
9256/* confdefs.h. */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h. */
9261$ac_includes_default
9262int
9263main ()
9264{
9265static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9266test_array [0] = 0
9267
9268 ;
9269 return 0;
9270}
9271_ACEOF
9272rm -f conftest.$ac_objext
9273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_hi=$ac_mid
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
9299ac_lo=`expr '(' $ac_mid ')' + 1`
9300fi
9301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302done
9303case $ac_lo in
9304?*) ac_cv_sizeof_long=$ac_lo;;
9305'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9306See \`config.log' for more details." >&5
9307echo "$as_me: error: cannot compute sizeof (long), 77
9308See \`config.log' for more details." >&2;}
9309 { (exit 1); exit 1; }; } ;;
9310esac
9311else
9312 if test "$cross_compiling" = yes; then
9313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9314See \`config.log' for more details." >&5
9315echo "$as_me: error: cannot run test program while cross compiling
9316See \`config.log' for more details." >&2;}
9317 { (exit 1); exit 1; }; }
9318else
9319 cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
9325$ac_includes_default
9326long longval () { return (long) (sizeof (long)); }
9327unsigned long ulongval () { return (long) (sizeof (long)); }
9328#include <stdio.h>
9329#include <stdlib.h>
9330int
9331main ()
9332{
9333
9334 FILE *f = fopen ("conftest.val", "w");
9335 if (! f)
9336 exit (1);
9337 if (((long) (sizeof (long))) < 0)
9338 {
9339 long i = longval ();
9340 if (i != ((long) (sizeof (long))))
9341 exit (1);
9342 fprintf (f, "%ld\n", i);
9343 }
9344 else
9345 {
9346 unsigned long i = ulongval ();
9347 if (i != ((long) (sizeof (long))))
9348 exit (1);
9349 fprintf (f, "%lu\n", i);
9350 }
9351 exit (ferror (f) || fclose (f) != 0);
9352
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357rm -f conftest$ac_exeext
9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_sizeof_long=`cat conftest.val`
9369else
9370 echo "$as_me: program exited with status $ac_status" >&5
9371echo "$as_me: failed program was:" >&5
9372sed 's/^/| /' conftest.$ac_ext >&5
9373
9374( exit $ac_status )
9375{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9376See \`config.log' for more details." >&5
9377echo "$as_me: error: cannot compute sizeof (long), 77
9378See \`config.log' for more details." >&2;}
9379 { (exit 1); exit 1; }; }
9380fi
9381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9382fi
9383fi
9384rm -f conftest.val
9385else
9386 ac_cv_sizeof_long=0
9387fi
9388fi
9389echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9390echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9391cat >>confdefs.h <<_ACEOF
9392#define SIZEOF_LONG $ac_cv_sizeof_long
9393_ACEOF
9394
9395
9396if test "x${ac_cv_sizeof_long}" = "x8"; then
9397 host64=true
9398 BFD_HOST_64BIT_LONG=1
9399 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9400 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9401elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9402 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9403 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9404fi
9405
9406if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9407 BFD_HOST_64_BIT_DEFINED=1
9408 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9409 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9410fi
9411
9412
9413
9414
9415
9416
9417
9418# Put a plausible default for CC_FOR_BUILD in Makefile.
9419if test -z "$CC_FOR_BUILD"; then
9420 if test "x$cross_compiling" = "xno"; then
9421 CC_FOR_BUILD='$(CC)'
9422 else
9423 CC_FOR_BUILD=gcc
9424 fi
9425fi
9426
9427# Also set EXEEXT_FOR_BUILD.
9428if test "x$cross_compiling" = "xno"; then
9429 EXEEXT_FOR_BUILD='$(EXEEXT)'
9430else
9431 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9432echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9433if test "${bfd_cv_build_exeext+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435else
9436 rm -f conftest*
9437 echo 'int main () { return 0; }' > conftest.c
9438 bfd_cv_build_exeext=
9439 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9440 for file in conftest.*; do
9441 case $file in
9442 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9443 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9444 esac
9445 done
9446 rm -f conftest*
9447 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9448fi
9449echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9450echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9451 EXEEXT_FOR_BUILD=""
9452 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9453fi
9454
9455
9456
9457
9458
9459
9460
9461
9462for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9463do
9464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo "$as_me:$LINENO: checking for $ac_header" >&5
9467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470fi
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473else
9474 # Is the header compilable?
9475echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9477cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483$ac_includes_default
9484#include <$ac_header>
9485_ACEOF
9486rm -f conftest.$ac_objext
9487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_header_compiler=yes
9509else
9510 echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513ac_header_compiler=no
9514fi
9515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9517echo "${ECHO_T}$ac_header_compiler" >&6
9518
9519# Is the header present?
9520echo "$as_me:$LINENO: checking $ac_header presence" >&5
9521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528#include <$ac_header>
9529_ACEOF
9530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9541 else
9542 ac_cpp_err=
9543 fi
9544else
9545 ac_cpp_err=yes
9546fi
9547if test -z "$ac_cpp_err"; then
9548 ac_header_preproc=yes
9549else
9550 echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
9553 ac_header_preproc=no
9554fi
9555rm -f conftest.err conftest.$ac_ext
9556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9557echo "${ECHO_T}$ac_header_preproc" >&6
9558
9559# So? What about this header?
9560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9561 yes:no: )
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9566 ac_header_preproc=yes
9567 ;;
9568 no:yes:* )
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9581 (
9582 cat <<\_ASBOX
9583## ------------------------------------------ ##
9584## Report this to the AC_PACKAGE_NAME lists. ##
9585## ------------------------------------------ ##
9586_ASBOX
9587 ) |
9588 sed "s/^/$as_me: WARNING: /" >&2
9589 ;;
9590esac
9591echo "$as_me:$LINENO: checking for $ac_header" >&5
9592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9593if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9597fi
9598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9600
9601fi
9602if test `eval echo '${'$as_ac_Header'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605_ACEOF
9606
9607fi
9608
9609done
9610
9611
9612
9613
9614for ac_header in fcntl.h sys/file.h sys/time.h
9615do
9616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9617if eval "test \"\${$as_ac_Header+set}\" = set"; then
9618 echo "$as_me:$LINENO: checking for $ac_header" >&5
9619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9620if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622fi
9623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9625else
9626 # Is the header compilable?
9627echo "$as_me:$LINENO: checking $ac_header usability" >&5
9628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635$ac_includes_default
9636#include <$ac_header>
9637_ACEOF
9638rm -f conftest.$ac_objext
9639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_header_compiler=yes
9661else
9662 echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665ac_header_compiler=no
9666fi
9667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9669echo "${ECHO_T}$ac_header_compiler" >&6
9670
9671# Is the header present?
9672echo "$as_me:$LINENO: checking $ac_header presence" >&5
9673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680#include <$ac_header>
9681_ACEOF
9682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } >/dev/null; then
9690 if test -s conftest.err; then
9691 ac_cpp_err=$ac_c_preproc_warn_flag
9692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9693 else
9694 ac_cpp_err=
9695 fi
9696else
9697 ac_cpp_err=yes
9698fi
9699if test -z "$ac_cpp_err"; then
9700 ac_header_preproc=yes
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_header_preproc=no
9706fi
9707rm -f conftest.err conftest.$ac_ext
9708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9709echo "${ECHO_T}$ac_header_preproc" >&6
9710
9711# So? What about this header?
9712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9713 yes:no: )
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9718 ac_header_preproc=yes
9719 ;;
9720 no:yes:* )
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9733 (
9734 cat <<\_ASBOX
9735## ------------------------------------------ ##
9736## Report this to the AC_PACKAGE_NAME lists. ##
9737## ------------------------------------------ ##
9738_ASBOX
9739 ) |
9740 sed "s/^/$as_me: WARNING: /" >&2
9741 ;;
9742esac
9743echo "$as_me:$LINENO: checking for $ac_header" >&5
9744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747else
9748 eval "$as_ac_Header=\$ac_header_preproc"
9749fi
9750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9752
9753fi
9754if test `eval echo '${'$as_ac_Header'}'` = yes; then
9755 cat >>confdefs.h <<_ACEOF
9756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757_ACEOF
9758
9759fi
9760
9761done
9762
9763echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9764echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9765if test "${ac_cv_header_time+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774#include <sys/types.h>
9775#include <sys/time.h>
9776#include <time.h>
9777
9778int
9779main ()
9780{
9781if ((struct tm *) 0)
9782return 0;
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext
9788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_header_time=yes
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814ac_cv_header_time=no
9815fi
9816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9819echo "${ECHO_T}$ac_cv_header_time" >&6
9820if test $ac_cv_header_time = yes; then
9821
9822cat >>confdefs.h <<\_ACEOF
9823#define TIME_WITH_SYS_TIME 1
9824_ACEOF
9825
9826fi
9827
9828
9829
9830
9831
9832
9833ac_header_dirent=no
9834for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9835 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9836echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9837echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9838if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841 cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847#include <sys/types.h>
9848#include <$ac_hdr>
9849
9850int
9851main ()
9852{
9853if ((DIR *) 0)
9854return 0;
9855 ;
9856 return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext
9860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 eval "$as_ac_Header=yes"
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886eval "$as_ac_Header=no"
9887fi
9888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9889fi
9890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9892if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9895_ACEOF
9896
9897ac_header_dirent=$ac_hdr; break
9898fi
9899
9900done
9901# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9902if test $ac_header_dirent = dirent.h; then
9903 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9904echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9905if test "${ac_cv_search_opendir+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908 ac_func_search_save_LIBS=$LIBS
9909ac_cv_search_opendir=no
9910cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916
9917/* Override any gcc2 internal prototype to avoid an error. */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921/* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9923char opendir ();
9924int
9925main ()
9926{
9927opendir ();
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_search_opendir="none required"
9955else
9956 echo "$as_me: failed program was:" >&5
9957sed 's/^/| /' conftest.$ac_ext >&5
9958
9959fi
9960rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962if test "$ac_cv_search_opendir" = no; then
9963 for ac_lib in dir; do
9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h. */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h. */
9971
9972/* Override any gcc2 internal prototype to avoid an error. */
9973#ifdef __cplusplus
9974extern "C"
9975#endif
9976/* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978char opendir ();
9979int
9980main ()
9981{
9982opendir ();
9983 ;
9984 return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_opendir="-l$ac_lib"
10010break
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015fi
10016rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 done
10019fi
10020LIBS=$ac_func_search_save_LIBS
10021fi
10022echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10023echo "${ECHO_T}$ac_cv_search_opendir" >&6
10024if test "$ac_cv_search_opendir" != no; then
10025 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10026
10027fi
10028
10029else
10030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10031echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10032if test "${ac_cv_search_opendir+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035 ac_func_search_save_LIBS=$LIBS
10036ac_cv_search_opendir=no
10037cat >conftest.$ac_ext <<_ACEOF
10038/* confdefs.h. */
10039_ACEOF
10040cat confdefs.h >>conftest.$ac_ext
10041cat >>conftest.$ac_ext <<_ACEOF
10042/* end confdefs.h. */
10043
10044/* Override any gcc2 internal prototype to avoid an error. */
10045#ifdef __cplusplus
10046extern "C"
10047#endif
10048/* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10050char opendir ();
10051int
10052main ()
10053{
10054opendir ();
10055 ;
10056 return 0;
10057}
10058_ACEOF
10059rm -f conftest.$ac_objext conftest$ac_exeext
10060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061 (eval $ac_link) 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_search_opendir="none required"
10082else
10083 echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086fi
10087rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089if test "$ac_cv_search_opendir" = no; then
10090 for ac_lib in x; do
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098
10099/* Override any gcc2 internal prototype to avoid an error. */
10100#ifdef __cplusplus
10101extern "C"
10102#endif
10103/* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105char opendir ();
10106int
10107main ()
10108{
10109opendir ();
10110 ;
10111 return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_search_opendir="-l$ac_lib"
10137break
10138else
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 done
10146fi
10147LIBS=$ac_func_search_save_LIBS
10148fi
10149echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10150echo "${ECHO_T}$ac_cv_search_opendir" >&6
10151if test "$ac_cv_search_opendir" != no; then
10152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10153
10154fi
10155
10156fi
10157
10158echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10159echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10160if test "${gcc_cv_header_string+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163 cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h. */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */
10169#include <string.h>
10170#include <strings.h>
10171int
10172main ()
10173{
10174
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext
10180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 gcc_cv_header_string=yes
10202else
10203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206gcc_cv_header_string=no
10207fi
10208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
10210echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10211echo "${ECHO_T}$gcc_cv_header_string" >&6
10212if test $gcc_cv_header_string = yes; then
10213
10214cat >>confdefs.h <<\_ACEOF
10215#define STRING_WITH_STRINGS 1
10216_ACEOF
10217
10218fi
10219
10220
10221
10222
10223
10224
10225
10226
10227for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10228do
10229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230echo "$as_me:$LINENO: checking for $ac_func" >&5
10231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10232if eval "test \"\${$as_ac_var+set}\" = set"; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243#define $ac_func innocuous_$ac_func
10244
10245/* System header to define __stub macros and hopefully few prototypes,
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10249
10250#ifdef __STDC__
10251# include <limits.h>
10252#else
10253# include <assert.h>
10254#endif
10255
10256#undef $ac_func
10257
10258/* Override any gcc2 internal prototype to avoid an error. */
10259#ifdef __cplusplus
10260extern "C"
10261{
10262#endif
10263/* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265char $ac_func ();
10266/* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10270choke me
10271#else
10272char (*f) () = $ac_func;
10273#endif
10274#ifdef __cplusplus
10275}
10276#endif
10277
10278int
10279main ()
10280{
10281return f != $ac_func;
10282 ;
10283 return 0;
10284}
10285_ACEOF
10286rm -f conftest.$ac_objext conftest$ac_exeext
10287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 eval "$as_ac_var=yes"
10309else
10310 echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
10313eval "$as_ac_var=no"
10314fi
10315rm -f conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317fi
10318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10320if test `eval echo '${'$as_ac_var'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10323_ACEOF
10324
10325fi
10326done
10327
10328
10329for ac_func in strtoull
10330do
10331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10332echo "$as_me:$LINENO: checking for $ac_func" >&5
10333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10334if eval "test \"\${$as_ac_var+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337 cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
10343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10345#define $ac_func innocuous_$ac_func
10346
10347/* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char $ac_func (); below.
10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 <limits.h> exists even on freestanding compilers. */
10351
10352#ifdef __STDC__
10353# include <limits.h>
10354#else
10355# include <assert.h>
10356#endif
10357
10358#undef $ac_func
10359
10360/* Override any gcc2 internal prototype to avoid an error. */
10361#ifdef __cplusplus
10362extern "C"
10363{
10364#endif
10365/* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10367char $ac_func ();
10368/* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372choke me
10373#else
10374char (*f) () = $ac_func;
10375#endif
10376#ifdef __cplusplus
10377}
10378#endif
10379
10380int
10381main ()
10382{
10383return f != $ac_func;
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388rm -f conftest.$ac_objext conftest$ac_exeext
10389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "$as_ac_var=yes"
10411else
10412 echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415eval "$as_ac_var=no"
10416fi
10417rm -f conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419fi
10420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10422if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425_ACEOF
10426
10427fi
10428done
10429
10430
10431echo "$as_me:$LINENO: checking whether basename is declared" >&5
10432echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10433if test "${ac_cv_have_decl_basename+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
10442$ac_includes_default
10443int
10444main ()
10445{
10446#ifndef basename
10447 char *p = (char *) basename;
10448#endif
10449
10450 ;
10451 return 0;
10452}
10453_ACEOF
10454rm -f conftest.$ac_objext
10455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_have_decl_basename=yes
10477else
10478 echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481ac_cv_have_decl_basename=no
10482fi
10483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10484fi
10485echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10486echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10487if test $ac_cv_have_decl_basename = yes; then
10488
10489cat >>confdefs.h <<_ACEOF
10490#define HAVE_DECL_BASENAME 1
10491_ACEOF
10492
10493
10494else
10495 cat >>confdefs.h <<_ACEOF
10496#define HAVE_DECL_BASENAME 0
10497_ACEOF
10498
10499
10500fi
10501
10502
10503echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10504echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10505if test "${ac_cv_have_decl_ftello+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508 cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
10514$ac_includes_default
10515int
10516main ()
10517{
10518#ifndef ftello
10519 char *p = (char *) ftello;
10520#endif
10521
10522 ;
10523 return 0;
10524}
10525_ACEOF
10526rm -f conftest.$ac_objext
10527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag"
10536 || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_have_decl_ftello=yes
10549else
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553ac_cv_have_decl_ftello=no
10554fi
10555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10556fi
10557echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10558echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10559if test $ac_cv_have_decl_ftello = yes; then
10560
10561cat >>confdefs.h <<_ACEOF
10562#define HAVE_DECL_FTELLO 1
10563_ACEOF
10564
10565
10566else
10567 cat >>confdefs.h <<_ACEOF
10568#define HAVE_DECL_FTELLO 0
10569_ACEOF
10570
10571
10572fi
10573
10574
10575echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10576echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10577if test "${ac_cv_have_decl_ftello64+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586$ac_includes_default
10587int
10588main ()
10589{
10590#ifndef ftello64
10591 char *p = (char *) ftello64;
10592#endif
10593
10594 ;
10595 return 0;
10596}
10597_ACEOF
10598rm -f conftest.$ac_objext
10599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest.$ac_objext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_have_decl_ftello64=yes
10621else
10622 echo "$as_me: failed program was:" >&5
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625ac_cv_have_decl_ftello64=no
10626fi
10627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10628fi
10629echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10630echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10631if test $ac_cv_have_decl_ftello64 = yes; then
10632
10633cat >>confdefs.h <<_ACEOF
10634#define HAVE_DECL_FTELLO64 1
10635_ACEOF
10636
10637
10638else
10639 cat >>confdefs.h <<_ACEOF
10640#define HAVE_DECL_FTELLO64 0
10641_ACEOF
10642
10643
10644fi
10645
10646
10647echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10648echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10649if test "${ac_cv_have_decl_fseeko+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652 cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h. */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h. */
10658$ac_includes_default
10659int
10660main ()
10661{
10662#ifndef fseeko
10663 char *p = (char *) fseeko;
10664#endif
10665
10666 ;
10667 return 0;
10668}
10669_ACEOF
10670rm -f conftest.$ac_objext
10671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10672 (eval $ac_compile) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_have_decl_fseeko=yes
10693else
10694 echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697ac_cv_have_decl_fseeko=no
10698fi
10699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10700fi
10701echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10702echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10703if test $ac_cv_have_decl_fseeko = yes; then
10704
10705cat >>confdefs.h <<_ACEOF
10706#define HAVE_DECL_FSEEKO 1
10707_ACEOF
10708
10709
10710else
10711 cat >>confdefs.h <<_ACEOF
10712#define HAVE_DECL_FSEEKO 0
10713_ACEOF
10714
10715
10716fi
10717
10718
10719echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10720echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10721if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 cat >conftest.$ac_ext <<_ACEOF
10725/* confdefs.h. */
10726_ACEOF
10727cat confdefs.h >>conftest.$ac_ext
10728cat >>conftest.$ac_ext <<_ACEOF
10729/* end confdefs.h. */
10730$ac_includes_default
10731int
10732main ()
10733{
10734#ifndef fseeko64
10735 char *p = (char *) fseeko64;
10736#endif
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (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 ac_cv_have_decl_fseeko64=yes
10765else
10766 echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
10769ac_cv_have_decl_fseeko64=no
10770fi
10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772fi
10773echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10774echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10775if test $ac_cv_have_decl_fseeko64 = yes; then
10776
10777cat >>confdefs.h <<_ACEOF
10778#define HAVE_DECL_FSEEKO64 1
10779_ACEOF
10780
10781
10782else
10783 cat >>confdefs.h <<_ACEOF
10784#define HAVE_DECL_FSEEKO64 0
10785_ACEOF
10786
10787
10788fi
10789
10790
10791
10792
10793case "${host}" in
10794*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10795
10796cat >>confdefs.h <<\_ACEOF
10797#define USE_BINARY_FOPEN 1
10798_ACEOF
10799 ;;
10800esac
10801
10802echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10803echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10804if test "${ac_cv_have_decl_ffs+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807 cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813$ac_includes_default
10814int
10815main ()
10816{
10817#ifndef ffs
10818 char *p = (char *) ffs;
10819#endif
10820
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext
10826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_cv_have_decl_ffs=yes
10848else
10849 echo "$as_me: failed program was:" >&5
10850sed 's/^/| /' conftest.$ac_ext >&5
10851
10852ac_cv_have_decl_ffs=no
10853fi
10854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10855fi
10856echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10857echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10858if test $ac_cv_have_decl_ffs = yes; then
10859
10860cat >>confdefs.h <<_ACEOF
10861#define HAVE_DECL_FFS 1
10862_ACEOF
10863
10864
10865else
10866 cat >>confdefs.h <<_ACEOF
10867#define HAVE_DECL_FFS 0
10868_ACEOF
10869
10870
10871fi
10872
10873
10874echo "$as_me:$LINENO: checking whether free is declared" >&5
10875echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10876if test "${ac_cv_have_decl_free+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878else
10879 cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886int
10887main ()
10888{
10889#ifndef free
10890 char *p = (char *) free;
10891#endif
10892
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897rm -f conftest.$ac_objext
10898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899 (eval $ac_compile) 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag"
10907 || test ! -s conftest.err'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_have_decl_free=yes
10920else
10921 echo "$as_me: failed program was:" >&5
10922sed 's/^/| /' conftest.$ac_ext >&5
10923
10924ac_cv_have_decl_free=no
10925fi
10926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10927fi
10928echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10929echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10930if test $ac_cv_have_decl_free = yes; then
10931
10932cat >>confdefs.h <<_ACEOF
10933#define HAVE_DECL_FREE 1
10934_ACEOF
10935
10936
10937else
10938 cat >>confdefs.h <<_ACEOF
10939#define HAVE_DECL_FREE 0
10940_ACEOF
10941
10942
10943fi
10944
10945
10946echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10947echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10948if test "${ac_cv_have_decl_getenv+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950else
10951 cat >conftest.$ac_ext <<_ACEOF
10952/* confdefs.h. */
10953_ACEOF
10954cat confdefs.h >>conftest.$ac_ext
10955cat >>conftest.$ac_ext <<_ACEOF
10956/* end confdefs.h. */
10957$ac_includes_default
10958int
10959main ()
10960{
10961#ifndef getenv
10962 char *p = (char *) getenv;
10963#endif
10964
10965 ;
10966 return 0;
10967}
10968_ACEOF
10969rm -f conftest.$ac_objext
10970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest.$ac_objext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_have_decl_getenv=yes
10992else
10993 echo "$as_me: failed program was:" >&5
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
10996ac_cv_have_decl_getenv=no
10997fi
10998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10999fi
11000echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11001echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11002if test $ac_cv_have_decl_getenv = yes; then
11003
11004cat >>confdefs.h <<_ACEOF
11005#define HAVE_DECL_GETENV 1
11006_ACEOF
11007
11008
11009else
11010 cat >>confdefs.h <<_ACEOF
11011#define HAVE_DECL_GETENV 0
11012_ACEOF
11013
11014
11015fi
11016
11017
11018echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11019echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11020if test "${ac_cv_have_decl_malloc+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022else
11023 cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
11029$ac_includes_default
11030int
11031main ()
11032{
11033#ifndef malloc
11034 char *p = (char *) malloc;
11035#endif
11036
11037 ;
11038 return 0;
11039}
11040_ACEOF
11041rm -f conftest.$ac_objext
11042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_have_decl_malloc=yes
11064else
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068ac_cv_have_decl_malloc=no
11069fi
11070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071fi
11072echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11073echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11074if test $ac_cv_have_decl_malloc = yes; then
11075
11076cat >>confdefs.h <<_ACEOF
11077#define HAVE_DECL_MALLOC 1
11078_ACEOF
11079
11080
11081else
11082 cat >>confdefs.h <<_ACEOF
11083#define HAVE_DECL_MALLOC 0
11084_ACEOF
11085
11086
11087fi
11088
11089
11090echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11091echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11092if test "${ac_cv_have_decl_realloc+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101$ac_includes_default
11102int
11103main ()
11104{
11105#ifndef realloc
11106 char *p = (char *) realloc;
11107#endif
11108
11109 ;
11110 return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext
11114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_have_decl_realloc=yes
11136else
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140ac_cv_have_decl_realloc=no
11141fi
11142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11143fi
11144echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11145echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11146if test $ac_cv_have_decl_realloc = yes; then
11147
11148cat >>confdefs.h <<_ACEOF
11149#define HAVE_DECL_REALLOC 1
11150_ACEOF
11151
11152
11153else
11154 cat >>confdefs.h <<_ACEOF
11155#define HAVE_DECL_REALLOC 0
11156_ACEOF
11157
11158
11159fi
11160
11161
11162echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11163echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11164if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167 cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173$ac_includes_default
11174int
11175main ()
11176{
11177#ifndef stpcpy
11178 char *p = (char *) stpcpy;
11179#endif
11180
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_have_decl_stpcpy=yes
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212ac_cv_have_decl_stpcpy=no
11213fi
11214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215fi
11216echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11217echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11218if test $ac_cv_have_decl_stpcpy = yes; then
11219
11220cat >>confdefs.h <<_ACEOF
11221#define HAVE_DECL_STPCPY 1
11222_ACEOF
11223
11224
11225else
11226 cat >>confdefs.h <<_ACEOF
11227#define HAVE_DECL_STPCPY 0
11228_ACEOF
11229
11230
11231fi
11232
11233
11234echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11235echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11236if test "${ac_cv_have_decl_strstr+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245$ac_includes_default
11246int
11247main ()
11248{
11249#ifndef strstr
11250 char *p = (char *) strstr;
11251#endif
11252
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_have_decl_strstr=yes
11280else
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284ac_cv_have_decl_strstr=no
11285fi
11286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11287fi
11288echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11289echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11290if test $ac_cv_have_decl_strstr = yes; then
11291
11292cat >>confdefs.h <<_ACEOF
11293#define HAVE_DECL_STRSTR 1
11294_ACEOF
11295
11296
11297else
11298 cat >>confdefs.h <<_ACEOF
11299#define HAVE_DECL_STRSTR 0
11300_ACEOF
11301
11302
11303fi
11304
11305
11306echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11307echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11308if test "${ac_cv_have_decl_snprintf+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317$ac_includes_default
11318int
11319main ()
11320{
11321#ifndef snprintf
11322 char *p = (char *) snprintf;
11323#endif
11324
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_have_decl_snprintf=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356ac_cv_have_decl_snprintf=no
11357fi
11358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11359fi
11360echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11361echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11362if test $ac_cv_have_decl_snprintf = yes; then
11363
11364cat >>confdefs.h <<_ACEOF
11365#define HAVE_DECL_SNPRINTF 1
11366_ACEOF
11367
11368
11369else
11370 cat >>confdefs.h <<_ACEOF
11371#define HAVE_DECL_SNPRINTF 0
11372_ACEOF
11373
11374
11375fi
11376
11377
11378echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11379echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11380if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389$ac_includes_default
11390int
11391main ()
11392{
11393#ifndef vsnprintf
11394 char *p = (char *) vsnprintf;
11395#endif
11396
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401rm -f conftest.$ac_objext
11402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest.$ac_objext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_have_decl_vsnprintf=yes
11424else
11425 echo "$as_me: failed program was:" >&5
11426sed 's/^/| /' conftest.$ac_ext >&5
11427
11428ac_cv_have_decl_vsnprintf=no
11429fi
11430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11431fi
11432echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11433echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11434if test $ac_cv_have_decl_vsnprintf = yes; then
11435
11436cat >>confdefs.h <<_ACEOF
11437#define HAVE_DECL_VSNPRINTF 1
11438_ACEOF
11439
11440
11441else
11442 cat >>confdefs.h <<_ACEOF
11443#define HAVE_DECL_VSNPRINTF 0
11444_ACEOF
11445
11446
11447fi
11448
11449
11450
11451# If we are configured native, pick a core file support file.
11452COREFILE=
11453COREFLAG=
11454TRAD_HEADER=
11455if test "${target}" = "${host}"; then
11456 case "${host}" in
11457 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11458 COREFILE=''
11459 ;;
11460 alpha*-*-linux-*)
11461 COREFILE=trad-core.lo
11462 TRAD_HEADER='"hosts/alphalinux.h"'
11463 ;;
11464 alpha*-*-netbsd* | alpha*-*-openbsd*)
11465 COREFILE=netbsd-core.lo
11466 ;;
11467 alpha*-*-*) COREFILE=osf-core.lo ;;
11468 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11469 COREFILE='' ;;
11470 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11471 arm-*-riscix) COREFILE=trad-core.lo ;;
11472 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11473 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11474 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11475 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11476 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11477 hppa*-*-netbsd* | hppa*-*-openbsd*)
11478 COREFILE=netbsd-core.lo
11479 ;;
11480
11481 i370-*-*)
11482 COREFILE=trad-core.lo
11483 TRAD_HEADER='"hosts/i370linux.h"'
11484 ;;
11485
11486 i[3-7]86-sequent-bsd*)
11487 COREFILE=trad-core.lo
11488 TRAD_HEADER='"hosts/symmetry.h"'
11489 ;;
11490 i[3-7]86-sequent-sysv4*) ;;
11491 i[3-7]86-sequent-sysv*)
11492 COREFILE=trad-core.lo
11493 TRAD_HEADER='"hosts/symmetry.h"'
11494 ;;
11495 i[3-7]86-*-bsdi)
11496 COREFILE=
11497 ;;
11498 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*)
11499 COREFILE=trad-core.lo
11500 TRAD_HEADER='"hosts/i386bsd.h"'
11501 ;;
11502 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11503 COREFILE=''
11504 TRAD_HEADER='"hosts/i386bsd.h"'
11505 ;;
11506 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11507 COREFILE=netbsd-core.lo
11508 ;;
11509 i[3-7]86-esix-sysv3*)
11510 COREFILE=trad-core.lo
11511 TRAD_HEADER='"hosts/esix.h"'
11512 ;;
11513 i[3-7]86-*-sco3.2v5*)
11514 COREFILE=sco5-core.lo
11515 ;;
11516 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11517 COREFILE=trad-core.lo
11518 TRAD_HEADER='"hosts/i386sco.h"'
11519 ;;
11520 i[3-7]86-*-mach3*)
11521 COREFILE=trad-core.lo
11522 TRAD_HEADER='"hosts/i386mach3.h"'
11523 ;;
11524 i[3-7]86-*-linux-*)
11525 COREFILE=trad-core.lo
11526 TRAD_HEADER='"hosts/i386linux.h"'
11527 ;;
11528 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11529 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11530 i860-*-mach3* | i860-*-osf1*)
11531 COREFILE=trad-core.lo
11532 TRAD_HEADER='"hosts/i860mach3.h"'
11533 ;;
11534 mips-*-netbsd* | mips*-*-openbsd*)
11535 COREFILE=netbsd-core.lo
11536 ;;
11537 mips-dec-*)
11538 COREFILE=trad-core.lo
11539 TRAD_HEADER='"hosts/decstation.h"'
11540 ;;
11541 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11542 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11543 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11544 mips-*-sysv4*) ;;
11545 mips-*-sysv* | mips-*-riscos*)
11546 COREFILE=trad-core.lo
11547 TRAD_HEADER='"hosts/riscos.h"'
11548 ;;
11549 mips-sony-bsd*)
11550 COREFILE=trad-core.lo
11551 TRAD_HEADER='"hosts/news-mips.h"'
11552 ;;
11553 m68*-bull*-sysv*)
11554 COREFILE=trad-core.lo
11555 TRAD_HEADER='"hosts/dpx2.h"'
11556 ;;
11557 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11558 m68*-hp-bsd*)
11559 COREFILE=trad-core.lo
11560 TRAD_HEADER='"hosts/hp300bsd.h"'
11561 ;;
11562 m68*-*-linux-*)
11563 COREFILE=trad-core.lo
11564 TRAD_HEADER='"hosts/m68klinux.h"'
11565 ;;
11566 m68*-motorola-sysv*)
11567 COREFILE=trad-core.lo
11568 TRAD_HEADER='"hosts/delta68.h"'
11569 ;;
11570 m68*-sony-*)
11571 COREFILE=trad-core.lo
11572 TRAD_HEADER='"hosts/news.h"'
11573 ;;
11574 m68*-*-netbsd* | m68*-*-openbsd*)
11575 COREFILE=netbsd-core.lo
11576 ;;
11577 m68*-apple-aux*)
11578 COREFILE=trad-core.lo
11579 TRAD_HEADER='"hosts/m68kaux.h"'
11580 ;;
11581 m88*-*-sysv4*)
11582 ;;
11583 m88*-motorola-sysv*)
11584 COREFILE=ptrace-core.lo
11585 ;;
11586 m88*-*-mach3*)
11587 COREFILE=trad-core.lo
11588 TRAD_HEADER='"hosts/m88kmach3.h"'
11589 ;;
11590 m88*-*-openbsd*)
11591 COREFILE=netbsd-core.lo
11592 ;;
11593 ns32k-pc532-mach)
11594 COREFILE=trad-core.lo
11595 TRAD_HEADER='"hosts/pc532mach.h"'
11596 ;;
11597 ns32k-*-netbsd* | ns32k-*-openbsd*)
11598 COREFILE=netbsd-core.lo
11599 ;;
11600 rs6000-*-lynx*)
11601 COREFILE=lynx-core.lo
11602 ;;
11603 rs6000-*-aix5.* | powerpc-*-aix5.*)
11604 COREFILE=rs6000-core.lo
11605 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11606 ;;
11607 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11608 COREFILE=rs6000-core.lo
11609 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11610 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11611 # have c_impl as a member of struct core_dumpx
11612 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11613echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
11620#include <core.h>
11621int
11622main ()
11623{
11624struct core_dumpx c; c.c_impl = 0;
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629rm -f conftest.$ac_objext
11630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651
11652cat >>confdefs.h <<\_ACEOF
11653#define HAVE_ST_C_IMPL 1
11654_ACEOF
11655
11656 echo "$as_me:$LINENO: result: yes" >&5
11657echo "${ECHO_T}yes" >&6
11658else
11659 echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662echo "$as_me:$LINENO: result: no" >&5
11663echo "${ECHO_T}no" >&6
11664fi
11665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11666 ;;
11667 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11668 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11669 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11670 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11671 powerpc-*-beos*) ;;
11672 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11673 COREFILE='' ;;
11674 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11675 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11676 s390*-*-*) COREFILE=trad-core.lo ;;
11677 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11678 sparc-*-netbsd* | sparc*-*-openbsd*)
11679 COREFILE=netbsd-core.lo
11680 ;;
11681 tahoe-*-*)
11682 COREFILE=trad-core.lo
11683 TRAD_HEADER='"hosts/tahoe.h"'
11684 ;;
11685 vax-*-netbsd* | vax-*-openbsd*)
11686 COREFILE=netbsd-core.lo
11687 ;;
11688 vax-*-ultrix2*)
11689 COREFILE=trad-core.lo
11690 TRAD_HEADER='"hosts/vaxult2.h"'
11691 ;;
11692 vax-*-ultrix*)
11693 COREFILE=trad-core.lo
11694 TRAD_HEADER='"hosts/vaxult2.h"'
11695 ;;
11696 vax-*-linux-*)
11697 COREFILE=trad-core.lo
11698 TRAD_HEADER='"hosts/vaxlinux.h"'
11699 ;;
11700 vax-*-*)
11701 COREFILE=trad-core.lo
11702 TRAD_HEADER='"hosts/vaxbsd.h"'
11703 ;;
11704 x86_64-*-netbsd* | x86_64-*-openbsd*)
11705 COREFILE=netbsd-core.lo
11706 ;;
11707 esac
11708
11709 case "$COREFILE" in
11710 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11711 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11712 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11713 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11714 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11715 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11716 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11717 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11718 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11719 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11720 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11721 esac
11722
11723 # ELF corefile support has several flavors, but all of
11724 # them use something called <sys/procfs.h>
11725
11726for ac_header in sys/procfs.h
11727do
11728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734fi
11735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737else
11738 # Is the header compilable?
11739echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741cat >conftest.$ac_ext <<_ACEOF
11742/* confdefs.h. */
11743_ACEOF
11744cat confdefs.h >>conftest.$ac_ext
11745cat >>conftest.$ac_ext <<_ACEOF
11746/* end confdefs.h. */
11747$ac_includes_default
11748#include <$ac_header>
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11773else
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777ac_header_compiler=no
11778fi
11779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781echo "${ECHO_T}$ac_header_compiler" >&6
11782
11783# Is the header present?
11784echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792#include <$ac_header>
11793_ACEOF
11794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805 else
11806 ac_cpp_err=
11807 fi
11808else
11809 ac_cpp_err=yes
11810fi
11811if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11813else
11814 echo "$as_me: failed program was:" >&5
11815sed 's/^/| /' conftest.$ac_ext >&5
11816
11817 ac_header_preproc=no
11818fi
11819rm -f conftest.err conftest.$ac_ext
11820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821echo "${ECHO_T}$ac_header_preproc" >&6
11822
11823# So? What about this header?
11824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 yes:no: )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11831 ;;
11832 no:yes:* )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845 (
11846 cat <<\_ASBOX
11847## ------------------------------------------ ##
11848## Report this to the AC_PACKAGE_NAME lists. ##
11849## ------------------------------------------ ##
11850_ASBOX
11851 ) |
11852 sed "s/^/$as_me: WARNING: /" >&2
11853 ;;
11854esac
11855echo "$as_me:$LINENO: checking for $ac_header" >&5
11856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 eval "$as_ac_Header=\$ac_header_preproc"
11861fi
11862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864
11865fi
11866if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869_ACEOF
11870
11871fi
11872
11873done
11874
11875 if test "$ac_cv_header_sys_procfs_h" = yes; then
11876 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11877echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11878 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888#define _SYSCALL32
11889#include <sys/procfs.h>
11890int
11891main ()
11892{
11893prstatus_t avar
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext
11899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925bfd_cv_have_sys_procfs_type_prstatus_t=no
11926
11927fi
11928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929fi
11930
11931 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11932
11933cat >>confdefs.h <<\_ACEOF
11934#define HAVE_PRSTATUS_T 1
11935_ACEOF
11936
11937 fi
11938 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11939echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11940
11941 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11942echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11943 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952
11953#define _SYSCALL32
11954#include <sys/procfs.h>
11955int
11956main ()
11957{
11958prstatus32_t avar
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963rm -f conftest.$ac_objext
11964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990bfd_cv_have_sys_procfs_type_prstatus32_t=no
11991
11992fi
11993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
11995
11996 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11997
11998cat >>confdefs.h <<\_ACEOF
11999#define HAVE_PRSTATUS32_T 1
12000_ACEOF
12001
12002 fi
12003 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12004echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12005
12006 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12007echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12008 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017
12018#define _SYSCALL32
12019#include <sys/procfs.h>
12020int
12021main ()
12022{
12023prstatus_t avar; void* aref = (void*) &avar.pr_who
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag"
12038 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12051else
12052 echo "$as_me: failed program was:" >&5
12053sed 's/^/| /' conftest.$ac_ext >&5
12054
12055bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12056
12057fi
12058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12059fi
12060
12061 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12062
12063cat >>confdefs.h <<\_ACEOF
12064#define HAVE_PRSTATUS_T_PR_WHO 1
12065_ACEOF
12066
12067 fi
12068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12069echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12070
12071 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12072echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12073 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083#define _SYSCALL32
12084#include <sys/procfs.h>
12085int
12086main ()
12087{
12088prstatus32_t avar; void* aref = (void*) &avar.pr_who
12089 ;
12090 return 0;
12091}
12092_ACEOF
12093rm -f conftest.$ac_objext
12094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12121
12122fi
12123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12124fi
12125
12126 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12127
12128cat >>confdefs.h <<\_ACEOF
12129#define HAVE_PRSTATUS32_T_PR_WHO 1
12130_ACEOF
12131
12132 fi
12133 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12134echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12135
12136 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12137echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12138 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141 cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
12147
12148#define _SYSCALL32
12149#include <sys/procfs.h>
12150int
12151main ()
12152{
12153pstatus_t avar
12154 ;
12155 return 0;
12156}
12157_ACEOF
12158rm -f conftest.$ac_objext
12159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12181else
12182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
12185bfd_cv_have_sys_procfs_type_pstatus_t=no
12186
12187fi
12188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12189fi
12190
12191 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12192
12193cat >>confdefs.h <<\_ACEOF
12194#define HAVE_PSTATUS_T 1
12195_ACEOF
12196
12197 fi
12198 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12199echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12200
12201 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12202echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12203 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205else
12206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212
12213#define _SYSCALL32
12214#include <sys/procfs.h>
12215int
12216main ()
12217{
12218pxstatus_t avar
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext
12224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12246else
12247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250bfd_cv_have_sys_procfs_type_pxstatus_t=no
12251
12252fi
12253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12254fi
12255
12256 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12257
12258cat >>confdefs.h <<\_ACEOF
12259#define HAVE_PXSTATUS_T 1
12260_ACEOF
12261
12262 fi
12263 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12264echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12265
12266 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12267echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12268 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277
12278#define _SYSCALL32
12279#include <sys/procfs.h>
12280int
12281main ()
12282{
12283pstatus32_t avar
12284 ;
12285 return 0;
12286}
12287_ACEOF
12288rm -f conftest.$ac_objext
12289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12311else
12312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315bfd_cv_have_sys_procfs_type_pstatus32_t=no
12316
12317fi
12318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319fi
12320
12321 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12322
12323cat >>confdefs.h <<\_ACEOF
12324#define HAVE_PSTATUS32_T 1
12325_ACEOF
12326
12327 fi
12328 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12329echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12330
12331 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12332echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12333 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
12342
12343#define _SYSCALL32
12344#include <sys/procfs.h>
12345int
12346main ()
12347{
12348prpsinfo_t avar
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12381
12382fi
12383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12384fi
12385
12386 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12387
12388cat >>confdefs.h <<\_ACEOF
12389#define HAVE_PRPSINFO_T 1
12390_ACEOF
12391
12392 fi
12393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12394echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12395
12396 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12397echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12398 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400else
12401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407
12408#define _SYSCALL32
12409#include <sys/procfs.h>
12410int
12411main ()
12412{
12413prpsinfo32_t avar
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12446
12447fi
12448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449fi
12450
12451 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12452
12453cat >>confdefs.h <<\_ACEOF
12454#define HAVE_PRPSINFO32_T 1
12455_ACEOF
12456
12457 fi
12458 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12459echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12460
12461 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12462echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12463 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472
12473#define _SYSCALL32
12474#include <sys/procfs.h>
12475int
12476main ()
12477{
12478psinfo_t avar
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12506else
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510bfd_cv_have_sys_procfs_type_psinfo_t=no
12511
12512fi
12513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12514fi
12515
12516 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12517
12518cat >>confdefs.h <<\_ACEOF
12519#define HAVE_PSINFO_T 1
12520_ACEOF
12521
12522 fi
12523 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12524echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12525
12526 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12527echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12528 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531 cat >conftest.$ac_ext <<_ACEOF
12532/* confdefs.h. */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h. */
12537
12538#define _SYSCALL32
12539#include <sys/procfs.h>
12540int
12541main ()
12542{
12543psinfo32_t avar
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext
12549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest.$ac_objext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12571else
12572 echo "$as_me: failed program was:" >&5
12573sed 's/^/| /' conftest.$ac_ext >&5
12574
12575bfd_cv_have_sys_procfs_type_psinfo32_t=no
12576
12577fi
12578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12579fi
12580
12581 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12582
12583cat >>confdefs.h <<\_ACEOF
12584#define HAVE_PSINFO32_T 1
12585_ACEOF
12586
12587 fi
12588 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12589echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12590
12591 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12592echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12593 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602
12603#define _SYSCALL32
12604#include <sys/procfs.h>
12605int
12606main ()
12607{
12608lwpstatus_t avar
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext
12614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -z "$ac_c_werror_flag"
12623 || test ! -s conftest.err'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12641
12642fi
12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644fi
12645
12646 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12647
12648cat >>confdefs.h <<\_ACEOF
12649#define HAVE_LWPSTATUS_T 1
12650_ACEOF
12651
12652 fi
12653 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12654echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12655
12656 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12657echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12658 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
12661 cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667
12668#define _SYSCALL32
12669#include <sys/procfs.h>
12670int
12671main ()
12672{
12673lwpxstatus_t avar
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext
12679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12701else
12702 echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
12705bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12706
12707fi
12708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12709fi
12710
12711 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12712
12713cat >>confdefs.h <<\_ACEOF
12714#define HAVE_LWPXSTATUS_T 1
12715_ACEOF
12716
12717 fi
12718 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12719echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12720
12721 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12722echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12723 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725else
12726 cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
12732
12733#define _SYSCALL32
12734#include <sys/procfs.h>
12735int
12736main ()
12737{
12738lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12771
12772fi
12773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12774fi
12775
12776 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12777
12778cat >>confdefs.h <<\_ACEOF
12779#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12780_ACEOF
12781
12782 fi
12783 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12784echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12785
12786 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12787echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12788 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790else
12791 cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797
12798#define _SYSCALL32
12799#include <sys/procfs.h>
12800int
12801main ()
12802{
12803lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag"
12818 || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12831else
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
12835bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12836
12837fi
12838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12839fi
12840
12841 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12842
12843cat >>confdefs.h <<\_ACEOF
12844#define HAVE_LWPSTATUS_T_PR_REG 1
12845_ACEOF
12846
12847 fi
12848 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12849echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12850
12851 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12852echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12853 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855else
12856 cat >conftest.$ac_ext <<_ACEOF
12857/* confdefs.h. */
12858_ACEOF
12859cat confdefs.h >>conftest.$ac_ext
12860cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h. */
12862
12863#define _SYSCALL32
12864#include <sys/procfs.h>
12865int
12866main ()
12867{
12868win32_pstatus_t avar
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext
12874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12896else
12897 echo "$as_me: failed program was:" >&5
12898sed 's/^/| /' conftest.$ac_ext >&5
12899
12900bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12901
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904fi
12905
12906 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12907
12908cat >>confdefs.h <<\_ACEOF
12909#define HAVE_WIN32_PSTATUS_T 1
12910_ACEOF
12911
12912 fi
12913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12914echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12915
12916 fi
12917fi
12918
12919
12920if test -n "$TRAD_HEADER"; then
12921
12922cat >>confdefs.h <<_ACEOF
12923#define TRAD_HEADER $TRAD_HEADER
12924_ACEOF
12925
12926fi
12927
12928# Horrible hacks to build DLLs on Windows.
12929WIN32LDFLAGS=
12930WIN32LIBADD=
12931case "${host}" in
12932*-*-cygwin*)
12933 if test "$enable_shared" = "yes"; then
12934 WIN32LDFLAGS="-no-undefined"
12935 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12936 fi
12937 ;;
12938*-*-linux*)
12939 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12940 # libiberty.a.
12941 case "${host}" in
12942 mips*-*-linux*)
12943 # Linux/MIPS uses PIC by default.
12944 if test "$enable_shared" = "yes"; then
12945 WIN32LIBADD="-L../libiberty -liberty"
12946 fi
12947 ;;
12948 *)
12949 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12950 if test -n "$x"; then
12951 WIN32LIBADD="-L../libiberty/pic -liberty"
12952 fi
12953 ;;
12954 esac
12955 ;;
12956esac
12957
12958
12959
12960# target stuff:
12961
12962# Canonicalize the secondary target names.
12963if test -n "$enable_targets" ; then
12964 for targ in `echo $enable_targets | sed 's/,/ /g'`
12965 do
12966 result=`$ac_config_sub $targ 2>/dev/null`
12967 if test -n "$result" ; then
12968 canon_targets="$canon_targets $result"
12969 else
12970 # Allow targets that config.sub doesn't recognize, like "all".
12971 canon_targets="$canon_targets $targ"
12972 fi
12973 done
12974fi
12975
12976all_targets=false
12977defvec=
12978selvecs=
12979assocvecs=
12980selarchs=
12981TDEFINES=
12982for targ in $target $canon_targets
12983do
12984 if test "x$targ" = "xall"; then
12985 all_targets=true
12986 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12987 else
12988 . $srcdir/config.bfd
12989 if test "x$targ" = "x$target"; then
12990 defvec=$targ_defvec
12991 fi
12992 selvecs="$selvecs $targ_defvec $targ_selvecs"
12993 selarchs="$selarchs $targ_archs"
12994 TDEFINES="$TDEFINES $targ_cflags"
12995 fi
12996done
12997
12998
12999# This processing still needs to be done if we're to decide properly whether
13000# 64-bit support needs to be compiled in. Currently, it will be included if
13001# the default or any other explicitly requested target requires it; it
13002# will not be included on a 32-bit host if no 64-bit target is requested, and
13003# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13004# used.
13005
13006# uniq the default and selected vectors in all the configured targets.
13007f=""
13008for i in $selvecs ; do
13009 case " $f " in
13010 *" $i "*) ;;
13011 *) f="$f $i" ;;
13012 esac
13013done
13014selvecs="$f"
13015
13016
13017# uniq the associated vectors in all the configured targets.
13018f=""
13019for i in $assocvecs ; do
13020 case " $f " in
13021 *" $i "*) ;;
13022 *) f="$f $i" ;;
13023 esac
13024done
13025assocvecs="$f"
13026
13027
13028# uniq the architectures in all the configured targets.
13029f=""
13030for i in $selarchs ; do
13031 case " $f " in
13032 *" $i "*) ;;
13033 *) f="$f $i" ;;
13034 esac
13035done
13036selarchs="$f"
13037
13038# Target backend .o files.
13039tb=
13040
13041elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13042
13043for vec in $selvecs
13044do
13045 target_size=32
13046 case "$vec" in
13047 # This list is alphabetized to make it easy to compare
13048 # with the two vector lists in targets.c. For the same reason,
13049 # use one entry per line, even though this leads to long lines.
13050 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13051 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13052 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13053 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13054 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13055 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13056 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13057 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13058 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13059 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13060 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13061 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13062 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13063 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13064 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13065 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13066 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13067 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13068 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13069 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13070 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13071 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13072 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13073 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13074 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13075 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13076 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13077 bfd_elf32_bigarm_symbian_vec)
13078 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13079 bfd_elf32_bigarm_vxworks_vec)
13080 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13081 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13082 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13083 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13084 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13085 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13086 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13087 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13088 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13089 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13090 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13091 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13092 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13093 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13094 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13095 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13096 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13097 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13098 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13099 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13100 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13101 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13102 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13103 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13104 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13105 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13106 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13107 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13108 bfd_elf32_littlearm_symbian_vec)
13109 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13110 bfd_elf32_littlearm_vxworks_vec)
13111 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13112 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
13113 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13114 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13115 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13116 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13117 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13118 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13119 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13120 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13121 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13122 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13123 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13124 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13125 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13126 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13127 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13128 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13129 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13130 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13131 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13132 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13133 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13134 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13135 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13136 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13137 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13138 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13139 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13140 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13141 # FIXME: We include cofflink.lo not because it's needed for
13142 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13143 # which needs it but does not list it. Should be fixed in right place.
13144 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13145 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13146 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13147 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13148 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13149 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13150 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13151 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13152 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13153 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13154 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13155 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13156 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13157 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
13158 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13159 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
13160 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13161 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13162 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13163 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13164 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13165 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13166 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13167 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13168 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13169 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13170 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13171 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13172 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13173 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13174 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13175 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13176 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13177 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13178 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13179 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13180 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13181 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13182 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13183 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13184 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13185 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13186 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13187 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13188 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
13189 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13190 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13191 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13192 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13193 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13194 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13195 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13196 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13197 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13198 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13199 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13200 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13201 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13202 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13203 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13204 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13205 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13206 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13207 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13208 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13209 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13210 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13211 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13212 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13213 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13214 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13215 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13216 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13217 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13218 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13219 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13220 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13221 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13222 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13223 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13224 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13225 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13226 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13227 ieee_vec) tb="$tb ieee.lo" ;;
13228 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13229 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13230 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13231 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13232 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13233 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13234 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13235 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13236 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13237 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13238 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13239 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13240 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13241 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13242 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13243 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13244 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13245 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13246 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13247 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13248 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13249 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13250 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13251 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13252 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13253 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13254 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13255 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13256 pef_vec) tb="$tb pef.lo" ;;
13257 pef_xlib_vec) tb="$tb pef.lo" ;;
13258 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13259 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13260 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13261 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13262 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13263 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13264 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13265 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13266 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13267 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13268 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13269 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13270 som_vec) tb="$tb som.lo" ;;
13271 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13272 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13273 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13274 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13275 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13276 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13277 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13278 sym_vec) tb="$tb xsym.lo" ;;
13279 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13280 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13281 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13282 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13283 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13284 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13285 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13286 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13287 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13288 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13289 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13290 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13291 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13292 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13293 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13294 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13295 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13296 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13297 versados_vec) tb="$tb versados.lo" ;;
13298 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13299 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13300 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13301 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13302 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13303 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13304
13305 # These appear out of order in targets.c
13306 srec_vec) tb="$tb srec.lo" ;;
13307 symbolsrec_vec) tb="$tb srec.lo" ;;
13308 tekhex_vec) tb="$tb tekhex.lo" ;;
13309 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13310 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13311
13312 "") ;;
13313 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13314echo "$as_me: error: *** unknown target vector $vec" >&2;}
13315 { (exit 1); exit 1; }; } ;;
13316 esac
13317
13318 if test ${target_size} = 64; then
13319 target64=true
13320 fi
13321 if test x"${vec}" = x"${defvec}"; then
13322 bfd_default_target_size=${target_size}
13323 fi
13324done
13325
13326# Target architecture .o files.
13327# A couple of CPUs use shorter file names to avoid problems on DOS
13328# filesystems.
13329ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13330
13331# Weed out duplicate .o files.
13332f=""
13333for i in $tb ; do
13334 case " $f " in
13335 *" $i "*) ;;
13336 *) f="$f $i" ;;
13337 esac
13338done
13339tb="$f"
13340
13341f=""
13342for i in $ta ; do
13343 case " $f " in
13344 *" $i "*) ;;
13345 *) f="$f $i" ;;
13346 esac
13347done
13348ta="$f"
13349
13350bfd_backends="$tb"
13351bfd_machines="$ta"
13352
13353if test x${all_targets} = xtrue ; then
13354 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13355 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13356 selvecs=
13357 havevecs=
13358 selarchs=
13359 test -n "$assocvecs" &&
13360 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13361else # all_targets is true
13362 # Only set these if they will be nonempty, for the clever echo.
13363 havevecs=
13364 assocvecs=
13365 test -n "$selvecs" &&
13366 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13367 test -n "$selvecs" &&
13368 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13369 test -n "$selarchs" &&
13370 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13371fi # all_targets is true
13372
13373case ${host64}-${target64}-${want64} in
13374 *true*)
13375 wordsize=64
13376 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13377 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13378 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13379 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13380echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13381 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13382echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13383 fi
13384 if test -n "$GCC" ; then
13385 bad_64bit_gcc=no;
13386 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13387echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13388 # Add more tests for gcc versions with non-working 64-bit support here.
13389 cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395:__GNUC__:__GNUC_MINOR__:__i386__:
13396_ACEOF
13397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13398 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13399 bad_64bit_gcc=yes;
13400 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13401echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13402else
13403 echo "$as_me:$LINENO: result: no" >&5
13404echo "${ECHO_T}no" >&6
13405fi
13406rm -f conftest*
13407
13408 if test $bad_64bit_gcc = yes ; then
13409 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13410echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13411 { (exit 1); exit 1; }; }
13412 fi
13413 fi
13414 ;;
13415 false-false-false)
13416 wordsize=32
13417 bfd_libs='$(BFD32_LIBS)'
13418 all_backends='$(BFD32_BACKENDS)'
13419 ;;
13420esac
13421
13422
13423
13424
13425
13426
13427
13428
13429# Determine the host dependant file_ptr a.k.a. off_t type. In order
13430# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13431# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13432# Hopefully a reasonable assumption since fseeko et.al. should be
13433# upward compatible.
13434
13435
13436
13437
13438
13439for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13440do
13441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442echo "$as_me:$LINENO: checking for $ac_func" >&5
13443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13444if eval "test \"\${$as_ac_var+set}\" = set"; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
13447 cat >conftest.$ac_ext <<_ACEOF
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13455#define $ac_func innocuous_$ac_func
13456
13457/* System header to define __stub macros and hopefully few prototypes,
13458 which can conflict with char $ac_func (); below.
13459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460 <limits.h> exists even on freestanding compilers. */
13461
13462#ifdef __STDC__
13463# include <limits.h>
13464#else
13465# include <assert.h>
13466#endif
13467
13468#undef $ac_func
13469
13470/* Override any gcc2 internal prototype to avoid an error. */
13471#ifdef __cplusplus
13472extern "C"
13473{
13474#endif
13475/* We use char because int might match the return type of a gcc2
13476 builtin and then its argument prototype would still apply. */
13477char $ac_func ();
13478/* The GNU C library defines this for functions which it implements
13479 to always fail with ENOSYS. Some functions are actually named
13480 something starting with __ and the normal name is an alias. */
13481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13482choke me
13483#else
13484char (*f) () = $ac_func;
13485#endif
13486#ifdef __cplusplus
13487}
13488#endif
13489
13490int
13491main ()
13492{
13493return f != $ac_func;
13494 ;
13495 return 0;
13496}
13497_ACEOF
13498rm -f conftest.$ac_objext conftest$ac_exeext
13499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13500 (eval $ac_link) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 eval "$as_ac_var=yes"
13521else
13522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525eval "$as_ac_var=no"
13526fi
13527rm -f conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529fi
13530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13532if test `eval echo '${'$as_ac_var'}'` = yes; then
13533 cat >>confdefs.h <<_ACEOF
13534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13535_ACEOF
13536
13537fi
13538done
13539
13540if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13541 echo "$as_me:$LINENO: checking for off_t" >&5
13542echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13543if test "${ac_cv_type_off_t+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545else
13546 cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552$ac_includes_default
13553int
13554main ()
13555{
13556if ((off_t *) 0)
13557 return 0;
13558if (sizeof (off_t))
13559 return 0;
13560 ;
13561 return 0;
13562}
13563_ACEOF
13564rm -f conftest.$ac_objext
13565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566 (eval $ac_compile) 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag"
13574 || test ! -s conftest.err'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_type_off_t=yes
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
13590
13591ac_cv_type_off_t=no
13592fi
13593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13594fi
13595echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13596echo "${ECHO_T}$ac_cv_type_off_t" >&6
13597
13598echo "$as_me:$LINENO: checking size of off_t" >&5
13599echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13600if test "${ac_cv_sizeof_off_t+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603 if test "$ac_cv_type_off_t" = yes; then
13604 # The cast to unsigned long works around a bug in the HP C Compiler
13605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13607 # This bug is HP SR number 8606223364.
13608 if test "$cross_compiling" = yes; then
13609 # Depending upon the size, compute the lo and hi bounds.
13610cat >conftest.$ac_ext <<_ACEOF
13611/* confdefs.h. */
13612_ACEOF
13613cat confdefs.h >>conftest.$ac_ext
13614cat >>conftest.$ac_ext <<_ACEOF
13615/* end confdefs.h. */
13616$ac_includes_default
13617int
13618main ()
13619{
13620static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13621test_array [0] = 0
13622
13623 ;
13624 return 0;
13625}
13626_ACEOF
13627rm -f conftest.$ac_objext
13628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_lo=0 ac_mid=0
13650 while :; do
13651 cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657$ac_includes_default
13658int
13659main ()
13660{
13661static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13662test_array [0] = 0
13663
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_hi=$ac_mid; break
13691else
13692 echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
13695ac_lo=`expr $ac_mid + 1`
13696 if test $ac_lo -le $ac_mid; then
13697 ac_lo= ac_hi=
13698 break
13699 fi
13700 ac_mid=`expr 2 '*' $ac_mid + 1`
13701fi
13702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703 done
13704else
13705 echo "$as_me: failed program was:" >&5
13706sed 's/^/| /' conftest.$ac_ext >&5
13707
13708cat >conftest.$ac_ext <<_ACEOF
13709/* confdefs.h. */
13710_ACEOF
13711cat confdefs.h >>conftest.$ac_ext
13712cat >>conftest.$ac_ext <<_ACEOF
13713/* end confdefs.h. */
13714$ac_includes_default
13715int
13716main ()
13717{
13718static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13719test_array [0] = 0
13720
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725rm -f conftest.$ac_objext
13726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_hi=-1 ac_mid=-1
13748 while :; do
13749 cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755$ac_includes_default
13756int
13757main ()
13758{
13759static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13760test_array [0] = 0
13761
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_lo=$ac_mid; break
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793ac_hi=`expr '(' $ac_mid ')' - 1`
13794 if test $ac_mid -le $ac_hi; then
13795 ac_lo= ac_hi=
13796 break
13797 fi
13798 ac_mid=`expr 2 '*' $ac_mid`
13799fi
13800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13801 done
13802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806ac_lo= ac_hi=
13807fi
13808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809fi
13810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13811# Binary search between lo and hi bounds.
13812while test "x$ac_lo" != "x$ac_hi"; do
13813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13814 cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
13821int
13822main ()
13823{
13824static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13825test_array [0] = 0
13826
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext
13832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_hi=$ac_mid
13854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858ac_lo=`expr '(' $ac_mid ')' + 1`
13859fi
13860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13861done
13862case $ac_lo in
13863?*) ac_cv_sizeof_off_t=$ac_lo;;
13864'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13865See \`config.log' for more details." >&5
13866echo "$as_me: error: cannot compute sizeof (off_t), 77
13867See \`config.log' for more details." >&2;}
13868 { (exit 1); exit 1; }; } ;;
13869esac
13870else
13871 if test "$cross_compiling" = yes; then
13872 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13873See \`config.log' for more details." >&5
13874echo "$as_me: error: cannot run test program while cross compiling
13875See \`config.log' for more details." >&2;}
13876 { (exit 1); exit 1; }; }
13877else
13878 cat >conftest.$ac_ext <<_ACEOF
13879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884$ac_includes_default
13885long longval () { return (long) (sizeof (off_t)); }
13886unsigned long ulongval () { return (long) (sizeof (off_t)); }
13887#include <stdio.h>
13888#include <stdlib.h>
13889int
13890main ()
13891{
13892
13893 FILE *f = fopen ("conftest.val", "w");
13894 if (! f)
13895 exit (1);
13896 if (((long) (sizeof (off_t))) < 0)
13897 {
13898 long i = longval ();
13899 if (i != ((long) (sizeof (off_t))))
13900 exit (1);
13901 fprintf (f, "%ld\n", i);
13902 }
13903 else
13904 {
13905 unsigned long i = ulongval ();
13906 if (i != ((long) (sizeof (off_t))))
13907 exit (1);
13908 fprintf (f, "%lu\n", i);
13909 }
13910 exit (ferror (f) || fclose (f) != 0);
13911
13912 ;
13913 return 0;
13914}
13915_ACEOF
13916rm -f conftest$ac_exeext
13917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13918 (eval $ac_link) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_sizeof_off_t=`cat conftest.val`
13928else
13929 echo "$as_me: program exited with status $ac_status" >&5
13930echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
13933( exit $ac_status )
13934{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13935See \`config.log' for more details." >&5
13936echo "$as_me: error: cannot compute sizeof (off_t), 77
13937See \`config.log' for more details." >&2;}
13938 { (exit 1); exit 1; }; }
13939fi
13940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13941fi
13942fi
13943rm -f conftest.val
13944else
13945 ac_cv_sizeof_off_t=0
13946fi
13947fi
13948echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13949echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13950cat >>confdefs.h <<_ACEOF
13951#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13952_ACEOF
13953
13954
13955fi
13956echo "$as_me:$LINENO: checking file_ptr type" >&5
13957echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13958bfd_file_ptr="long"
13959bfd_ufile_ptr="unsigned long"
13960if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13961 -o x"${ac_cv_sizeof_off_t}" = x8; then
13962 bfd_file_ptr=BFD_HOST_64_BIT
13963 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13964fi
13965echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13966echo "${ECHO_T}$bfd_file_ptr" >&6
13967
13968
13969
13970
13971tdefaults=""
13972test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13973test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13974test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13975test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13976test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13977
13978
13979
13980
13981for ac_header in stdlib.h unistd.h
13982do
13983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13984if eval "test \"\${$as_ac_Header+set}\" = set"; then
13985 echo "$as_me:$LINENO: checking for $ac_header" >&5
13986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13987if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989fi
13990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13992else
13993 # Is the header compilable?
13994echo "$as_me:$LINENO: checking $ac_header usability" >&5
13995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13996cat >conftest.$ac_ext <<_ACEOF
13997/* confdefs.h. */
13998_ACEOF
13999cat confdefs.h >>conftest.$ac_ext
14000cat >>conftest.$ac_ext <<_ACEOF
14001/* end confdefs.h. */
14002$ac_includes_default
14003#include <$ac_header>
14004_ACEOF
14005rm -f conftest.$ac_objext
14006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007 (eval $ac_compile) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_c_werror_flag"
14015 || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest.$ac_objext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_header_compiler=yes
14028else
14029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
14032ac_header_compiler=no
14033fi
14034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14036echo "${ECHO_T}$ac_header_compiler" >&6
14037
14038# Is the header present?
14039echo "$as_me:$LINENO: checking $ac_header presence" >&5
14040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14041cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047#include <$ac_header>
14048_ACEOF
14049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } >/dev/null; then
14057 if test -s conftest.err; then
14058 ac_cpp_err=$ac_c_preproc_warn_flag
14059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14060 else
14061 ac_cpp_err=
14062 fi
14063else
14064 ac_cpp_err=yes
14065fi
14066if test -z "$ac_cpp_err"; then
14067 ac_header_preproc=yes
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_header_preproc=no
14073fi
14074rm -f conftest.err conftest.$ac_ext
14075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14076echo "${ECHO_T}$ac_header_preproc" >&6
14077
14078# So? What about this header?
14079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14080 yes:no: )
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14085 ac_header_preproc=yes
14086 ;;
14087 no:yes:* )
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14100 (
14101 cat <<\_ASBOX
14102## ------------------------------------------ ##
14103## Report this to the AC_PACKAGE_NAME lists. ##
14104## ------------------------------------------ ##
14105_ASBOX
14106 ) |
14107 sed "s/^/$as_me: WARNING: /" >&2
14108 ;;
14109esac
14110echo "$as_me:$LINENO: checking for $ac_header" >&5
14111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14112if eval "test \"\${$as_ac_Header+set}\" = set"; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114else
14115 eval "$as_ac_Header=\$ac_header_preproc"
14116fi
14117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119
14120fi
14121if test `eval echo '${'$as_ac_Header'}'` = yes; then
14122 cat >>confdefs.h <<_ACEOF
14123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14124_ACEOF
14125
14126fi
14127
14128done
14129
14130
14131for ac_func in getpagesize
14132do
14133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14134echo "$as_me:$LINENO: checking for $ac_func" >&5
14135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14136if eval "test \"\${$as_ac_var+set}\" = set"; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 cat >conftest.$ac_ext <<_ACEOF
14140/* confdefs.h. */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h. */
14145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14147#define $ac_func innocuous_$ac_func
14148
14149/* System header to define __stub macros and hopefully few prototypes,
14150 which can conflict with char $ac_func (); below.
14151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14152 <limits.h> exists even on freestanding compilers. */
14153
14154#ifdef __STDC__
14155# include <limits.h>
14156#else
14157# include <assert.h>
14158#endif
14159
14160#undef $ac_func
14161
14162/* Override any gcc2 internal prototype to avoid an error. */
14163#ifdef __cplusplus
14164extern "C"
14165{
14166#endif
14167/* We use char because int might match the return type of a gcc2
14168 builtin and then its argument prototype would still apply. */
14169char $ac_func ();
14170/* The GNU C library defines this for functions which it implements
14171 to always fail with ENOSYS. Some functions are actually named
14172 something starting with __ and the normal name is an alias. */
14173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14174choke me
14175#else
14176char (*f) () = $ac_func;
14177#endif
14178#ifdef __cplusplus
14179}
14180#endif
14181
14182int
14183main ()
14184{
14185return f != $ac_func;
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190rm -f conftest.$ac_objext conftest$ac_exeext
14191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192 (eval $ac_link) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 eval "$as_ac_var=yes"
14213else
14214 echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217eval "$as_ac_var=no"
14218fi
14219rm -f conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221fi
14222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14224if test `eval echo '${'$as_ac_var'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14227_ACEOF
14228
14229fi
14230done
14231
14232echo "$as_me:$LINENO: checking for working mmap" >&5
14233echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14234if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236else
14237 if test "$cross_compiling" = yes; then
14238 ac_cv_func_mmap_fixed_mapped=no
14239else
14240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247/* malloc might have been renamed as rpl_malloc. */
14248#undef malloc
14249
14250/* Thanks to Mike Haertel and Jim Avera for this test.
14251 Here is a matrix of mmap possibilities:
14252 mmap private not fixed
14253 mmap private fixed at somewhere currently unmapped
14254 mmap private fixed at somewhere already mapped
14255 mmap shared not fixed
14256 mmap shared fixed at somewhere currently unmapped
14257 mmap shared fixed at somewhere already mapped
14258 For private mappings, we should verify that changes cannot be read()
14259 back from the file, nor mmap's back from the file at a different
14260 address. (There have been systems where private was not correctly
14261 implemented like the infamous i386 svr4.0, and systems where the
14262 VM page cache was not coherent with the file system buffer cache
14263 like early versions of FreeBSD and possibly contemporary NetBSD.)
14264 For shared mappings, we should conversely verify that changes get
14265 propagated back to all the places they're supposed to be.
14266
14267 Grep wants private fixed already mapped.
14268 The main things grep needs to know about mmap are:
14269 * does it exist and is it safe to write into the mmap'd area
14270 * how to use it (BSD variants) */
14271
14272#include <fcntl.h>
14273#include <sys/mman.h>
14274
14275#if !STDC_HEADERS && !HAVE_STDLIB_H
14276char *malloc ();
14277#endif
14278
14279/* This mess was copied from the GNU getpagesize.h. */
14280#if !HAVE_GETPAGESIZE
14281/* Assume that all systems that can run configure have sys/param.h. */
14282# if !HAVE_SYS_PARAM_H
14283# define HAVE_SYS_PARAM_H 1
14284# endif
14285
14286# ifdef _SC_PAGESIZE
14287# define getpagesize() sysconf(_SC_PAGESIZE)
14288# else /* no _SC_PAGESIZE */
14289# if HAVE_SYS_PARAM_H
14290# include <sys/param.h>
14291# ifdef EXEC_PAGESIZE
14292# define getpagesize() EXEC_PAGESIZE
14293# else /* no EXEC_PAGESIZE */
14294# ifdef NBPG
14295# define getpagesize() NBPG * CLSIZE
14296# ifndef CLSIZE
14297# define CLSIZE 1
14298# endif /* no CLSIZE */
14299# else /* no NBPG */
14300# ifdef NBPC
14301# define getpagesize() NBPC
14302# else /* no NBPC */
14303# ifdef PAGESIZE
14304# define getpagesize() PAGESIZE
14305# endif /* PAGESIZE */
14306# endif /* no NBPC */
14307# endif /* no NBPG */
14308# endif /* no EXEC_PAGESIZE */
14309# else /* no HAVE_SYS_PARAM_H */
14310# define getpagesize() 8192 /* punt totally */
14311# endif /* no HAVE_SYS_PARAM_H */
14312# endif /* no _SC_PAGESIZE */
14313
14314#endif /* no HAVE_GETPAGESIZE */
14315
14316int
14317main ()
14318{
14319 char *data, *data2, *data3;
14320 int i, pagesize;
14321 int fd;
14322
14323 pagesize = getpagesize ();
14324
14325 /* First, make a file with some known garbage in it. */
14326 data = (char *) malloc (pagesize);
14327 if (!data)
14328 exit (1);
14329 for (i = 0; i < pagesize; ++i)
14330 *(data + i) = rand ();
14331 umask (0);
14332 fd = creat ("conftest.mmap", 0600);
14333 if (fd < 0)
14334 exit (1);
14335 if (write (fd, data, pagesize) != pagesize)
14336 exit (1);
14337 close (fd);
14338
14339 /* Next, try to mmap the file at a fixed address which already has
14340 something else allocated at it. If we can, also make sure that
14341 we see the same garbage. */
14342 fd = open ("conftest.mmap", O_RDWR);
14343 if (fd < 0)
14344 exit (1);
14345 data2 = (char *) malloc (2 * pagesize);
14346 if (!data2)
14347 exit (1);
14348 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14349 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14350 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14351 exit (1);
14352 for (i = 0; i < pagesize; ++i)
14353 if (*(data + i) != *(data2 + i))
14354 exit (1);
14355
14356 /* Finally, make sure that changes to the mapped area do not
14357 percolate back to the file as seen by read(). (This is a bug on
14358 some variants of i386 svr4.0.) */
14359 for (i = 0; i < pagesize; ++i)
14360 *(data2 + i) = *(data2 + i) + 1;
14361 data3 = (char *) malloc (pagesize);
14362 if (!data3)
14363 exit (1);
14364 if (read (fd, data3, pagesize) != pagesize)
14365 exit (1);
14366 for (i = 0; i < pagesize; ++i)
14367 if (*(data + i) != *(data3 + i))
14368 exit (1);
14369 close (fd);
14370 exit (0);
14371}
14372_ACEOF
14373rm -f conftest$ac_exeext
14374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14375 (eval $ac_link) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_cv_func_mmap_fixed_mapped=yes
14385else
14386 echo "$as_me: program exited with status $ac_status" >&5
14387echo "$as_me: failed program was:" >&5
14388sed 's/^/| /' conftest.$ac_ext >&5
14389
14390( exit $ac_status )
14391ac_cv_func_mmap_fixed_mapped=no
14392fi
14393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14394fi
14395fi
14396echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14397echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14398if test $ac_cv_func_mmap_fixed_mapped = yes; then
14399
14400cat >>confdefs.h <<\_ACEOF
14401#define HAVE_MMAP 1
14402_ACEOF
14403
14404fi
14405rm -f conftest.mmap
14406
14407
14408
14409for ac_func in madvise mprotect
14410do
14411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14412echo "$as_me:$LINENO: checking for $ac_func" >&5
14413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14414if eval "test \"\${$as_ac_var+set}\" = set"; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
14417 cat >conftest.$ac_ext <<_ACEOF
14418/* confdefs.h. */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h. */
14423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14425#define $ac_func innocuous_$ac_func
14426
14427/* System header to define __stub macros and hopefully few prototypes,
14428 which can conflict with char $ac_func (); below.
14429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14430 <limits.h> exists even on freestanding compilers. */
14431
14432#ifdef __STDC__
14433# include <limits.h>
14434#else
14435# include <assert.h>
14436#endif
14437
14438#undef $ac_func
14439
14440/* Override any gcc2 internal prototype to avoid an error. */
14441#ifdef __cplusplus
14442extern "C"
14443{
14444#endif
14445/* We use char because int might match the return type of a gcc2
14446 builtin and then its argument prototype would still apply. */
14447char $ac_func ();
14448/* The GNU C library defines this for functions which it implements
14449 to always fail with ENOSYS. Some functions are actually named
14450 something starting with __ and the normal name is an alias. */
14451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14452choke me
14453#else
14454char (*f) () = $ac_func;
14455#endif
14456#ifdef __cplusplus
14457}
14458#endif
14459
14460int
14461main ()
14462{
14463return f != $ac_func;
14464 ;
14465 return 0;
14466}
14467_ACEOF
14468rm -f conftest.$ac_objext conftest$ac_exeext
14469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14470 (eval $ac_link) 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag"
14478 || test ! -s conftest.err'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } &&
14484 { ac_try='test -s conftest$ac_exeext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 eval "$as_ac_var=yes"
14491else
14492 echo "$as_me: failed program was:" >&5
14493sed 's/^/| /' conftest.$ac_ext >&5
14494
14495eval "$as_ac_var=no"
14496fi
14497rm -f conftest.err conftest.$ac_objext \
14498 conftest$ac_exeext conftest.$ac_ext
14499fi
14500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14502if test `eval echo '${'$as_ac_var'}'` = yes; then
14503 cat >>confdefs.h <<_ACEOF
14504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14505_ACEOF
14506
14507fi
14508done
14509
14510case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14511 true+yes )
14512cat >>confdefs.h <<\_ACEOF
14513#define USE_MMAP 1
14514_ACEOF
14515 ;;
14516esac
14517
14518rm -f doc/config.status
14519 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14520
14521 ac_config_commands="$ac_config_commands default"
14522
14523cat >confcache <<\_ACEOF
14524# This file is a shell script that caches the results of configure
14525# tests run on this system so they can be shared between configure
14526# scripts and configure runs, see configure's option --config-cache.
14527# It is not useful on other systems. If it contains results you don't
14528# want to keep, you may remove or edit it.
14529#
14530# config.status only pays attention to the cache file if you give it
14531# the --recheck option to rerun configure.
14532#
14533# `ac_cv_env_foo' variables (set or unset) will be overridden when
14534# loading this file, other *unset* `ac_cv_foo' will be assigned the
14535# following values.
14536
14537_ACEOF
14538
14539# The following way of writing the cache mishandles newlines in values,
14540# but we know of no workaround that is simple, portable, and efficient.
14541# So, don't put newlines in cache variables' values.
14542# Ultrix sh set writes to stderr and can't be redirected directly,
14543# and sets the high bit in the cache file unless we assign to the vars.
14544{
14545 (set) 2>&1 |
14546 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14547 *ac_space=\ *)
14548 # `set' does not quote correctly, so add quotes (double-quote
14549 # substitution turns \\\\ into \\, and sed turns \\ into \).
14550 sed -n \
14551 "s/'/'\\\\''/g;
14552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14553 ;;
14554 *)
14555 # `set' quotes correctly as required by POSIX, so do not add quotes.
14556 sed -n \
14557 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14558 ;;
14559 esac;
14560} |
14561 sed '
14562 t clear
14563 : clear
14564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14565 t end
14566 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14567 : end' >>confcache
14568if diff $cache_file confcache >/dev/null 2>&1; then :; else
14569 if test -w $cache_file; then
14570 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14571 cat confcache >$cache_file
14572 else
14573 echo "not updating unwritable cache $cache_file"
14574 fi
14575fi
14576rm -f confcache
14577
14578test "x$prefix" = xNONE && prefix=$ac_default_prefix
14579# Let make expand exec_prefix.
14580test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14581
14582# VPATH may cause trouble with some makes, so we remove $(srcdir),
14583# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14584# trailing colons and then remove the whole line if VPATH becomes empty
14585# (actually we leave an empty line to preserve line numbers).
14586if test "x$srcdir" = x.; then
14587 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14588s/:*\$(srcdir):*/:/;
14589s/:*\${srcdir}:*/:/;
14590s/:*@srcdir@:*/:/;
14591s/^\([^=]*=[ ]*\):*/\1/;
14592s/:*$//;
14593s/^[^=]*=[ ]*$//;
14594}'
14595fi
14596
14597DEFS=-DHAVE_CONFIG_H
14598
14599ac_libobjs=
14600ac_ltlibobjs=
14601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14602 # 1. Remove the extension, and $U if already installed.
14603 ac_i=`echo "$ac_i" |
14604 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14605 # 2. Add them.
14606 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14607 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14608done
14609LIBOBJS=$ac_libobjs
14610
14611LTLIBOBJS=$ac_ltlibobjs
14612
14613
14614if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14615 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14616Usually this means the macro was only invoked conditionally." >&5
14617echo "$as_me: error: conditional \"AMDEP\" was never defined.
14618Usually this means the macro was only invoked conditionally." >&2;}
14619 { (exit 1); exit 1; }; }
14620fi
14621if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14622 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14623Usually this means the macro was only invoked conditionally." >&5
14624echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14625Usually this means the macro was only invoked conditionally." >&2;}
14626 { (exit 1); exit 1; }; }
14627fi
14628if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14629 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14630Usually this means the macro was only invoked conditionally." >&5
14631echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14632Usually this means the macro was only invoked conditionally." >&2;}
14633 { (exit 1); exit 1; }; }
14634fi
14635if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14636 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14637Usually this means the macro was only invoked conditionally." >&5
14638echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14639Usually this means the macro was only invoked conditionally." >&2;}
14640 { (exit 1); exit 1; }; }
14641fi
14642
14643: ${CONFIG_STATUS=./config.status}
14644ac_clean_files_save=$ac_clean_files
14645ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14646{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14647echo "$as_me: creating $CONFIG_STATUS" >&6;}
14648cat >$CONFIG_STATUS <<_ACEOF
14649#! $SHELL
14650# Generated by $as_me.
14651# Run this file to recreate the current configuration.
14652# Compiler output produced by configure, useful for debugging
14653# configure, is in config.log if it exists.
14654
14655debug=false
14656ac_cs_recheck=false
14657ac_cs_silent=false
14658SHELL=\${CONFIG_SHELL-$SHELL}
14659_ACEOF
14660
14661cat >>$CONFIG_STATUS <<\_ACEOF
14662## --------------------- ##
14663## M4sh Initialization. ##
14664## --------------------- ##
14665
14666# Be Bourne compatible
14667if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14668 emulate sh
14669 NULLCMD=:
14670 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14671 # is contrary to our usage. Disable this feature.
14672 alias -g '${1+"$@"}'='"$@"'
14673elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14674 set -o posix
14675fi
14676DUALCASE=1; export DUALCASE # for MKS sh
14677
14678# Support unset when possible.
14679if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14680 as_unset=unset
14681else
14682 as_unset=false
14683fi
14684
14685
14686# Work around bugs in pre-3.0 UWIN ksh.
14687$as_unset ENV MAIL MAILPATH
14688PS1='$ '
14689PS2='> '
14690PS4='+ '
14691
14692# NLS nuisances.
14693for as_var in \
14694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14696 LC_TELEPHONE LC_TIME
14697do
14698 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14699 eval $as_var=C; export $as_var
14700 else
14701 $as_unset $as_var
14702 fi
14703done
14704
14705# Required to use basename.
14706if expr a : '\(a\)' >/dev/null 2>&1; then
14707 as_expr=expr
14708else
14709 as_expr=false
14710fi
14711
14712if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14713 as_basename=basename
14714else
14715 as_basename=false
14716fi
14717
14718
14719# Name of the executable.
14720as_me=`$as_basename "$0" ||
14721$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14722 X"$0" : 'X\(//\)$' \| \
14723 X"$0" : 'X\(/\)$' \| \
14724 . : '\(.\)' 2>/dev/null ||
14725echo X/"$0" |
14726 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14727 /^X\/\(\/\/\)$/{ s//\1/; q; }
14728 /^X\/\(\/\).*/{ s//\1/; q; }
14729 s/.*/./; q'`
14730
14731
14732# PATH needs CR, and LINENO needs CR and PATH.
14733# Avoid depending upon Character Ranges.
14734as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14735as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14736as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14737as_cr_digits='0123456789'
14738as_cr_alnum=$as_cr_Letters$as_cr_digits
14739
14740# The user is always right.
14741if test "${PATH_SEPARATOR+set}" != set; then
14742 echo "#! /bin/sh" >conf$$.sh
14743 echo "exit 0" >>conf$$.sh
14744 chmod +x conf$$.sh
14745 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14746 PATH_SEPARATOR=';'
14747 else
14748 PATH_SEPARATOR=:
14749 fi
14750 rm -f conf$$.sh
14751fi
14752
14753
14754 as_lineno_1=$LINENO
14755 as_lineno_2=$LINENO
14756 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14757 test "x$as_lineno_1" != "x$as_lineno_2" &&
14758 test "x$as_lineno_3" = "x$as_lineno_2" || {
14759 # Find who we are. Look in the path if we contain no path at all
14760 # relative or not.
14761 case $0 in
14762 *[\\/]* ) as_myself=$0 ;;
14763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14764for as_dir in $PATH
14765do
14766 IFS=$as_save_IFS
14767 test -z "$as_dir" && as_dir=.
14768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14769done
14770
14771 ;;
14772 esac
14773 # We did not find ourselves, most probably we were run as `sh COMMAND'
14774 # in which case we are not to be found in the path.
14775 if test "x$as_myself" = x; then
14776 as_myself=$0
14777 fi
14778 if test ! -f "$as_myself"; then
14779 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14780echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14781 { (exit 1); exit 1; }; }
14782 fi
14783 case $CONFIG_SHELL in
14784 '')
14785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14787do
14788 IFS=$as_save_IFS
14789 test -z "$as_dir" && as_dir=.
14790 for as_base in sh bash ksh sh5; do
14791 case $as_dir in
14792 /*)
14793 if ("$as_dir/$as_base" -c '
14794 as_lineno_1=$LINENO
14795 as_lineno_2=$LINENO
14796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14797 test "x$as_lineno_1" != "x$as_lineno_2" &&
14798 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14799 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14800 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14801 CONFIG_SHELL=$as_dir/$as_base
14802 export CONFIG_SHELL
14803 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14804 fi;;
14805 esac
14806 done
14807done
14808;;
14809 esac
14810
14811 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14812 # uniformly replaced by the line number. The first 'sed' inserts a
14813 # line-number line before each line; the second 'sed' does the real
14814 # work. The second script uses 'N' to pair each line-number line
14815 # with the numbered line, and appends trailing '-' during
14816 # substitution so that $LINENO is not a special case at line end.
14817 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14818 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14819 sed '=' <$as_myself |
14820 sed '
14821 N
14822 s,$,-,
14823 : loop
14824 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14825 t loop
14826 s,-$,,
14827 s,^['$as_cr_digits']*\n,,
14828 ' >$as_me.lineno &&
14829 chmod +x $as_me.lineno ||
14830 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14831echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14832 { (exit 1); exit 1; }; }
14833
14834 # Don't try to exec as it changes $[0], causing all sort of problems
14835 # (the dirname of $[0] is not the place where we might find the
14836 # original and so on. Autoconf is especially sensible to this).
14837 . ./$as_me.lineno
14838 # Exit status is that of the last command.
14839 exit
14840}
14841
14842
14843case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14844 *c*,-n*) ECHO_N= ECHO_C='
14845' ECHO_T=' ' ;;
14846 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14847 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14848esac
14849
14850if expr a : '\(a\)' >/dev/null 2>&1; then
14851 as_expr=expr
14852else
14853 as_expr=false
14854fi
14855
14856rm -f conf$$ conf$$.exe conf$$.file
14857echo >conf$$.file
14858if ln -s conf$$.file conf$$ 2>/dev/null; then
14859 # We could just check for DJGPP; but this test a) works b) is more generic
14860 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14861 if test -f conf$$.exe; then
14862 # Don't use ln at all; we don't have any links
14863 as_ln_s='cp -p'
14864 else
14865 as_ln_s='ln -s'
14866 fi
14867elif ln conf$$.file conf$$ 2>/dev/null; then
14868 as_ln_s=ln
14869else
14870 as_ln_s='cp -p'
14871fi
14872rm -f conf$$ conf$$.exe conf$$.file
14873
14874if mkdir -p . 2>/dev/null; then
14875 as_mkdir_p=:
14876else
14877 test -d ./-p && rmdir ./-p
14878 as_mkdir_p=false
14879fi
14880
14881as_executable_p="test -f"
14882
14883# Sed expression to map a string onto a valid CPP name.
14884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14885
14886# Sed expression to map a string onto a valid variable name.
14887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14888
14889
14890# IFS
14891# We need space, tab and new line, in precisely that order.
14892as_nl='
14893'
14894IFS=" $as_nl"
14895
14896# CDPATH.
14897$as_unset CDPATH
14898
14899exec 6>&1
14900
14901# Open the log real soon, to keep \$[0] and so on meaningful, and to
14902# report actual input values of CONFIG_FILES etc. instead of their
14903# values after options handling. Logging --version etc. is OK.
14904exec 5>>config.log
14905{
14906 echo
14907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14908## Running $as_me. ##
14909_ASBOX
14910} >&5
14911cat >&5 <<_CSEOF
14912
14913This file was extended by $as_me, which was
14914generated by GNU Autoconf 2.59. Invocation command line was
14915
14916 CONFIG_FILES = $CONFIG_FILES
14917 CONFIG_HEADERS = $CONFIG_HEADERS
14918 CONFIG_LINKS = $CONFIG_LINKS
14919 CONFIG_COMMANDS = $CONFIG_COMMANDS
14920 $ $0 $@
14921
14922_CSEOF
14923echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14924echo >&5
14925_ACEOF
14926
14927# Files that config.status was made for.
14928if test -n "$ac_config_files"; then
14929 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14930fi
14931
14932if test -n "$ac_config_headers"; then
14933 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14934fi
14935
14936if test -n "$ac_config_links"; then
14937 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14938fi
14939
14940if test -n "$ac_config_commands"; then
14941 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14942fi
14943
14944cat >>$CONFIG_STATUS <<\_ACEOF
14945
14946ac_cs_usage="\
14947\`$as_me' instantiates files from templates according to the
14948current configuration.
14949
14950Usage: $0 [OPTIONS] [FILE]...
14951
14952 -h, --help print this help, then exit
14953 -V, --version print version number, then exit
14954 -q, --quiet do not print progress messages
14955 -d, --debug don't remove temporary files
14956 --recheck update $as_me by reconfiguring in the same conditions
14957 --file=FILE[:TEMPLATE]
14958 instantiate the configuration file FILE
14959 --header=FILE[:TEMPLATE]
14960 instantiate the configuration header FILE
14961
14962Configuration files:
14963$config_files
14964
14965Configuration headers:
14966$config_headers
14967
14968Configuration commands:
14969$config_commands
14970
14971Report bugs to <bug-autoconf@gnu.org>."
14972_ACEOF
14973
14974cat >>$CONFIG_STATUS <<_ACEOF
14975ac_cs_version="\\
14976config.status
14977configured by $0, generated by GNU Autoconf 2.59,
14978 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14979
14980Copyright (C) 2003 Free Software Foundation, Inc.
14981This config.status script is free software; the Free Software Foundation
14982gives unlimited permission to copy, distribute and modify it."
14983srcdir=$srcdir
14984INSTALL="$INSTALL"
14985_ACEOF
14986
14987cat >>$CONFIG_STATUS <<\_ACEOF
14988# If no file are specified by the user, then we need to provide default
14989# value. By we need to know if files were specified by the user.
14990ac_need_defaults=:
14991while test $# != 0
14992do
14993 case $1 in
14994 --*=*)
14995 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14996 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14997 ac_shift=:
14998 ;;
14999 -*)
15000 ac_option=$1
15001 ac_optarg=$2
15002 ac_shift=shift
15003 ;;
15004 *) # This is not an option, so the user has probably given explicit
15005 # arguments.
15006 ac_option=$1
15007 ac_need_defaults=false;;
15008 esac
15009
15010 case $ac_option in
15011 # Handling of the options.
15012_ACEOF
15013cat >>$CONFIG_STATUS <<\_ACEOF
15014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15015 ac_cs_recheck=: ;;
15016 --version | --vers* | -V )
15017 echo "$ac_cs_version"; exit 0 ;;
15018 --he | --h)
15019 # Conflict between --help and --header
15020 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15021Try \`$0 --help' for more information." >&5
15022echo "$as_me: error: ambiguous option: $1
15023Try \`$0 --help' for more information." >&2;}
15024 { (exit 1); exit 1; }; };;
15025 --help | --hel | -h )
15026 echo "$ac_cs_usage"; exit 0 ;;
15027 --debug | --d* | -d )
15028 debug=: ;;
15029 --file | --fil | --fi | --f )
15030 $ac_shift
15031 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15032 ac_need_defaults=false;;
15033 --header | --heade | --head | --hea )
15034 $ac_shift
15035 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15036 ac_need_defaults=false;;
15037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15038 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15039 ac_cs_silent=: ;;
15040
15041 # This is an error.
15042 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15043Try \`$0 --help' for more information." >&5
15044echo "$as_me: error: unrecognized option: $1
15045Try \`$0 --help' for more information." >&2;}
15046 { (exit 1); exit 1; }; } ;;
15047
15048 *) ac_config_targets="$ac_config_targets $1" ;;
15049
15050 esac
15051 shift
15052done
15053
15054ac_configure_extra_args=
15055
15056if $ac_cs_silent; then
15057 exec 6>/dev/null
15058 ac_configure_extra_args="$ac_configure_extra_args --silent"
15059fi
15060
15061_ACEOF
15062cat >>$CONFIG_STATUS <<_ACEOF
15063if \$ac_cs_recheck; then
15064 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15065 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15066fi
15067
15068_ACEOF
15069
15070cat >>$CONFIG_STATUS <<_ACEOF
15071#
15072# INIT-COMMANDS section.
15073#
15074
15075AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15076
15077
15078_ACEOF
15079
15080
15081
15082cat >>$CONFIG_STATUS <<\_ACEOF
15083for ac_config_target in $ac_config_targets
15084do
15085 case "$ac_config_target" in
15086 # Handling of arguments.
15087 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15088 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15089 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15090 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15091 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15092 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15093 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15094 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15095echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15096 { (exit 1); exit 1; }; };;
15097 esac
15098done
15099
15100# If the user did not use the arguments to specify the items to instantiate,
15101# then the envvar interface is used. Set only those that are not.
15102# We use the long form for the default assignment because of an extremely
15103# bizarre bug on SunOS 4.1.3.
15104if $ac_need_defaults; then
15105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15108fi
15109
15110# Have a temporary directory for convenience. Make it in the build tree
15111# simply because there is no reason to put it here, and in addition,
15112# creating and moving files from /tmp can sometimes cause problems.
15113# Create a temporary directory, and hook for its removal unless debugging.
15114$debug ||
15115{
15116 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15117 trap '{ (exit 1); exit 1; }' 1 2 13 15
15118}
15119
15120# Create a (secure) tmp directory for tmp files.
15121
15122{
15123 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15124 test -n "$tmp" && test -d "$tmp"
15125} ||
15126{
15127 tmp=./confstat$$-$RANDOM
15128 (umask 077 && mkdir $tmp)
15129} ||
15130{
15131 echo "$me: cannot create a temporary directory in ." >&2
15132 { (exit 1); exit 1; }
15133}
15134
15135_ACEOF
15136
15137cat >>$CONFIG_STATUS <<_ACEOF
15138
15139#
15140# CONFIG_FILES section.
15141#
15142
15143# No need to generate the scripts if there are no CONFIG_FILES.
15144# This happens for instance when ./config.status config.h
15145if test -n "\$CONFIG_FILES"; then
15146 # Protect against being on the right side of a sed subst in config.status.
15147 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15148 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15149s,@SHELL@,$SHELL,;t t
15150s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15151s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15152s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15153s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15154s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15155s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15156s,@exec_prefix@,$exec_prefix,;t t
15157s,@prefix@,$prefix,;t t
15158s,@program_transform_name@,$program_transform_name,;t t
15159s,@bindir@,$bindir,;t t
15160s,@sbindir@,$sbindir,;t t
15161s,@libexecdir@,$libexecdir,;t t
15162s,@datadir@,$datadir,;t t
15163s,@sysconfdir@,$sysconfdir,;t t
15164s,@sharedstatedir@,$sharedstatedir,;t t
15165s,@localstatedir@,$localstatedir,;t t
15166s,@libdir@,$libdir,;t t
15167s,@includedir@,$includedir,;t t
15168s,@oldincludedir@,$oldincludedir,;t t
15169s,@infodir@,$infodir,;t t
15170s,@mandir@,$mandir,;t t
15171s,@build_alias@,$build_alias,;t t
15172s,@host_alias@,$host_alias,;t t
15173s,@target_alias@,$target_alias,;t t
15174s,@DEFS@,$DEFS,;t t
15175s,@ECHO_C@,$ECHO_C,;t t
15176s,@ECHO_N@,$ECHO_N,;t t
15177s,@ECHO_T@,$ECHO_T,;t t
15178s,@LIBS@,$LIBS,;t t
15179s,@build@,$build,;t t
15180s,@build_cpu@,$build_cpu,;t t
15181s,@build_vendor@,$build_vendor,;t t
15182s,@build_os@,$build_os,;t t
15183s,@host@,$host,;t t
15184s,@host_cpu@,$host_cpu,;t t
15185s,@host_vendor@,$host_vendor,;t t
15186s,@host_os@,$host_os,;t t
15187s,@target@,$target,;t t
15188s,@target_cpu@,$target_cpu,;t t
15189s,@target_vendor@,$target_vendor,;t t
15190s,@target_os@,$target_os,;t t
15191s,@CC@,$CC,;t t
15192s,@CFLAGS@,$CFLAGS,;t t
15193s,@LDFLAGS@,$LDFLAGS,;t t
15194s,@CPPFLAGS@,$CPPFLAGS,;t t
15195s,@ac_ct_CC@,$ac_ct_CC,;t t
15196s,@EXEEXT@,$EXEEXT,;t t
15197s,@OBJEXT@,$OBJEXT,;t t
15198s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15199s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15200s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15201s,@CYGPATH_W@,$CYGPATH_W,;t t
15202s,@PACKAGE@,$PACKAGE,;t t
15203s,@VERSION@,$VERSION,;t t
15204s,@ACLOCAL@,$ACLOCAL,;t t
15205s,@AUTOCONF@,$AUTOCONF,;t t
15206s,@AUTOMAKE@,$AUTOMAKE,;t t
15207s,@AUTOHEADER@,$AUTOHEADER,;t t
15208s,@MAKEINFO@,$MAKEINFO,;t t
15209s,@install_sh@,$install_sh,;t t
15210s,@STRIP@,$STRIP,;t t
15211s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15212s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15213s,@mkdir_p@,$mkdir_p,;t t
15214s,@AWK@,$AWK,;t t
15215s,@SET_MAKE@,$SET_MAKE,;t t
15216s,@am__leading_dot@,$am__leading_dot,;t t
15217s,@AMTAR@,$AMTAR,;t t
15218s,@am__tar@,$am__tar,;t t
15219s,@am__untar@,$am__untar,;t t
15220s,@DEPDIR@,$DEPDIR,;t t
15221s,@am__include@,$am__include,;t t
15222s,@am__quote@,$am__quote,;t t
15223s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15224s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15225s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15226s,@CCDEPMODE@,$CCDEPMODE,;t t
15227s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15228s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15229s,@AR@,$AR,;t t
15230s,@ac_ct_AR@,$ac_ct_AR,;t t
15231s,@RANLIB@,$RANLIB,;t t
15232s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15233s,@LN_S@,$LN_S,;t t
15234s,@LIBTOOL@,$LIBTOOL,;t t
15235s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15236s,@NO_WERROR@,$NO_WERROR,;t t
15237s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15238s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15239s,@MAINT@,$MAINT,;t t
15240s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15241s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15242s,@host_noncanonical@,$host_noncanonical,;t t
15243s,@target_noncanonical@,$target_noncanonical,;t t
15244s,@bfdlibdir@,$bfdlibdir,;t t
15245s,@bfdincludedir@,$bfdincludedir,;t t
15246s,@CPP@,$CPP,;t t
15247s,@EGREP@,$EGREP,;t t
15248s,@ALLOCA@,$ALLOCA,;t t
15249s,@USE_NLS@,$USE_NLS,;t t
15250s,@MSGFMT@,$MSGFMT,;t t
15251s,@GMSGFMT@,$GMSGFMT,;t t
15252s,@XGETTEXT@,$XGETTEXT,;t t
15253s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15254s,@CATALOGS@,$CATALOGS,;t t
15255s,@CATOBJEXT@,$CATOBJEXT,;t t
15256s,@DATADIRNAME@,$DATADIRNAME,;t t
15257s,@GMOFILES@,$GMOFILES,;t t
15258s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15259s,@INTLDEPS@,$INTLDEPS,;t t
15260s,@INTLLIBS@,$INTLLIBS,;t t
15261s,@INTLOBJS@,$INTLOBJS,;t t
15262s,@POFILES@,$POFILES,;t t
15263s,@POSUB@,$POSUB,;t t
15264s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15265s,@GT_NO@,$GT_NO,;t t
15266s,@GT_YES@,$GT_YES,;t t
15267s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15268s,@l@,$l,;t t
15269s,@HDEFINES@,$HDEFINES,;t t
15270s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15271s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15272s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15273s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15274s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15275s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15276s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15277s,@COREFILE@,$COREFILE,;t t
15278s,@COREFLAG@,$COREFLAG,;t t
15279s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15280s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15281s,@TDEFINES@,$TDEFINES,;t t
15282s,@wordsize@,$wordsize,;t t
15283s,@bfd_libs@,$bfd_libs,;t t
15284s,@all_backends@,$all_backends,;t t
15285s,@bfd_backends@,$bfd_backends,;t t
15286s,@bfd_machines@,$bfd_machines,;t t
15287s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15288s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15289s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15290s,@tdefaults@,$tdefaults,;t t
15291s,@LIBOBJS@,$LIBOBJS,;t t
15292s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15293CEOF
15294
15295_ACEOF
15296
15297 cat >>$CONFIG_STATUS <<\_ACEOF
15298 # Split the substitutions into bite-sized pieces for seds with
15299 # small command number limits, like on Digital OSF/1 and HP-UX.
15300 ac_max_sed_lines=48
15301 ac_sed_frag=1 # Number of current file.
15302 ac_beg=1 # First line for current file.
15303 ac_end=$ac_max_sed_lines # Line after last line for current file.
15304 ac_more_lines=:
15305 ac_sed_cmds=
15306 while $ac_more_lines; do
15307 if test $ac_beg -gt 1; then
15308 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15309 else
15310 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15311 fi
15312 if test ! -s $tmp/subs.frag; then
15313 ac_more_lines=false
15314 else
15315 # The purpose of the label and of the branching condition is to
15316 # speed up the sed processing (if there are no `@' at all, there
15317 # is no need to browse any of the substitutions).
15318 # These are the two extra sed commands mentioned above.
15319 (echo ':t
15320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15321 if test -z "$ac_sed_cmds"; then
15322 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15323 else
15324 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15325 fi
15326 ac_sed_frag=`expr $ac_sed_frag + 1`
15327 ac_beg=$ac_end
15328 ac_end=`expr $ac_end + $ac_max_sed_lines`
15329 fi
15330 done
15331 if test -z "$ac_sed_cmds"; then
15332 ac_sed_cmds=cat
15333 fi
15334fi # test -n "$CONFIG_FILES"
15335
15336_ACEOF
15337cat >>$CONFIG_STATUS <<\_ACEOF
15338for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15340 case $ac_file in
15341 - | *:- | *:-:* ) # input from stdin
15342 cat >$tmp/stdin
15343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15347 * ) ac_file_in=$ac_file.in ;;
15348 esac
15349
15350 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15351 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15353 X"$ac_file" : 'X\(//\)[^/]' \| \
15354 X"$ac_file" : 'X\(//\)$' \| \
15355 X"$ac_file" : 'X\(/\)' \| \
15356 . : '\(.\)' 2>/dev/null ||
15357echo X"$ac_file" |
15358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15360 /^X\(\/\/\)$/{ s//\1/; q; }
15361 /^X\(\/\).*/{ s//\1/; q; }
15362 s/.*/./; q'`
15363 { if $as_mkdir_p; then
15364 mkdir -p "$ac_dir"
15365 else
15366 as_dir="$ac_dir"
15367 as_dirs=
15368 while test ! -d "$as_dir"; do
15369 as_dirs="$as_dir $as_dirs"
15370 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15372 X"$as_dir" : 'X\(//\)[^/]' \| \
15373 X"$as_dir" : 'X\(//\)$' \| \
15374 X"$as_dir" : 'X\(/\)' \| \
15375 . : '\(.\)' 2>/dev/null ||
15376echo X"$as_dir" |
15377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15379 /^X\(\/\/\)$/{ s//\1/; q; }
15380 /^X\(\/\).*/{ s//\1/; q; }
15381 s/.*/./; q'`
15382 done
15383 test ! -n "$as_dirs" || mkdir $as_dirs
15384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15385echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15386 { (exit 1); exit 1; }; }; }
15387
15388 ac_builddir=.
15389
15390if test "$ac_dir" != .; then
15391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15392 # A "../" for each directory in $ac_dir_suffix.
15393 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15394else
15395 ac_dir_suffix= ac_top_builddir=
15396fi
15397
15398case $srcdir in
15399 .) # No --srcdir option. We are building in place.
15400 ac_srcdir=.
15401 if test -z "$ac_top_builddir"; then
15402 ac_top_srcdir=.
15403 else
15404 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15405 fi ;;
15406 [\\/]* | ?:[\\/]* ) # Absolute path.
15407 ac_srcdir=$srcdir$ac_dir_suffix;
15408 ac_top_srcdir=$srcdir ;;
15409 *) # Relative path.
15410 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15411 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15412esac
15413
15414# Do not use `cd foo && pwd` to compute absolute paths, because
15415# the directories may not exist.
15416case `pwd` in
15417.) ac_abs_builddir="$ac_dir";;
15418*)
15419 case "$ac_dir" in
15420 .) ac_abs_builddir=`pwd`;;
15421 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15422 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15423 esac;;
15424esac
15425case $ac_abs_builddir in
15426.) ac_abs_top_builddir=${ac_top_builddir}.;;
15427*)
15428 case ${ac_top_builddir}. in
15429 .) ac_abs_top_builddir=$ac_abs_builddir;;
15430 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15431 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15432 esac;;
15433esac
15434case $ac_abs_builddir in
15435.) ac_abs_srcdir=$ac_srcdir;;
15436*)
15437 case $ac_srcdir in
15438 .) ac_abs_srcdir=$ac_abs_builddir;;
15439 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15440 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15441 esac;;
15442esac
15443case $ac_abs_builddir in
15444.) ac_abs_top_srcdir=$ac_top_srcdir;;
15445*)
15446 case $ac_top_srcdir in
15447 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15448 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15449 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15450 esac;;
15451esac
15452
15453
15454 case $INSTALL in
15455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15456 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15457 esac
15458
15459 if test x"$ac_file" != x-; then
15460 { echo "$as_me:$LINENO: creating $ac_file" >&5
15461echo "$as_me: creating $ac_file" >&6;}
15462 rm -f "$ac_file"
15463 fi
15464 # Let's still pretend it is `configure' which instantiates (i.e., don't
15465 # use $as_me), people would be surprised to read:
15466 # /* config.h. Generated by config.status. */
15467 if test x"$ac_file" = x-; then
15468 configure_input=
15469 else
15470 configure_input="$ac_file. "
15471 fi
15472 configure_input=$configure_input"Generated from `echo $ac_file_in |
15473 sed 's,.*/,,'` by configure."
15474
15475 # First look for the input files in the build tree, otherwise in the
15476 # src tree.
15477 ac_file_inputs=`IFS=:
15478 for f in $ac_file_in; do
15479 case $f in
15480 -) echo $tmp/stdin ;;
15481 [\\/$]*)
15482 # Absolute (can't be DOS-style, as IFS=:)
15483 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15484echo "$as_me: error: cannot find input file: $f" >&2;}
15485 { (exit 1); exit 1; }; }
15486 echo "$f";;
15487 *) # Relative
15488 if test -f "$f"; then
15489 # Build tree
15490 echo "$f"
15491 elif test -f "$srcdir/$f"; then
15492 # Source tree
15493 echo "$srcdir/$f"
15494 else
15495 # /dev/null tree
15496 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15497echo "$as_me: error: cannot find input file: $f" >&2;}
15498 { (exit 1); exit 1; }; }
15499 fi;;
15500 esac
15501 done` || { (exit 1); exit 1; }
15502_ACEOF
15503cat >>$CONFIG_STATUS <<_ACEOF
15504 sed "$ac_vpsub
15505$extrasub
15506_ACEOF
15507cat >>$CONFIG_STATUS <<\_ACEOF
15508:t
15509/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15510s,@configure_input@,$configure_input,;t t
15511s,@srcdir@,$ac_srcdir,;t t
15512s,@abs_srcdir@,$ac_abs_srcdir,;t t
15513s,@top_srcdir@,$ac_top_srcdir,;t t
15514s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15515s,@builddir@,$ac_builddir,;t t
15516s,@abs_builddir@,$ac_abs_builddir,;t t
15517s,@top_builddir@,$ac_top_builddir,;t t
15518s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15519s,@INSTALL@,$ac_INSTALL,;t t
15520" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15521 rm -f $tmp/stdin
15522 if test x"$ac_file" != x-; then
15523 mv $tmp/out $ac_file
15524 else
15525 cat $tmp/out
15526 rm -f $tmp/out
15527 fi
15528
15529done
15530_ACEOF
15531cat >>$CONFIG_STATUS <<\_ACEOF
15532
15533#
15534# CONFIG_HEADER section.
15535#
15536
15537# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15538# NAME is the cpp macro being defined and VALUE is the value it is being given.
15539#
15540# ac_d sets the value in "#define NAME VALUE" lines.
15541ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15542ac_dB='[ ].*$,\1#\2'
15543ac_dC=' '
15544ac_dD=',;t'
15545# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15546ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15547ac_uB='$,\1#\2define\3'
15548ac_uC=' '
15549ac_uD=',;t'
15550
15551for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15553 case $ac_file in
15554 - | *:- | *:-:* ) # input from stdin
15555 cat >$tmp/stdin
15556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15560 * ) ac_file_in=$ac_file.in ;;
15561 esac
15562
15563 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15564echo "$as_me: creating $ac_file" >&6;}
15565
15566 # First look for the input files in the build tree, otherwise in the
15567 # src tree.
15568 ac_file_inputs=`IFS=:
15569 for f in $ac_file_in; do
15570 case $f in
15571 -) echo $tmp/stdin ;;
15572 [\\/$]*)
15573 # Absolute (can't be DOS-style, as IFS=:)
15574 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15575echo "$as_me: error: cannot find input file: $f" >&2;}
15576 { (exit 1); exit 1; }; }
15577 # Do quote $f, to prevent DOS paths from being IFS'd.
15578 echo "$f";;
15579 *) # Relative
15580 if test -f "$f"; then
15581 # Build tree
15582 echo "$f"
15583 elif test -f "$srcdir/$f"; then
15584 # Source tree
15585 echo "$srcdir/$f"
15586 else
15587 # /dev/null tree
15588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15589echo "$as_me: error: cannot find input file: $f" >&2;}
15590 { (exit 1); exit 1; }; }
15591 fi;;
15592 esac
15593 done` || { (exit 1); exit 1; }
15594 # Remove the trailing spaces.
15595 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15596
15597_ACEOF
15598
15599# Transform confdefs.h into two sed scripts, `conftest.defines' and
15600# `conftest.undefs', that substitutes the proper values into
15601# config.h.in to produce config.h. The first handles `#define'
15602# templates, and the second `#undef' templates.
15603# And first: Protect against being on the right side of a sed subst in
15604# config.status. Protect against being in an unquoted here document
15605# in config.status.
15606rm -f conftest.defines conftest.undefs
15607# Using a here document instead of a string reduces the quoting nightmare.
15608# Putting comments in sed scripts is not portable.
15609#
15610# `end' is used to avoid that the second main sed command (meant for
15611# 0-ary CPP macros) applies to n-ary macro definitions.
15612# See the Autoconf documentation for `clear'.
15613cat >confdef2sed.sed <<\_ACEOF
15614s/[\\&,]/\\&/g
15615s,[\\$`],\\&,g
15616t clear
15617: clear
15618s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15619t end
15620s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15621: end
15622_ACEOF
15623# If some macros were called several times there might be several times
15624# the same #defines, which is useless. Nevertheless, we may not want to
15625# sort them, since we want the *last* AC-DEFINE to be honored.
15626uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15627sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15628rm -f confdef2sed.sed
15629
15630# This sed command replaces #undef with comments. This is necessary, for
15631# example, in the case of _POSIX_SOURCE, which is predefined and required
15632# on some systems where configure will not decide to define it.
15633cat >>conftest.undefs <<\_ACEOF
15634s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15635_ACEOF
15636
15637# Break up conftest.defines because some shells have a limit on the size
15638# of here documents, and old seds have small limits too (100 cmds).
15639echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15640echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15641echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15642echo ' :' >>$CONFIG_STATUS
15643rm -f conftest.tail
15644while grep . conftest.defines >/dev/null
15645do
15646 # Write a limited-size here document to $tmp/defines.sed.
15647 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15648 # Speed up: don't consider the non `#define' lines.
15649 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15650 # Work around the forget-to-reset-the-flag bug.
15651 echo 't clr' >>$CONFIG_STATUS
15652 echo ': clr' >>$CONFIG_STATUS
15653 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15654 echo 'CEOF
15655 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15656 rm -f $tmp/in
15657 mv $tmp/out $tmp/in
15658' >>$CONFIG_STATUS
15659 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15660 rm -f conftest.defines
15661 mv conftest.tail conftest.defines
15662done
15663rm -f conftest.defines
15664echo ' fi # grep' >>$CONFIG_STATUS
15665echo >>$CONFIG_STATUS
15666
15667# Break up conftest.undefs because some shells have a limit on the size
15668# of here documents, and old seds have small limits too (100 cmds).
15669echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15670rm -f conftest.tail
15671while grep . conftest.undefs >/dev/null
15672do
15673 # Write a limited-size here document to $tmp/undefs.sed.
15674 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15675 # Speed up: don't consider the non `#undef'
15676 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15677 # Work around the forget-to-reset-the-flag bug.
15678 echo 't clr' >>$CONFIG_STATUS
15679 echo ': clr' >>$CONFIG_STATUS
15680 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15681 echo 'CEOF
15682 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15683 rm -f $tmp/in
15684 mv $tmp/out $tmp/in
15685' >>$CONFIG_STATUS
15686 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15687 rm -f conftest.undefs
15688 mv conftest.tail conftest.undefs
15689done
15690rm -f conftest.undefs
15691
15692cat >>$CONFIG_STATUS <<\_ACEOF
15693 # Let's still pretend it is `configure' which instantiates (i.e., don't
15694 # use $as_me), people would be surprised to read:
15695 # /* config.h. Generated by config.status. */
15696 if test x"$ac_file" = x-; then
15697 echo "/* Generated by configure. */" >$tmp/config.h
15698 else
15699 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15700 fi
15701 cat $tmp/in >>$tmp/config.h
15702 rm -f $tmp/in
15703 if test x"$ac_file" != x-; then
15704 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15706echo "$as_me: $ac_file is unchanged" >&6;}
15707 else
15708 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15709$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710 X"$ac_file" : 'X\(//\)[^/]' \| \
15711 X"$ac_file" : 'X\(//\)$' \| \
15712 X"$ac_file" : 'X\(/\)' \| \
15713 . : '\(.\)' 2>/dev/null ||
15714echo X"$ac_file" |
15715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15717 /^X\(\/\/\)$/{ s//\1/; q; }
15718 /^X\(\/\).*/{ s//\1/; q; }
15719 s/.*/./; q'`
15720 { if $as_mkdir_p; then
15721 mkdir -p "$ac_dir"
15722 else
15723 as_dir="$ac_dir"
15724 as_dirs=
15725 while test ! -d "$as_dir"; do
15726 as_dirs="$as_dir $as_dirs"
15727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15729 X"$as_dir" : 'X\(//\)[^/]' \| \
15730 X"$as_dir" : 'X\(//\)$' \| \
15731 X"$as_dir" : 'X\(/\)' \| \
15732 . : '\(.\)' 2>/dev/null ||
15733echo X"$as_dir" |
15734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15736 /^X\(\/\/\)$/{ s//\1/; q; }
15737 /^X\(\/\).*/{ s//\1/; q; }
15738 s/.*/./; q'`
15739 done
15740 test ! -n "$as_dirs" || mkdir $as_dirs
15741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15742echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15743 { (exit 1); exit 1; }; }; }
15744
15745 rm -f $ac_file
15746 mv $tmp/config.h $ac_file
15747 fi
15748 else
15749 cat $tmp/config.h
15750 rm -f $tmp/config.h
15751 fi
15752# Compute $ac_file's index in $config_headers.
15753_am_stamp_count=1
15754for _am_header in $config_headers :; do
15755 case $_am_header in
15756 $ac_file | $ac_file:* )
15757 break ;;
15758 * )
15759 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15760 esac
15761done
15762echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15763$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764 X$ac_file : 'X\(//\)[^/]' \| \
15765 X$ac_file : 'X\(//\)$' \| \
15766 X$ac_file : 'X\(/\)' \| \
15767 . : '\(.\)' 2>/dev/null ||
15768echo X$ac_file |
15769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15771 /^X\(\/\/\)$/{ s//\1/; q; }
15772 /^X\(\/\).*/{ s//\1/; q; }
15773 s/.*/./; q'`/stamp-h$_am_stamp_count
15774done
15775_ACEOF
15776cat >>$CONFIG_STATUS <<\_ACEOF
15777
15778#
15779# CONFIG_COMMANDS section.
15780#
15781for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15782 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15783 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15784 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15785$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15786 X"$ac_dest" : 'X\(//\)[^/]' \| \
15787 X"$ac_dest" : 'X\(//\)$' \| \
15788 X"$ac_dest" : 'X\(/\)' \| \
15789 . : '\(.\)' 2>/dev/null ||
15790echo X"$ac_dest" |
15791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15793 /^X\(\/\/\)$/{ s//\1/; q; }
15794 /^X\(\/\).*/{ s//\1/; q; }
15795 s/.*/./; q'`
15796 { if $as_mkdir_p; then
15797 mkdir -p "$ac_dir"
15798 else
15799 as_dir="$ac_dir"
15800 as_dirs=
15801 while test ! -d "$as_dir"; do
15802 as_dirs="$as_dir $as_dirs"
15803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15804$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15805 X"$as_dir" : 'X\(//\)[^/]' \| \
15806 X"$as_dir" : 'X\(//\)$' \| \
15807 X"$as_dir" : 'X\(/\)' \| \
15808 . : '\(.\)' 2>/dev/null ||
15809echo X"$as_dir" |
15810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15812 /^X\(\/\/\)$/{ s//\1/; q; }
15813 /^X\(\/\).*/{ s//\1/; q; }
15814 s/.*/./; q'`
15815 done
15816 test ! -n "$as_dirs" || mkdir $as_dirs
15817 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15818echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15819 { (exit 1); exit 1; }; }; }
15820
15821 ac_builddir=.
15822
15823if test "$ac_dir" != .; then
15824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15825 # A "../" for each directory in $ac_dir_suffix.
15826 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15827else
15828 ac_dir_suffix= ac_top_builddir=
15829fi
15830
15831case $srcdir in
15832 .) # No --srcdir option. We are building in place.
15833 ac_srcdir=.
15834 if test -z "$ac_top_builddir"; then
15835 ac_top_srcdir=.
15836 else
15837 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15838 fi ;;
15839 [\\/]* | ?:[\\/]* ) # Absolute path.
15840 ac_srcdir=$srcdir$ac_dir_suffix;
15841 ac_top_srcdir=$srcdir ;;
15842 *) # Relative path.
15843 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15844 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15845esac
15846
15847# Do not use `cd foo && pwd` to compute absolute paths, because
15848# the directories may not exist.
15849case `pwd` in
15850.) ac_abs_builddir="$ac_dir";;
15851*)
15852 case "$ac_dir" in
15853 .) ac_abs_builddir=`pwd`;;
15854 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15855 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15856 esac;;
15857esac
15858case $ac_abs_builddir in
15859.) ac_abs_top_builddir=${ac_top_builddir}.;;
15860*)
15861 case ${ac_top_builddir}. in
15862 .) ac_abs_top_builddir=$ac_abs_builddir;;
15863 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15864 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15865 esac;;
15866esac
15867case $ac_abs_builddir in
15868.) ac_abs_srcdir=$ac_srcdir;;
15869*)
15870 case $ac_srcdir in
15871 .) ac_abs_srcdir=$ac_abs_builddir;;
15872 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15873 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15874 esac;;
15875esac
15876case $ac_abs_builddir in
15877.) ac_abs_top_srcdir=$ac_top_srcdir;;
15878*)
15879 case $ac_top_srcdir in
15880 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15881 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15882 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15883 esac;;
15884esac
15885
15886
15887 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15888echo "$as_me: executing $ac_dest commands" >&6;}
15889 case $ac_dest in
15890 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15891 # Strip MF so we end up with the name of the file.
15892 mf=`echo "$mf" | sed -e 's/:.*$//'`
15893 # Check whether this is an Automake generated Makefile or not.
15894 # We used to match only the files named `Makefile.in', but
15895 # some people rename them; so instead we look at the file content.
15896 # Grep'ing the first line is not enough: some people post-process
15897 # each Makefile.in and add a new line on top of each file to say so.
15898 # So let's grep whole file.
15899 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15900 dirpart=`(dirname "$mf") 2>/dev/null ||
15901$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15902 X"$mf" : 'X\(//\)[^/]' \| \
15903 X"$mf" : 'X\(//\)$' \| \
15904 X"$mf" : 'X\(/\)' \| \
15905 . : '\(.\)' 2>/dev/null ||
15906echo X"$mf" |
15907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15909 /^X\(\/\/\)$/{ s//\1/; q; }
15910 /^X\(\/\).*/{ s//\1/; q; }
15911 s/.*/./; q'`
15912 else
15913 continue
15914 fi
15915 # Extract the definition of DEPDIR, am__include, and am__quote
15916 # from the Makefile without running `make'.
15917 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15918 test -z "$DEPDIR" && continue
15919 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15920 test -z "am__include" && continue
15921 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15922 # When using ansi2knr, U may be empty or an underscore; expand it
15923 U=`sed -n 's/^U = //p' < "$mf"`
15924 # Find all dependency output files, they are included files with
15925 # $(DEPDIR) in their names. We invoke sed twice because it is the
15926 # simplest approach to changing $(DEPDIR) to its actual value in the
15927 # expansion.
15928 for file in `sed -n "
15929 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15930 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15931 # Make sure the directory exists.
15932 test -f "$dirpart/$file" && continue
15933 fdir=`(dirname "$file") 2>/dev/null ||
15934$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15935 X"$file" : 'X\(//\)[^/]' \| \
15936 X"$file" : 'X\(//\)$' \| \
15937 X"$file" : 'X\(/\)' \| \
15938 . : '\(.\)' 2>/dev/null ||
15939echo X"$file" |
15940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15942 /^X\(\/\/\)$/{ s//\1/; q; }
15943 /^X\(\/\).*/{ s//\1/; q; }
15944 s/.*/./; q'`
15945 { if $as_mkdir_p; then
15946 mkdir -p $dirpart/$fdir
15947 else
15948 as_dir=$dirpart/$fdir
15949 as_dirs=
15950 while test ! -d "$as_dir"; do
15951 as_dirs="$as_dir $as_dirs"
15952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15954 X"$as_dir" : 'X\(//\)[^/]' \| \
15955 X"$as_dir" : 'X\(//\)$' \| \
15956 X"$as_dir" : 'X\(/\)' \| \
15957 . : '\(.\)' 2>/dev/null ||
15958echo X"$as_dir" |
15959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15961 /^X\(\/\/\)$/{ s//\1/; q; }
15962 /^X\(\/\).*/{ s//\1/; q; }
15963 s/.*/./; q'`
15964 done
15965 test ! -n "$as_dirs" || mkdir $as_dirs
15966 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15967echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15968 { (exit 1); exit 1; }; }; }
15969
15970 # echo "creating $dirpart/$file"
15971 echo '# dummy' > "$dirpart/$file"
15972 done
15973done
15974 ;;
15975 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15976 esac
15977done
15978_ACEOF
15979
15980cat >>$CONFIG_STATUS <<\_ACEOF
15981
15982{ (exit 0); exit 0; }
15983_ACEOF
15984chmod +x $CONFIG_STATUS
15985ac_clean_files=$ac_clean_files_save
15986
15987
15988# configure is writing to config.log, and then calls config.status.
15989# config.status does its own redirection, appending to config.log.
15990# Unfortunately, on DOS this fails, as config.log is still kept open
15991# by configure, so config.status won't be able to write to it; its
15992# output is simply discarded. So we exec the FD to /dev/null,
15993# effectively closing config.log, so it can be properly (re)opened and
15994# appended to by config.status. When coming back to configure, we
15995# need to make the FD available again.
15996if test "$no_create" != yes; then
15997 ac_cs_success=:
15998 ac_config_status_args=
15999 test "$silent" = yes &&
16000 ac_config_status_args="$ac_config_status_args --quiet"
16001 exec 5>/dev/null
16002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16003 exec 5>>config.log
16004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16005 # would make configure fail if this is the last instruction.
16006 $ac_cs_success || { (exit 1); exit 1; }
16007fi
16008
16009
This page took 0.079986 seconds and 4 git commands to generate.