]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
* ltmain.sh: Update from GCC.
[thirdparty/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
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`
252b5132 248
5464f5a1
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
5464f5a1
NN
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
c428fa83 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 PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
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.
252b5132
RH
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
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
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
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
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"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
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 ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
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 \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
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; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
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=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
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
252b5132 641 *)
5464f5a1
NN
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}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
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; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
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
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
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; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
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
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
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.
5464f5a1
NN
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'`
252b5132
RH
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
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
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
b3baf5d0 773
5464f5a1
NN
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.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
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]
6be7c12c 809
5464f5a1
NN
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'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
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
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
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
252b5132 838
5464f5a1
NN
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
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
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
6ec7057a 862 --enable-secureplt Default to creating read-only plt entries
241a6c40
AM
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
5464f5a1
NN
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
a1ac8190
JM
876 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
877 Binutils"
c428fa83 878 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
879
880Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892_ACEOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
909
910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
924esac
925
5464f5a1
NN
926# Do not use `cd foo && pwd` to compute absolute paths, because
927# the directories may not exist.
928case `pwd` in
929.) ac_abs_builddir="$ac_dir";;
930*)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_builddir=${ac_top_builddir}.;;
939*)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_srcdir=$ac_srcdir;;
948*)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_srcdir=$ac_top_srcdir;;
957*)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963esac
6be7c12c 964
5464f5a1
NN
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 fi
49c96104 980 cd $ac_popdir
5464f5a1 981 done
6be7c12c
AO
982fi
983
5464f5a1
NN
984test -n "$ac_init_help" && exit 0
985if $ac_init_version; then
986 cat <<\_ACEOF
6be7c12c 987
5464f5a1
NN
988Copyright (C) 2003 Free Software Foundation, Inc.
989This configure script is free software; the Free Software Foundation
990gives unlimited permission to copy, distribute and modify it.
991_ACEOF
992 exit 0
993fi
994exec 5>config.log
995cat >&5 <<_ACEOF
996This file contains any messages produced by compilers while
997running configure, to aid debugging if configure makes a mistake.
6be7c12c 998
5464f5a1
NN
999It was created by $as_me, which was
1000generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1001
5464f5a1 1002 $ $0 $@
6be7c12c 1003
5464f5a1
NN
1004_ACEOF
1005{
1006cat <<_ASUNAME
1007## --------- ##
1008## Platform. ##
1009## --------- ##
1010
1011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028_ASUNAME
1029
1030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031for as_dir in $PATH
1032do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036done
6be7c12c 1037
5464f5a1 1038} >&5
66e25bab 1039
5464f5a1 1040cat >&5 <<_ACEOF
b3baf5d0 1041
6be7c12c 1042
5464f5a1
NN
1043## ----------- ##
1044## Core tests. ##
1045## ----------- ##
252b5132 1046
5464f5a1 1047_ACEOF
c5d1701e 1048
6be7c12c 1049
5464f5a1
NN
1050# Keep a trace of the command line.
1051# Strip out --no-create and --no-recursion so they do not pile up.
1052# Strip out --silent because we don't want to record it for future runs.
1053# Also quote any args containing shell meta-characters.
1054# Make two passes to allow for proper duplicate-argument suppression.
1055ac_configure_args=
1056ac_configure_args0=
1057ac_configure_args1=
1058ac_sep=
1059ac_must_keep_next=false
1060for ac_pass in 1 2
1061do
1062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
1097done
1098$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101# When interrupted or exit'd, cleanup temporary files, and complete
1102# config.log. We remove comments because anyway the quotes in there
1103# would cause problems or look ugly.
1104# WARNING: Be sure not to use single quotes in there, as some shells,
1105# such as our DU 5.0 friend, will then `close' the trap.
1106trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112## ---------------- ##
1113## Cache variables. ##
1114## ---------------- ##
1115_ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1118{
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 ;;
1126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131}
1132 echo
1133
1134 cat <<\_ASBOX
1135## ----------------- ##
1136## Output variables. ##
1137## ----------------- ##
1138_ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149## ------------- ##
1150## Output files. ##
1151## ------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164## ----------- ##
1165## confdefs.h. ##
1166## ----------- ##
1167_ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1179 ' 0
1180for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182done
1183ac_signal=0
1184
1185# confdefs.h avoids OS command line length limits that DEFS can exceed.
1186rm -rf conftest* confdefs.h
1187# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188echo >confdefs.h
1189
1190# Predefined preprocessor variables.
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_NAME "$PACKAGE_NAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_VERSION "$PACKAGE_VERSION"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_STRING "$PACKAGE_STRING"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214_ACEOF
1215
1216
1217# Let the site file select an alternate cache file if it wants to.
1218# Prefer explicitly selected file to automatically selected ones.
1219if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225fi
1226for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1232 fi
1233done
1234
1235if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
1246else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250fi
1251
1252# Check that the precious variables saved in the cache have kept the same
1253# value.
1254ac_cache_corrupted=false
1255for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1293 fi
1294done
1295if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301fi
1302
1303ac_ext=c
1304ac_cpp='$CPP $CPPFLAGS'
1305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329ac_aux_dir=
1330for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1343 fi
1344done
1345if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1349fi
1350ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353
1354# Make sure we can run config.sub.
1355$ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1359
1360echo "$as_me:$LINENO: checking build system type" >&5
1361echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364else
1365 ac_cv_build_alias=$build_alias
1366test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377fi
1378echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379echo "${ECHO_T}$ac_cv_build" >&6
1380build=$ac_cv_build
1381build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386echo "$as_me:$LINENO: checking host system type" >&5
1387echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 ac_cv_host_alias=$host_alias
1392test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399fi
1400echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401echo "${ECHO_T}$ac_cv_host" >&6
1402host=$ac_cv_host
1403host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408echo "$as_me:$LINENO: checking target system type" >&5
1409echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 ac_cv_target_alias=$target_alias
1414test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421fi
1422echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423echo "${ECHO_T}$ac_cv_target" >&6
1424target=$ac_cv_target
1425target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430# The aliases save the names the user supplied, while $host etc.
1431# will get canonicalized.
1432test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1434 NONENONEs,x,x, &&
1435 program_prefix=${target_alias}-
1436ac_ext=c
1437ac_cpp='$CPP $CPPFLAGS'
1438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444echo "$as_me:$LINENO: checking for $ac_word" >&5
1445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451else
1452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453for as_dir in $PATH
1454do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463done
1464done
1465
1466fi
1467fi
1468CC=$ac_cv_prog_CC
1469if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471echo "${ECHO_T}$CC" >&6
1472else
1473 echo "$as_me:$LINENO: result: no" >&5
1474echo "${ECHO_T}no" >&6
1475fi
1476
1477fi
1478if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481set dummy gcc; ac_word=$2
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489else
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
1504fi
1505fi
1506ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509echo "${ECHO_T}$ac_ct_CC" >&6
1510else
1511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
1513fi
1514
1515 CC=$ac_ct_CC
1516else
1517 CC="$ac_cv_prog_CC"
1518fi
1519
1520if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523set dummy ${ac_tool_prefix}cc; ac_word=$2
1524echo "$as_me:$LINENO: checking for $ac_word" >&5
1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531else
1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533for as_dir in $PATH
1534do
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1542 fi
1543done
1544done
1545
1546fi
1547fi
1548CC=$ac_cv_prog_CC
1549if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551echo "${ECHO_T}$CC" >&6
1552else
1553 echo "$as_me:$LINENO: result: no" >&5
1554echo "${ECHO_T}no" >&6
1555fi
1556
1557fi
1558if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561set dummy cc; ac_word=$2
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569else
1570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581done
1582done
1583
1584fi
1585fi
1586ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589echo "${ECHO_T}$ac_ct_CC" >&6
1590else
1591 echo "$as_me:$LINENO: result: no" >&5
1592echo "${ECHO_T}no" >&6
1593fi
1594
1595 CC=$ac_ct_CC
1596else
1597 CC="$ac_cv_prog_CC"
1598fi
1599
1600fi
1601if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603set dummy cc; ac_word=$2
1604echo "$as_me:$LINENO: checking for $ac_word" >&5
1605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611else
1612 ac_prog_rejected=no
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1623 fi
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628done
1629done
1630
1631if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 fi
1642fi
1643fi
1644fi
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648echo "${ECHO_T}$CC" >&6
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654fi
1655if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661echo "$as_me:$LINENO: checking for $ac_word" >&5
1662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668else
1669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680done
1681done
1682
1683fi
1684fi
1685CC=$ac_cv_prog_CC
1686if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688echo "${ECHO_T}$CC" >&6
1689else
1690 echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694 test -n "$CC" && break
1695 done
1696fi
1697if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1700do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702set dummy $ac_prog; ac_word=$2
1703echo "$as_me:$LINENO: checking for $ac_word" >&5
1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710else
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1721 fi
1722done
1723done
1724
1725fi
1726fi
1727ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730echo "${ECHO_T}$ac_ct_CC" >&6
1731else
1732 echo "$as_me:$LINENO: result: no" >&5
1733echo "${ECHO_T}no" >&6
1734fi
1735
1736 test -n "$ac_ct_CC" && break
1737done
1738
1739 CC=$ac_ct_CC
1740fi
1741
1742fi
1743
1744
1745test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746See \`config.log' for more details." >&5
1747echo "$as_me: error: no acceptable C compiler found in \$PATH
1748See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751# Provide some information about the compiler.
1752echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754ac_compiler=`set X $ac_compile; echo $2`
1755{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770
1771cat >conftest.$ac_ext <<_ACEOF
1772/* confdefs.h. */
1773_ACEOF
1774cat confdefs.h >>conftest.$ac_ext
1775cat >>conftest.$ac_ext <<_ACEOF
1776/* end confdefs.h. */
1777
1778int
1779main ()
1780{
1781
1782 ;
1783 return 0;
1784}
1785_ACEOF
1786ac_clean_files_save=$ac_clean_files
1787ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788# Try to create an executable without -o first, disregard a.out.
1789# It will help us diagnose broken compilers, and finding out an intuition
1790# of exeext.
1791echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801# resort.
1802
1803# Be careful to initialize this variable, since it used to be cached.
1804# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805ac_cv_exeext=
1806# b.out is created by i960 compilers.
1807for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808do
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 ;;
1813 conftest.$ac_ext )
1814 # This is the source file.
1815 ;;
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1827 * )
1828 break;;
1829 esac
1830done
1831else
1832 echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836See \`config.log' for more details." >&5
1837echo "$as_me: error: C compiler cannot create executables
1838See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1840fi
1841
1842ac_exeext=$ac_cv_exeext
1843echo "$as_me:$LINENO: result: $ac_file" >&5
1844echo "${ECHO_T}$ac_file" >&6
1845
1846# Check the compiler produces executables we can run. If not, either
1847# the compiler is broken, or we cross compile.
1848echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851# If not cross compiling, check that we can run a simple program.
1852if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&5
1867echo "$as_me: error: cannot run C compiled programs.
1868If you meant to cross compile, use \`--host'.
1869See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872 fi
1873fi
1874echo "$as_me:$LINENO: result: yes" >&5
1875echo "${ECHO_T}yes" >&6
1876
1877rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878ac_clean_files=$ac_clean_files_save
1879# Check the compiler produces executables we can run. If not, either
1880# the compiler is broken, or we cross compile.
1881echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884echo "${ECHO_T}$cross_compiling" >&6
1885
1886echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895# work properly (i.e., refer to `conftest.exe'), while it won't with
1896# `rm'.
1897for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906done
1907else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909See \`config.log' for more details." >&5
1910echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1913fi
1914
1915rm -f conftest$ac_cv_exeext
1916echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917echo "${ECHO_T}$ac_cv_exeext" >&6
1918
1919rm -f conftest.$ac_ext
1920EXEEXT=$ac_cv_exeext
1921ac_exeext=$EXEEXT
1922echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927 cat >conftest.$ac_ext <<_ACEOF
1928/* confdefs.h. */
1929_ACEOF
1930cat confdefs.h >>conftest.$ac_ext
1931cat >>conftest.$ac_ext <<_ACEOF
1932/* end confdefs.h. */
1933
1934int
1935main ()
1936{
1937
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942rm -f conftest.o conftest.obj
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954done
1955else
1956 echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&5
1961echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1964fi
1965
1966rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967fi
1968echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969echo "${ECHO_T}$ac_cv_objext" >&6
1970OBJEXT=$ac_cv_objext
1971ac_objext=$OBJEXT
1972echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977 cat >conftest.$ac_ext <<_ACEOF
1978/* confdefs.h. */
1979_ACEOF
1980cat confdefs.h >>conftest.$ac_ext
1981cat >>conftest.$ac_ext <<_ACEOF
1982/* end confdefs.h. */
1983
1984int
1985main ()
1986{
1987#ifndef __GNUC__
1988 choke me
1989#endif
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995rm -f conftest.$ac_objext
1996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
49c96104
SE
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
5464f5a1
NN
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018else
2019 echo "$as_me: failed program was:" >&5
2020sed 's/^/| /' conftest.$ac_ext >&5
2021
2022ac_compiler_gnu=no
2023fi
2024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026
2027fi
2028echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030GCC=`test $ac_compiler_gnu = yes && echo yes`
2031ac_test_CFLAGS=${CFLAGS+set}
2032ac_save_CFLAGS=$CFLAGS
2033CFLAGS="-g"
2034echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039 cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h. */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>conftest.$ac_ext <<_ACEOF
2044/* end confdefs.h. */
2045
2046int
2047main ()
2048{
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054rm -f conftest.$ac_objext
2055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
49c96104
SE
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
5464f5a1
NN
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077else
2078 echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081ac_cv_prog_cc_g=no
2082fi
2083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084fi
2085echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2094 fi
2095else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2100 fi
2101fi
2102echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107 ac_cv_prog_cc_stdc=no
2108ac_save_CC=$CC
2109cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h. */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h. */
2115#include <stdarg.h>
2116#include <stdio.h>
2117#include <sys/types.h>
2118#include <sys/stat.h>
2119/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120struct buf { int x; };
2121FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122static char *e (p, i)
2123 char **p;
2124 int i;
2125{
2126 return p[i];
2127}
2128static char *f (char * (*g) (char **, int), char **p, ...)
2129{
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2136}
2137
2138/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146
2147int test (int i, double x);
2148struct s1 {int (*f) (int a);};
2149struct s2 {int (*f) (double a);};
2150int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151int argc;
2152char **argv;
2153int
2154main ()
2155{
2156return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161# Don't try gcc -ansi; that turns off useful extensions and
2162# breaks some systems' header files.
2163# AIX -qlanglvl=ansi
2164# Ultrix and OSF/1 -std1
2165# HP-UX 10.20 and later -Ae
2166# HP-UX older versions -Aa -D_HPUX_SOURCE
2167# SVR4 -Xc -D__EXTENSIONS__
2168for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169do
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
49c96104
SE
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
5464f5a1
NN
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194break
2195else
2196 echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199fi
2200rm -f conftest.err conftest.$ac_objext
2201done
2202rm -f conftest.$ac_ext conftest.$ac_objext
2203CC=$ac_save_CC
2204
2205fi
2206
2207case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210echo "${ECHO_T}none needed" >&6 ;;
2211 *)
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215esac
2216
2217# Some people use a C++ compiler to compile C. Since we use `exit',
2218# in C++ we need to declare it. In case someone uses the same compiler
2219# for both compiling C and C++ we need to have the C++ compiler decide
2220# the declaration of exit, since it's the most demanding environment.
2221cat >conftest.$ac_ext <<_ACEOF
2222#ifndef __cplusplus
2223 choke me
2224#endif
2225_ACEOF
2226rm -f conftest.$ac_objext
2227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
49c96104
SE
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
5464f5a1
NN
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2255do
2256 cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h. */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h. */
2262$ac_declaration
2263#include <stdlib.h>
2264int
2265main ()
2266{
2267exit (42);
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
49c96104
SE
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
5464f5a1
NN
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 :
2295else
2296 echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299continue
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
2308$ac_declaration
2309int
2310main ()
2311{
2312exit (42);
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
49c96104
SE
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
5464f5a1
NN
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340else
2341 echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344fi
2345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346done
2347rm -f conftest*
2348if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2352fi
2353
2354else
2355 echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
f5385ebf
AM
2367echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
f5385ebf
AM
2372 ac_func_search_save_LIBS=$LIBS
2373ac_cv_search_strerror=no
5464f5a1
NN
2374cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381/* Override any gcc2 internal prototype to avoid an error. */
2382#ifdef __cplusplus
2383extern "C"
2384#endif
2385/* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387char strerror ();
2388int
2389main ()
2390{
2391strerror ();
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext conftest$ac_exeext
2397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
49c96104
SE
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
5464f5a1
NN
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
f5385ebf 2418 ac_cv_search_strerror="none required"
5464f5a1
NN
2419else
2420 echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
5464f5a1
NN
2423fi
2424rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2426if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
2435
2436/* Override any gcc2 internal prototype to avoid an error. */
2437#ifdef __cplusplus
2438extern "C"
2439#endif
2440/* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442char strerror ();
2443int
2444main ()
2445{
2446strerror ();
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext conftest$ac_exeext
2452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
49c96104
SE
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
f5385ebf
AM
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474break
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
5464f5a1 2479fi
f5385ebf
AM
2480rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
5464f5a1 2483fi
f5385ebf
AM
2484LIBS=$ac_func_search_save_LIBS
2485fi
2486echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2490
f5385ebf 2491fi
5464f5a1
NN
2492
2493
f5385ebf 2494am__api_version="1.9"
5464f5a1
NN
2495# Find a good install program. We prefer a C program (faster),
2496# so one script is as good as another. But avoid the broken or
2497# incompatible versions:
2498# SysV /etc/install, /usr/sbin/install
2499# SunOS /usr/etc/install
2500# IRIX /sbin/install
2501# AIX /bin/install
2502# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2503# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2506# OS/2's system install, which has a completely different semantic
252b5132 2507# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2508echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2509echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2510if test -z "$INSTALL"; then
5464f5a1
NN
2511if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2513else
5464f5a1
NN
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520case $as_dir/ in
2521 ./ | .// | /cC/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2532 if test $ac_prog = install &&
5464f5a1 2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2534 # AIX install. It has an incompatible calling convention.
2535 :
5464f5a1
NN
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
252b5132 2540 else
5464f5a1
NN
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
252b5132
RH
2543 fi
2544 fi
2545 done
5464f5a1
NN
2546 done
2547 ;;
2548esac
2549done
2550
252b5132
RH
2551
2552fi
2553 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2554 INSTALL=$ac_cv_path_install
252b5132
RH
2555 else
2556 # As a last resort, use the slow shell script. We don't cache a
2557 # path for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the path is relative.
5464f5a1 2560 INSTALL=$ac_install_sh
252b5132
RH
2561 fi
2562fi
5464f5a1
NN
2563echo "$as_me:$LINENO: result: $INSTALL" >&5
2564echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2565
2566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567# It thinks the first close brace ends the variable substitution.
2568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
5464f5a1 2570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2571
2572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
5464f5a1
NN
2574echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2575echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2576# Just in case
2577sleep 1
f5385ebf 2578echo timestamp > conftest.file
252b5132
RH
2579# Do `set' in a subshell so we don't clobber the current shell's
2580# arguments. Must try -L first in case configure is actually a
2581# symlink; some systems play weird games with the mod time of symlinks
2582# (eg FreeBSD returns the mod time of the symlink's containing
2583# directory).
2584if (
f5385ebf 2585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2586 if test "$*" = "X"; then
2587 # -L didn't work.
f5385ebf 2588 set X `ls -t $srcdir/configure conftest.file`
252b5132 2589 fi
f5385ebf
AM
2590 rm -f conftest.file
2591 if test "$*" != "X $srcdir/configure conftest.file" \
2592 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2593
2594 # If neither matched, then we have a broken ls. This can happen
2595 # if, for instance, CONFIG_SHELL is bash and it inherits a
2596 # broken ls alias from the environment. This has actually
2597 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2599alias in your environment" >&5
2600echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2601alias in your environment" >&2;}
2602 { (exit 1); exit 1; }; }
252b5132
RH
2603 fi
2604
f5385ebf 2605 test "$2" = conftest.file
252b5132
RH
2606 )
2607then
2608 # Ok.
2609 :
2610else
5464f5a1
NN
2611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2612Check your system clock" >&5
2613echo "$as_me: error: newly created file is older than distributed files!
2614Check your system clock" >&2;}
2615 { (exit 1); exit 1; }; }
252b5132 2616fi
5464f5a1
NN
2617echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
252b5132 2619test "$program_prefix" != NONE &&
5464f5a1 2620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2621# Use a double $ so make ignores it.
2622test "$program_suffix" != NONE &&
5464f5a1
NN
2623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2624# Double any \ or $. echo might interpret backslashes.
2625# By default was `s,x,x', remove it if useless.
2626cat <<\_ACEOF >conftest.sed
2627s/[\\$]/&&/g;s/;s,x,x,$//
2628_ACEOF
2629program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630rm conftest.sed
2631
f5385ebf
AM
2632# expand $ac_aux_dir to an absolute path
2633am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2636# Use eval to expand $SHELL
2637if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639else
2640 am_missing_run=
2641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2642echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643fi
2644
2645if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2646 # We used to keeping the `.' as first argument, in order to
2647 # allow $(mkdir_p) to be used without argument. As in
2648 # $(mkdir_p) $(somedir)
2649 # where $(somedir) is conditionally defined. However this is wrong
2650 # for two reasons:
2651 # 1. if the package is installed by a user who cannot write `.'
2652 # make install will fail,
2653 # 2. the above comment should most certainly read
2654 # $(mkdir_p) $(DESTDIR)$(somedir)
2655 # so it does not work when $(somedir) is undefined and
2656 # $(DESTDIR) is not.
2657 # To support the latter case, we have to write
2658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2659 # so the `.' trick is pointless.
2660 mkdir_p='mkdir -p --'
2661else
2662 # On NextStep and OpenStep, the `mkdir' command does not
2663 # recognize any option. It will interpret all options as
2664 # directories to create, and then abort because `.' already
2665 # exists.
2666 for d in ./-p ./--version;
2667 do
2668 test -d $d && rmdir $d
2669 done
2670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2671 if test -f "$ac_aux_dir/mkinstalldirs"; then
2672 mkdir_p='$(mkinstalldirs)'
2673 else
2674 mkdir_p='$(install_sh) -d'
2675 fi
2676fi
2677
2678for ac_prog in gawk mawk nawk awk
2679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
2682echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684if test "${ac_cv_prog_AWK+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702done
2703
2704fi
2705fi
2706AWK=$ac_cv_prog_AWK
2707if test -n "$AWK"; then
2708 echo "$as_me:$LINENO: result: $AWK" >&5
2709echo "${ECHO_T}$AWK" >&6
2710else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713fi
2714
2715 test -n "$AWK" && break
2716done
2717
5464f5a1
NN
2718echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2721if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724 cat >conftest.make <<\_ACEOF
252b5132 2725all:
5464f5a1
NN
2726 @echo 'ac_maketemp="$(MAKE)"'
2727_ACEOF
252b5132 2728# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2729eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2730if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_${ac_make}_set=yes
2732else
2733 eval ac_cv_prog_make_${ac_make}_set=no
2734fi
5464f5a1 2735rm -f conftest.make
252b5132
RH
2736fi
2737if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2738 echo "$as_me:$LINENO: result: yes" >&5
2739echo "${ECHO_T}yes" >&6
252b5132
RH
2740 SET_MAKE=
2741else
5464f5a1
NN
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
252b5132
RH
2744 SET_MAKE="MAKE=${MAKE-make}"
2745fi
2746
f5385ebf
AM
2747rm -rf .tst 2>/dev/null
2748mkdir .tst 2>/dev/null
2749if test -d .tst; then
2750 am__leading_dot=.
2751else
2752 am__leading_dot=_
2753fi
2754rmdir .tst 2>/dev/null
2755
2756DEPDIR="${am__leading_dot}deps"
2757
2758 ac_config_commands="$ac_config_commands depfiles"
2759
2760
2761am_make=${MAKE-make}
2762cat > confinc << 'END'
2763am__doit:
2764 @echo done
2765.PHONY: am__doit
2766END
2767# If we don't find an include directive, just comment out the code.
2768echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770am__include="#"
2771am__quote=
2772_am_result=none
2773# First try GNU make style include.
2774echo "include confinc" > confmf
2775# We grep out `Entering directory' and `Leaving directory'
2776# messages which can occur if `w' ends up in MAKEFLAGS.
2777# In particular we don't look at `^make:' because GNU make might
2778# be invoked under some other name (usually "gmake"), in which
2779# case it prints its new name instead of `make'.
2780if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 am__include=include
2782 am__quote=
2783 _am_result=GNU
2784fi
2785# Now try BSD make style include.
2786if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789 am__include=.include
2790 am__quote="\""
2791 _am_result=BSD
2792 fi
2793fi
2794
2795
2796echo "$as_me:$LINENO: result: $_am_result" >&5
2797echo "${ECHO_T}$_am_result" >&6
2798rm -f confinc confmf
2799
2800# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2801if test "${enable_dependency_tracking+set}" = set; then
2802 enableval="$enable_dependency_tracking"
2803
2804fi;
2805if test "x$enable_dependency_tracking" != xno; then
2806 am_depcomp="$ac_aux_dir/depcomp"
2807 AMDEPBACKSLASH='\'
2808fi
2809
2810
2811if test "x$enable_dependency_tracking" != xno; then
2812 AMDEP_TRUE=
2813 AMDEP_FALSE='#'
2814else
2815 AMDEP_TRUE='#'
2816 AMDEP_FALSE=
2817fi
6be7c12c 2818
252b5132 2819
252b5132 2820
f5385ebf
AM
2821# test to see if srcdir already configured
2822if test "`cd $srcdir && pwd`" != "`pwd`" &&
2823 test -f $srcdir/config.status; then
5464f5a1
NN
2824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2825echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2826 { (exit 1); exit 1; }; }
252b5132 2827fi
5464f5a1 2828
f5385ebf
AM
2829# test whether we have cygpath
2830if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836fi
2837
2838
2839# Define the identity of the package.
2840 PACKAGE=bfd
ffdc4eed 2841 VERSION=2.17.50
f5385ebf
AM
2842
2843
5464f5a1 2844cat >>confdefs.h <<_ACEOF
252b5132 2845#define PACKAGE "$PACKAGE"
5464f5a1 2846_ACEOF
252b5132 2847
5464f5a1
NN
2848
2849cat >>confdefs.h <<_ACEOF
252b5132 2850#define VERSION "$VERSION"
5464f5a1 2851_ACEOF
252b5132 2852
f5385ebf
AM
2853# Some tools Automake needs.
2854
2855ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2868
f5385ebf 2869install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2870
f5385ebf
AM
2871# Installed binaries are usually stripped using `strip' when the user
2872# run `make install-strip'. However `strip' might not be the right
2873# tool to use in cross-compilation environments, therefore Automake
2874# will honor the `STRIP' environment variable to overrule this program.
2875if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878set dummy ${ac_tool_prefix}strip; ac_word=$2
2879echo "$as_me:$LINENO: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881if test "${ac_cv_prog_STRIP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2886else
f5385ebf
AM
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898done
2899done
2900
2901fi
2902fi
2903STRIP=$ac_cv_prog_STRIP
2904if test -n "$STRIP"; then
2905 echo "$as_me:$LINENO: result: $STRIP" >&5
2906echo "${ECHO_T}$STRIP" >&6
2907else
2908 echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6
2910fi
2911
252b5132 2912fi
f5385ebf
AM
2913if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916set dummy strip; ac_word=$2
2917echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936done
2937done
252b5132 2938
f5385ebf
AM
2939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940fi
2941fi
2942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943if test -n "$ac_ct_STRIP"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2945echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2946else
f5385ebf
AM
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
252b5132
RH
2949fi
2950
f5385ebf 2951 STRIP=$ac_ct_STRIP
252b5132 2952else
f5385ebf
AM
2953 STRIP="$ac_cv_prog_STRIP"
2954fi
2955
252b5132 2956fi
f5385ebf
AM
2957INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958
2959# We need awk for the "check" target. The system "awk" is bad on
2960# some platforms.
2961# Always define AMTAR for backward compatibility.
2962
2963AMTAR=${AMTAR-"${am_missing_run}tar"}
2964
2965am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2966
252b5132 2967
f5385ebf
AM
2968
2969
2970depcc="$CC" am_compiler_list=
2971
2972echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2973echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2974if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2976else
f5385ebf
AM
2977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2978 # We make a subdir and do the tests there. Otherwise we can end up
2979 # making bogus files that we don't know about and never remove. For
2980 # instance it was reported that on HP-UX the gcc test will end up
2981 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # in D'.
2983 mkdir conftest.dir
2984 # Copy depcomp to subdir because otherwise we won't find it if we're
2985 # using a relative directory.
2986 cp "$am_depcomp" conftest.dir
2987 cd conftest.dir
2988 # We will build objects and dependencies in a subdirectory because
2989 # it helps to detect inapplicable dependency modes. For instance
2990 # both Tru64's cc and ICC support -MD to output dependencies as a
2991 # side effect of compilation, but ICC will put the dependencies in
2992 # the current directory while Tru64 will put them in the object
2993 # directory.
2994 mkdir sub
2995
2996 am_cv_CC_dependencies_compiler_type=none
2997 if test "$am_compiler_list" = ""; then
2998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 fi
3000 for depmode in $am_compiler_list; do
3001 # Setup a source with many dependencies, because some compilers
3002 # like to wrap large dependency lists on column 80 (with \), and
3003 # we should not choose a depcomp mode which is confused by this.
3004 #
3005 # We need to recreate these files for each test, as the compiler may
3006 # overwrite some of them when testing with obscure command lines.
3007 # This happens at least with the AIX C compiler.
3008 : > sub/conftest.c
3009 for i in 1 2 3 4 5 6; do
3010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3012 # Solaris 8's {/usr,}/bin/sh.
3013 touch sub/conftst$i.h
3014 done
3015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3025 fi
3026 ;;
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3038 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3040 # icc doesn't choke on unknown options, it will just issue warnings
3041 # or remarks (even with -Werror). So we grep stderr for any message
3042 # that says an option was ignored or not supported.
3043 # When given -MP, icc 7.0 and 7.1 complain thusly:
3044 # icc: Command line warning: ignoring option '-M'; no argument required
3045 # The diagnosis changed in icc 8.0:
3046 # icc: Command line remark: option '-MP' not supported
3047 if (grep 'ignoring option' conftest.err ||
3048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3049 am_cv_CC_dependencies_compiler_type=$depmode
3050 break
3051 fi
3052 fi
3053 done
3054
3055 cd ..
3056 rm -rf conftest.dir
3057else
3058 am_cv_CC_dependencies_compiler_type=none
3059fi
3060
252b5132 3061fi
f5385ebf
AM
3062echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3063echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3064CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3065
f5385ebf
AM
3066
3067
3068if
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
252b5132 3073else
f5385ebf
AM
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
252b5132
RH
3076fi
3077
6be7c12c 3078
e43d48cc 3079
f5385ebf 3080
5464f5a1
NN
3081if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3083set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3084echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086if test "${ac_cv_prog_AR+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3088else
3089 if test -n "$AR"; then
3090 ac_cv_prog_AR="$AR" # Let the user override the test.
3091else
5464f5a1
NN
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104done
3105
252b5132
RH
3106fi
3107fi
5464f5a1 3108AR=$ac_cv_prog_AR
252b5132 3109if test -n "$AR"; then
5464f5a1
NN
3110 echo "$as_me:$LINENO: result: $AR" >&5
3111echo "${ECHO_T}$AR" >&6
252b5132 3112else
5464f5a1
NN
3113 echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115fi
3116
252b5132 3117fi
5464f5a1
NN
3118if test -z "$ac_cv_prog_AR"; then
3119 ac_ct_AR=$AR
3120 # Extract the first word of "ar", so it can be a program name with args.
3121set dummy ar; ac_word=$2
3122echo "$as_me:$LINENO: checking for $ac_word" >&5
3123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141done
3142done
252b5132 3143
5464f5a1
NN
3144fi
3145fi
3146ac_ct_AR=$ac_cv_prog_ac_ct_AR
3147if test -n "$ac_ct_AR"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3149echo "${ECHO_T}$ac_ct_AR" >&6
3150else
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
3153fi
252b5132 3154
5464f5a1
NN
3155 AR=$ac_ct_AR
3156else
3157 AR="$ac_cv_prog_AR"
3158fi
6be7c12c 3159
5464f5a1
NN
3160if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3162set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3163echo "$as_me:$LINENO: checking for $ac_word" >&5
3164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3167else
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170else
5464f5a1
NN
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183done
3184
252b5132
RH
3185fi
3186fi
5464f5a1 3187RANLIB=$ac_cv_prog_RANLIB
252b5132 3188if test -n "$RANLIB"; then
5464f5a1
NN
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190echo "${ECHO_T}$RANLIB" >&6
252b5132 3191else
5464f5a1
NN
3192 echo "$as_me:$LINENO: result: no" >&5
3193echo "${ECHO_T}no" >&6
252b5132
RH
3194fi
3195
5464f5a1 3196fi
252b5132 3197if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3198 ac_ct_RANLIB=$RANLIB
252b5132
RH
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200set dummy ranlib; ac_word=$2
5464f5a1
NN
3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3205else
5464f5a1
NN
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3208else
5464f5a1
NN
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220done
3221done
3222
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3224fi
3225fi
5464f5a1
NN
3226ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3230else
5464f5a1
NN
3231 echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6
252b5132
RH
3233fi
3234
5464f5a1 3235 RANLIB=$ac_ct_RANLIB
252b5132 3236else
5464f5a1 3237 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3238fi
3239
252b5132
RH
3240
3241# Check whether --enable-shared or --disable-shared was given.
3242if test "${enable_shared+set}" = set; then
3243 enableval="$enable_shared"
3244 p=${PACKAGE-default}
55c80943 3245case $enableval in
252b5132
RH
3246yes) enable_shared=yes ;;
3247no) enable_shared=no ;;
3248*)
3249 enable_shared=no
3250 # Look at the argument we got. We use all the common list separators.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3252 for pkg in $enableval; do
3253 if test "X$pkg" = "X$p"; then
3254 enable_shared=yes
3255 fi
3256 done
3257 IFS="$ac_save_ifs"
3258 ;;
3259esac
3260else
3261 enable_shared=no
5464f5a1 3262fi;
252b5132 3263
cfbc9945
SE
3264ac_ext=c
3265ac_cpp='$CPP $CPPFLAGS'
3266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272echo "$as_me:$LINENO: checking for $ac_word" >&5
3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274if test "${ac_cv_prog_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3276else
cfbc9945
SE
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3279else
cfbc9945
SE
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291done
3292done
c5d1701e 3293
cfbc9945
SE
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298 echo "$as_me:$LINENO: result: $CC" >&5
3299echo "${ECHO_T}$CC" >&6
252b5132 3300else
cfbc9945
SE
3301 echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
252b5132 3303fi
cfbc9945
SE
3304
3305fi
3306if test -z "$ac_cv_prog_CC"; then
3307 ac_ct_CC=$CC
3308 # Extract the first word of "gcc", so it can be a program name with args.
3309set dummy gcc; ac_word=$2
3310echo "$as_me:$LINENO: checking for $ac_word" >&5
3311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3313 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3314else
cfbc9945
SE
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3317else
cfbc9945
SE
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_ac_ct_CC="gcc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329done
3330done
3331
252b5132
RH
3332fi
3333fi
cfbc9945
SE
3334ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335if test -n "$ac_ct_CC"; then
3336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3337echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3338else
5464f5a1
NN
3339 echo "$as_me:$LINENO: result: no" >&5
3340echo "${ECHO_T}no" >&6
252b5132 3341fi
cfbc9945
SE
3342
3343 CC=$ac_ct_CC
3344else
3345 CC="$ac_cv_prog_CC"
3346fi
3347
3348if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351set dummy ${ac_tool_prefix}cc; ac_word=$2
3352echo "$as_me:$LINENO: checking for $ac_word" >&5
3353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3355 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3356else
cfbc9945
SE
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3359else
cfbc9945
SE
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371done
3372done
3373
252b5132
RH
3374fi
3375fi
cfbc9945
SE
3376CC=$ac_cv_prog_CC
3377if test -n "$CC"; then
3378 echo "$as_me:$LINENO: result: $CC" >&5
3379echo "${ECHO_T}$CC" >&6
ac48eca1 3380else
cfbc9945
SE
3381 echo "$as_me:$LINENO: result: no" >&5
3382echo "${ECHO_T}no" >&6
ac48eca1 3383fi
ac48eca1 3384
cfbc9945
SE
3385fi
3386if test -z "$ac_cv_prog_CC"; then
3387 ac_ct_CC=$CC
3388 # Extract the first word of "cc", so it can be a program name with args.
3389set dummy cc; ac_word=$2
3390echo "$as_me:$LINENO: checking for $ac_word" >&5
3391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3393 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3394else
cfbc9945
SE
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3397else
cfbc9945
SE
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="cc"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409done
3410done
3411
252b5132 3412fi
cfbc9945
SE
3413fi
3414ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415if test -n "$ac_ct_CC"; then
3416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3417echo "${ECHO_T}$ac_ct_CC" >&6
3418else
3419 echo "$as_me:$LINENO: result: no" >&5
3420echo "${ECHO_T}no" >&6
252b5132
RH
3421fi
3422
cfbc9945
SE
3423 CC=$ac_ct_CC
3424else
3425 CC="$ac_cv_prog_CC"
3426fi
252b5132 3427
cfbc9945
SE
3428fi
3429if test -z "$CC"; then
3430 # Extract the first word of "cc", so it can be a program name with args.
3431set dummy cc; ac_word=$2
3432echo "$as_me:$LINENO: checking for $ac_word" >&5
3433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434if test "${ac_cv_prog_CC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3436else
cfbc9945
SE
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439else
3440 ac_prog_rejected=no
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected=yes
3450 continue
3451 fi
3452 ac_cv_prog_CC="cc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456done
3457done
3458
3459if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3462 shift
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3467 shift
3468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3469 fi
3470fi
3471fi
3472fi
3473CC=$ac_cv_prog_CC
3474if test -n "$CC"; then
3475 echo "$as_me:$LINENO: result: $CC" >&5
3476echo "${ECHO_T}$CC" >&6
3477else
3478 echo "$as_me:$LINENO: result: no" >&5
3479echo "${ECHO_T}no" >&6
252b5132
RH
3480fi
3481
cfbc9945
SE
3482fi
3483if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 for ac_prog in cl
3486 do
3487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489echo "$as_me:$LINENO: checking for $ac_word" >&5
3490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3492 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3493else
cfbc9945
SE
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496else
3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508done
3509done
ac48eca1 3510
cfbc9945
SE
3511fi
3512fi
3513CC=$ac_cv_prog_CC
3514if test -n "$CC"; then
3515 echo "$as_me:$LINENO: result: $CC" >&5
3516echo "${ECHO_T}$CC" >&6
3517else
3518 echo "$as_me:$LINENO: result: no" >&5
3519echo "${ECHO_T}no" >&6
3520fi
ac48eca1 3521
cfbc9945
SE
3522 test -n "$CC" && break
3523 done
3524fi
3525if test -z "$CC"; then
3526 ac_ct_CC=$CC
3527 for ac_prog in cl
3528do
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530set dummy $ac_prog; ac_word=$2
3531echo "$as_me:$LINENO: checking for $ac_word" >&5
3532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_ac_ct_CC="$ac_prog"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550done
3551done
ac48eca1 3552
cfbc9945
SE
3553fi
3554fi
3555ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556if test -n "$ac_ct_CC"; then
3557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3558echo "${ECHO_T}$ac_ct_CC" >&6
3559else
3560 echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
3562fi
ac48eca1 3563
cfbc9945
SE
3564 test -n "$ac_ct_CC" && break
3565done
ac48eca1 3566
cfbc9945
SE
3567 CC=$ac_ct_CC
3568fi
55c80943 3569
cfbc9945 3570fi
ac48eca1 3571
ac48eca1 3572
cfbc9945
SE
3573test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574See \`config.log' for more details." >&5
3575echo "$as_me: error: no acceptable C compiler found in \$PATH
3576See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
ac48eca1 3578
cfbc9945
SE
3579# Provide some information about the compiler.
3580echo "$as_me:$LINENO:" \
3581 "checking for C compiler version" >&5
3582ac_compiler=`set X $ac_compile; echo $2`
3583{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3584 (eval $ac_compiler --version </dev/null >&5) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }
3588{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3589 (eval $ac_compiler -v </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3594 (eval $ac_compiler -V </dev/null >&5) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
ac48eca1 3598
cfbc9945
SE
3599echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3600echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3601if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3602 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3603else
cfbc9945
SE
3604 cat >conftest.$ac_ext <<_ACEOF
3605/* confdefs.h. */
3606_ACEOF
3607cat confdefs.h >>conftest.$ac_ext
3608cat >>conftest.$ac_ext <<_ACEOF
3609/* end confdefs.h. */
ac48eca1 3610
cfbc9945
SE
3611int
3612main ()
3613{
3614#ifndef __GNUC__
3615 choke me
3616#endif
5464f5a1 3617
cfbc9945
SE
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext
3623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_compiler_gnu=yes
ac48eca1 3645else
cfbc9945
SE
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649ac_compiler_gnu=no
ac48eca1 3650fi
cfbc9945
SE
3651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3652ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3653
5464f5a1 3654fi
cfbc9945
SE
3655echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3656echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3657GCC=`test $ac_compiler_gnu = yes && echo yes`
3658ac_test_CFLAGS=${CFLAGS+set}
3659ac_save_CFLAGS=$CFLAGS
3660CFLAGS="-g"
3661echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3662echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3663if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3664 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3665else
cfbc9945
SE
3666 cat >conftest.$ac_ext <<_ACEOF
3667/* confdefs.h. */
3668_ACEOF
3669cat confdefs.h >>conftest.$ac_ext
3670cat >>conftest.$ac_ext <<_ACEOF
3671/* end confdefs.h. */
3672
3673int
3674main ()
3675{
3676
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext
3682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_prog_cc_g=yes
6be7c12c 3704else
cfbc9945
SE
3705 echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3707
cfbc9945 3708ac_cv_prog_cc_g=no
ac48eca1 3709fi
cfbc9945 3710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3711fi
cfbc9945
SE
3712echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3713echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3714if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3718 CFLAGS="-g -O2"
3719 else
3720 CFLAGS="-g"
3721 fi
ac48eca1 3722else
cfbc9945
SE
3723 if test "$GCC" = yes; then
3724 CFLAGS="-O2"
3725 else
3726 CFLAGS=
3727 fi
ac48eca1 3728fi
cfbc9945
SE
3729echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3730echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3731if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3732 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3733else
cfbc9945
SE
3734 ac_cv_prog_cc_stdc=no
3735ac_save_CC=$CC
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */
3742#include <stdarg.h>
3743#include <stdio.h>
3744#include <sys/types.h>
3745#include <sys/stat.h>
3746/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747struct buf { int x; };
3748FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749static char *e (p, i)
3750 char **p;
3751 int i;
3752{
3753 return p[i];
3754}
3755static char *f (char * (*g) (char **, int), char **p, ...)
3756{
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3763}
5464f5a1 3764
cfbc9945
SE
3765/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std1 is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std1. */
3772int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774int test (int i, double x);
3775struct s1 {int (*f) (int a);};
3776struct s2 {int (*f) (double a);};
3777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778int argc;
3779char **argv;
3780int
3781main ()
3782{
3783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788# Don't try gcc -ansi; that turns off useful extensions and
3789# breaks some systems' header files.
3790# AIX -qlanglvl=ansi
3791# Ultrix and OSF/1 -std1
3792# HP-UX 10.20 and later -Ae
3793# HP-UX older versions -Aa -D_HPUX_SOURCE
3794# SVR4 -Xc -D__EXTENSIONS__
3795for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796do
3797 CC="$ac_save_CC $ac_arg"
3798 rm -f conftest.$ac_objext
3799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_cv_prog_cc_stdc=$ac_arg
3821break
ac48eca1 3822else
cfbc9945
SE
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3825
5464f5a1 3826fi
cfbc9945 3827rm -f conftest.err conftest.$ac_objext
5464f5a1 3828done
cfbc9945
SE
3829rm -f conftest.$ac_ext conftest.$ac_objext
3830CC=$ac_save_CC
5464f5a1 3831
ac48eca1 3832fi
252b5132 3833
cfbc9945
SE
3834case "x$ac_cv_prog_cc_stdc" in
3835 x|xno)
3836 echo "$as_me:$LINENO: result: none needed" >&5
3837echo "${ECHO_T}none needed" >&6 ;;
3838 *)
3839 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3840echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3841 CC="$CC $ac_cv_prog_cc_stdc" ;;
3842esac
6be7c12c 3843
cfbc9945
SE
3844# Some people use a C++ compiler to compile C. Since we use `exit',
3845# in C++ we need to declare it. In case someone uses the same compiler
3846# for both compiling C and C++ we need to have the C++ compiler decide
3847# the declaration of exit, since it's the most demanding environment.
3848cat >conftest.$ac_ext <<_ACEOF
3849#ifndef __cplusplus
3850 choke me
3851#endif
3852_ACEOF
3853rm -f conftest.$ac_objext
3854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
5464f5a1 3856 ac_status=$?
cfbc9945
SE
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
5464f5a1 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
5464f5a1
NN
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
d70c5fc7
NC
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
3874 (exit $ac_status); }; }; then
3875 for ac_declaration in \
3876 '' \
3877 'extern "C" void std::exit (int) throw (); using std::exit;' \
3878 'extern "C" void std::exit (int); using std::exit;' \
3879 'extern "C" void exit (int) throw ();' \
3880 'extern "C" void exit (int);' \
3881 'void exit (int);'
3882do
3883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
3889$ac_declaration
3890#include <stdlib.h>
3891int
3892main ()
3893{
3894exit (42);
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext
3900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -z "$ac_c_werror_flag"
3909 || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest.$ac_objext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 :
b2ef150d 3922else
cfbc9945
SE
3923 echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3925
cfbc9945
SE
3926continue
3927fi
3928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
cfbc9945 3935$ac_declaration
5464f5a1
NN
3936int
3937main ()
3938{
cfbc9945 3939exit (42);
5464f5a1
NN
3940 ;
3941 return 0;
3942}
3943_ACEOF
cfbc9945
SE
3944rm -f conftest.$ac_objext
3945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
49c96104
SE
3953 { ac_try='test -z "$ac_c_werror_flag"
3954 || test ! -s conftest.err'
5464f5a1
NN
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
cfbc9945 3960 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
cfbc9945 3966 break
b2ef150d 3967else
5464f5a1
NN
3968 echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
b2ef150d 3971fi
cfbc9945
SE
3972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3973done
3974rm -f conftest*
3975if test -n "$ac_declaration"; then
3976 echo '#ifdef __cplusplus' >>confdefs.h
3977 echo $ac_declaration >>confdefs.h
3978 echo '#endif' >>confdefs.h
6ec7057a 3979fi
cfbc9945 3980
92f01d61 3981else
cfbc9945
SE
3982 echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 3984
cfbc9945
SE
3985fi
3986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3987ac_ext=c
3988ac_cpp='$CPP $CPPFLAGS'
3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
3992
3993
cfbc9945
SE
3994cat >>confdefs.h <<\_ACEOF
3995#define _GNU_SOURCE 1
3996_ACEOF
a1ac8190 3997
c428fa83 3998
cfbc9945
SE
3999
4000# Check whether --enable-static or --disable-static was given.
4001if test "${enable_static+set}" = set; then
4002 enableval="$enable_static"
4003 p=${PACKAGE-default}
4004case $enableval in
4005yes) enable_static=yes ;;
4006no) enable_static=no ;;
4007*)
4008 enable_static=no
4009 # Look at the argument we got. We use all the common list separators.
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4011 for pkg in $enableval; do
4012 if test "X$pkg" = "X$p"; then
4013 enable_static=yes
4014 fi
4015 done
4016 IFS="$ac_save_ifs"
4017 ;;
4018esac
c428fa83 4019else
cfbc9945
SE
4020 enable_static=yes
4021fi;
4022# Check whether --enable-fast-install or --disable-fast-install was given.
4023if test "${enable_fast_install+set}" = set; then
4024 enableval="$enable_fast_install"
4025 p=${PACKAGE-default}
4026case $enableval in
4027yes) enable_fast_install=yes ;;
4028no) enable_fast_install=no ;;
4029*)
4030 enable_fast_install=no
4031 # Look at the argument we got. We use all the common list separators.
4032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4033 for pkg in $enableval; do
4034 if test "X$pkg" = "X$p"; then
4035 enable_fast_install=yes
4036 fi
4037 done
4038 IFS="$ac_save_ifs"
4039 ;;
4040esac
4041else
4042 enable_fast_install=yes
4043fi;
c428fa83 4044
cfbc9945
SE
4045# Check whether --with-gnu-ld or --without-gnu-ld was given.
4046if test "${with_gnu_ld+set}" = set; then
4047 withval="$with_gnu_ld"
4048 test "$withval" = no || with_gnu_ld=yes
4049else
4050 with_gnu_ld=no
c428fa83 4051fi;
cfbc9945
SE
4052ac_prog=ld
4053if test "$GCC" = yes; then
4054 # Check if gcc -print-prog-name=ld gives a path.
4055 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4056echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4057 case $host in
4058 *-*-mingw*)
4059 # gcc leaves a trailing carriage return which upsets mingw
4060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4061 *)
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4063 esac
4064 case $ac_prog in
4065 # Accept absolute paths.
4066 [\\/]* | [A-Za-z]:[\\/]*)
4067 re_direlt='/[^/][^/]*/\.\./'
4068 # Canonicalize the path of ld
4069 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4071 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4072 done
4073 test -z "$LD" && LD="$ac_prog"
4074 ;;
5bd8253d 4075 "")
cfbc9945
SE
4076 # If it fails, then pretend we aren't using GCC.
4077 ac_prog=ld
5bd8253d
L
4078 ;;
4079 *)
cfbc9945
SE
4080 # If it is relative, then search for the first ld in PATH.
4081 with_gnu_ld=unknown
5bd8253d 4082 ;;
cfbc9945
SE
4083 esac
4084elif test "$with_gnu_ld" = yes; then
4085 echo "$as_me:$LINENO: checking for GNU ld" >&5
4086echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4087else
4088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4089echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4090fi
4091if test "${lt_cv_path_LD+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094 if test -z "$LD"; then
4095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4096 for ac_dir in $PATH; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099 lt_cv_path_LD="$ac_dir/$ac_prog"
4100 # Check to see if the program is GNU ld. I'd rather use --version,
4101 # but apparently some GNU ld's only accept -v.
4102 # Break only if it was the GNU/non-GNU ld that we prefer.
4103 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4104 test "$with_gnu_ld" != no && break
4105 else
4106 test "$with_gnu_ld" != yes && break
4107 fi
4108 fi
4109 done
4110 IFS="$ac_save_ifs"
4111else
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4113fi
1ad12f97
NC
4114fi
4115
cfbc9945
SE
4116LD="$lt_cv_path_LD"
4117if test -n "$LD"; then
4118 echo "$as_me:$LINENO: result: $LD" >&5
4119echo "${ECHO_T}$LD" >&6
4120else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123fi
4124test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126 { (exit 1); exit 1; }; }
4127echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4129if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4133if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4134 lt_cv_prog_gnu_ld=yes
4135else
4136 lt_cv_prog_gnu_ld=no
4137fi
49c96104 4138fi
cfbc9945
SE
4139echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4140echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4141with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4142
9e9b66a9 4143
cfbc9945
SE
4144echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4145echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4146if test "${lt_cv_ld_reload_flag+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 lt_cv_ld_reload_flag='-r'
4150fi
4151echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4152echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4153reload_flag=$lt_cv_ld_reload_flag
4154test -n "$reload_flag" && reload_flag=" $reload_flag"
4155
4156echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4157echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4158if test "${lt_cv_path_NM+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 if test -n "$NM"; then
4162 # Let the user override the test.
4163 lt_cv_path_NM="$NM"
4164else
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4167 test -z "$ac_dir" && ac_dir=.
4168 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4169 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4170 # Check to see if the nm accepts a BSD-compat flag.
4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4172 # nm: unknown option "B" ignored
4173 # Tru64's nm complains that /dev/null is an invalid object file
4174 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4175 lt_cv_path_NM="$tmp_nm -B"
4176 break
4177 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4178 lt_cv_path_NM="$tmp_nm -p"
4179 break
4180 else
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4182 continue # so that we can try to find one that supports BSD flags
4183 fi
4184 fi
4185 done
4186 IFS="$ac_save_ifs"
4187 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4188fi
a2d91340
AC
4189fi
4190
cfbc9945
SE
4191NM="$lt_cv_path_NM"
4192echo "$as_me:$LINENO: result: $NM" >&5
4193echo "${ECHO_T}$NM" >&6
a2d91340 4194
cfbc9945
SE
4195echo "$as_me:$LINENO: checking whether ln -s works" >&5
4196echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4197LN_S=$as_ln_s
4198if test "$LN_S" = "ln -s"; then
4199 echo "$as_me:$LINENO: result: yes" >&5
4200echo "${ECHO_T}yes" >&6
4201else
4202 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4203echo "${ECHO_T}no, using $LN_S" >&6
252b5132 4204fi
252b5132 4205
cfbc9945
SE
4206echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4207echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4208if test "${lt_cv_deplibs_check_method+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4210else
cfbc9945
SE
4211 lt_cv_file_magic_cmd='$MAGIC_CMD'
4212lt_cv_file_magic_test_file=
4213lt_cv_deplibs_check_method='unknown'
4214# Need to set the preceding variable on all platforms that support
4215# interlibrary dependencies.
4216# 'none' -- dependencies not supported.
4217# `unknown' -- same as none, but documents that we really don't know.
4218# 'pass_all' -- all dependencies passed with no checks.
4219# 'test_compile' -- check by making test program.
4220# 'file_magic [regex]' -- check by looking for files in library path
4221# which responds to the $file_magic_cmd with a given egrep regex.
4222# If you have `file' or equivalent on your system and you're not sure
4223# whether `pass_all' will *always* work, you probably want this one.
6be7c12c 4224
cfbc9945
SE
4225case $host_os in
4226aix*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
252b5132 4229
cfbc9945
SE
4230beos*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
f5385ebf 4233
cfbc9945
SE
4234bsdi4*)
4235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4237 lt_cv_file_magic_test_file=/shlib/libc.so
4238 ;;
252b5132 4239
cfbc9945
SE
4240cygwin* | mingw* |pw32*)
4241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4242 lt_cv_file_magic_cmd='$OBJDUMP -f'
4243 ;;
5464f5a1 4244
cfbc9945
SE
4245darwin* | rhapsody*)
4246 # this will be overwritten by pass_all, but leave it in just in case
4247 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4248 lt_cv_file_magic_cmd='/usr/bin/file -L'
4249 case "$host_os" in
4250 rhapsody* | darwin1.012)
4251 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4252 ;;
4253 *) # Darwin 1.3 on
4254 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4255 ;;
4256 esac
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
d5fbea21 4259
cfbc9945
SE
4260freebsd* | kfreebsd*-gnu)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 case $host_cpu in
4263 i*86 )
4264 # Not sure whether the presence of OpenBSD here was a mistake.
4265 # Let's accept both of them until this is cleared up.
4266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4269 ;;
4270 esac
4271 else
4272 lt_cv_deplibs_check_method=pass_all
4273 fi
4274 ;;
d5fbea21 4275
cfbc9945
SE
4276gnu*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
d5fbea21 4279
cfbc9945
SE
4280hpux10.20*|hpux11*)
4281 case $host_cpu in
4282 hppa*)
4283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 ;;
4287 ia64*)
4288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4291 ;;
4292 esac
4293 ;;
24443139 4294
cfbc9945
SE
4295irix5* | irix6*)
4296 case $host_os in
4297 irix5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4300 ;;
4301 *)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 # this will be overridden with pass_all, but let us keep it just in case
4309 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4310 ;;
4311 esac
4312 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
24443139 4315
cfbc9945
SE
4316# This must be Linux ELF.
4317linux-gnu*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
24443139 4320
cfbc9945
SE
4321netbsd* | knetbsd*-gnu)
4322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4324 else
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4326 fi
4327 ;;
a703a6ea 4328
cfbc9945
SE
4329newsos6)
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4333 ;;
a703a6ea 4334
cfbc9945
SE
4335osf3* | osf4* | osf5*)
4336 # this will be overridden with pass_all, but let us keep it just in case
4337 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4338 lt_cv_file_magic_test_file=/shlib/libc.so
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
f5385ebf 4341
cfbc9945
SE
4342sco3.2v5*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
4346solaris*)
4347 lt_cv_deplibs_check_method=pass_all
4348 lt_cv_file_magic_test_file=/lib/libc.so
4349 ;;
24443139 4350
cfbc9945
SE
4351sysv5uw[78]* | sysv4*uw2*)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
24443139 4354
cfbc9945
SE
4355sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4356 case $host_vendor in
4357 ncr)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360 motorola)
4361 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]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4363 ;;
4364 esac
4365 ;;
4366esac
24443139 4367
cfbc9945
SE
4368fi
4369echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4370echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4371file_magic_cmd=$lt_cv_file_magic_cmd
4372deplibs_check_method=$lt_cv_deplibs_check_method
24443139 4373
a703a6ea
AM
4374
4375
252b5132 4376
cfbc9945 4377# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
252b5132 4378
cfbc9945
SE
4379# find the maximum length of command line arguments
4380echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4381echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4382if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385 i=0
4386 teststring="ABCD"
5464f5a1 4387
cfbc9945
SE
4388 case $build_os in
4389 msdosdjgpp*)
4390 # On DJGPP, this test can blow up pretty badly due to problems in libc
4391 # (any single argument exceeding 2000 bytes causes a buffer overrun
4392 # during glob expansion). Even if it were fixed, the result of this
4393 # check would be larger than it should be.
4394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4395 ;;
5464f5a1 4396
cfbc9945
SE
4397 cygwin* | mingw*)
4398 # On Win9x/ME, this test blows up -- it succeeds, but takes
4399 # about 5 minutes as the teststring grows exponentially.
4400 # Worse, since 9x/ME are not pre-emptively multitasking,
4401 # you end up with a "frozen" computer, even though with patience
4402 # the test eventually succeeds (with a max line length of 256k).
4403 # Instead, let's just punt: use the minimum linelength reported by
4404 # all of the supported platforms: 8192 (on NT/2K/XP).
4405 lt_cv_sys_max_cmd_len=8192;
4406 ;;
5464f5a1 4407
cfbc9945
SE
4408 amigaos*)
4409 # On AmigaOS with pdksh, this test takes hours, literally.
4410 # So we just punt and use a minimum line length of 8192.
4411 lt_cv_sys_max_cmd_len=8192;
4412 ;;
5464f5a1 4413
cfbc9945
SE
4414 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4415 # This has been around since 386BSD, at least. Likely further.
4416 if test -x /sbin/sysctl; then
4417 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4418 elif test -x /usr/sbin/sysctl; then
4419 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4420 else
4421 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4422 fi
4423 # And add a safety zone
4424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4426 ;;
4427 esac
5464f5a1 4428
252b5132 4429fi
cfbc9945
SE
4430
4431if test -n "$lt_cv_sys_max_cmd_len" ; then
4432 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4433echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4434else
cfbc9945
SE
4435 echo "$as_me:$LINENO: result: none" >&5
4436echo "${ECHO_T}none" >&6
5464f5a1 4437fi
252b5132 4438
cfbc9945
SE
4439
4440# Only perform the check for file, if the check method requires it
4441case $deplibs_check_method in
4442file_magic*)
4443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4444 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4445echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4446if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5464f5a1
NN
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
cfbc9945
SE
4449 case $MAGIC_CMD in
4450 /*)
4451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4452 ;;
4453 ?:/*)
4454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4455 ;;
4456 *)
4457 ac_save_MAGIC_CMD="$MAGIC_CMD"
4458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4459 ac_dummy="/usr/bin:$PATH"
4460 for ac_dir in $ac_dummy; do
4461 test -z "$ac_dir" && ac_dir=.
4462 if test -f $ac_dir/${ac_tool_prefix}file; then
4463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4464 if test -n "$file_magic_test_file"; then
4465 case $deplibs_check_method in
4466 "file_magic "*)
4467 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4470 egrep "$file_magic_regex" > /dev/null; then
4471 :
4472 else
4473 cat <<EOF 1>&2
252b5132 4474
cfbc9945
SE
4475*** Warning: the command libtool uses to detect shared libraries,
4476*** $file_magic_cmd, produces output that libtool cannot recognize.
4477*** The result is that libtool may fail to recognize shared libraries
4478*** as such. This will affect the creation of libtool libraries that
4479*** depend on shared libraries, but programs linked with such libtool
4480*** libraries will work regardless of this problem. Nevertheless, you
4481*** may want to report the problem to your system manager and/or to
4482*** bug-libtool@gnu.org
4483
4484EOF
4485 fi ;;
4486 esac
4487 fi
4488 break
4489 fi
4490 done
4491 IFS="$ac_save_ifs"
4492 MAGIC_CMD="$ac_save_MAGIC_CMD"
4493 ;;
4494esac
5464f5a1 4495fi
cfbc9945
SE
4496
4497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4498if test -n "$MAGIC_CMD"; then
4499 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4500echo "${ECHO_T}$MAGIC_CMD" >&6
5464f5a1
NN
4501else
4502 echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6
4504fi
252b5132 4505
cfbc9945 4506if test -z "$lt_cv_path_MAGIC_CMD"; then
5464f5a1 4507 if test -n "$ac_tool_prefix"; then
cfbc9945
SE
4508 echo "$as_me:$LINENO: checking for file" >&5
4509echo $ECHO_N "checking for file... $ECHO_C" >&6
4510if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5464f5a1
NN
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
cfbc9945
SE
4513 case $MAGIC_CMD in
4514 /*)
4515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4516 ;;
4517 ?:/*)
4518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4519 ;;
4520 *)
4521 ac_save_MAGIC_CMD="$MAGIC_CMD"
4522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4523 ac_dummy="/usr/bin:$PATH"
4524 for ac_dir in $ac_dummy; do
4525 test -z "$ac_dir" && ac_dir=.
4526 if test -f $ac_dir/file; then
4527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4528 if test -n "$file_magic_test_file"; then
4529 case $deplibs_check_method in
4530 "file_magic "*)
4531 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4534 egrep "$file_magic_regex" > /dev/null; then
4535 :
4536 else
4537 cat <<EOF 1>&2
6be7c12c 4538
cfbc9945
SE
4539*** Warning: the command libtool uses to detect shared libraries,
4540*** $file_magic_cmd, produces output that libtool cannot recognize.
4541*** The result is that libtool may fail to recognize shared libraries
4542*** as such. This will affect the creation of libtool libraries that
4543*** depend on shared libraries, but programs linked with such libtool
4544*** libraries will work regardless of this problem. Nevertheless, you
4545*** may want to report the problem to your system manager and/or to
4546*** bug-libtool@gnu.org
4547
4548EOF
4549 fi ;;
4550 esac
4551 fi
4552 break
4553 fi
4554 done
4555 IFS="$ac_save_ifs"
4556 MAGIC_CMD="$ac_save_MAGIC_CMD"
4557 ;;
4558esac
5464f5a1 4559fi
cfbc9945
SE
4560
4561MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4562if test -n "$MAGIC_CMD"; then
4563 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4564echo "${ECHO_T}$MAGIC_CMD" >&6
5464f5a1
NN
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
cfbc9945
SE
4570 else
4571 MAGIC_CMD=:
4572 fi
5464f5a1 4573fi
cfbc9945
SE
4574
4575 fi
4576 ;;
4577esac
4578
4579if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4581set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
4582echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 4584if test "${ac_cv_prog_RANLIB+set}" = set; then
5464f5a1
NN
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
cfbc9945
SE
4587 if test -n "$RANLIB"; then
4588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5464f5a1
NN
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 4597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5464f5a1
NN
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
4604fi
4605fi
cfbc9945
SE
4606RANLIB=$ac_cv_prog_RANLIB
4607if test -n "$RANLIB"; then
4608 echo "$as_me:$LINENO: result: $RANLIB" >&5
4609echo "${ECHO_T}$RANLIB" >&6
5464f5a1
NN
4610else
4611 echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
5464f5a1 4615fi
cfbc9945
SE
4616if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619set dummy ranlib; ac_word=$2
5464f5a1
NN
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 4622if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5464f5a1 4623 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4624else
cfbc9945
SE
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 4627else
5464f5a1
NN
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 4635 ac_cv_prog_ac_ct_RANLIB="ranlib"
5464f5a1
NN
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640done
4641
cfbc9945 4642 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5464f5a1
NN
4643fi
4644fi
cfbc9945
SE
4645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646if test -n "$ac_ct_RANLIB"; then
4647 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648echo "${ECHO_T}$ac_ct_RANLIB" >&6
5464f5a1
NN
4649else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
4653
cfbc9945
SE
4654 RANLIB=$ac_ct_RANLIB
4655else
4656 RANLIB="$ac_cv_prog_RANLIB"
5464f5a1 4657fi
cfbc9945
SE
4658
4659if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4661set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
4662echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 4664if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
cfbc9945
SE
4667 if test -n "$STRIP"; then
4668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 4677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682done
4683
4684fi
4685fi
cfbc9945
SE
4686STRIP=$ac_cv_prog_STRIP
4687if test -n "$STRIP"; then
4688 echo "$as_me:$LINENO: result: $STRIP" >&5
4689echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
4690else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693fi
4694
252b5132 4695fi
cfbc9945
SE
4696if test -z "$ac_cv_prog_STRIP"; then
4697 ac_ct_STRIP=$STRIP
4698 # Extract the first word of "strip", so it can be a program name with args.
4699set dummy strip; ac_word=$2
5464f5a1
NN
4700echo "$as_me:$LINENO: checking for $ac_word" >&5
4701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 4702if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
cfbc9945
SE
4705 if test -n "$ac_ct_STRIP"; then
4706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 4715 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719done
4720done
4721
cfbc9945 4722 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
4723fi
4724fi
cfbc9945
SE
4725ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4726if test -n "$ac_ct_STRIP"; then
4727 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4728echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
4729else
4730 echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732fi
4733
cfbc9945
SE
4734 STRIP=$ac_ct_STRIP
4735else
4736 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
4737fi
4738
5464f5a1 4739
cfbc9945
SE
4740# Check for any special flags to pass to ltconfig.
4741libtool_flags="--cache-file=$cache_file"
4742test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4743test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4744test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4745test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4746test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4747
4748
4749# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4750if test "${enable_libtool_lock+set}" = set; then
4751 enableval="$enable_libtool_lock"
4752
4753fi;
4754test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4755test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4756
4757
4758# Check whether --with-pic or --without-pic was given.
4759if test "${with_pic+set}" = set; then
4760 withval="$with_pic"
4761 pic_mode="$withval"
4762else
4763 pic_mode=default
4764fi;
4765test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4766test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4767
4768# Some flags need to be propagated to the compiler or linker for good
4769# libtool support.
4770case $host in
4771*-*-irix6*)
4772 # Find out which ABI we are using.
4773 echo '#line 4773 "configure"' > conftest.$ac_ext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; then
4779 if test "$lt_cv_prog_gnu_ld" = yes; then
4780 case `/usr/bin/file conftest.$ac_objext` in
4781 *32-bit*)
4782 LD="${LD-ld} -melf32bsmip"
4783 ;;
4784 *N32*)
4785 LD="${LD-ld} -melf32bmipn32"
4786 ;;
4787 *64-bit*)
4788 LD="${LD-ld} -melf64bmip"
4789 ;;
4790 esac
4791 else
4792 case `/usr/bin/file conftest.$ac_objext` in
4793 *32-bit*)
4794 LD="${LD-ld} -32"
4795 ;;
4796 *N32*)
4797 LD="${LD-ld} -n32"
4798 ;;
4799 *64-bit*)
4800 LD="${LD-ld} -64"
4801 ;;
4802 esac
4803 fi
4804 fi
4805 rm -rf conftest*
4806 ;;
4807
4808ia64-*-hpux*)
4809 # Find out which ABI we are using.
4810 echo 'int i;' > conftest.$ac_ext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; then
4816 case "`/usr/bin/file conftest.o`" in
4817 *ELF-32*)
4818 HPUX_IA64_MODE="32"
4819 ;;
4820 *ELF-64*)
4821 HPUX_IA64_MODE="64"
4822 ;;
4823 esac
4824 fi
4825 rm -rf conftest*
4826 ;;
4827
4828x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4829 # Find out which ABI we are using.
4830 echo 'int i;' > conftest.$ac_ext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; then
4836 case "`/usr/bin/file conftest.o`" in
4837 *32-bit*)
4838 case $host in
4839 x86_64-*linux*)
4840 LD="${LD-ld} -m elf_i386"
4841 ;;
4842 ppc64-*linux*|powerpc64-*linux*)
4843 LD="${LD-ld} -m elf32ppclinux"
4844 ;;
4845 s390x-*linux*)
4846 LD="${LD-ld} -m elf_s390"
4847 ;;
4848 sparc64-*linux*)
4849 LD="${LD-ld} -m elf32_sparc"
4850 ;;
4851 esac
4852 ;;
4853 *64-bit*)
4854 case $host in
4855 x86_64-*linux*)
4856 LD="${LD-ld} -m elf_x86_64"
4857 ;;
4858 ppc*-*linux*|powerpc*-*linux*)
4859 LD="${LD-ld} -m elf64ppc"
4860 ;;
4861 s390*-*linux*)
4862 LD="${LD-ld} -m elf64_s390"
4863 ;;
4864 sparc*-*linux*)
4865 LD="${LD-ld} -m elf64_sparc"
4866 ;;
4867 esac
4868 ;;
4869 esac
4870 fi
4871 rm -rf conftest*
4872 ;;
4873
4874*-*-sco3.2v5*)
4875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4876 SAVE_CFLAGS="$CFLAGS"
4877 CFLAGS="$CFLAGS -belf"
4878 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4879echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4880if test "${lt_cv_cc_needs_belf+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
5464f5a1 4883
5464f5a1 4884
cfbc9945
SE
4885 ac_ext=c
4886ac_cpp='$CPP $CPPFLAGS'
4887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464f5a1 4890
cfbc9945 4891 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897
4898int
4899main ()
4900{
5464f5a1
NN
4901
4902 ;
4903 return 0;
4904}
4905_ACEOF
cfbc9945
SE
4906rm -f conftest.$ac_objext conftest$ac_exeext
4907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>conftest.er1
5464f5a1
NN
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
49c96104
SE
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
5464f5a1
NN
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
cfbc9945 4922 { ac_try='test -s conftest$ac_exeext'
5464f5a1
NN
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
cfbc9945
SE
4928 lt_cv_cc_needs_belf=yes
4929else
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933lt_cv_cc_needs_belf=no
4934fi
4935rm -f conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937 ac_ext=c
4938ac_cpp='$CPP $CPPFLAGS'
4939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942
4943fi
4944echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4945echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4946 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4948 CFLAGS="$SAVE_CFLAGS"
4949 fi
4950 ;;
4951
4952
4953esac
4954
4955
4956# Save cache, so that ltconfig can load it
4957cat >confcache <<\_ACEOF
4958# This file is a shell script that caches the results of configure
4959# tests run on this system so they can be shared between configure
4960# scripts and configure runs, see configure's option --config-cache.
4961# It is not useful on other systems. If it contains results you don't
4962# want to keep, you may remove or edit it.
4963#
4964# config.status only pays attention to the cache file if you give it
4965# the --recheck option to rerun configure.
4966#
4967# `ac_cv_env_foo' variables (set or unset) will be overridden when
4968# loading this file, other *unset* `ac_cv_foo' will be assigned the
4969# following values.
4970
4971_ACEOF
4972
4973# The following way of writing the cache mishandles newlines in values,
4974# but we know of no workaround that is simple, portable, and efficient.
4975# So, don't put newlines in cache variables' values.
4976# Ultrix sh set writes to stderr and can't be redirected directly,
4977# and sets the high bit in the cache file unless we assign to the vars.
4978{
4979 (set) 2>&1 |
4980 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4981 *ac_space=\ *)
4982 # `set' does not quote correctly, so add quotes (double-quote
4983 # substitution turns \\\\ into \\, and sed turns \\ into \).
4984 sed -n \
4985 "s/'/'\\\\''/g;
4986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4987 ;;
4988 *)
4989 # `set' quotes correctly as required by POSIX, so do not add quotes.
4990 sed -n \
4991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4992 ;;
4993 esac;
4994} |
4995 sed '
4996 t clear
4997 : clear
4998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4999 t end
5000 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5001 : end' >>confcache
5002if diff $cache_file confcache >/dev/null 2>&1; then :; else
5003 if test -w $cache_file; then
5004 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5005 cat confcache >$cache_file
5006 else
5007 echo "not updating unwritable cache $cache_file"
5008 fi
5009fi
5010rm -f confcache
5011
5012# Actually configure libtool. ac_aux_dir is where install-sh is found.
5013AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5014MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5015LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5016AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5017objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5018deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5019${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5020$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5021|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5022echo "$as_me: error: libtool configure failed" >&2;}
5023 { (exit 1); exit 1; }; }
5024
5025# Reload cache, that may have been modified by ltconfig
5026if test -r "$cache_file"; then
5027 # Some versions of bash will fail to source /dev/null (special
5028 # files actually), so we avoid doing that.
5029 if test -f "$cache_file"; then
5030 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5031echo "$as_me: loading cache $cache_file" >&6;}
5032 case $cache_file in
5033 [\\/]* | ?:[\\/]* ) . $cache_file;;
5034 *) . ./$cache_file;;
5035 esac
5036 fi
5037else
5038 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5039echo "$as_me: creating cache $cache_file" >&6;}
5040 >$cache_file
5041fi
5042
5043
5044# This can be used to rebuild libtool when needed
5045LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5046
5047# Always use our own libtool.
5048LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5049
5050# Redirect the config.log output again, so that the ltconfig log is not
5051# clobbered by the next message.
5052exec 5>>./config.log
5053
5054
5055
5056
5057
5058
5059
5060# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
5061if test "${enable_64_bit_bfd+set}" = set; then
5062 enableval="$enable_64_bit_bfd"
5063 case "${enableval}" in
5064 yes) want64=true ;;
5065 no) want64=false ;;
5066 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
5067echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
5068 { (exit 1); exit 1; }; } ;;
5069esac
5070else
5071 want64=false
5072fi; # Check whether --enable-targets or --disable-targets was given.
5073if test "${enable_targets+set}" = set; then
5074 enableval="$enable_targets"
5075 case "${enableval}" in
5076 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
5077echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
5078 { (exit 1); exit 1; }; }
5079 ;;
5080 no) enable_targets= ;;
5081 *) enable_targets=$enableval ;;
5082esac
5083fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
5084if test "${enable_commonbfdlib+set}" = set; then
5085 enableval="$enable_commonbfdlib"
5086 case "${enableval}" in
5087 yes) commonbfdlib=true ;;
5088 no) commonbfdlib=false ;;
5089 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
5090echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092esac
5093fi;
5094# Check whether --with-mmap or --without-mmap was given.
5095if test "${with_mmap+set}" = set; then
5096 withval="$with_mmap"
5097 case "${withval}" in
5098 yes) want_mmap=true ;;
5099 no) want_mmap=false ;;
5100 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
5101echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103esac
5104else
5105 want_mmap=false
5106fi;
5107# Check whether --enable-secureplt or --disable-secureplt was given.
5108if test "${enable_secureplt+set}" = set; then
5109 enableval="$enable_secureplt"
5110 case "${enableval}" in
5111 yes) use_secureplt=true ;;
5112 no) use_secureplt=false ;;
5113 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
5114echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5116esac
5464f5a1 5117else
cfbc9945
SE
5118 use_secureplt=false
5119fi; if test $use_secureplt = true; then
5464f5a1 5120
cfbc9945
SE
5121cat >>confdefs.h <<\_ACEOF
5122#define USE_SECUREPLT 1
5123_ACEOF
5464f5a1
NN
5124
5125fi
cfbc9945
SE
5126
5127
5128
5129# Check whether --with-pkgversion or --without-pkgversion was given.
5130if test "${with_pkgversion+set}" = set; then
5131 withval="$with_pkgversion"
5132 case "$withval" in
5133 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
5134echo "$as_me: error: package version not specified" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5136 no) PKGVERSION= ;;
5137 *) PKGVERSION="($withval) " ;;
5138 esac
5464f5a1 5139else
cfbc9945 5140 PKGVERSION="(GNU Binutils) "
5464f5a1 5141
cfbc9945 5142fi;
5464f5a1 5143
cfbc9945
SE
5144
5145
5146
5147# Check whether --with-bugurl or --without-bugurl was given.
5148if test "${with_bugurl+set}" = set; then
5149 withval="$with_bugurl"
5150 case "$withval" in
5151 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
5152echo "$as_me: error: bug URL not specified" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154 no) BUGURL=
5155 ;;
5156 *) BUGURL="$withval"
5157 ;;
5158 esac
5464f5a1 5159else
cfbc9945 5160 BUGURL="http://www.sourceware.org/bugzilla/"
5464f5a1 5161
cfbc9945
SE
5162fi;
5163 case ${BUGURL} in
5164 "")
5165 REPORT_BUGS_TO=
5166 REPORT_BUGS_TEXI=
5167 ;;
5168 *)
5169 REPORT_BUGS_TO="<$BUGURL>"
5170 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5171 ;;
5172 esac;
5173
5174
5175
5176
5177
5178GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
5179
5180# Check whether --enable-werror or --disable-werror was given.
5181if test "${enable_werror+set}" = set; then
5182 enableval="$enable_werror"
5183 case "${enableval}" in
5184 yes | y) ERROR_ON_WARNING="yes" ;;
5185 no | n) ERROR_ON_WARNING="no" ;;
5186 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
5187echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5189 esac
5190fi;
5191
5192# Enable -Werror by default when using gcc
5193if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5194 ERROR_ON_WARNING=yes
5464f5a1 5195fi
cfbc9945
SE
5196
5197NO_WERROR=
5198if test "${ERROR_ON_WARNING}" = yes ; then
5199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
5200 NO_WERROR="-Wno-error"
5464f5a1 5201fi
5464f5a1 5202
cfbc9945
SE
5203if test "${GCC}" = yes ; then
5204 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
5205fi
5464f5a1 5206
cfbc9945
SE
5207# Check whether --enable-build-warnings or --disable-build-warnings was given.
5208if test "${enable_build_warnings+set}" = set; then
5209 enableval="$enable_build_warnings"
5210 case "${enableval}" in
5211 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
5212 no) if test "${GCC}" = yes ; then
5213 WARN_CFLAGS="-w"
5214 fi;;
5215 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5216 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
5217 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5218 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
5219 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5220esac
5221fi;
5464f5a1 5222
cfbc9945
SE
5223if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
5224 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
5464f5a1 5225fi
5464f5a1 5226
5464f5a1 5227
5464f5a1 5228
5464f5a1 5229
cfbc9945
SE
5230
5231 ac_config_headers="$ac_config_headers config.h:config.in"
5232
5233
5234if test -z "$target" ; then
5235 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
5236echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
5237 { (exit 1); exit 1; }; }
5464f5a1 5238fi
cfbc9945
SE
5239
5240echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5241echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5242 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5243if test "${enable_maintainer_mode+set}" = set; then
5244 enableval="$enable_maintainer_mode"
5245 USE_MAINTAINER_MODE=$enableval
5464f5a1 5246else
cfbc9945
SE
5247 USE_MAINTAINER_MODE=no
5248fi;
5249 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5250echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5251
5464f5a1 5252
cfbc9945
SE
5253if test $USE_MAINTAINER_MODE = yes; then
5254 MAINTAINER_MODE_TRUE=
5255 MAINTAINER_MODE_FALSE='#'
5256else
5257 MAINTAINER_MODE_TRUE='#'
5258 MAINTAINER_MODE_FALSE=
5464f5a1 5259fi
cfbc9945
SE
5260
5261 MAINT=$MAINTAINER_MODE_TRUE
5262
5263
5264
5265
5266if false; then
5267 GENINSRC_NEVER_TRUE=
5268 GENINSRC_NEVER_FALSE='#'
5269else
5270 GENINSRC_NEVER_TRUE='#'
5271 GENINSRC_NEVER_FALSE=
252b5132 5272fi
5464f5a1 5273
cfbc9945
SE
5274 case ${build_alias} in
5275 "") build_noncanonical=${build} ;;
5276 *) build_noncanonical=${build_alias} ;;
5277esac
5278
5279 case ${host_alias} in
5280 "") host_noncanonical=${build_noncanonical} ;;
5281 *) host_noncanonical=${host_alias} ;;
5282esac
5283
5284 case ${target_alias} in
5285 "") target_noncanonical=${host_noncanonical} ;;
5286 *) target_noncanonical=${target_alias} ;;
5287esac
5288
5289echo "$as_me:$LINENO: checking whether to install libbfd" >&5
5290echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
5291 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
5292if test "${enable_install_libbfd+set}" = set; then
5293 enableval="$enable_install_libbfd"
5294 install_libbfd_p=$enableval
b3baf5d0 5295else
cfbc9945
SE
5296 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
5297 install_libbfd_p=yes
5298 else
5299 install_libbfd_p=no
5300 fi
5301fi;
5302 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
5303echo "${ECHO_T}$install_libbfd_p" >&6
5464f5a1 5304
cfbc9945
SE
5305
5306if test $install_libbfd_p = yes; then
5307 INSTALL_LIBBFD_TRUE=
5308 INSTALL_LIBBFD_FALSE='#'
5309else
5310 INSTALL_LIBBFD_TRUE='#'
5311 INSTALL_LIBBFD_FALSE=
b3baf5d0
NC
5312fi
5313
cfbc9945
SE
5314 # Need _noncanonical variables for this.
5315
5316
5317
5318
5319 # libbfd.a is a host library containing target dependent code
5320 bfdlibdir='$(libdir)'
5321 bfdincludedir='$(includedir)'
5322 if test "${host}" != "${target}"; then
5323 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
5324 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
5325 fi
5464f5a1 5326
4a2a2686
HPN
5327
5328
5329
cfbc9945
SE
5330
5331
5332host64=false
5333target64=false
5334bfd_default_target_size=32
5335
5336# host stuff:
5337
dcd4b381 5338ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5339# If we haven't got the data from the intl directory,
5340# assume NLS is disabled.
5341USE_NLS=no
5342LIBINTL=
5343LIBINTL_DEP=
5344INCINTL=
5345XGETTEXT=
5346GMSGFMT=
5347POSUB=
9d7cbccd
NC
5348
5349if test -f ../intl/config.intl; then
5350 . ../intl/config.intl
20e95c23
DJ
5351fi
5352echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5353echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5354if test x"$USE_NLS" != xyes; then
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
252b5132 5357else
20e95c23
DJ
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360
5361cat >>confdefs.h <<\_ACEOF
5362#define ENABLE_NLS 1
5363_ACEOF
5364
5365
5366 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5367echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5368 # Look for .po and .gmo files in the source directory.
5369 CATALOGS=
5370 XLINGUAS=
5371 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5372 # If there aren't any .gmo files the shell will give us the
5373 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5374 # weeded out.
5375 case "$cat" in *\**)
5376 continue;;
5377 esac
5378 # The quadruple backslash is collapsed to a double backslash
5379 # by the backticks, then collapsed again by the double quotes,
5380 # leaving us with one backslash in the sed expression (right
5381 # before the dot that mustn't act as a wildcard).
5382 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5383 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5384 # The user is allowed to set LINGUAS to a list of languages to
5385 # install catalogs for. If it's empty that means "all of them."
5386 if test "x$LINGUAS" = x; then
5387 CATALOGS="$CATALOGS $cat"
5388 XLINGUAS="$XLINGUAS $lang"
5389 else
5390 case "$LINGUAS" in *$lang*)
5391 CATALOGS="$CATALOGS $cat"
5392 XLINGUAS="$XLINGUAS $lang"
5393 ;;
5394 esac
5395 fi
5396 done
5397 LINGUAS="$XLINGUAS"
5398 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5399echo "${ECHO_T}$LINGUAS" >&6
5400
5401
5402 DATADIRNAME=share
5403
5404 INSTOBJEXT=.mo
5405
5406 GENCAT=gencat
5407
5408 CATOBJEXT=.gmo
5409
5410fi
5411
5412 MKINSTALLDIRS=
5413 if test -n "$ac_aux_dir"; then
5414 case "$ac_aux_dir" in
5415 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5416 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5417 esac
5418 fi
5419 if test -z "$MKINSTALLDIRS"; then
5420 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5421 fi
5422
5423
5424
5425 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5426echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5427 # Check whether --enable-nls or --disable-nls was given.
5428if test "${enable_nls+set}" = set; then
5429 enableval="$enable_nls"
5430 USE_NLS=$enableval
252b5132 5431else
20e95c23
DJ
5432 USE_NLS=yes
5433fi;
5434 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5435echo "${ECHO_T}$USE_NLS" >&6
5436
5437
5438
5439
5440
5441
5442# Prepare PATH_SEPARATOR.
5443# The user is always right.
5444if test "${PATH_SEPARATOR+set}" != set; then
5445 echo "#! /bin/sh" >conf$$.sh
5446 echo "exit 0" >>conf$$.sh
5447 chmod +x conf$$.sh
5448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5449 PATH_SEPARATOR=';'
5450 else
5451 PATH_SEPARATOR=:
252b5132 5452 fi
20e95c23
DJ
5453 rm -f conf$$.sh
5454fi
5464f5a1 5455
20e95c23
DJ
5456# Find out how to test for executable files. Don't use a zero-byte file,
5457# as systems may use methods other than mode bits to determine executability.
5458cat >conf$$.file <<_ASEOF
5459#! /bin/sh
5460exit 0
5461_ASEOF
5462chmod +x conf$$.file
5463if test -x conf$$.file >/dev/null 2>&1; then
5464 ac_executable_p="test -x"
5465else
5466 ac_executable_p="test -f"
252b5132 5467fi
20e95c23
DJ
5468rm -f conf$$.file
5469
5470# Extract the first word of "msgfmt", so it can be a program name with args.
5471set dummy msgfmt; ac_word=$2
5472echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474if test "${ac_cv_path_MSGFMT+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477 case "$MSGFMT" in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5480 ;;
5481 *)
5482 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5483 for ac_dir in $PATH; do
5484 IFS="$ac_save_IFS"
5485 test -z "$ac_dir" && ac_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5488 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5489 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5490 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5491 break 2
5492 fi
5493 fi
5494 done
5495 done
5496 IFS="$ac_save_IFS"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5498 ;;
5499esac
252b5132 5500fi
20e95c23
DJ
5501MSGFMT="$ac_cv_path_MSGFMT"
5502if test "$MSGFMT" != ":"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504echo "${ECHO_T}$MSGFMT" >&6
252b5132 5505else
5464f5a1
NN
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
252b5132
RH
5508fi
5509
20e95c23
DJ
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5514if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5515 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5516else
20e95c23
DJ
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
20e95c23
DJ
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538esac
252b5132 5539fi
20e95c23
DJ
5540GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5545else
5464f5a1
NN
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
b3baf5d0 5548fi
252b5132 5549
20e95c23
DJ
5550
5551
5552# Prepare PATH_SEPARATOR.
5553# The user is always right.
5554if test "${PATH_SEPARATOR+set}" != set; then
5555 echo "#! /bin/sh" >conf$$.sh
5556 echo "exit 0" >>conf$$.sh
5557 chmod +x conf$$.sh
5558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5559 PATH_SEPARATOR=';'
5560 else
5561 PATH_SEPARATOR=:
5562 fi
5563 rm -f conf$$.sh
252b5132 5564fi
5464f5a1 5565
20e95c23
DJ
5566# Find out how to test for executable files. Don't use a zero-byte file,
5567# as systems may use methods other than mode bits to determine executability.
5568cat >conf$$.file <<_ASEOF
5569#! /bin/sh
5570exit 0
5571_ASEOF
5572chmod +x conf$$.file
5573if test -x conf$$.file >/dev/null 2>&1; then
5574 ac_executable_p="test -x"
5575else
5576 ac_executable_p="test -f"
6be7c12c 5577fi
20e95c23
DJ
5578rm -f conf$$.file
5579
5580# Extract the first word of "xgettext", so it can be a program name with args.
5581set dummy xgettext; ac_word=$2
5582echo "$as_me:$LINENO: checking for $ac_word" >&5
5583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5584if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5585 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5586else
20e95c23
DJ
5587 case "$XGETTEXT" in
5588 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5590 ;;
5591 *)
5592 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5593 for ac_dir in $PATH; do
5594 IFS="$ac_save_IFS"
5595 test -z "$ac_dir" && ac_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5598 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5599 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5600 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5601 break 2
5602 fi
5603 fi
5604 done
5605 done
5606 IFS="$ac_save_IFS"
5607 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5608 ;;
5609esac
5610fi
5611XGETTEXT="$ac_cv_path_XGETTEXT"
5612if test "$XGETTEXT" != ":"; then
5613 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5614echo "${ECHO_T}$XGETTEXT" >&6
5615else
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618fi
5619
5620 rm -f messages.po
5621
5622
5623# Prepare PATH_SEPARATOR.
5624# The user is always right.
5625if test "${PATH_SEPARATOR+set}" != set; then
5626 echo "#! /bin/sh" >conf$$.sh
5627 echo "exit 0" >>conf$$.sh
5628 chmod +x conf$$.sh
5629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5630 PATH_SEPARATOR=';'
5464f5a1 5631 else
20e95c23 5632 PATH_SEPARATOR=:
5464f5a1 5633 fi
20e95c23 5634 rm -f conf$$.sh
6be7c12c 5635fi
5464f5a1 5636
20e95c23
DJ
5637# Find out how to test for executable files. Don't use a zero-byte file,
5638# as systems may use methods other than mode bits to determine executability.
5639cat >conf$$.file <<_ASEOF
5640#! /bin/sh
5641exit 0
5642_ASEOF
5643chmod +x conf$$.file
5644if test -x conf$$.file >/dev/null 2>&1; then
5645 ac_executable_p="test -x"
5646else
5647 ac_executable_p="test -f"
5464f5a1 5648fi
20e95c23 5649rm -f conf$$.file
5464f5a1 5650
20e95c23
DJ
5651# Extract the first word of "msgmerge", so it can be a program name with args.
5652set dummy msgmerge; ac_word=$2
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_path_MSGMERGE+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5657else
20e95c23
DJ
5658 case "$MSGMERGE" in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5661 ;;
5662 *)
5663 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5664 for ac_dir in $PATH; do
5665 IFS="$ac_save_IFS"
5666 test -z "$ac_dir" && ac_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5669 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5670 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5671 break 2
5672 fi
5673 fi
5674 done
5464f5a1 5675 done
20e95c23
DJ
5676 IFS="$ac_save_IFS"
5677 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5678 ;;
5679esac
5464f5a1 5680fi
20e95c23
DJ
5681MSGMERGE="$ac_cv_path_MSGMERGE"
5682if test "$MSGMERGE" != ":"; then
5683 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5684echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5685else
20e95c23
DJ
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5464f5a1 5688fi
5464f5a1 5689
5464f5a1 5690
20e95c23
DJ
5691 if test "$GMSGFMT" != ":"; then
5692 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5693 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5694 : ;
5695 else
5696 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5697 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5698echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5699 GMSGFMT=":"
5700 fi
5464f5a1 5701 fi
5464f5a1 5702
20e95c23
DJ
5703 if test "$XGETTEXT" != ":"; then
5704 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5705 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5706 : ;
5707 else
5708 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5709echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5710 XGETTEXT=":"
5711 fi
5712 rm -f messages.po
5713 fi
6be7c12c 5714
20e95c23 5715 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5716
5464f5a1
NN
5717
5718
20e95c23
DJ
5719# Permit host specific settings.
5720. ${srcdir}/configure.host
5464f5a1 5721
ac48eca1 5722
20e95c23
DJ
5723# Find a good install program. We prefer a C program (faster),
5724# so one script is as good as another. But avoid the broken or
5725# incompatible versions:
5726# SysV /etc/install, /usr/sbin/install
5727# SunOS /usr/etc/install
5728# IRIX /sbin/install
5729# AIX /bin/install
5730# AmigaOS /C/install, which installs bootblocks on floppy discs
5731# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5732# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5733# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5734# OS/2's system install, which has a completely different semantic
5735# ./install, which can be erroneously created by make from ./install.sh.
5736echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5737echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5738if test -z "$INSTALL"; then
5739if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5740 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5741else
20e95c23
DJ
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 # Account for people who put trailing slashes in PATH elements.
5748case $as_dir/ in
5749 ./ | .// | /cC/* | \
5750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5752 /usr/ucb/* ) ;;
5464f5a1 5753 *)
20e95c23
DJ
5754 # OSF1 and SCO ODT 3.0 have their own names for install.
5755 # Don't use installbsd from OSF since it installs stuff as root
5756 # by default.
5757 for ac_prog in ginstall scoinst install; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5760 if test $ac_prog = install &&
5761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5762 # AIX install. It has an incompatible calling convention.
5763 :
5764 elif test $ac_prog = install &&
5765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5766 # program-specific install script used by HP pwplus--don't use.
5767 :
5768 else
5769 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5770 break 3
5771 fi
5772 fi
5773 done
5774 done
5464f5a1
NN
5775 ;;
5776esac
252b5132
RH
5777done
5778
20e95c23 5779
252b5132 5780fi
20e95c23
DJ
5781 if test "${ac_cv_path_install+set}" = set; then
5782 INSTALL=$ac_cv_path_install
5783 else
5784 # As a last resort, use the slow shell script. We don't cache a
5785 # path for INSTALL within a source directory, because that will
5786 # break other packages using the cache if that directory is
5787 # removed, or if the path is relative.
5788 INSTALL=$ac_install_sh
5789 fi
252b5132 5790fi
20e95c23
DJ
5791echo "$as_me:$LINENO: result: $INSTALL" >&5
5792echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5793
20e95c23
DJ
5794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5795# It thinks the first close brace ends the variable substitution.
5796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5797
20e95c23 5798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5799
20e95c23 5800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5801
252b5132 5802
20e95c23
DJ
5803BFD_HOST_64BIT_LONG=0
5804BFD_HOST_LONG_LONG=0
5805BFD_HOST_64_BIT_DEFINED=0
5806BFD_HOST_64_BIT=
5807BFD_HOST_U_64_BIT=
5464f5a1 5808
20e95c23
DJ
5809echo "$as_me:$LINENO: checking for long long" >&5
5810echo $ECHO_N "checking for long long... $ECHO_C" >&6
5811if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5813else
20e95c23 5814 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
20e95c23
DJ
5820
5821int
5822main ()
5823{
5824unsigned long long ll = 18446744073709551615ULL;
5825 ;
5826 return 0;
5827}
5464f5a1
NN
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
49c96104
SE
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5464f5a1
NN
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
20e95c23 5851 bfd_cv_has_long_long=yes
5464f5a1
NN
5852else
5853 echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
20e95c23 5856bfd_cv_has_long_long=no
5464f5a1
NN
5857fi
5858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5859fi
5464f5a1 5860
20e95c23
DJ
5861echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5862echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5863if test $bfd_cv_has_long_long = yes; then
5864 BFD_HOST_LONG_LONG=1
5865 ac_ext=c
5866ac_cpp='$CPP $CPPFLAGS'
5867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5871echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5872# On Suns, sometimes $CPP names a directory.
5873if test -n "$CPP" && test -d "$CPP"; then
5874 CPP=
5875fi
5876if test -z "$CPP"; then
5877 if test "${ac_cv_prog_CPP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880 # Double quotes because CPP needs to be expanded
5881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5882 do
5883 ac_preproc_ok=false
5884for ac_c_preproc_warn_flag in '' yes
5885do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
20e95c23
DJ
5898#ifdef __STDC__
5899# include <limits.h>
5900#else
5901# include <assert.h>
5902#endif
5903 Syntax error
5464f5a1
NN
5904_ACEOF
5905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null; then
5913 if test -s conftest.err; then
5914 ac_cpp_err=$ac_c_preproc_warn_flag
5915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 else
5917 ac_cpp_err=
5918 fi
252b5132 5919else
5464f5a1 5920 ac_cpp_err=yes
252b5132 5921fi
5464f5a1 5922if test -z "$ac_cpp_err"; then
20e95c23 5923 :
5464f5a1
NN
5924else
5925 echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
20e95c23
DJ
5928 # Broken: fails on valid input.
5929continue
252b5132 5930fi
5464f5a1 5931rm -f conftest.err conftest.$ac_ext
5464f5a1 5932
20e95c23
DJ
5933 # OK, works on sane cases. Now check whether non-existent headers
5934 # can be detected and how.
5464f5a1
NN
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
20e95c23 5941#include <ac_nonexistent.h>
5464f5a1 5942_ACEOF
20e95c23
DJ
5943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5945 ac_status=$?
20e95c23
DJ
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5464f5a1 5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 else
5955 ac_cpp_err=
5956 fi
5957else
5958 ac_cpp_err=yes
5959fi
5960if test -z "$ac_cpp_err"; then
5961 # Broken: success on invalid input.
5962continue
252b5132 5963else
5464f5a1
NN
5964 echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
20e95c23
DJ
5967 # Passes both tests.
5968ac_preproc_ok=:
5969break
252b5132 5970fi
20e95c23 5971rm -f conftest.err conftest.$ac_ext
252b5132 5972
20e95c23
DJ
5973done
5974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975rm -f conftest.err conftest.$ac_ext
5976if $ac_preproc_ok; then
5977 break
5978fi
5464f5a1 5979
20e95c23
DJ
5980 done
5981 ac_cv_prog_CPP=$CPP
252b5132 5982
252b5132 5983fi
20e95c23 5984 CPP=$ac_cv_prog_CPP
252b5132 5985else
20e95c23 5986 ac_cv_prog_CPP=$CPP
252b5132 5987fi
20e95c23
DJ
5988echo "$as_me:$LINENO: result: $CPP" >&5
5989echo "${ECHO_T}$CPP" >&6
5990ac_preproc_ok=false
5991for ac_c_preproc_warn_flag in '' yes
252b5132 5992do
20e95c23
DJ
5993 # Use a header file that comes with gcc, so configuring glibc
5994 # with a fresh cross-compiler works.
5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996 # <limits.h> exists even on freestanding compilers.
5997 # On the NeXT, cc -E runs the code through the compiler's parser,
5998 # not just through cpp. "Syntax error" is here to catch this case.
5464f5a1
NN
5999 cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h. */
5464f5a1
NN
6005#ifdef __STDC__
6006# include <limits.h>
6007#else
6008# include <assert.h>
6009#endif
20e95c23 6010 Syntax error
5464f5a1 6011_ACEOF
20e95c23
DJ
6012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023 else
6024 ac_cpp_err=
6025 fi
6026else
6027 ac_cpp_err=yes
6028fi
6029if test -z "$ac_cpp_err"; then
6030 :
5464f5a1
NN
6031else
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
20e95c23
DJ
6035 # Broken: fails on valid input.
6036continue
5464f5a1 6037fi
20e95c23 6038rm -f conftest.err conftest.$ac_ext
252b5132 6039
20e95c23
DJ
6040 # OK, works on sane cases. Now check whether non-existent headers
6041 # can be detected and how.
6042 cat >conftest.$ac_ext <<_ACEOF
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
6048#include <ac_nonexistent.h>
6049_ACEOF
6050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null; then
6058 if test -s conftest.err; then
6059 ac_cpp_err=$ac_c_preproc_warn_flag
6060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061 else
6062 ac_cpp_err=
6063 fi
6064else
6065 ac_cpp_err=yes
252b5132 6066fi
20e95c23
DJ
6067if test -z "$ac_cpp_err"; then
6068 # Broken: success on invalid input.
6069continue
252b5132 6070else
20e95c23
DJ
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6073
20e95c23
DJ
6074 # Passes both tests.
6075ac_preproc_ok=:
6076break
252b5132 6077fi
20e95c23 6078rm -f conftest.err conftest.$ac_ext
5464f5a1 6079
20e95c23
DJ
6080done
6081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6082rm -f conftest.err conftest.$ac_ext
6083if $ac_preproc_ok; then
6084 :
252b5132 6085else
20e95c23
DJ
6086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6087See \`config.log' for more details." >&5
6088echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6089See \`config.log' for more details." >&2;}
6090 { (exit 1); exit 1; }; }
252b5132
RH
6091fi
6092
20e95c23
DJ
6093ac_ext=c
6094ac_cpp='$CPP $CPPFLAGS'
6095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099
6100echo "$as_me:$LINENO: checking for egrep" >&5
6101echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6102if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6103 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6104else
20e95c23
DJ
6105 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6106 then ac_cv_prog_egrep='grep -E'
6107 else ac_cv_prog_egrep='egrep'
252b5132 6108 fi
252b5132 6109fi
20e95c23
DJ
6110echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6111echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6112 EGREP=$ac_cv_prog_egrep
6113
252b5132 6114
20e95c23
DJ
6115echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6117if test "${ac_cv_header_stdc+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
20e95c23
DJ
6126#include <stdlib.h>
6127#include <stdarg.h>
6128#include <string.h>
6129#include <float.h>
252b5132 6130
5464f5a1
NN
6131int
6132main ()
6133{
20e95c23 6134
5464f5a1
NN
6135 ;
6136 return 0;
6137}
6138_ACEOF
20e95c23
DJ
6139rm -f conftest.$ac_objext
6140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
49c96104
SE
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
5464f5a1
NN
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
20e95c23 6155 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
20e95c23 6161 ac_cv_header_stdc=yes
252b5132 6162else
5464f5a1
NN
6163 echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
20e95c23 6166ac_cv_header_stdc=no
252b5132 6167fi
20e95c23 6168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6169
20e95c23
DJ
6170if test $ac_cv_header_stdc = yes; then
6171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6172 cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
6178#include <string.h>
5464f5a1 6179
20e95c23
DJ
6180_ACEOF
6181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "memchr" >/dev/null 2>&1; then
6183 :
252b5132 6184else
20e95c23 6185 ac_cv_header_stdc=no
252b5132 6186fi
20e95c23 6187rm -f conftest*
252b5132 6188
252b5132
RH
6189fi
6190
20e95c23
DJ
6191if test $ac_cv_header_stdc = yes; then
6192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6193 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
20e95c23
DJ
6199#include <stdlib.h>
6200
5464f5a1 6201_ACEOF
20e95c23
DJ
6202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "free" >/dev/null 2>&1; then
6204 :
5464f5a1 6205else
20e95c23
DJ
6206 ac_cv_header_stdc=no
6207fi
6208rm -f conftest*
5464f5a1 6209
5464f5a1 6210fi
5464f5a1 6211
20e95c23
DJ
6212if test $ac_cv_header_stdc = yes; then
6213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6214 if test "$cross_compiling" = yes; then
6215 :
6216else
6217 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
20e95c23
DJ
6223#include <ctype.h>
6224#if ((' ' & 0x0FF) == 0x020)
6225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6227#else
6228# define ISLOWER(c) \
6229 (('a' <= (c) && (c) <= 'i') \
6230 || ('j' <= (c) && (c) <= 'r') \
6231 || ('s' <= (c) && (c) <= 'z'))
6232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6233#endif
6234
6235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6236int
6237main ()
6238{
6239 int i;
6240 for (i = 0; i < 256; i++)
6241 if (XOR (islower (i), ISLOWER (i))
6242 || toupper (i) != TOUPPER (i))
6243 exit(2);
6244 exit (0);
6245}
5464f5a1 6246_ACEOF
20e95c23
DJ
6247rm -f conftest$ac_exeext
6248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
5464f5a1 6250 ac_status=$?
5464f5a1 6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 :
5464f5a1 6259else
20e95c23
DJ
6260 echo "$as_me: program exited with status $ac_status" >&5
6261echo "$as_me: failed program was:" >&5
5464f5a1
NN
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
20e95c23
DJ
6264( exit $ac_status )
6265ac_cv_header_stdc=no
5464f5a1 6266fi
20e95c23 6267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6268fi
252b5132 6269fi
252b5132 6270fi
20e95c23
DJ
6271echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6272echo "${ECHO_T}$ac_cv_header_stdc" >&6
6273if test $ac_cv_header_stdc = yes; then
252b5132 6274
20e95c23
DJ
6275cat >>confdefs.h <<\_ACEOF
6276#define STDC_HEADERS 1
6277_ACEOF
6be7c12c 6278
20e95c23 6279fi
5464f5a1 6280
20e95c23 6281# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6282
5464f5a1 6283
252b5132 6284
5464f5a1 6285
252b5132 6286
5464f5a1 6287
252b5132 6288
252b5132 6289
6be7c12c 6290
20e95c23
DJ
6291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6292 inttypes.h stdint.h unistd.h
5464f5a1 6293do
20e95c23
DJ
6294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295echo "$as_me:$LINENO: checking for $ac_header" >&5
6296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6297if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6298 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6299else
5464f5a1
NN
6300 cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
20e95c23 6306$ac_includes_default
ec317fb1 6307
20e95c23 6308#include <$ac_header>
5464f5a1
NN
6309_ACEOF
6310rm -f conftest.$ac_objext
6311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
49c96104
SE
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
5464f5a1
NN
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
20e95c23 6332 eval "$as_ac_Header=yes"
ec317fb1 6333else
5464f5a1
NN
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
20e95c23 6337eval "$as_ac_Header=no"
ec317fb1 6338fi
5464f5a1 6339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6340fi
6341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343if test `eval echo '${'$as_ac_Header'}'` = yes; then
6344 cat >>confdefs.h <<_ACEOF
6345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346_ACEOF
6347
ec317fb1
ILT
6348fi
6349
20e95c23
DJ
6350done
6351
6352
6353echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6354echo $ECHO_N "checking for long long... $ECHO_C" >&6
6355if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6357else
5464f5a1
NN
6358 cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h. */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h. */
2ba49b59 6364$ac_includes_default
5464f5a1
NN
6365int
6366main ()
6367{
2ba49b59
KC
6368if ((long long *) 0)
6369 return 0;
6370if (sizeof (long long))
6371 return 0;
5464f5a1
NN
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext
6377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
49c96104
SE
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
5464f5a1
NN
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
2ba49b59 6398 ac_cv_type_long_long=yes
6726e1ea 6399else
5464f5a1
NN
6400 echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
2ba49b59 6403ac_cv_type_long_long=no
6726e1ea 6404fi
5464f5a1 6405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6406fi
2ba49b59
KC
6407echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6408echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6409
2ba49b59
KC
6410echo "$as_me:$LINENO: checking size of long long" >&5
6411echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6412if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6414else
2ba49b59
KC
6415 if test "$ac_cv_type_long_long" = yes; then
6416 # The cast to unsigned long works around a bug in the HP C Compiler
6417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419 # This bug is HP SR number 8606223364.
6420 if test "$cross_compiling" = yes; then
6421 # Depending upon the size, compute the lo and hi bounds.
6422cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
2ba49b59
KC
6428$ac_includes_default
6429int
6430main ()
6431{
6432static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6433test_array [0] = 0
6726e1ea 6434
2ba49b59
KC
6435 ;
6436 return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
49c96104
SE
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
2ba49b59
KC
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_lo=0 ac_mid=0
6462 while :; do
6463 cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469$ac_includes_default
5464f5a1
NN
6470int
6471main ()
6472{
2ba49b59
KC
6473static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6474test_array [0] = 0
6475
5464f5a1
NN
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
49c96104
SE
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
5464f5a1
NN
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
2ba49b59 6502 ac_hi=$ac_mid; break
6726e1ea 6503else
5464f5a1
NN
6504 echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
2ba49b59
KC
6507ac_lo=`expr $ac_mid + 1`
6508 if test $ac_lo -le $ac_mid; then
6509 ac_lo= ac_hi=
6510 break
6511 fi
6512 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6513fi
5464f5a1 6514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6515 done
252b5132 6516else
2ba49b59
KC
6517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6519
5464f5a1
NN
6520cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h. */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h. */
6526$ac_includes_default
2ba49b59
KC
6527int
6528main ()
6529{
6530static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6531test_array [0] = 0
6532
6533 ;
6534 return 0;
6535}
5464f5a1
NN
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
49c96104
SE
6546 { ac_try='test -z "$ac_c_werror_flag"
6547 || test ! -s conftest.err'
5464f5a1
NN
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
2ba49b59
KC
6559 ac_hi=-1 ac_mid=-1
6560 while :; do
6561 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
2ba49b59
KC
6567$ac_includes_default
6568int
6569main ()
6570{
6571static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6572test_array [0] = 0
6573
6574 ;
6575 return 0;
6576}
5464f5a1 6577_ACEOF
2ba49b59
KC
6578rm -f conftest.$ac_objext
6579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6586 (exit $ac_status); } &&
49c96104
SE
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
2ba49b59
KC
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_lo=$ac_mid; break
252b5132 6601else
2ba49b59
KC
6602 echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_hi=`expr '(' $ac_mid ')' - 1`
6606 if test $ac_mid -le $ac_hi; then
6607 ac_lo= ac_hi=
6608 break
6609 fi
6610 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6611fi
2ba49b59
KC
6612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 done
5464f5a1
NN
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
2ba49b59 6618ac_lo= ac_hi=
252b5132 6619fi
2ba49b59
KC
6620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621fi
6622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623# Binary search between lo and hi bounds.
6624while test "x$ac_lo" != "x$ac_hi"; do
6625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6626 cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
6632$ac_includes_default
6633int
6634main ()
6635{
6636static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6637test_array [0] = 0
5464f5a1 6638
2ba49b59
KC
6639 ;
6640 return 0;
6641}
5464f5a1
NN
6642_ACEOF
6643rm -f conftest.$ac_objext
6644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
49c96104
SE
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
5464f5a1
NN
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
2ba49b59 6665 ac_hi=$ac_mid
5464f5a1
NN
6666else
6667 echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
2ba49b59 6670ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6671fi
6672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6673done
6674case $ac_lo in
6675?*) ac_cv_sizeof_long_long=$ac_lo;;
6676'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6677See \`config.log' for more details." >&5
6678echo "$as_me: error: cannot compute sizeof (long long), 77
6679See \`config.log' for more details." >&2;}
6680 { (exit 1); exit 1; }; } ;;
6681esac
6682else
6683 if test "$cross_compiling" = yes; then
49c96104
SE
6684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6685See \`config.log' for more details." >&5
6686echo "$as_me: error: cannot run test program while cross compiling
6687See \`config.log' for more details." >&2;}
2ba49b59
KC
6688 { (exit 1); exit 1; }; }
6689else
6690 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
2ba49b59
KC
6696$ac_includes_default
6697long longval () { return (long) (sizeof (long long)); }
6698unsigned long ulongval () { return (long) (sizeof (long long)); }
6699#include <stdio.h>
6700#include <stdlib.h>
6701int
6702main ()
6703{
6704
6705 FILE *f = fopen ("conftest.val", "w");
6706 if (! f)
6707 exit (1);
6708 if (((long) (sizeof (long long))) < 0)
6709 {
6710 long i = longval ();
6711 if (i != ((long) (sizeof (long long))))
6712 exit (1);
6713 fprintf (f, "%ld\n", i);
6714 }
6715 else
6716 {
6717 unsigned long i = ulongval ();
6718 if (i != ((long) (sizeof (long long))))
6719 exit (1);
6720 fprintf (f, "%lu\n", i);
6721 }
6722 exit (ferror (f) || fclose (f) != 0);
6723
6724 ;
6725 return 0;
6726}
5464f5a1 6727_ACEOF
2ba49b59
KC
6728rm -f conftest$ac_exeext
6729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6730 (eval $ac_link) 2>&5
5464f5a1 6731 ac_status=$?
5464f5a1 6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6740else
2ba49b59
KC
6741 echo "$as_me: program exited with status $ac_status" >&5
6742echo "$as_me: failed program was:" >&5
5464f5a1
NN
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
2ba49b59
KC
6745( exit $ac_status )
6746{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6747See \`config.log' for more details." >&5
6748echo "$as_me: error: cannot compute sizeof (long long), 77
6749See \`config.log' for more details." >&2;}
6750 { (exit 1); exit 1; }; }
252b5132 6751fi
2ba49b59
KC
6752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6753fi
6754fi
6755rm -f conftest.val
6be7c12c 6756else
2ba49b59 6757 ac_cv_sizeof_long_long=0
5464f5a1 6758fi
5464f5a1 6759fi
2ba49b59
KC
6760echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6761echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6762cat >>confdefs.h <<_ACEOF
6763#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6764_ACEOF
6765
5464f5a1 6766
2ba49b59 6767fi
252b5132 6768
2ba49b59
KC
6769echo "$as_me:$LINENO: checking for long" >&5
6770echo $ECHO_N "checking for long... $ECHO_C" >&6
6771if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
2ba49b59 6780$ac_includes_default
5464f5a1
NN
6781int
6782main ()
6783{
2ba49b59
KC
6784if ((long *) 0)
6785 return 0;
6786if (sizeof (long))
6787 return 0;
5464f5a1
NN
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext
6793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
49c96104
SE
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
5464f5a1
NN
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
2ba49b59 6814 ac_cv_type_long=yes
252b5132 6815else
5464f5a1
NN
6816 echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
6818
2ba49b59 6819ac_cv_type_long=no
252b5132 6820fi
5464f5a1 6821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6822fi
2ba49b59
KC
6823echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6824echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6825
2ba49b59
KC
6826echo "$as_me:$LINENO: checking size of long" >&5
6827echo $ECHO_N "checking size of long... $ECHO_C" >&6
6828if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
2ba49b59
KC
6831 if test "$ac_cv_type_long" = yes; then
6832 # The cast to unsigned long works around a bug in the HP C Compiler
6833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6835 # This bug is HP SR number 8606223364.
6836 if test "$cross_compiling" = yes; then
6837 # Depending upon the size, compute the lo and hi bounds.
6838cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
2ba49b59 6844$ac_includes_default
5464f5a1
NN
6845int
6846main ()
6847{
2ba49b59
KC
6848static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6849test_array [0] = 0
6850
5464f5a1
NN
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855rm -f conftest.$ac_objext
6856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
49c96104
SE
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
5464f5a1
NN
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
2ba49b59
KC
6877 ac_lo=0 ac_mid=0
6878 while :; do
6879 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
2ba49b59 6885$ac_includes_default
5464f5a1
NN
6886int
6887main ()
6888{
2ba49b59
KC
6889static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6890test_array [0] = 0
6891
5464f5a1
NN
6892 ;
6893 return 0;
6894}
6895_ACEOF
2ba49b59
KC
6896rm -f conftest.$ac_objext
6897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
49c96104
SE
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
5464f5a1
NN
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
2ba49b59 6912 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
2ba49b59 6918 ac_hi=$ac_mid; break
5464f5a1
NN
6919else
6920 echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
2ba49b59
KC
6923ac_lo=`expr $ac_mid + 1`
6924 if test $ac_lo -le $ac_mid; then
6925 ac_lo= ac_hi=
6926 break
6927 fi
6928 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6929fi
2ba49b59
KC
6930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 done
6932else
6933 echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6937/* confdefs.h. */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h. */
2ba49b59 6942$ac_includes_default
5464f5a1
NN
6943int
6944main ()
6945{
2ba49b59
KC
6946static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6947test_array [0] = 0
6948
5464f5a1
NN
6949 ;
6950 return 0;
6951}
6952_ACEOF
2ba49b59
KC
6953rm -f conftest.$ac_objext
6954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
49c96104
SE
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
5464f5a1
NN
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
2ba49b59 6969 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
2ba49b59
KC
6975 ac_hi=-1 ac_mid=-1
6976 while :; do
6977 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
2ba49b59 6983$ac_includes_default
5464f5a1
NN
6984int
6985main ()
6986{
2ba49b59
KC
6987static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6988test_array [0] = 0
6989
5464f5a1
NN
6990 ;
6991 return 0;
6992}
6993_ACEOF
2ba49b59
KC
6994rm -f conftest.$ac_objext
6995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
49c96104
SE
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
5464f5a1
NN
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
2ba49b59 7010 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
2ba49b59 7016 ac_lo=$ac_mid; break
5464f5a1
NN
7017else
7018 echo "$as_me: failed program was:" >&5
7019sed 's/^/| /' conftest.$ac_ext >&5
7020
2ba49b59
KC
7021ac_hi=`expr '(' $ac_mid ')' - 1`
7022 if test $ac_mid -le $ac_hi; then
7023 ac_lo= ac_hi=
7024 break
7025 fi
7026 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 7027fi
2ba49b59
KC
7028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 done
7030else
7031 echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034ac_lo= ac_hi=
7035fi
7036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037fi
7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039# Binary search between lo and hi bounds.
7040while test "x$ac_lo" != "x$ac_hi"; do
7041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7042 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
2ba49b59 7048$ac_includes_default
5464f5a1
NN
7049int
7050main ()
7051{
2ba49b59
KC
7052static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7053test_array [0] = 0
7054
5464f5a1
NN
7055 ;
7056 return 0;
7057}
7058_ACEOF
2ba49b59
KC
7059rm -f conftest.$ac_objext
7060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
49c96104
SE
7068 { ac_try='test -z "$ac_c_werror_flag"
7069 || test ! -s conftest.err'
5464f5a1
NN
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
2ba49b59 7075 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
2ba49b59 7081 ac_hi=$ac_mid
5464f5a1
NN
7082else
7083 echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
2ba49b59 7086ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7087fi
2ba49b59
KC
7088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089done
7090case $ac_lo in
7091?*) ac_cv_sizeof_long=$ac_lo;;
7092'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7093See \`config.log' for more details." >&5
7094echo "$as_me: error: cannot compute sizeof (long), 77
7095See \`config.log' for more details." >&2;}
7096 { (exit 1); exit 1; }; } ;;
7097esac
7098else
7099 if test "$cross_compiling" = yes; then
49c96104
SE
7100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7101See \`config.log' for more details." >&5
7102echo "$as_me: error: cannot run test program while cross compiling
7103See \`config.log' for more details." >&2;}
2ba49b59 7104 { (exit 1); exit 1; }; }
2e0fbf77
JW
7105else
7106 cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h. */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h. */
2ba49b59
KC
7112$ac_includes_default
7113long longval () { return (long) (sizeof (long)); }
7114unsigned long ulongval () { return (long) (sizeof (long)); }
7115#include <stdio.h>
7116#include <stdlib.h>
2e0fbf77
JW
7117int
7118main ()
7119{
7120
2ba49b59
KC
7121 FILE *f = fopen ("conftest.val", "w");
7122 if (! f)
7123 exit (1);
7124 if (((long) (sizeof (long))) < 0)
7125 {
7126 long i = longval ();
7127 if (i != ((long) (sizeof (long))))
7128 exit (1);
7129 fprintf (f, "%ld\n", i);
7130 }
7131 else
7132 {
7133 unsigned long i = ulongval ();
7134 if (i != ((long) (sizeof (long))))
7135 exit (1);
7136 fprintf (f, "%lu\n", i);
7137 }
7138 exit (ferror (f) || fclose (f) != 0);
7139
2e0fbf77
JW
7140 ;
7141 return 0;
7142}
7143_ACEOF
2ba49b59
KC
7144rm -f conftest$ac_exeext
7145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>&5
2e0fbf77
JW
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
2ba49b59 7155 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7156else
2ba49b59
KC
7157 echo "$as_me: program exited with status $ac_status" >&5
7158echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7159sed 's/^/| /' conftest.$ac_ext >&5
7160
2ba49b59
KC
7161( exit $ac_status )
7162{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7163See \`config.log' for more details." >&5
7164echo "$as_me: error: cannot compute sizeof (long), 77
7165See \`config.log' for more details." >&2;}
7166 { (exit 1); exit 1; }; }
2e0fbf77 7167fi
2ba49b59 7168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7169fi
2ba49b59
KC
7170fi
7171rm -f conftest.val
7172else
7173 ac_cv_sizeof_long=0
7174fi
7175fi
7176echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7177echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7178cat >>confdefs.h <<_ACEOF
7179#define SIZEOF_LONG $ac_cv_sizeof_long
7180_ACEOF
7181
7182
7183if test "x${ac_cv_sizeof_long}" = "x8"; then
7184 host64=true
7185 BFD_HOST_64BIT_LONG=1
7186 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7187 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7188elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7189 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7190 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7191fi
7192
7193if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7194 BFD_HOST_64_BIT_DEFINED=1
7195 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7196 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7197fi
7198
7199
7200
7201
7202
7203
7204
7205# Put a plausible default for CC_FOR_BUILD in Makefile.
7206if test -z "$CC_FOR_BUILD"; then
7207 if test "x$cross_compiling" = "xno"; then
7208 CC_FOR_BUILD='$(CC)'
7209 else
7210 CC_FOR_BUILD=gcc
7211 fi
7212fi
7213
7214# Also set EXEEXT_FOR_BUILD.
7215if test "x$cross_compiling" = "xno"; then
7216 EXEEXT_FOR_BUILD='$(EXEEXT)'
7217else
7218 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7219echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7220if test "${bfd_cv_build_exeext+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 rm -f conftest*
7224 echo 'int main () { return 0; }' > conftest.c
7225 bfd_cv_build_exeext=
7226 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7227 for file in conftest.*; do
7228 case $file in
7229 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7230 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7231 esac
7232 done
7233 rm -f conftest*
7234 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7235fi
7236echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7237echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7238 EXEEXT_FOR_BUILD=""
7239 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7240fi
7241
7242
7243
7244
7245
7246
7247
7248
7249for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7250do
7251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257fi
7258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260else
7261 # Is the header compilable?
7262echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
7270$ac_includes_default
7271#include <$ac_header>
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
49c96104
SE
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
2ba49b59
KC
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_header_compiler=yes
7296else
7297 echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300ac_header_compiler=no
7301fi
7302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7304echo "${ECHO_T}$ac_header_compiler" >&6
7305
7306# Is the header present?
7307echo "$as_me:$LINENO: checking $ac_header presence" >&5
7308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h. */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h. */
7315#include <$ac_header>
7316_ACEOF
7317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } >/dev/null; then
7325 if test -s conftest.err; then
7326 ac_cpp_err=$ac_c_preproc_warn_flag
7327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7328 else
7329 ac_cpp_err=
7330 fi
7331else
7332 ac_cpp_err=yes
7333fi
7334if test -z "$ac_cpp_err"; then
7335 ac_header_preproc=yes
7336else
7337 echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 ac_header_preproc=no
7341fi
7342rm -f conftest.err conftest.$ac_ext
7343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7344echo "${ECHO_T}$ac_header_preproc" >&6
7345
7346# So? What about this header?
7347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7348 yes:no: )
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7353 ac_header_preproc=yes
7354 ;;
7355 no:yes:* )
7356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368 (
7369 cat <<\_ASBOX
7370## ------------------------------------------ ##
7371## Report this to the AC_PACKAGE_NAME lists. ##
7372## ------------------------------------------ ##
7373_ASBOX
7374 ) |
7375 sed "s/^/$as_me: WARNING: /" >&2
7376 ;;
7377esac
7378echo "$as_me:$LINENO: checking for $ac_header" >&5
7379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 eval "$as_ac_Header=\$ac_header_preproc"
7384fi
7385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387
7388fi
7389if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392_ACEOF
7393
7394fi
7395
7396done
7397
7398
7399
7400
7401for ac_header in fcntl.h sys/file.h sys/time.h
7402do
7403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409fi
7410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412else
7413 # Is the header compilable?
7414echo "$as_me:$LINENO: checking $ac_header usability" >&5
7415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7416cat >conftest.$ac_ext <<_ACEOF
7417/* confdefs.h. */
7418_ACEOF
7419cat confdefs.h >>conftest.$ac_ext
7420cat >>conftest.$ac_ext <<_ACEOF
7421/* end confdefs.h. */
7422$ac_includes_default
7423#include <$ac_header>
7424_ACEOF
7425rm -f conftest.$ac_objext
7426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
49c96104
SE
7434 { ac_try='test -z "$ac_c_werror_flag"
7435 || test ! -s conftest.err'
2ba49b59
KC
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; } &&
7441 { ac_try='test -s conftest.$ac_objext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_header_compiler=yes
7448else
7449 echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452ac_header_compiler=no
7453fi
7454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7456echo "${ECHO_T}$ac_header_compiler" >&6
7457
7458# Is the header present?
7459echo "$as_me:$LINENO: checking $ac_header presence" >&5
7460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7461cat >conftest.$ac_ext <<_ACEOF
7462/* confdefs.h. */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h. */
7467#include <$ac_header>
7468_ACEOF
7469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } >/dev/null; then
7477 if test -s conftest.err; then
7478 ac_cpp_err=$ac_c_preproc_warn_flag
7479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7480 else
7481 ac_cpp_err=
7482 fi
7483else
7484 ac_cpp_err=yes
7485fi
7486if test -z "$ac_cpp_err"; then
7487 ac_header_preproc=yes
7488else
7489 echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 ac_header_preproc=no
7493fi
7494rm -f conftest.err conftest.$ac_ext
7495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496echo "${ECHO_T}$ac_header_preproc" >&6
7497
7498# So? What about this header?
7499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7500 yes:no: )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7505 ac_header_preproc=yes
7506 ;;
7507 no:yes:* )
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7520 (
7521 cat <<\_ASBOX
7522## ------------------------------------------ ##
7523## Report this to the AC_PACKAGE_NAME lists. ##
7524## ------------------------------------------ ##
7525_ASBOX
7526 ) |
7527 sed "s/^/$as_me: WARNING: /" >&2
7528 ;;
7529esac
7530echo "$as_me:$LINENO: checking for $ac_header" >&5
7531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7532if eval "test \"\${$as_ac_Header+set}\" = set"; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 eval "$as_ac_Header=\$ac_header_preproc"
7536fi
7537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7539
7540fi
7541if test `eval echo '${'$as_ac_Header'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544_ACEOF
7545
7546fi
7547
7548done
7549
d5efd9fc
AM
7550
7551
7552inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
7553
7554acx_cv_header_stdint=stddef.h
7555acx_cv_header_stdint_kind="(already complete)"
7556for i in stdint.h $inttype_headers; do
7557 unset ac_cv_type_uintptr_t
7558 unset ac_cv_type_uintmax_t
7559 unset ac_cv_type_int_least32_t
7560 unset ac_cv_type_int_fast32_t
7561 unset ac_cv_type_uint64_t
7562 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
7563 echo "$as_me:$LINENO: checking for uintmax_t" >&5
7564echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
7565if test "${ac_cv_type_uintmax_t+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 <sys/types.h>
7575#include <$i>
7576
7577int
7578main ()
7579{
7580if ((uintmax_t *) 0)
7581 return 0;
7582if (sizeof (uintmax_t))
7583 return 0;
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext
7589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest.$ac_objext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_cv_type_uintmax_t=yes
7611else
7612 echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615ac_cv_type_uintmax_t=no
7616fi
7617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7618fi
7619echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
7620echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
7621if test $ac_cv_type_uintmax_t = yes; then
7622 acx_cv_header_stdint=$i
7623else
7624 continue
7625fi
7626
7627 echo "$as_me:$LINENO: checking for uintptr_t" >&5
7628echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
7629if test "${ac_cv_type_uintptr_t+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632 cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h. */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h. */
7638#include <sys/types.h>
7639#include <$i>
7640
7641int
7642main ()
7643{
7644if ((uintptr_t *) 0)
7645 return 0;
7646if (sizeof (uintptr_t))
7647 return 0;
7648 ;
7649 return 0;
7650}
7651_ACEOF
7652rm -f conftest.$ac_objext
7653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_type_uintptr_t=yes
7675else
7676 echo "$as_me: failed program was:" >&5
7677sed 's/^/| /' conftest.$ac_ext >&5
7678
7679ac_cv_type_uintptr_t=no
7680fi
7681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7682fi
7683echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7684echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
7685if test $ac_cv_type_uintptr_t = yes; then
7686 :
7687else
7688 acx_cv_header_stdint_kind="(mostly complete)"
7689fi
7690
7691 echo "$as_me:$LINENO: checking for int_least32_t" >&5
7692echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
7693if test "${ac_cv_type_int_least32_t+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696 cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h. */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h. */
7702#include <sys/types.h>
7703#include <$i>
7704
7705int
7706main ()
7707{
7708if ((int_least32_t *) 0)
7709 return 0;
7710if (sizeof (int_least32_t))
7711 return 0;
7712 ;
7713 return 0;
7714}
7715_ACEOF
7716rm -f conftest.$ac_objext
7717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_cv_type_int_least32_t=yes
7739else
7740 echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7743ac_cv_type_int_least32_t=no
7744fi
7745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746fi
7747echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
7748echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
7749if test $ac_cv_type_int_least32_t = yes; then
7750 :
7751else
7752 acx_cv_header_stdint_kind="(mostly complete)"
7753fi
7754
7755 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
7756echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
7757if test "${ac_cv_type_int_fast32_t+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 cat >conftest.$ac_ext <<_ACEOF
7761/* confdefs.h. */
7762_ACEOF
7763cat confdefs.h >>conftest.$ac_ext
7764cat >>conftest.$ac_ext <<_ACEOF
7765/* end confdefs.h. */
7766#include <sys/types.h>
7767#include <$i>
7768
7769int
7770main ()
7771{
7772if ((int_fast32_t *) 0)
7773 return 0;
7774if (sizeof (int_fast32_t))
7775 return 0;
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_type_int_fast32_t=yes
7803else
7804 echo "$as_me: failed program was:" >&5
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7807ac_cv_type_int_fast32_t=no
7808fi
7809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810fi
7811echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
7812echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
7813if test $ac_cv_type_int_fast32_t = yes; then
7814 :
7815else
7816 acx_cv_header_stdint_kind="(mostly complete)"
7817fi
7818
7819 echo "$as_me:$LINENO: checking for uint64_t" >&5
7820echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7821if test "${ac_cv_type_uint64_t+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824 cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h. */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h. */
7830#include <sys/types.h>
7831#include <$i>
7832
7833int
7834main ()
7835{
7836if ((uint64_t *) 0)
7837 return 0;
7838if (sizeof (uint64_t))
7839 return 0;
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext
7845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag"
7854 || test ! -s conftest.err'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest.$ac_objext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_type_uint64_t=yes
7867else
7868 echo "$as_me: failed program was:" >&5
7869sed 's/^/| /' conftest.$ac_ext >&5
7870
7871ac_cv_type_uint64_t=no
7872fi
7873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7874fi
7875echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7876echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7877if test $ac_cv_type_uint64_t = yes; then
7878 :
7879else
7880 acx_cv_header_stdint_kind="(lacks uint64_t)"
7881fi
7882
7883 break
7884done
7885if test "$acx_cv_header_stdint" = stddef.h; then
7886 acx_cv_header_stdint_kind="(lacks uintmax_t)"
7887 for i in stdint.h $inttype_headers; do
7888 unset ac_cv_type_uintptr_t
7889 unset ac_cv_type_uint32_t
7890 unset ac_cv_type_uint64_t
7891 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
7892 echo "$as_me:$LINENO: checking for uint32_t" >&5
7893echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7894if test "${ac_cv_type_uint32_t+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7903#include <sys/types.h>
7904#include <$i>
7905
7906int
7907main ()
7908{
7909if ((uint32_t *) 0)
7910 return 0;
7911if (sizeof (uint32_t))
7912 return 0;
7913 ;
7914 return 0;
7915}
7916_ACEOF
7917rm -f conftest.$ac_objext
7918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_type_uint32_t=yes
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944ac_cv_type_uint32_t=no
7945fi
7946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7947fi
7948echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7949echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7950if test $ac_cv_type_uint32_t = yes; then
7951 acx_cv_header_stdint=$i
7952else
7953 continue
7954fi
7955
7956 echo "$as_me:$LINENO: checking for uint64_t" >&5
7957echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7958if test "${ac_cv_type_uint64_t+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960else
7961 cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967#include <sys/types.h>
7968#include <$i>
7969
7970int
7971main ()
7972{
7973if ((uint64_t *) 0)
7974 return 0;
7975if (sizeof (uint64_t))
7976 return 0;
7977 ;
7978 return 0;
7979}
7980_ACEOF
7981rm -f conftest.$ac_objext
7982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_cv_type_uint64_t=yes
8004else
8005 echo "$as_me: failed program was:" >&5
8006sed 's/^/| /' conftest.$ac_ext >&5
8007
8008ac_cv_type_uint64_t=no
8009fi
8010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011fi
8012echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8013echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8014
8015 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8016echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8017if test "${ac_cv_type_uintptr_t+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020 cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
8026#include <sys/types.h>
8027#include <$i>
8028
8029int
8030main ()
8031{
8032if ((uintptr_t *) 0)
8033 return 0;
8034if (sizeof (uintptr_t))
8035 return 0;
8036 ;
8037 return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext
8041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_uintptr_t=yes
8063else
8064 echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067ac_cv_type_uintptr_t=no
8068fi
8069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070fi
8071echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8072echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8073
8074 break
8075 done
8076fi
8077if test "$acx_cv_header_stdint" = stddef.h; then
8078 acx_cv_header_stdint_kind="(u_intXX_t style)"
8079 for i in sys/types.h $inttype_headers; do
8080 unset ac_cv_type_u_int32_t
8081 unset ac_cv_type_u_int64_t
8082 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
8083 echo "$as_me:$LINENO: checking for u_int32_t" >&5
8084echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
8085if test "${ac_cv_type_u_int32_t+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
8094#include <sys/types.h>
8095#include <$i>
8096
8097int
8098main ()
8099{
8100if ((u_int32_t *) 0)
8101 return 0;
8102if (sizeof (u_int32_t))
8103 return 0;
8104 ;
8105 return 0;
8106}
8107_ACEOF
8108rm -f conftest.$ac_objext
8109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8110 (eval $ac_compile) 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag"
8118 || test ! -s conftest.err'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_cv_type_u_int32_t=yes
8131else
8132 echo "$as_me: failed program was:" >&5
8133sed 's/^/| /' conftest.$ac_ext >&5
8134
8135ac_cv_type_u_int32_t=no
8136fi
8137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8138fi
8139echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8140echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
8141if test $ac_cv_type_u_int32_t = yes; then
8142 acx_cv_header_stdint=$i
8143else
8144 continue
8145fi
8146
8147 echo "$as_me:$LINENO: checking for u_int64_t" >&5
8148echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
8149if test "${ac_cv_type_u_int64_t+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158#include <sys/types.h>
8159#include <$i>
8160
8161int
8162main ()
8163{
8164if ((u_int64_t *) 0)
8165 return 0;
8166if (sizeof (u_int64_t))
8167 return 0;
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext
8173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag"
8182 || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_cv_type_u_int64_t=yes
8195else
8196 echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199ac_cv_type_u_int64_t=no
8200fi
8201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi
8203echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
8204echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
8205
8206 break
8207 done
8208fi
8209if test "$acx_cv_header_stdint" = stddef.h; then
8210 acx_cv_header_stdint_kind="(using manual detection)"
8211fi
8212
8213test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
8214test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
8215test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
8216test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
8217test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
8218
8219# ----------------- Summarize what we found so far
8220
8221echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
8222echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
8223
8224case `$as_basename bfd_stdint.h ||
8225$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
8226 Xbfd_stdint.h : 'X\(//\)$' \| \
8227 Xbfd_stdint.h : 'X\(/\)$' \| \
8228 . : '\(.\)' 2>/dev/null ||
8229echo X/bfd_stdint.h |
8230 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8231 /^X\/\(\/\/\)$/{ s//\1/; q; }
8232 /^X\/\(\/\).*/{ s//\1/; q; }
8233 s/.*/./; q'` in
8234 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
8235echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
8236 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
8237echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
8238 *) ;;
8239esac
8240
8241echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
8242echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
8243
8244# ----------------- done included file, check C basic types --------
8245
8246# Lacking an uintptr_t? Test size of void *
8247case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
8248 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
8249echo $ECHO_N "checking for void *... $ECHO_C" >&6
8250if test "${ac_cv_type_void_p+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253 cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259$ac_includes_default
8260int
8261main ()
8262{
8263if ((void * *) 0)
8264 return 0;
8265if (sizeof (void *))
8266 return 0;
8267 ;
8268 return 0;
8269}
8270_ACEOF
8271rm -f conftest.$ac_objext
8272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag"
8281 || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest.$ac_objext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_type_void_p=yes
8294else
8295 echo "$as_me: failed program was:" >&5
8296sed 's/^/| /' conftest.$ac_ext >&5
8297
8298ac_cv_type_void_p=no
8299fi
8300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301fi
8302echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8303echo "${ECHO_T}$ac_cv_type_void_p" >&6
8304
8305echo "$as_me:$LINENO: checking size of void *" >&5
8306echo $ECHO_N "checking size of void *... $ECHO_C" >&6
8307if test "${ac_cv_sizeof_void_p+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310 if test "$ac_cv_type_void_p" = yes; then
8311 # The cast to unsigned long works around a bug in the HP C Compiler
8312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8314 # This bug is HP SR number 8606223364.
8315 if test "$cross_compiling" = yes; then
8316 # Depending upon the size, compute the lo and hi bounds.
8317cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323$ac_includes_default
8324int
8325main ()
8326{
8327static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
8328test_array [0] = 0
8329
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_lo=0 ac_mid=0
8357 while :; do
8358 cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364$ac_includes_default
8365int
8366main ()
8367{
8368static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8369test_array [0] = 0
8370
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest.$ac_objext
8376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_hi=$ac_mid; break
8398else
8399 echo "$as_me: failed program was:" >&5
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402ac_lo=`expr $ac_mid + 1`
8403 if test $ac_lo -le $ac_mid; then
8404 ac_lo= ac_hi=
8405 break
8406 fi
8407 ac_mid=`expr 2 '*' $ac_mid + 1`
8408fi
8409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 done
8411else
8412 echo "$as_me: failed program was:" >&5
8413sed 's/^/| /' conftest.$ac_ext >&5
8414
8415cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */
8421$ac_includes_default
8422int
8423main ()
8424{
8425static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
8426test_array [0] = 0
8427
8428 ;
8429 return 0;
8430}
8431_ACEOF
8432rm -f conftest.$ac_objext
8433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag"
8442 || test ! -s conftest.err'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_hi=-1 ac_mid=-1
8455 while :; do
8456 cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h. */
8462$ac_includes_default
8463int
8464main ()
8465{
8466static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
8467test_array [0] = 0
8468
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext
8474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest.$ac_objext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_lo=$ac_mid; break
8496else
8497 echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500ac_hi=`expr '(' $ac_mid ')' - 1`
8501 if test $ac_mid -le $ac_hi; then
8502 ac_lo= ac_hi=
8503 break
8504 fi
8505 ac_mid=`expr 2 '*' $ac_mid`
8506fi
8507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 done
8509else
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513ac_lo= ac_hi=
8514fi
8515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi
8517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8518# Binary search between lo and hi bounds.
8519while test "x$ac_lo" != "x$ac_hi"; do
8520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8521 cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h. */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h. */
8527$ac_includes_default
8528int
8529main ()
8530{
8531static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8532test_array [0] = 0
8533
8534 ;
8535 return 0;
8536}
8537_ACEOF
8538rm -f conftest.$ac_objext
8539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_hi=$ac_mid
8561else
8562 echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565ac_lo=`expr '(' $ac_mid ')' + 1`
8566fi
8567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8568done
8569case $ac_lo in
8570?*) ac_cv_sizeof_void_p=$ac_lo;;
8571'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8572See \`config.log' for more details." >&5
8573echo "$as_me: error: cannot compute sizeof (void *), 77
8574See \`config.log' for more details." >&2;}
8575 { (exit 1); exit 1; }; } ;;
8576esac
8577else
8578 if test "$cross_compiling" = yes; then
8579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8580See \`config.log' for more details." >&5
8581echo "$as_me: error: cannot run test program while cross compiling
8582See \`config.log' for more details." >&2;}
8583 { (exit 1); exit 1; }; }
8584else
8585 cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591$ac_includes_default
8592long longval () { return (long) (sizeof (void *)); }
8593unsigned long ulongval () { return (long) (sizeof (void *)); }
8594#include <stdio.h>
8595#include <stdlib.h>
8596int
8597main ()
8598{
8599
8600 FILE *f = fopen ("conftest.val", "w");
8601 if (! f)
8602 exit (1);
8603 if (((long) (sizeof (void *))) < 0)
8604 {
8605 long i = longval ();
8606 if (i != ((long) (sizeof (void *))))
8607 exit (1);
8608 fprintf (f, "%ld\n", i);
8609 }
8610 else
8611 {
8612 unsigned long i = ulongval ();
8613 if (i != ((long) (sizeof (void *))))
8614 exit (1);
8615 fprintf (f, "%lu\n", i);
8616 }
8617 exit (ferror (f) || fclose (f) != 0);
8618
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623rm -f conftest$ac_exeext
8624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_sizeof_void_p=`cat conftest.val`
8635else
8636 echo "$as_me: program exited with status $ac_status" >&5
8637echo "$as_me: failed program was:" >&5
8638sed 's/^/| /' conftest.$ac_ext >&5
8639
8640( exit $ac_status )
8641{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8642See \`config.log' for more details." >&5
8643echo "$as_me: error: cannot compute sizeof (void *), 77
8644See \`config.log' for more details." >&2;}
8645 { (exit 1); exit 1; }; }
8646fi
8647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8648fi
8649fi
8650rm -f conftest.val
8651else
8652 ac_cv_sizeof_void_p=0
8653fi
8654fi
8655echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8656echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
8657cat >>confdefs.h <<_ACEOF
8658#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8659_ACEOF
8660
8661 ;;
8662esac
8663
8664# Lacking an uint64_t? Test size of long
8665case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
8666 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
8667echo $ECHO_N "checking for long... $ECHO_C" >&6
8668if test "${ac_cv_type_long+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670else
8671 cat >conftest.$ac_ext <<_ACEOF
8672/* confdefs.h. */
8673_ACEOF
8674cat confdefs.h >>conftest.$ac_ext
8675cat >>conftest.$ac_ext <<_ACEOF
8676/* end confdefs.h. */
8677$ac_includes_default
8678int
8679main ()
8680{
8681if ((long *) 0)
8682 return 0;
8683if (sizeof (long))
8684 return 0;
8685 ;
8686 return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_type_long=yes
8712else
8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716ac_cv_type_long=no
8717fi
8718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719fi
8720echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8721echo "${ECHO_T}$ac_cv_type_long" >&6
8722
8723echo "$as_me:$LINENO: checking size of long" >&5
8724echo $ECHO_N "checking size of long... $ECHO_C" >&6
8725if test "${ac_cv_sizeof_long+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728 if test "$ac_cv_type_long" = yes; then
8729 # The cast to unsigned long works around a bug in the HP C Compiler
8730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8732 # This bug is HP SR number 8606223364.
8733 if test "$cross_compiling" = yes; then
8734 # Depending upon the size, compute the lo and hi bounds.
8735cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h. */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h. */
8741$ac_includes_default
8742int
8743main ()
8744{
8745static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8746test_array [0] = 0
8747
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752rm -f conftest.$ac_objext
8753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_lo=0 ac_mid=0
8775 while :; do
8776 cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782$ac_includes_default
8783int
8784main ()
8785{
8786static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8787test_array [0] = 0
8788
8789 ;
8790 return 0;
8791}
8792_ACEOF
8793rm -f conftest.$ac_objext
8794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_hi=$ac_mid; break
8816else
8817 echo "$as_me: failed program was:" >&5
8818sed 's/^/| /' conftest.$ac_ext >&5
8819
8820ac_lo=`expr $ac_mid + 1`
8821 if test $ac_lo -le $ac_mid; then
8822 ac_lo= ac_hi=
8823 break
8824 fi
8825 ac_mid=`expr 2 '*' $ac_mid + 1`
8826fi
8827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 done
8829else
8830 echo "$as_me: failed program was:" >&5
8831sed 's/^/| /' conftest.$ac_ext >&5
8832
8833cat >conftest.$ac_ext <<_ACEOF
8834/* confdefs.h. */
8835_ACEOF
8836cat confdefs.h >>conftest.$ac_ext
8837cat >>conftest.$ac_ext <<_ACEOF
8838/* end confdefs.h. */
8839$ac_includes_default
8840int
8841main ()
8842{
8843static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8844test_array [0] = 0
8845
8846 ;
8847 return 0;
8848}
8849_ACEOF
8850rm -f conftest.$ac_objext
8851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8872 ac_hi=-1 ac_mid=-1
8873 while :; do
8874 cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
8880$ac_includes_default
8881int
8882main ()
8883{
8884static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8885test_array [0] = 0
8886
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891rm -f conftest.$ac_objext
8892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_lo=$ac_mid; break
8914else
8915 echo "$as_me: failed program was:" >&5
8916sed 's/^/| /' conftest.$ac_ext >&5
8917
8918ac_hi=`expr '(' $ac_mid ')' - 1`
8919 if test $ac_mid -le $ac_hi; then
8920 ac_lo= ac_hi=
8921 break
8922 fi
8923 ac_mid=`expr 2 '*' $ac_mid`
8924fi
8925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926 done
8927else
8928 echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931ac_lo= ac_hi=
8932fi
8933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8934fi
8935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936# Binary search between lo and hi bounds.
8937while test "x$ac_lo" != "x$ac_hi"; do
8938 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8939 cat >conftest.$ac_ext <<_ACEOF
8940/* confdefs.h. */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h. */
8945$ac_includes_default
8946int
8947main ()
8948{
8949static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8950test_array [0] = 0
8951
8952 ;
8953 return 0;
8954}
8955_ACEOF
8956rm -f conftest.$ac_objext
8957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958 (eval $ac_compile) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag"
8966 || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest.$ac_objext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_hi=$ac_mid
8979else
8980 echo "$as_me: failed program was:" >&5
8981sed 's/^/| /' conftest.$ac_ext >&5
8982
8983ac_lo=`expr '(' $ac_mid ')' + 1`
8984fi
8985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8986done
8987case $ac_lo in
8988?*) ac_cv_sizeof_long=$ac_lo;;
8989'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8990See \`config.log' for more details." >&5
8991echo "$as_me: error: cannot compute sizeof (long), 77
8992See \`config.log' for more details." >&2;}
8993 { (exit 1); exit 1; }; } ;;
8994esac
8995else
8996 if test "$cross_compiling" = yes; then
8997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8998See \`config.log' for more details." >&5
8999echo "$as_me: error: cannot run test program while cross compiling
9000See \`config.log' for more details." >&2;}
9001 { (exit 1); exit 1; }; }
9002else
9003 cat >conftest.$ac_ext <<_ACEOF
9004/* confdefs.h. */
9005_ACEOF
9006cat confdefs.h >>conftest.$ac_ext
9007cat >>conftest.$ac_ext <<_ACEOF
9008/* end confdefs.h. */
9009$ac_includes_default
9010long longval () { return (long) (sizeof (long)); }
9011unsigned long ulongval () { return (long) (sizeof (long)); }
9012#include <stdio.h>
9013#include <stdlib.h>
9014int
9015main ()
9016{
9017
9018 FILE *f = fopen ("conftest.val", "w");
9019 if (! f)
9020 exit (1);
9021 if (((long) (sizeof (long))) < 0)
9022 {
9023 long i = longval ();
9024 if (i != ((long) (sizeof (long))))
9025 exit (1);
9026 fprintf (f, "%ld\n", i);
9027 }
9028 else
9029 {
9030 unsigned long i = ulongval ();
9031 if (i != ((long) (sizeof (long))))
9032 exit (1);
9033 fprintf (f, "%lu\n", i);
9034 }
9035 exit (ferror (f) || fclose (f) != 0);
9036
9037 ;
9038 return 0;
9039}
9040_ACEOF
9041rm -f conftest$ac_exeext
9042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_sizeof_long=`cat conftest.val`
9053else
9054 echo "$as_me: program exited with status $ac_status" >&5
9055echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058( exit $ac_status )
9059{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9060See \`config.log' for more details." >&5
9061echo "$as_me: error: cannot compute sizeof (long), 77
9062See \`config.log' for more details." >&2;}
9063 { (exit 1); exit 1; }; }
9064fi
9065rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9066fi
9067fi
9068rm -f conftest.val
9069else
9070 ac_cv_sizeof_long=0
9071fi
9072fi
9073echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9074echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9075cat >>confdefs.h <<_ACEOF
9076#define SIZEOF_LONG $ac_cv_sizeof_long
9077_ACEOF
9078
9079 ;;
9080esac
9081
9082if test $acx_cv_header_stdint = stddef.h; then
9083 # Lacking a good header? Test size of everything and deduce all types.
9084 echo "$as_me:$LINENO: checking for int" >&5
9085echo $ECHO_N "checking for int... $ECHO_C" >&6
9086if test "${ac_cv_type_int+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088else
9089 cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095$ac_includes_default
9096int
9097main ()
9098{
9099if ((int *) 0)
9100 return 0;
9101if (sizeof (int))
9102 return 0;
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext
9108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_type_int=yes
9130else
9131 echo "$as_me: failed program was:" >&5
9132sed 's/^/| /' conftest.$ac_ext >&5
9133
9134ac_cv_type_int=no
9135fi
9136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9139echo "${ECHO_T}$ac_cv_type_int" >&6
9140
9141echo "$as_me:$LINENO: checking size of int" >&5
9142echo $ECHO_N "checking size of int... $ECHO_C" >&6
9143if test "${ac_cv_sizeof_int+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145else
9146 if test "$ac_cv_type_int" = yes; then
9147 # The cast to unsigned long works around a bug in the HP C Compiler
9148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9150 # This bug is HP SR number 8606223364.
9151 if test "$cross_compiling" = yes; then
9152 # Depending upon the size, compute the lo and hi bounds.
9153cat >conftest.$ac_ext <<_ACEOF
9154/* confdefs.h. */
9155_ACEOF
9156cat confdefs.h >>conftest.$ac_ext
9157cat >>conftest.$ac_ext <<_ACEOF
9158/* end confdefs.h. */
9159$ac_includes_default
9160int
9161main ()
9162{
9163static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9164test_array [0] = 0
9165
9166 ;
9167 return 0;
9168}
9169_ACEOF
9170rm -f conftest.$ac_objext
9171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_lo=0 ac_mid=0
9193 while :; do
9194 cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200$ac_includes_default
9201int
9202main ()
9203{
9204static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9205test_array [0] = 0
9206
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211rm -f conftest.$ac_objext
9212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_hi=$ac_mid; break
9234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
9238ac_lo=`expr $ac_mid + 1`
9239 if test $ac_lo -le $ac_mid; then
9240 ac_lo= ac_hi=
9241 break
9242 fi
9243 ac_mid=`expr 2 '*' $ac_mid + 1`
9244fi
9245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 done
9247else
9248 echo "$as_me: failed program was:" >&5
9249sed 's/^/| /' conftest.$ac_ext >&5
9250
9251cat >conftest.$ac_ext <<_ACEOF
9252/* confdefs.h. */
9253_ACEOF
9254cat confdefs.h >>conftest.$ac_ext
9255cat >>conftest.$ac_ext <<_ACEOF
9256/* end confdefs.h. */
9257$ac_includes_default
9258int
9259main ()
9260{
9261static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9262test_array [0] = 0
9263
9264 ;
9265 return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext
9269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_hi=-1 ac_mid=-1
9291 while :; do
9292 cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h. */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h. */
9298$ac_includes_default
9299int
9300main ()
9301{
9302static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9303test_array [0] = 0
9304
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext
9310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_lo=$ac_mid; break
9332else
9333 echo "$as_me: failed program was:" >&5
9334sed 's/^/| /' conftest.$ac_ext >&5
9335
9336ac_hi=`expr '(' $ac_mid ')' - 1`
9337 if test $ac_mid -le $ac_hi; then
9338 ac_lo= ac_hi=
9339 break
9340 fi
9341 ac_mid=`expr 2 '*' $ac_mid`
9342fi
9343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9344 done
9345else
9346 echo "$as_me: failed program was:" >&5
9347sed 's/^/| /' conftest.$ac_ext >&5
9348
9349ac_lo= ac_hi=
9350fi
9351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352fi
9353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9354# Binary search between lo and hi bounds.
9355while test "x$ac_lo" != "x$ac_hi"; do
9356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9357 cat >conftest.$ac_ext <<_ACEOF
9358/* confdefs.h. */
9359_ACEOF
9360cat confdefs.h >>conftest.$ac_ext
9361cat >>conftest.$ac_ext <<_ACEOF
9362/* end confdefs.h. */
9363$ac_includes_default
9364int
9365main ()
9366{
9367static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9368test_array [0] = 0
9369
9370 ;
9371 return 0;
9372}
9373_ACEOF
9374rm -f conftest.$ac_objext
9375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_hi=$ac_mid
9397else
9398 echo "$as_me: failed program was:" >&5
9399sed 's/^/| /' conftest.$ac_ext >&5
9400
9401ac_lo=`expr '(' $ac_mid ')' + 1`
9402fi
9403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9404done
9405case $ac_lo in
9406?*) ac_cv_sizeof_int=$ac_lo;;
9407'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9408See \`config.log' for more details." >&5
9409echo "$as_me: error: cannot compute sizeof (int), 77
9410See \`config.log' for more details." >&2;}
9411 { (exit 1); exit 1; }; } ;;
9412esac
9413else
9414 if test "$cross_compiling" = yes; then
9415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9416See \`config.log' for more details." >&5
9417echo "$as_me: error: cannot run test program while cross compiling
9418See \`config.log' for more details." >&2;}
9419 { (exit 1); exit 1; }; }
9420else
9421 cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h. */
9427$ac_includes_default
9428long longval () { return (long) (sizeof (int)); }
9429unsigned long ulongval () { return (long) (sizeof (int)); }
9430#include <stdio.h>
9431#include <stdlib.h>
9432int
9433main ()
9434{
9435
9436 FILE *f = fopen ("conftest.val", "w");
9437 if (! f)
9438 exit (1);
9439 if (((long) (sizeof (int))) < 0)
9440 {
9441 long i = longval ();
9442 if (i != ((long) (sizeof (int))))
9443 exit (1);
9444 fprintf (f, "%ld\n", i);
9445 }
9446 else
9447 {
9448 unsigned long i = ulongval ();
9449 if (i != ((long) (sizeof (int))))
9450 exit (1);
9451 fprintf (f, "%lu\n", i);
9452 }
9453 exit (ferror (f) || fclose (f) != 0);
9454
9455 ;
9456 return 0;
9457}
9458_ACEOF
9459rm -f conftest$ac_exeext
9460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 ac_cv_sizeof_int=`cat conftest.val`
9471else
9472 echo "$as_me: program exited with status $ac_status" >&5
9473echo "$as_me: failed program was:" >&5
9474sed 's/^/| /' conftest.$ac_ext >&5
9475
9476( exit $ac_status )
9477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9478See \`config.log' for more details." >&5
9479echo "$as_me: error: cannot compute sizeof (int), 77
9480See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; }
9482fi
9483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9484fi
9485fi
9486rm -f conftest.val
9487else
9488 ac_cv_sizeof_int=0
9489fi
9490fi
9491echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9492echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9493cat >>confdefs.h <<_ACEOF
9494#define SIZEOF_INT $ac_cv_sizeof_int
9495_ACEOF
9496
9497
9498 echo "$as_me:$LINENO: checking for short" >&5
9499echo $ECHO_N "checking for short... $ECHO_C" >&6
9500if test "${ac_cv_type_short+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503 cat >conftest.$ac_ext <<_ACEOF
9504/* confdefs.h. */
9505_ACEOF
9506cat confdefs.h >>conftest.$ac_ext
9507cat >>conftest.$ac_ext <<_ACEOF
9508/* end confdefs.h. */
9509$ac_includes_default
9510int
9511main ()
9512{
9513if ((short *) 0)
9514 return 0;
9515if (sizeof (short))
9516 return 0;
9517 ;
9518 return 0;
9519}
9520_ACEOF
9521rm -f conftest.$ac_objext
9522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -z "$ac_c_werror_flag"
9531 || test ! -s conftest.err'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_type_short=yes
9544else
9545 echo "$as_me: failed program was:" >&5
9546sed 's/^/| /' conftest.$ac_ext >&5
9547
9548ac_cv_type_short=no
9549fi
9550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9551fi
9552echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
9553echo "${ECHO_T}$ac_cv_type_short" >&6
9554
9555echo "$as_me:$LINENO: checking size of short" >&5
9556echo $ECHO_N "checking size of short... $ECHO_C" >&6
9557if test "${ac_cv_sizeof_short+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559else
9560 if test "$ac_cv_type_short" = yes; then
9561 # The cast to unsigned long works around a bug in the HP C Compiler
9562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9564 # This bug is HP SR number 8606223364.
9565 if test "$cross_compiling" = yes; then
9566 # Depending upon the size, compute the lo and hi bounds.
9567cat >conftest.$ac_ext <<_ACEOF
9568/* confdefs.h. */
9569_ACEOF
9570cat confdefs.h >>conftest.$ac_ext
9571cat >>conftest.$ac_ext <<_ACEOF
9572/* end confdefs.h. */
9573$ac_includes_default
9574int
9575main ()
9576{
9577static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
9578test_array [0] = 0
9579
9580 ;
9581 return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext
9585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_lo=0 ac_mid=0
9607 while :; do
9608 cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614$ac_includes_default
9615int
9616main ()
9617{
9618static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9619test_array [0] = 0
9620
9621 ;
9622 return 0;
9623}
9624_ACEOF
9625rm -f conftest.$ac_objext
9626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest.$ac_objext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_hi=$ac_mid; break
9648else
9649 echo "$as_me: failed program was:" >&5
9650sed 's/^/| /' conftest.$ac_ext >&5
9651
9652ac_lo=`expr $ac_mid + 1`
9653 if test $ac_lo -le $ac_mid; then
9654 ac_lo= ac_hi=
9655 break
9656 fi
9657 ac_mid=`expr 2 '*' $ac_mid + 1`
9658fi
9659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9660 done
9661else
9662 echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671$ac_includes_default
9672int
9673main ()
9674{
9675static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
9676test_array [0] = 0
9677
9678 ;
9679 return 0;
9680}
9681_ACEOF
9682rm -f conftest.$ac_objext
9683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag"
9692 || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_hi=-1 ac_mid=-1
9705 while :; do
9706 cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712$ac_includes_default
9713int
9714main ()
9715{
9716static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
9717test_array [0] = 0
9718
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723rm -f conftest.$ac_objext
9724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_lo=$ac_mid; break
9746else
9747 echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750ac_hi=`expr '(' $ac_mid ')' - 1`
9751 if test $ac_mid -le $ac_hi; then
9752 ac_lo= ac_hi=
9753 break
9754 fi
9755 ac_mid=`expr 2 '*' $ac_mid`
9756fi
9757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9758 done
9759else
9760 echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763ac_lo= ac_hi=
9764fi
9765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766fi
9767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9768# Binary search between lo and hi bounds.
9769while test "x$ac_lo" != "x$ac_hi"; do
9770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9771 cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h. */
9777$ac_includes_default
9778int
9779main ()
9780{
9781static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9782test_array [0] = 0
9783
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788rm -f conftest.$ac_objext
9789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9790 (eval $ac_compile) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag"
9798 || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_hi=$ac_mid
9811else
9812 echo "$as_me: failed program was:" >&5
9813sed 's/^/| /' conftest.$ac_ext >&5
9814
9815ac_lo=`expr '(' $ac_mid ')' + 1`
9816fi
9817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818done
9819case $ac_lo in
9820?*) ac_cv_sizeof_short=$ac_lo;;
9821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9822See \`config.log' for more details." >&5
9823echo "$as_me: error: cannot compute sizeof (short), 77
9824See \`config.log' for more details." >&2;}
9825 { (exit 1); exit 1; }; } ;;
9826esac
9827else
9828 if test "$cross_compiling" = yes; then
9829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9830See \`config.log' for more details." >&5
9831echo "$as_me: error: cannot run test program while cross compiling
9832See \`config.log' for more details." >&2;}
9833 { (exit 1); exit 1; }; }
9834else
9835 cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
9841$ac_includes_default
9842long longval () { return (long) (sizeof (short)); }
9843unsigned long ulongval () { return (long) (sizeof (short)); }
9844#include <stdio.h>
9845#include <stdlib.h>
9846int
9847main ()
9848{
9849
9850 FILE *f = fopen ("conftest.val", "w");
9851 if (! f)
9852 exit (1);
9853 if (((long) (sizeof (short))) < 0)
9854 {
9855 long i = longval ();
9856 if (i != ((long) (sizeof (short))))
9857 exit (1);
9858 fprintf (f, "%ld\n", i);
9859 }
9860 else
9861 {
9862 unsigned long i = ulongval ();
9863 if (i != ((long) (sizeof (short))))
9864 exit (1);
9865 fprintf (f, "%lu\n", i);
9866 }
9867 exit (ferror (f) || fclose (f) != 0);
9868
9869 ;
9870 return 0;
9871}
9872_ACEOF
9873rm -f conftest$ac_exeext
9874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_sizeof_short=`cat conftest.val`
9885else
9886 echo "$as_me: program exited with status $ac_status" >&5
9887echo "$as_me: failed program was:" >&5
9888sed 's/^/| /' conftest.$ac_ext >&5
9889
9890( exit $ac_status )
9891{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9892See \`config.log' for more details." >&5
9893echo "$as_me: error: cannot compute sizeof (short), 77
9894See \`config.log' for more details." >&2;}
9895 { (exit 1); exit 1; }; }
9896fi
9897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9898fi
9899fi
9900rm -f conftest.val
9901else
9902 ac_cv_sizeof_short=0
9903fi
9904fi
9905echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9906echo "${ECHO_T}$ac_cv_sizeof_short" >&6
9907cat >>confdefs.h <<_ACEOF
9908#define SIZEOF_SHORT $ac_cv_sizeof_short
9909_ACEOF
9910
9911
9912 echo "$as_me:$LINENO: checking for char" >&5
9913echo $ECHO_N "checking for char... $ECHO_C" >&6
9914if test "${ac_cv_type_char+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917 cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
9923$ac_includes_default
9924int
9925main ()
9926{
9927if ((char *) 0)
9928 return 0;
9929if (sizeof (char))
9930 return 0;
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag"
9945 || test ! -s conftest.err'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest.$ac_objext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 (eval $ac_try) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_type_char=yes
9958else
9959 echo "$as_me: failed program was:" >&5
9960sed 's/^/| /' conftest.$ac_ext >&5
9961
9962ac_cv_type_char=no
9963fi
9964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9965fi
9966echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9967echo "${ECHO_T}$ac_cv_type_char" >&6
9968
9969echo "$as_me:$LINENO: checking size of char" >&5
9970echo $ECHO_N "checking size of char... $ECHO_C" >&6
9971if test "${ac_cv_sizeof_char+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 if test "$ac_cv_type_char" = yes; then
9975 # The cast to unsigned long works around a bug in the HP C Compiler
9976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9978 # This bug is HP SR number 8606223364.
9979 if test "$cross_compiling" = yes; then
9980 # Depending upon the size, compute the lo and hi bounds.
9981cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h. */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */
9987$ac_includes_default
9988int
9989main ()
9990{
9991static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
9992test_array [0] = 0
9993
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext
9999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_lo=0 ac_mid=0
10021 while :; do
10022 cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028$ac_includes_default
10029int
10030main ()
10031{
10032static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10033test_array [0] = 0
10034
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_hi=$ac_mid; break
10062else
10063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
10066ac_lo=`expr $ac_mid + 1`
10067 if test $ac_lo -le $ac_mid; then
10068 ac_lo= ac_hi=
10069 break
10070 fi
10071 ac_mid=`expr 2 '*' $ac_mid + 1`
10072fi
10073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10074 done
10075else
10076 echo "$as_me: failed program was:" >&5
10077sed 's/^/| /' conftest.$ac_ext >&5
10078
10079cat >conftest.$ac_ext <<_ACEOF
10080/* confdefs.h. */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h. */
10085$ac_includes_default
10086int
10087main ()
10088{
10089static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10090test_array [0] = 0
10091
10092 ;
10093 return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext
10097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 (eval $ac_compile) 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_c_werror_flag"
10106 || test ! -s conftest.err'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest.$ac_objext'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_hi=-1 ac_mid=-1
10119 while :; do
10120 cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
10126$ac_includes_default
10127int
10128main ()
10129{
10130static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
10131test_array [0] = 0
10132
10133 ;
10134 return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext
10138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest.$ac_objext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_lo=$ac_mid; break
10160else
10161 echo "$as_me: failed program was:" >&5
10162sed 's/^/| /' conftest.$ac_ext >&5
10163
10164ac_hi=`expr '(' $ac_mid ')' - 1`
10165 if test $ac_mid -le $ac_hi; then
10166 ac_lo= ac_hi=
10167 break
10168 fi
10169 ac_mid=`expr 2 '*' $ac_mid`
10170fi
10171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 done
10173else
10174 echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177ac_lo= ac_hi=
10178fi
10179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180fi
10181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182# Binary search between lo and hi bounds.
10183while test "x$ac_lo" != "x$ac_hi"; do
10184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10185 cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h. */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h. */
10191$ac_includes_default
10192int
10193main ()
10194{
10195static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10196test_array [0] = 0
10197
10198 ;
10199 return 0;
10200}
10201_ACEOF
10202rm -f conftest.$ac_objext
10203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_hi=$ac_mid
10225else
10226 echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229ac_lo=`expr '(' $ac_mid ')' + 1`
10230fi
10231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10232done
10233case $ac_lo in
10234?*) ac_cv_sizeof_char=$ac_lo;;
10235'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10236See \`config.log' for more details." >&5
10237echo "$as_me: error: cannot compute sizeof (char), 77
10238See \`config.log' for more details." >&2;}
10239 { (exit 1); exit 1; }; } ;;
10240esac
10241else
10242 if test "$cross_compiling" = yes; then
10243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10244See \`config.log' for more details." >&5
10245echo "$as_me: error: cannot run test program while cross compiling
10246See \`config.log' for more details." >&2;}
10247 { (exit 1); exit 1; }; }
10248else
10249 cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h. */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h. */
10255$ac_includes_default
10256long longval () { return (long) (sizeof (char)); }
10257unsigned long ulongval () { return (long) (sizeof (char)); }
10258#include <stdio.h>
10259#include <stdlib.h>
10260int
10261main ()
10262{
10263
10264 FILE *f = fopen ("conftest.val", "w");
10265 if (! f)
10266 exit (1);
10267 if (((long) (sizeof (char))) < 0)
10268 {
10269 long i = longval ();
10270 if (i != ((long) (sizeof (char))))
10271 exit (1);
10272 fprintf (f, "%ld\n", i);
10273 }
10274 else
10275 {
10276 unsigned long i = ulongval ();
10277 if (i != ((long) (sizeof (char))))
10278 exit (1);
10279 fprintf (f, "%lu\n", i);
10280 }
10281 exit (ferror (f) || fclose (f) != 0);
10282
10283 ;
10284 return 0;
10285}
10286_ACEOF
10287rm -f conftest$ac_exeext
10288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_sizeof_char=`cat conftest.val`
10299else
10300 echo "$as_me: program exited with status $ac_status" >&5
10301echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304( exit $ac_status )
10305{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10306See \`config.log' for more details." >&5
10307echo "$as_me: error: cannot compute sizeof (char), 77
10308See \`config.log' for more details." >&2;}
10309 { (exit 1); exit 1; }; }
10310fi
10311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10312fi
10313fi
10314rm -f conftest.val
10315else
10316 ac_cv_sizeof_char=0
10317fi
10318fi
10319echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10320echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10321cat >>confdefs.h <<_ACEOF
10322#define SIZEOF_CHAR $ac_cv_sizeof_char
10323_ACEOF
10324
10325
10326
10327 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
10328echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
10329 case "$ac_cv_sizeof_char" in
10330 1) acx_cv_type_int8_t=char ;;
10331 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
10332echo "$as_me: error: no 8-bit type" >&2;}
10333 { (exit please report a bug); exit please report a bug; }; }
10334 esac
10335 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
10336echo "${ECHO_T}$acx_cv_type_int8_t" >&6
10337
10338 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
10339echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
10340 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
10341 2:*) acx_cv_type_int16_t=int ;;
10342 *:2) acx_cv_type_int16_t=short ;;
10343 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
10344echo "$as_me: error: no 16-bit type" >&2;}
10345 { (exit please report a bug); exit please report a bug; }; }
10346 esac
10347 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
10348echo "${ECHO_T}$acx_cv_type_int16_t" >&6
10349
10350 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
10351echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
10352 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
10353 4:*) acx_cv_type_int32_t=int ;;
10354 *:4) acx_cv_type_int32_t=long ;;
10355 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
10356echo "$as_me: error: no 32-bit type" >&2;}
10357 { (exit please report a bug); exit please report a bug; }; }
10358 esac
10359 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
10360echo "${ECHO_T}$acx_cv_type_int32_t" >&6
10361fi
10362
10363# These tests are here to make the output prettier
10364
10365if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
10366 case "$ac_cv_sizeof_long" in
10367 8) acx_cv_type_int64_t=long ;;
10368 esac
10369 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
10370echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
10371 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
10372echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
10373fi
10374
10375# Now we can use the above types
10376
10377if test "$ac_cv_type_uintptr_t" != yes; then
10378 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
10379echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
10380 case $ac_cv_sizeof_void_p in
10381 2) acx_cv_type_intptr_t=int16_t ;;
10382 4) acx_cv_type_intptr_t=int32_t ;;
10383 8) acx_cv_type_intptr_t=int64_t ;;
10384 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
10385echo "$as_me: error: no equivalent for intptr_t" >&2;}
10386 { (exit please report a bug); exit please report a bug; }; }
10387 esac
10388 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
10389echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
10390fi
10391
10392# ----------------- done all checks, emit header -------------
10393 ac_config_commands="$ac_config_commands bfd_stdint.h"
10394
10395
10396
2ba49b59
KC
10397echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10398echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10399if test "${ac_cv_header_time+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 cat >conftest.$ac_ext <<_ACEOF
10403/* confdefs.h. */
10404_ACEOF
10405cat confdefs.h >>conftest.$ac_ext
10406cat >>conftest.$ac_ext <<_ACEOF
10407/* end confdefs.h. */
10408#include <sys/types.h>
10409#include <sys/time.h>
10410#include <time.h>
10411
10412int
10413main ()
10414{
10415if ((struct tm *) 0)
10416return 0;
10417 ;
10418 return 0;
10419}
10420_ACEOF
10421rm -f conftest.$ac_objext
10422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
49c96104
SE
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
2ba49b59
KC
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_header_time=yes
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
10448ac_cv_header_time=no
10449fi
10450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451fi
10452echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10453echo "${ECHO_T}$ac_cv_header_time" >&6
10454if test $ac_cv_header_time = yes; then
10455
10456cat >>confdefs.h <<\_ACEOF
10457#define TIME_WITH_SYS_TIME 1
10458_ACEOF
10459
10460fi
10461
10462
10463
10464
10465
10466
10467ac_header_dirent=no
10468for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10469 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10470echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10471echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10472if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
10481#include <sys/types.h>
10482#include <$ac_hdr>
10483
10484int
10485main ()
10486{
10487if ((DIR *) 0)
10488return 0;
10489 ;
10490 return 0;
10491}
10492_ACEOF
10493rm -f conftest.$ac_objext
10494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
49c96104
SE
10502 { ac_try='test -z "$ac_c_werror_flag"
10503 || test ! -s conftest.err'
2ba49b59
KC
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 eval "$as_ac_Header=yes"
10516else
10517 echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520eval "$as_ac_Header=no"
10521fi
10522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10523fi
10524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10526if test `eval echo '${'$as_ac_Header'}'` = yes; then
10527 cat >>confdefs.h <<_ACEOF
10528#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10529_ACEOF
10530
10531ac_header_dirent=$ac_hdr; break
10532fi
10533
10534done
10535# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10536if test $ac_header_dirent = dirent.h; then
10537 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10538echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10539if test "${ac_cv_search_opendir+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541else
10542 ac_func_search_save_LIBS=$LIBS
10543ac_cv_search_opendir=no
10544cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h. */
10550
10551/* Override any gcc2 internal prototype to avoid an error. */
10552#ifdef __cplusplus
10553extern "C"
10554#endif
10555/* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10557char opendir ();
10558int
10559main ()
10560{
10561opendir ();
10562 ;
10563 return 0;
10564}
10565_ACEOF
10566rm -f conftest.$ac_objext conftest$ac_exeext
10567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
49c96104
SE
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
2ba49b59
KC
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_search_opendir="none required"
10589else
10590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593fi
10594rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596if test "$ac_cv_search_opendir" = no; then
10597 for ac_lib in dir; do
10598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10599 cat >conftest.$ac_ext <<_ACEOF
10600/* confdefs.h. */
10601_ACEOF
10602cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */
10605
10606/* Override any gcc2 internal prototype to avoid an error. */
10607#ifdef __cplusplus
10608extern "C"
10609#endif
10610/* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10612char opendir ();
10613int
10614main ()
10615{
10616opendir ();
10617 ;
10618 return 0;
10619}
10620_ACEOF
10621rm -f conftest.$ac_objext conftest$ac_exeext
10622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
49c96104
SE
10630 { ac_try='test -z "$ac_c_werror_flag"
10631 || test ! -s conftest.err'
2ba49b59
KC
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_search_opendir="-l$ac_lib"
10644break
10645else
10646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
10649fi
10650rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 done
10653fi
10654LIBS=$ac_func_search_save_LIBS
10655fi
10656echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10657echo "${ECHO_T}$ac_cv_search_opendir" >&6
10658if test "$ac_cv_search_opendir" != no; then
10659 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10660
10661fi
10662
10663else
10664 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10665echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10666if test "${ac_cv_search_opendir+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669 ac_func_search_save_LIBS=$LIBS
10670ac_cv_search_opendir=no
10671cat >conftest.$ac_ext <<_ACEOF
10672/* confdefs.h. */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */
10677
10678/* Override any gcc2 internal prototype to avoid an error. */
10679#ifdef __cplusplus
10680extern "C"
10681#endif
10682/* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10684char opendir ();
10685int
10686main ()
10687{
10688opendir ();
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext conftest$ac_exeext
10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
49c96104
SE
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
2ba49b59
KC
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_search_opendir="none required"
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720fi
10721rm -f conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723if test "$ac_cv_search_opendir" = no; then
10724 for ac_lib in x; do
10725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10726 cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h. */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
10732
10733/* Override any gcc2 internal prototype to avoid an error. */
10734#ifdef __cplusplus
10735extern "C"
10736#endif
10737/* We use char because int might match the return type of a gcc2
10738 builtin and then its argument prototype would still apply. */
10739char opendir ();
10740int
10741main ()
10742{
10743opendir ();
10744 ;
10745 return 0;
10746}
10747_ACEOF
10748rm -f conftest.$ac_objext conftest$ac_exeext
10749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
49c96104
SE
10757 { ac_try='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_search_opendir="-l$ac_lib"
10771break
10772else
10773 echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776fi
10777rm -f conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 done
10780fi
10781LIBS=$ac_func_search_save_LIBS
10782fi
10783echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10784echo "${ECHO_T}$ac_cv_search_opendir" >&6
10785if test "$ac_cv_search_opendir" != no; then
10786 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10787
10788fi
10789
10790fi
10791
10792echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10793echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10794if test "${gcc_cv_header_string+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803#include <string.h>
10804#include <strings.h>
10805int
10806main ()
10807{
10808
10809 ;
10810 return 0;
10811}
10812_ACEOF
10813rm -f conftest.$ac_objext
10814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815 (eval $ac_compile) 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
49c96104
SE
10822 { ac_try='test -z "$ac_c_werror_flag"
10823 || test ! -s conftest.err'
2ba49b59
KC
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 gcc_cv_header_string=yes
10836else
10837 echo "$as_me: failed program was:" >&5
10838sed 's/^/| /' conftest.$ac_ext >&5
10839
10840gcc_cv_header_string=no
10841fi
10842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10843fi
10844echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10845echo "${ECHO_T}$gcc_cv_header_string" >&6
10846if test $gcc_cv_header_string = yes; then
10847
10848cat >>confdefs.h <<\_ACEOF
10849#define STRING_WITH_STRINGS 1
10850_ACEOF
10851
2e0fbf77
JW
10852fi
10853
5464f5a1
NN
10854
10855
10856
10857
10858
10859
10860
633fd09f 10861for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 10862do
5464f5a1
NN
10863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864echo "$as_me:$LINENO: checking for $ac_func" >&5
10865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10866if eval "test \"\${$as_ac_var+set}\" = set"; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868else
10869 cat >conftest.$ac_ext <<_ACEOF
10870/* confdefs.h. */
10871_ACEOF
10872cat confdefs.h >>conftest.$ac_ext
10873cat >>conftest.$ac_ext <<_ACEOF
10874/* end confdefs.h. */
10875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10877#define $ac_func innocuous_$ac_func
10878
252b5132 10879/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10880 which can conflict with char $ac_func (); below.
10881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10882 <limits.h> exists even on freestanding compilers. */
10883
10884#ifdef __STDC__
10885# include <limits.h>
10886#else
10887# include <assert.h>
10888#endif
6be7c12c 10889
5464f5a1 10890#undef $ac_func
252b5132 10891
5464f5a1
NN
10892/* Override any gcc2 internal prototype to avoid an error. */
10893#ifdef __cplusplus
10894extern "C"
10895{
10896#endif
10897/* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899char $ac_func ();
252b5132
RH
10900/* The GNU C library defines this for functions which it implements
10901 to always fail with ENOSYS. Some functions are actually named
10902 something starting with __ and the normal name is an alias. */
10903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10904choke me
10905#else
5464f5a1
NN
10906char (*f) () = $ac_func;
10907#endif
10908#ifdef __cplusplus
10909}
252b5132
RH
10910#endif
10911
5464f5a1
NN
10912int
10913main ()
10914{
10915return f != $ac_func;
10916 ;
10917 return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922 (eval $ac_link) 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
49c96104
SE
10929 { ac_try='test -z "$ac_c_werror_flag"
10930 || test ! -s conftest.err'
5464f5a1
NN
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest$ac_exeext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_var=yes"
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947eval "$as_ac_var=no"
10948fi
10949rm -f conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951fi
10952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10954if test `eval echo '${'$as_ac_var'}'` = yes; then
10955 cat >>confdefs.h <<_ACEOF
10956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10957_ACEOF
252b5132 10958
252b5132
RH
10959fi
10960done
10961
5464f5a1 10962
49c97a80
ILT
10963for ac_func in strtoull
10964do
5464f5a1
NN
10965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10966echo "$as_me:$LINENO: checking for $ac_func" >&5
10967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10968if eval "test \"\${$as_ac_var+set}\" = set"; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10979#define $ac_func innocuous_$ac_func
10980
49c97a80 10981/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10982 which can conflict with char $ac_func (); below.
10983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10984 <limits.h> exists even on freestanding compilers. */
10985
10986#ifdef __STDC__
10987# include <limits.h>
10988#else
10989# include <assert.h>
10990#endif
49c97a80 10991
5464f5a1 10992#undef $ac_func
49c97a80 10993
5464f5a1
NN
10994/* Override any gcc2 internal prototype to avoid an error. */
10995#ifdef __cplusplus
10996extern "C"
10997{
10998#endif
10999/* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11001char $ac_func ();
49c97a80
ILT
11002/* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006choke me
11007#else
5464f5a1
NN
11008char (*f) () = $ac_func;
11009#endif
11010#ifdef __cplusplus
11011}
49c97a80
ILT
11012#endif
11013
5464f5a1
NN
11014int
11015main ()
11016{
11017return f != $ac_func;
11018 ;
11019 return 0;
11020}
11021_ACEOF
11022rm -f conftest.$ac_objext conftest$ac_exeext
11023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
49c96104
SE
11031 { ac_try='test -z "$ac_c_werror_flag"
11032 || test ! -s conftest.err'
5464f5a1
NN
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11045else
11046 echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
11049eval "$as_ac_var=no"
11050fi
11051rm -f conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053fi
11054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11056if test `eval echo '${'$as_ac_var'}'` = yes; then
11057 cat >>confdefs.h <<_ACEOF
11058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059_ACEOF
49c97a80 11060
49c97a80
ILT
11061fi
11062done
11063
6be7c12c 11064
2e9ebff5
JG
11065echo "$as_me:$LINENO: checking whether basename is declared" >&5
11066echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11067if test "${ac_cv_have_decl_basename+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069else
11070 cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
ec7b76fe 11076$ac_includes_default
2e9ebff5
JG
11077int
11078main ()
11079{
11080#ifndef basename
11081 char *p = (char *) basename;
11082#endif
11083
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088rm -f conftest.$ac_objext
11089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
49c96104
SE
11097 { ac_try='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
2e9ebff5
JG
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_have_decl_basename=yes
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115ac_cv_have_decl_basename=no
11116fi
11117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118fi
11119echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11120echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11121if test $ac_cv_have_decl_basename = yes; then
11122
11123cat >>confdefs.h <<_ACEOF
11124#define HAVE_DECL_BASENAME 1
11125_ACEOF
11126
11127
11128else
11129 cat >>confdefs.h <<_ACEOF
11130#define HAVE_DECL_BASENAME 0
11131_ACEOF
11132
11133
11134fi
11135
11136
ec7b76fe
JG
11137echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11138echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
11139if test "${ac_cv_have_decl_ftello+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141else
11142 cat >conftest.$ac_ext <<_ACEOF
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
11148$ac_includes_default
11149int
11150main ()
11151{
11152#ifndef ftello
11153 char *p = (char *) ftello;
11154#endif
11155
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160rm -f conftest.$ac_objext
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
49c96104
SE
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
ec7b76fe
JG
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_cv_have_decl_ftello=yes
11183else
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
11187ac_cv_have_decl_ftello=no
11188fi
11189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190fi
11191echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11192echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
11193if test $ac_cv_have_decl_ftello = yes; then
11194
11195cat >>confdefs.h <<_ACEOF
11196#define HAVE_DECL_FTELLO 1
11197_ACEOF
11198
11199
11200else
11201 cat >>confdefs.h <<_ACEOF
11202#define HAVE_DECL_FTELLO 0
11203_ACEOF
11204
11205
11206fi
11207
11208
11209echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11210echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
11211if test "${ac_cv_have_decl_ftello64+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220$ac_includes_default
11221int
11222main ()
11223{
11224#ifndef ftello64
11225 char *p = (char *) ftello64;
11226#endif
11227
11228 ;
11229 return 0;
11230}
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
49c96104
SE
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
ec7b76fe
JG
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_have_decl_ftello64=yes
11255else
11256 echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259ac_cv_have_decl_ftello64=no
11260fi
11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262fi
11263echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11264echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
11265if test $ac_cv_have_decl_ftello64 = yes; then
11266
11267cat >>confdefs.h <<_ACEOF
11268#define HAVE_DECL_FTELLO64 1
11269_ACEOF
11270
11271
11272else
11273 cat >>confdefs.h <<_ACEOF
11274#define HAVE_DECL_FTELLO64 0
11275_ACEOF
11276
11277
11278fi
11279
11280
11281echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11282echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
11283if test "${ac_cv_have_decl_fseeko+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285else
11286 cat >conftest.$ac_ext <<_ACEOF
11287/* confdefs.h. */
11288_ACEOF
11289cat confdefs.h >>conftest.$ac_ext
11290cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */
11292$ac_includes_default
11293int
11294main ()
11295{
11296#ifndef fseeko
11297 char *p = (char *) fseeko;
11298#endif
11299
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304rm -f conftest.$ac_objext
11305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
49c96104
SE
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
ec7b76fe
JG
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_cv_have_decl_fseeko=yes
11327else
11328 echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
11331ac_cv_have_decl_fseeko=no
11332fi
11333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334fi
11335echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11336echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
11337if test $ac_cv_have_decl_fseeko = yes; then
11338
11339cat >>confdefs.h <<_ACEOF
11340#define HAVE_DECL_FSEEKO 1
11341_ACEOF
11342
11343
11344else
11345 cat >>confdefs.h <<_ACEOF
11346#define HAVE_DECL_FSEEKO 0
11347_ACEOF
11348
11349
11350fi
11351
11352
11353echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11354echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
11355if test "${ac_cv_have_decl_fseeko64+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358 cat >conftest.$ac_ext <<_ACEOF
11359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
11364$ac_includes_default
11365int
11366main ()
11367{
11368#ifndef fseeko64
11369 char *p = (char *) fseeko64;
11370#endif
11371
11372 ;
11373 return 0;
11374}
11375_ACEOF
11376rm -f conftest.$ac_objext
11377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
49c96104
SE
11385 { ac_try='test -z "$ac_c_werror_flag"
11386 || test ! -s conftest.err'
ec7b76fe
JG
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }; then
11398 ac_cv_have_decl_fseeko64=yes
11399else
11400 echo "$as_me: failed program was:" >&5
11401sed 's/^/| /' conftest.$ac_ext >&5
11402
11403ac_cv_have_decl_fseeko64=no
11404fi
11405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11406fi
11407echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11408echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
11409if test $ac_cv_have_decl_fseeko64 = yes; then
11410
11411cat >>confdefs.h <<_ACEOF
11412#define HAVE_DECL_FSEEKO64 1
11413_ACEOF
11414
11415
11416else
11417 cat >>confdefs.h <<_ACEOF
11418#define HAVE_DECL_FSEEKO64 0
11419_ACEOF
11420
11421
11422fi
11423
11424
2e9ebff5 11425
6be7c12c 11426
252b5132 11427case "${host}" in
855b0be7 11428*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
11429
11430cat >>confdefs.h <<\_ACEOF
252b5132 11431#define USE_BINARY_FOPEN 1
5464f5a1 11432_ACEOF
252b5132
RH
11433 ;;
11434esac
11435
d34a2b1d
JG
11436echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11437echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
11438if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 11439 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11440else
5464f5a1
NN
11441 cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
d34a2b1d 11447$ac_includes_default
5464f5a1
NN
11448int
11449main ()
11450{
d34a2b1d
JG
11451#ifndef ffs
11452 char *p = (char *) ffs;
11453#endif
11454
5464f5a1
NN
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext
11460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
49c96104
SE
11468 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
5464f5a1
NN
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
d34a2b1d 11481 ac_cv_have_decl_ffs=yes
252b5132 11482else
5464f5a1
NN
11483 echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
d34a2b1d 11486ac_cv_have_decl_ffs=no
252b5132 11487fi
5464f5a1 11488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11489fi
d34a2b1d
JG
11490echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11491echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
11492if test $ac_cv_have_decl_ffs = yes; then
252b5132 11493
d34a2b1d
JG
11494cat >>confdefs.h <<_ACEOF
11495#define HAVE_DECL_FFS 1
11496_ACEOF
5464f5a1 11497
d34a2b1d
JG
11498
11499else
11500 cat >>confdefs.h <<_ACEOF
11501#define HAVE_DECL_FFS 0
5464f5a1 11502_ACEOF
252b5132 11503
d34a2b1d 11504
252b5132
RH
11505fi
11506
d34a2b1d
JG
11507
11508echo "$as_me:$LINENO: checking whether free is declared" >&5
11509echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11510if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 11511 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11512else
5464f5a1
NN
11513 cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h. */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h. */
d34a2b1d 11519$ac_includes_default
5464f5a1
NN
11520int
11521main ()
11522{
d34a2b1d
JG
11523#ifndef free
11524 char *p = (char *) free;
11525#endif
11526
5464f5a1
NN
11527 ;
11528 return 0;
11529}
11530_ACEOF
11531rm -f conftest.$ac_objext
11532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
49c96104
SE
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
5464f5a1
NN
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
d34a2b1d 11553 ac_cv_have_decl_free=yes
252b5132 11554else
5464f5a1
NN
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
d34a2b1d 11558ac_cv_have_decl_free=no
252b5132 11559fi
5464f5a1 11560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11561fi
d34a2b1d
JG
11562echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11563echo "${ECHO_T}$ac_cv_have_decl_free" >&6
11564if test $ac_cv_have_decl_free = yes; then
11565
11566cat >>confdefs.h <<_ACEOF
11567#define HAVE_DECL_FREE 1
11568_ACEOF
252b5132 11569
5464f5a1 11570
d34a2b1d
JG
11571else
11572 cat >>confdefs.h <<_ACEOF
11573#define HAVE_DECL_FREE 0
5464f5a1 11574_ACEOF
252b5132 11575
d34a2b1d 11576
252b5132
RH
11577fi
11578
d34a2b1d
JG
11579
11580echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11581echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11582if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 11583 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11584else
5464f5a1
NN
11585 cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
d34a2b1d 11591$ac_includes_default
5464f5a1
NN
11592int
11593main ()
11594{
d34a2b1d
JG
11595#ifndef getenv
11596 char *p = (char *) getenv;
11597#endif
11598
5464f5a1
NN
11599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext
11604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
49c96104
SE
11612 { ac_try='test -z "$ac_c_werror_flag"
11613 || test ! -s conftest.err'
5464f5a1
NN
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
d34a2b1d 11625 ac_cv_have_decl_getenv=yes
252b5132 11626else
5464f5a1
NN
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
d34a2b1d 11630ac_cv_have_decl_getenv=no
252b5132 11631fi
5464f5a1 11632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11633fi
d34a2b1d
JG
11634echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11635echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11636if test $ac_cv_have_decl_getenv = yes; then
252b5132 11637
d34a2b1d
JG
11638cat >>confdefs.h <<_ACEOF
11639#define HAVE_DECL_GETENV 1
11640_ACEOF
5464f5a1 11641
d34a2b1d
JG
11642
11643else
11644 cat >>confdefs.h <<_ACEOF
11645#define HAVE_DECL_GETENV 0
5464f5a1 11646_ACEOF
252b5132 11647
d34a2b1d 11648
252b5132
RH
11649fi
11650
d34a2b1d
JG
11651
11652echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11653echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11654if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 11655 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11656else
5464f5a1
NN
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
d34a2b1d 11663$ac_includes_default
5464f5a1
NN
11664int
11665main ()
11666{
d34a2b1d
JG
11667#ifndef malloc
11668 char *p = (char *) malloc;
11669#endif
11670
5464f5a1
NN
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
49c96104
SE
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
5464f5a1
NN
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
d34a2b1d 11697 ac_cv_have_decl_malloc=yes
252b5132 11698else
5464f5a1
NN
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
d34a2b1d 11702ac_cv_have_decl_malloc=no
252b5132 11703fi
5464f5a1 11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11705fi
d34a2b1d
JG
11706echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11707echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11708if test $ac_cv_have_decl_malloc = yes; then
252b5132 11709
d34a2b1d
JG
11710cat >>confdefs.h <<_ACEOF
11711#define HAVE_DECL_MALLOC 1
11712_ACEOF
5464f5a1 11713
d34a2b1d
JG
11714
11715else
11716 cat >>confdefs.h <<_ACEOF
11717#define HAVE_DECL_MALLOC 0
5464f5a1 11718_ACEOF
252b5132 11719
d34a2b1d 11720
252b5132
RH
11721fi
11722
d34a2b1d
JG
11723
11724echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11725echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11726if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 11727 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11728else
5464f5a1
NN
11729 cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
d34a2b1d 11735$ac_includes_default
5464f5a1
NN
11736int
11737main ()
11738{
d34a2b1d
JG
11739#ifndef realloc
11740 char *p = (char *) realloc;
11741#endif
11742
5464f5a1
NN
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747rm -f conftest.$ac_objext
11748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11749 (eval $ac_compile) 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
49c96104
SE
11756 { ac_try='test -z "$ac_c_werror_flag"
11757 || test ! -s conftest.err'
5464f5a1
NN
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
d34a2b1d 11769 ac_cv_have_decl_realloc=yes
252b5132 11770else
5464f5a1
NN
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
d34a2b1d 11774ac_cv_have_decl_realloc=no
252b5132 11775fi
5464f5a1 11776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11777fi
d34a2b1d
JG
11778echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11779echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11780if test $ac_cv_have_decl_realloc = yes; then
11781
11782cat >>confdefs.h <<_ACEOF
11783#define HAVE_DECL_REALLOC 1
11784_ACEOF
252b5132 11785
5464f5a1 11786
d34a2b1d
JG
11787else
11788 cat >>confdefs.h <<_ACEOF
11789#define HAVE_DECL_REALLOC 0
efa9bda4
AL
11790_ACEOF
11791
d34a2b1d 11792
efa9bda4
AL
11793fi
11794
d34a2b1d 11795
be5cacdb
L
11796echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11797echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11798if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807$ac_includes_default
11808int
11809main ()
11810{
11811#ifndef stpcpy
11812 char *p = (char *) stpcpy;
11813#endif
11814
11815 ;
11816 return 0;
11817}
11818_ACEOF
11819rm -f conftest.$ac_objext
11820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
49c96104
SE
11828 { ac_try='test -z "$ac_c_werror_flag"
11829 || test ! -s conftest.err'
be5cacdb
L
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_cv_have_decl_stpcpy=yes
11842else
11843 echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846ac_cv_have_decl_stpcpy=no
11847fi
11848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849fi
11850echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11851echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11852if test $ac_cv_have_decl_stpcpy = yes; then
11853
11854cat >>confdefs.h <<_ACEOF
11855#define HAVE_DECL_STPCPY 1
11856_ACEOF
11857
11858
11859else
11860 cat >>confdefs.h <<_ACEOF
11861#define HAVE_DECL_STPCPY 0
11862_ACEOF
11863
11864
11865fi
11866
11867
d34a2b1d
JG
11868echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11869echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11870if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
d34a2b1d 11879$ac_includes_default
efa9bda4
AL
11880int
11881main ()
11882{
d34a2b1d
JG
11883#ifndef strstr
11884 char *p = (char *) strstr;
11885#endif
11886
efa9bda4
AL
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
49c96104
SE
11900 { ac_try='test -z "$ac_c_werror_flag"
11901 || test ! -s conftest.err'
efa9bda4
AL
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
d34a2b1d 11913 ac_cv_have_decl_strstr=yes
efa9bda4
AL
11914else
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
d34a2b1d 11918ac_cv_have_decl_strstr=no
efa9bda4
AL
11919fi
11920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11921fi
d34a2b1d
JG
11922echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11923echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11924if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 11925
d34a2b1d
JG
11926cat >>confdefs.h <<_ACEOF
11927#define HAVE_DECL_STRSTR 1
11928_ACEOF
efa9bda4 11929
d34a2b1d
JG
11930
11931else
11932 cat >>confdefs.h <<_ACEOF
11933#define HAVE_DECL_STRSTR 0
5464f5a1 11934_ACEOF
252b5132 11935
d34a2b1d 11936
252b5132
RH
11937fi
11938
6be7c12c 11939
36527912
AJ
11940echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11941echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11942if test "${ac_cv_have_decl_snprintf+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951$ac_includes_default
11952int
11953main ()
11954{
11955#ifndef snprintf
11956 char *p = (char *) snprintf;
11957#endif
11958
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); } &&
49c96104
SE
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
36527912
AJ
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 ac_cv_have_decl_snprintf=yes
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_cv_have_decl_snprintf=no
11991fi
11992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993fi
11994echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11995echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11996if test $ac_cv_have_decl_snprintf = yes; then
11997
11998cat >>confdefs.h <<_ACEOF
11999#define HAVE_DECL_SNPRINTF 1
12000_ACEOF
12001
12002
12003else
12004 cat >>confdefs.h <<_ACEOF
12005#define HAVE_DECL_SNPRINTF 0
12006_ACEOF
12007
12008
12009fi
12010
12011
12012echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12013echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12014if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023$ac_includes_default
12024int
12025main ()
12026{
12027#ifndef vsnprintf
12028 char *p = (char *) vsnprintf;
12029#endif
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
49c96104
SE
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
36527912
AJ
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_have_decl_vsnprintf=yes
12058else
12059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062ac_cv_have_decl_vsnprintf=no
12063fi
12064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
12066echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12067echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12068if test $ac_cv_have_decl_vsnprintf = yes; then
12069
12070cat >>confdefs.h <<_ACEOF
12071#define HAVE_DECL_VSNPRINTF 1
12072_ACEOF
12073
12074
12075else
12076 cat >>confdefs.h <<_ACEOF
12077#define HAVE_DECL_VSNPRINTF 0
12078_ACEOF
12079
12080
12081fi
12082
12083
d34a2b1d 12084
252b5132
RH
12085# If we are configured native, pick a core file support file.
12086COREFILE=
12087COREFLAG=
12088TRAD_HEADER=
12089if test "${target}" = "${host}"; then
12090 case "${host}" in
13dfd2d0 12091 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
12092 COREFILE=''
12093 ;;
ed84e695 12094 alpha*-*-linux-*)
252b5132
RH
12095 COREFILE=trad-core.lo
12096 TRAD_HEADER='"hosts/alphalinux.h"'
12097 ;;
690cc98b
NC
12098 alpha*-*-netbsd* | alpha*-*-openbsd*)
12099 COREFILE=netbsd-core.lo
12100 ;;
252b5132 12101 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
12102 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
12103 COREFILE='' ;;
e33533a4
MK
12104 arm-*-netbsd* | arm-*-openbsd*)
12105 COREFILE=netbsd-core.lo
12106 ;;
252b5132
RH
12107 arm-*-riscix) COREFILE=trad-core.lo ;;
12108 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
12109 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
12110 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
12111 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
12112 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
12113 hppa*-*-netbsd* | hppa*-*-openbsd*)
12114 COREFILE=netbsd-core.lo
12115 ;;
12116
dc810e39 12117 i370-*-*)
5b93d8bb
AM
12118 COREFILE=trad-core.lo
12119 TRAD_HEADER='"hosts/i370linux.h"'
12120 ;;
12121
80c7c40a 12122 i[3-7]86-sequent-bsd*)
5b93d8bb 12123 COREFILE=trad-core.lo
252b5132
RH
12124 TRAD_HEADER='"hosts/symmetry.h"'
12125 ;;
80c7c40a
NC
12126 i[3-7]86-sequent-sysv4*) ;;
12127 i[3-7]86-sequent-sysv*)
252b5132
RH
12128 COREFILE=trad-core.lo
12129 TRAD_HEADER='"hosts/symmetry.h"'
12130 ;;
80c7c40a 12131 i[3-7]86-*-bsdi)
7e3b3466
NC
12132 COREFILE=
12133 ;;
d2bef492 12134 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*)
252b5132
RH
12135 COREFILE=trad-core.lo
12136 TRAD_HEADER='"hosts/i386bsd.h"'
12137 ;;
13dfd2d0 12138 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
12139 COREFILE=''
12140 TRAD_HEADER='"hosts/i386bsd.h"'
12141 ;;
4615568e 12142 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
12143 COREFILE=netbsd-core.lo
12144 ;;
80c7c40a 12145 i[3-7]86-esix-sysv3*)
252b5132
RH
12146 COREFILE=trad-core.lo
12147 TRAD_HEADER='"hosts/esix.h"'
12148 ;;
80c7c40a 12149 i[3-7]86-*-sco3.2v5*)
252b5132
RH
12150 COREFILE=sco5-core.lo
12151 ;;
80c7c40a 12152 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
12153 COREFILE=trad-core.lo
12154 TRAD_HEADER='"hosts/i386sco.h"'
12155 ;;
80c7c40a 12156 i[3-7]86-*-mach3*)
252b5132
RH
12157 COREFILE=trad-core.lo
12158 TRAD_HEADER='"hosts/i386mach3.h"'
12159 ;;
ed84e695 12160 i[3-7]86-*-linux-*)
252b5132
RH
12161 COREFILE=trad-core.lo
12162 TRAD_HEADER='"hosts/i386linux.h"'
12163 ;;
80c7c40a
NC
12164 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
12165 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
12166 i860-*-mach3* | i860-*-osf1*)
12167 COREFILE=trad-core.lo
12168 TRAD_HEADER='"hosts/i860mach3.h"'
12169 ;;
252b5132
RH
12170 mips-*-netbsd* | mips*-*-openbsd*)
12171 COREFILE=netbsd-core.lo
12172 ;;
12173 mips-dec-*)
12174 COREFILE=trad-core.lo
12175 TRAD_HEADER='"hosts/decstation.h"'
12176 ;;
12177 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
12178 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
12179 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
12180 mips-*-sysv4*) ;;
12181 mips-*-sysv* | mips-*-riscos*)
12182 COREFILE=trad-core.lo
12183 TRAD_HEADER='"hosts/riscos.h"'
12184 ;;
12185 mips-sony-bsd*)
12186 COREFILE=trad-core.lo
12187 TRAD_HEADER='"hosts/news-mips.h"'
12188 ;;
12189 m68*-bull*-sysv*)
12190 COREFILE=trad-core.lo
12191 TRAD_HEADER='"hosts/dpx2.h"'
12192 ;;
12193 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
12194 m68*-hp-bsd*)
12195 COREFILE=trad-core.lo
12196 TRAD_HEADER='"hosts/hp300bsd.h"'
12197 ;;
ed84e695 12198 m68*-*-linux-*)
252b5132
RH
12199 COREFILE=trad-core.lo
12200 TRAD_HEADER='"hosts/m68klinux.h"'
12201 ;;
12202 m68*-motorola-sysv*)
12203 COREFILE=trad-core.lo
12204 TRAD_HEADER='"hosts/delta68.h"'
12205 ;;
12206 m68*-sony-*)
12207 COREFILE=trad-core.lo
12208 TRAD_HEADER='"hosts/news.h"'
12209 ;;
12210 m68*-*-netbsd* | m68*-*-openbsd*)
12211 COREFILE=netbsd-core.lo
12212 ;;
12213 m68*-apple-aux*)
12214 COREFILE=trad-core.lo
12215 TRAD_HEADER='"hosts/m68kaux.h"'
12216 ;;
eb1e0e80
NC
12217 m88*-*-sysv4*)
12218 ;;
12219 m88*-motorola-sysv*)
12220 COREFILE=ptrace-core.lo
12221 ;;
252b5132
RH
12222 m88*-*-mach3*)
12223 COREFILE=trad-core.lo
12224 TRAD_HEADER='"hosts/m88kmach3.h"'
12225 ;;
c6f8758f
NC
12226 m88*-*-openbsd*)
12227 COREFILE=netbsd-core.lo
12228 ;;
252b5132
RH
12229 ns32k-pc532-mach)
12230 COREFILE=trad-core.lo
12231 TRAD_HEADER='"hosts/pc532mach.h"'
12232 ;;
12233 ns32k-*-netbsd* | ns32k-*-openbsd*)
12234 COREFILE=netbsd-core.lo
12235 ;;
eb1e0e80
NC
12236 rs6000-*-lynx*)
12237 COREFILE=lynx-core.lo
12238 ;;
12239 rs6000-*-aix5.* | powerpc-*-aix5.*)
12240 COREFILE=rs6000-core.lo
12241 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
12242 ;;
83954261 12243 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
12244 COREFILE=rs6000-core.lo
12245 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
12246 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
12247 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
12248 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12249echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
83954261 12256#include <core.h>
5464f5a1
NN
12257int
12258main ()
12259{
83954261 12260struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext
12266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
49c96104
SE
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
5464f5a1
NN
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287
12288cat >>confdefs.h <<\_ACEOF
83954261 12289#define HAVE_ST_C_IMPL 1
5464f5a1 12290_ACEOF
83954261 12291
5464f5a1
NN
12292 echo "$as_me:$LINENO: result: yes" >&5
12293echo "${ECHO_T}yes" >&6
83954261 12294else
5464f5a1
NN
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298echo "$as_me:$LINENO: result: no" >&5
12299echo "${ECHO_T}no" >&6
83954261 12300fi
5464f5a1 12301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 12302 ;;
252b5132
RH
12303 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
12304 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
12305 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
12306 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
12307 powerpc-*-beos*) ;;
13dfd2d0
NC
12308 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
12309 COREFILE='' ;;
252b5132 12310 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 12311 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 12312 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
12313 sh*-*-netbsd* | sh*-*-openbsd*)
12314 COREFILE=netbsd-core.lo
12315 ;;
a9bf1154 12316 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
12317 COREFILE=netbsd-core.lo
12318 ;;
12319 tahoe-*-*)
12320 COREFILE=trad-core.lo
12321 TRAD_HEADER='"hosts/tahoe.h"'
12322 ;;
de6e5e1a
NC
12323 vax-*-netbsd* | vax-*-openbsd*)
12324 COREFILE=netbsd-core.lo
12325 ;;
252b5132
RH
12326 vax-*-ultrix2*)
12327 COREFILE=trad-core.lo
12328 TRAD_HEADER='"hosts/vaxult2.h"'
12329 ;;
12330 vax-*-ultrix*)
12331 COREFILE=trad-core.lo
12332 TRAD_HEADER='"hosts/vaxult2.h"'
12333 ;;
ed84e695 12334 vax-*-linux-*)
f8fc3443
NC
12335 COREFILE=trad-core.lo
12336 TRAD_HEADER='"hosts/vaxlinux.h"'
12337 ;;
252b5132
RH
12338 vax-*-*)
12339 COREFILE=trad-core.lo
12340 TRAD_HEADER='"hosts/vaxbsd.h"'
12341 ;;
85cfd8d3
MK
12342 x86_64-*-netbsd* | x86_64-*-openbsd*)
12343 COREFILE=netbsd-core.lo
12344 ;;
252b5132
RH
12345 esac
12346
12347 case "$COREFILE" in
12348 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
12349 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
12350 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
12351 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
12352 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
12353 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
12354 osf-core.lo) COREFLAG=-DOSF_CORE ;;
12355 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
12356 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
12357 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
12358 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
12359 esac
12360
12361 # ELF corefile support has several flavors, but all of
12362 # them use something called <sys/procfs.h>
5464f5a1
NN
12363
12364for ac_header in sys/procfs.h
252b5132 12365do
5464f5a1
NN
12366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12367if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368 echo "$as_me:$LINENO: checking for $ac_header" >&5
12369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12370if eval "test \"\${$as_ac_Header+set}\" = set"; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372fi
12373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12375else
12376 # Is the header compilable?
12377echo "$as_me:$LINENO: checking $ac_header usability" >&5
12378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12379cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
12385$ac_includes_default
12386#include <$ac_header>
12387_ACEOF
12388rm -f conftest.$ac_objext
12389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
49c96104
SE
12397 { ac_try='test -z "$ac_c_werror_flag"
12398 || test ! -s conftest.err'
5464f5a1
NN
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest.$ac_objext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_header_compiler=yes
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415ac_header_compiler=no
12416fi
12417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419echo "${ECHO_T}$ac_header_compiler" >&6
12420
12421# Is the header present?
12422echo "$as_me:$LINENO: checking $ac_header presence" >&5
12423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12424cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430#include <$ac_header>
12431_ACEOF
12432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } >/dev/null; then
12440 if test -s conftest.err; then
12441 ac_cpp_err=$ac_c_preproc_warn_flag
12442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12443 else
12444 ac_cpp_err=
12445 fi
252b5132 12446else
5464f5a1 12447 ac_cpp_err=yes
252b5132 12448fi
5464f5a1
NN
12449if test -z "$ac_cpp_err"; then
12450 ac_header_preproc=yes
12451else
12452 echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_header_preproc=no
252b5132 12456fi
5464f5a1
NN
12457rm -f conftest.err conftest.$ac_ext
12458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459echo "${ECHO_T}$ac_header_preproc" >&6
12460
12461# So? What about this header?
12462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463 yes:no: )
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12468 ac_header_preproc=yes
12469 ;;
12470 no:yes:* )
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12478echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12483 (
12484 cat <<\_ASBOX
12485## ------------------------------------------ ##
12486## Report this to the AC_PACKAGE_NAME lists. ##
12487## ------------------------------------------ ##
12488_ASBOX
12489 ) |
12490 sed "s/^/$as_me: WARNING: /" >&2
12491 ;;
12492esac
12493echo "$as_me:$LINENO: checking for $ac_header" >&5
12494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12495if eval "test \"\${$as_ac_Header+set}\" = set"; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 12497else
5464f5a1
NN
12498 eval "$as_ac_Header=\$ac_header_preproc"
12499fi
12500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12502
252b5132 12503fi
5464f5a1
NN
12504if test `eval echo '${'$as_ac_Header'}'` = yes; then
12505 cat >>confdefs.h <<_ACEOF
12506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12507_ACEOF
12508
12509fi
12510
252b5132
RH
12511done
12512
12513 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
12514 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12515echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
12516 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519 cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
7ee38065
MS
12525
12526#define _SYSCALL32
252b5132 12527#include <sys/procfs.h>
5464f5a1
NN
12528int
12529main ()
12530{
252b5132 12531prstatus_t avar
5464f5a1
NN
12532 ;
12533 return 0;
12534}
12535_ACEOF
12536rm -f conftest.$ac_objext
12537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12538 (eval $ac_compile) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
49c96104
SE
12545 { ac_try='test -z "$ac_c_werror_flag"
12546 || test ! -s conftest.err'
5464f5a1
NN
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
252b5132
RH
12558 bfd_cv_have_sys_procfs_type_prstatus_t=yes
12559else
5464f5a1
NN
12560 echo "$as_me: failed program was:" >&5
12561sed 's/^/| /' conftest.$ac_ext >&5
12562
12563bfd_cv_have_sys_procfs_type_prstatus_t=no
12564
252b5132 12565fi
5464f5a1 12566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12567fi
12568
12569 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
12570
12571cat >>confdefs.h <<\_ACEOF
252b5132 12572#define HAVE_PRSTATUS_T 1
5464f5a1 12573_ACEOF
252b5132
RH
12574
12575 fi
5464f5a1
NN
12576 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12577echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 12578
5464f5a1
NN
12579 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12580echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
12581 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12583else
5464f5a1
NN
12584 cat >conftest.$ac_ext <<_ACEOF
12585/* confdefs.h. */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
12589/* end confdefs.h. */
7ee38065
MS
12590
12591#define _SYSCALL32
12592#include <sys/procfs.h>
5464f5a1
NN
12593int
12594main ()
12595{
7ee38065 12596prstatus32_t avar
5464f5a1
NN
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601rm -f conftest.$ac_objext
12602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
49c96104
SE
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
5464f5a1
NN
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
7ee38065
MS
12623 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12624else
5464f5a1
NN
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628bfd_cv_have_sys_procfs_type_prstatus32_t=no
12629
7ee38065 12630fi
5464f5a1 12631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12632fi
12633
12634 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
12635
12636cat >>confdefs.h <<\_ACEOF
7ee38065 12637#define HAVE_PRSTATUS32_T 1
5464f5a1 12638_ACEOF
7ee38065
MS
12639
12640 fi
5464f5a1
NN
12641 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12642echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 12643
5464f5a1
NN
12644 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12645echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12646 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12648else
5464f5a1
NN
12649 cat >conftest.$ac_ext <<_ACEOF
12650/* confdefs.h. */
12651_ACEOF
12652cat confdefs.h >>conftest.$ac_ext
12653cat >>conftest.$ac_ext <<_ACEOF
12654/* end confdefs.h. */
7ee38065
MS
12655
12656#define _SYSCALL32
252b5132 12657#include <sys/procfs.h>
5464f5a1
NN
12658int
12659main ()
12660{
252b5132 12661prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666rm -f conftest.$ac_objext
12667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
49c96104
SE
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
5464f5a1
NN
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
252b5132
RH
12688 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12689else
5464f5a1
NN
12690 echo "$as_me: failed program was:" >&5
12691sed 's/^/| /' conftest.$ac_ext >&5
12692
12693bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12694
252b5132 12695fi
5464f5a1 12696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12697fi
12698
12699 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
12700
12701cat >>confdefs.h <<\_ACEOF
252b5132 12702#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 12703_ACEOF
252b5132
RH
12704
12705 fi
5464f5a1
NN
12706 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12707echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 12708
5464f5a1
NN
12709 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12710echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12711 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12713else
5464f5a1
NN
12714 cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
7ee38065
MS
12720
12721#define _SYSCALL32
12722#include <sys/procfs.h>
5464f5a1
NN
12723int
12724main ()
12725{
7ee38065 12726prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext
12732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
49c96104
SE
12740 { ac_try='test -z "$ac_c_werror_flag"
12741 || test ! -s conftest.err'
5464f5a1
NN
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
7ee38065
MS
12753 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12754else
5464f5a1
NN
12755 echo "$as_me: failed program was:" >&5
12756sed 's/^/| /' conftest.$ac_ext >&5
12757
12758bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12759
7ee38065 12760fi
5464f5a1 12761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12762fi
12763
12764 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
12765
12766cat >>confdefs.h <<\_ACEOF
7ee38065 12767#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 12768_ACEOF
7ee38065
MS
12769
12770 fi
5464f5a1
NN
12771 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12772echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 12773
5464f5a1
NN
12774 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12775echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12776 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12778else
5464f5a1
NN
12779 cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
7ee38065
MS
12785
12786#define _SYSCALL32
252b5132 12787#include <sys/procfs.h>
5464f5a1
NN
12788int
12789main ()
12790{
252b5132 12791pstatus_t avar
5464f5a1
NN
12792 ;
12793 return 0;
12794}
12795_ACEOF
12796rm -f conftest.$ac_objext
12797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798 (eval $ac_compile) 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
49c96104
SE
12805 { ac_try='test -z "$ac_c_werror_flag"
12806 || test ! -s conftest.err'
5464f5a1
NN
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
252b5132
RH
12818 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12819else
5464f5a1
NN
12820 echo "$as_me: failed program was:" >&5
12821sed 's/^/| /' conftest.$ac_ext >&5
12822
12823bfd_cv_have_sys_procfs_type_pstatus_t=no
12824
252b5132 12825fi
5464f5a1 12826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12827fi
12828
12829 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
12830
12831cat >>confdefs.h <<\_ACEOF
252b5132 12832#define HAVE_PSTATUS_T 1
5464f5a1 12833_ACEOF
252b5132
RH
12834
12835 fi
5464f5a1
NN
12836 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12837echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 12838
5464f5a1
NN
12839 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12840echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12841 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 12843else
5464f5a1
NN
12844 cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
f572a39d
AM
12850
12851#define _SYSCALL32
12852#include <sys/procfs.h>
5464f5a1
NN
12853int
12854main ()
12855{
f572a39d 12856pxstatus_t avar
5464f5a1
NN
12857 ;
12858 return 0;
12859}
12860_ACEOF
12861rm -f conftest.$ac_objext
12862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
49c96104
SE
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
5464f5a1
NN
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
f572a39d
AM
12883 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12884else
5464f5a1
NN
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888bfd_cv_have_sys_procfs_type_pxstatus_t=no
12889
f572a39d 12890fi
5464f5a1 12891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
12892fi
12893
12894 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
12895
12896cat >>confdefs.h <<\_ACEOF
f572a39d 12897#define HAVE_PXSTATUS_T 1
5464f5a1 12898_ACEOF
f572a39d
AM
12899
12900 fi
5464f5a1
NN
12901 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12902echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 12903
5464f5a1
NN
12904 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12905echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12906 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12908else
5464f5a1
NN
12909 cat >conftest.$ac_ext <<_ACEOF
12910/* confdefs.h. */
12911_ACEOF
12912cat confdefs.h >>conftest.$ac_ext
12913cat >>conftest.$ac_ext <<_ACEOF
12914/* end confdefs.h. */
7ee38065
MS
12915
12916#define _SYSCALL32
12917#include <sys/procfs.h>
5464f5a1
NN
12918int
12919main ()
12920{
7ee38065 12921pstatus32_t avar
5464f5a1
NN
12922 ;
12923 return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext
12927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
49c96104
SE
12935 { ac_try='test -z "$ac_c_werror_flag"
12936 || test ! -s conftest.err'
5464f5a1
NN
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try='test -s conftest.$ac_objext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
7ee38065
MS
12948 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12949else
5464f5a1
NN
12950 echo "$as_me: failed program was:" >&5
12951sed 's/^/| /' conftest.$ac_ext >&5
12952
12953bfd_cv_have_sys_procfs_type_pstatus32_t=no
12954
7ee38065 12955fi
5464f5a1 12956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12957fi
12958
12959 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
12960
12961cat >>confdefs.h <<\_ACEOF
7ee38065 12962#define HAVE_PSTATUS32_T 1
5464f5a1 12963_ACEOF
7ee38065
MS
12964
12965 fi
5464f5a1
NN
12966 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12967echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 12968
5464f5a1
NN
12969 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12970echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12971 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12973else
5464f5a1
NN
12974 cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
7ee38065
MS
12980
12981#define _SYSCALL32
252b5132 12982#include <sys/procfs.h>
5464f5a1
NN
12983int
12984main ()
12985{
252b5132 12986prpsinfo_t avar
5464f5a1
NN
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991rm -f conftest.$ac_objext
12992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
49c96104
SE
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
5464f5a1
NN
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
252b5132
RH
13013 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
13014else
5464f5a1
NN
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13019
252b5132 13020fi
5464f5a1 13021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13022fi
13023
13024 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
13025
13026cat >>confdefs.h <<\_ACEOF
252b5132 13027#define HAVE_PRPSINFO_T 1
5464f5a1 13028_ACEOF
252b5132
RH
13029
13030 fi
5464f5a1
NN
13031 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13032echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 13033
5464f5a1
NN
13034 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13035echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
13036 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 13038else
5464f5a1
NN
13039 cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
7ee38065
MS
13045
13046#define _SYSCALL32
13047#include <sys/procfs.h>
5464f5a1
NN
13048int
13049main ()
13050{
7ee38065 13051prpsinfo32_t avar
5464f5a1
NN
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056rm -f conftest.$ac_objext
13057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
49c96104
SE
13065 { ac_try='test -z "$ac_c_werror_flag"
13066 || test ! -s conftest.err'
5464f5a1
NN
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest.$ac_objext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
7ee38065
MS
13078 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
13079else
5464f5a1
NN
13080 echo "$as_me: failed program was:" >&5
13081sed 's/^/| /' conftest.$ac_ext >&5
13082
13083bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13084
7ee38065 13085fi
5464f5a1 13086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
13087fi
13088
13089 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
13090
13091cat >>confdefs.h <<\_ACEOF
7ee38065 13092#define HAVE_PRPSINFO32_T 1
5464f5a1 13093_ACEOF
7ee38065
MS
13094
13095 fi
5464f5a1
NN
13096 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13097echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 13098
5464f5a1
NN
13099 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13100echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
13101 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13103else
5464f5a1
NN
13104 cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
7ee38065
MS
13110
13111#define _SYSCALL32
252b5132 13112#include <sys/procfs.h>
5464f5a1
NN
13113int
13114main ()
13115{
252b5132 13116psinfo_t avar
5464f5a1
NN
13117 ;
13118 return 0;
13119}
13120_ACEOF
13121rm -f conftest.$ac_objext
13122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
49c96104
SE
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
5464f5a1
NN
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
252b5132
RH
13143 bfd_cv_have_sys_procfs_type_psinfo_t=yes
13144else
5464f5a1
NN
13145 echo "$as_me: failed program was:" >&5
13146sed 's/^/| /' conftest.$ac_ext >&5
13147
13148bfd_cv_have_sys_procfs_type_psinfo_t=no
13149
252b5132 13150fi
5464f5a1 13151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13152fi
13153
13154 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
13155
13156cat >>confdefs.h <<\_ACEOF
252b5132 13157#define HAVE_PSINFO_T 1
5464f5a1 13158_ACEOF
252b5132
RH
13159
13160 fi
5464f5a1
NN
13161 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13162echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 13163
5464f5a1
NN
13164 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13165echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
13166 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 13168else
5464f5a1
NN
13169 cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
13174/* end confdefs.h. */
7ee38065
MS
13175
13176#define _SYSCALL32
13177#include <sys/procfs.h>
5464f5a1
NN
13178int
13179main ()
13180{
7ee38065 13181psinfo32_t avar
5464f5a1
NN
13182 ;
13183 return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext
13187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
49c96104
SE
13195 { ac_try='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
5464f5a1
NN
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
7ee38065
MS
13208 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
13209else
5464f5a1
NN
13210 echo "$as_me: failed program was:" >&5
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
13213bfd_cv_have_sys_procfs_type_psinfo32_t=no
13214
7ee38065 13215fi
5464f5a1 13216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
13217fi
13218
13219 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
13220
13221cat >>confdefs.h <<\_ACEOF
7ee38065 13222#define HAVE_PSINFO32_T 1
5464f5a1 13223_ACEOF
7ee38065
MS
13224
13225 fi
5464f5a1
NN
13226 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13227echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 13228
5464f5a1
NN
13229 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13230echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
13231 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13233else
5464f5a1
NN
13234 cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
7ee38065
MS
13240
13241#define _SYSCALL32
252b5132 13242#include <sys/procfs.h>
5464f5a1
NN
13243int
13244main ()
13245{
252b5132 13246lwpstatus_t avar
5464f5a1
NN
13247 ;
13248 return 0;
13249}
13250_ACEOF
13251rm -f conftest.$ac_objext
13252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13253 (eval $ac_compile) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
49c96104
SE
13260 { ac_try='test -z "$ac_c_werror_flag"
13261 || test ! -s conftest.err'
5464f5a1
NN
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; } &&
13267 { ac_try='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
252b5132
RH
13273 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
13274else
5464f5a1
NN
13275 echo "$as_me: failed program was:" >&5
13276sed 's/^/| /' conftest.$ac_ext >&5
13277
13278bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13279
252b5132 13280fi
5464f5a1 13281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13282fi
13283
13284 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
13285
13286cat >>confdefs.h <<\_ACEOF
252b5132 13287#define HAVE_LWPSTATUS_T 1
5464f5a1 13288_ACEOF
252b5132
RH
13289
13290 fi
5464f5a1
NN
13291 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13292echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 13293
5464f5a1
NN
13294 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13295echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
13296 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 13298else
5464f5a1
NN
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
f572a39d
AM
13305
13306#define _SYSCALL32
13307#include <sys/procfs.h>
5464f5a1
NN
13308int
13309main ()
13310{
f572a39d 13311lwpxstatus_t avar
5464f5a1
NN
13312 ;
13313 return 0;
13314}
13315_ACEOF
13316rm -f conftest.$ac_objext
13317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>conftest.er1
13319 ac_status=$?
13320 grep -v '^ *+' conftest.er1 >conftest.err
13321 rm -f conftest.er1
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
49c96104
SE
13325 { ac_try='test -z "$ac_c_werror_flag"
13326 || test ! -s conftest.err'
5464f5a1
NN
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
f572a39d
AM
13338 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
13339else
5464f5a1
NN
13340 echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
13343bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13344
f572a39d 13345fi
5464f5a1 13346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
13347fi
13348
13349 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
13350
13351cat >>confdefs.h <<\_ACEOF
f572a39d 13352#define HAVE_LWPXSTATUS_T 1
5464f5a1 13353_ACEOF
f572a39d
AM
13354
13355 fi
5464f5a1
NN
13356 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13357echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 13358
5464f5a1
NN
13359 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13360echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
13361 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13363else
5464f5a1
NN
13364 cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
7ee38065
MS
13370
13371#define _SYSCALL32
252b5132 13372#include <sys/procfs.h>
5464f5a1
NN
13373int
13374main ()
13375{
252b5132 13376lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
13377 ;
13378 return 0;
13379}
13380_ACEOF
13381rm -f conftest.$ac_objext
13382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383 (eval $ac_compile) 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
49c96104
SE
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
5464f5a1
NN
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
252b5132
RH
13403 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
13404else
5464f5a1
NN
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13409
252b5132 13410fi
5464f5a1 13411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13412fi
13413
13414 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
13415
13416cat >>confdefs.h <<\_ACEOF
252b5132 13417#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 13418_ACEOF
252b5132
RH
13419
13420 fi
5464f5a1
NN
13421 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13422echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 13423
5464f5a1
NN
13424 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13425echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
13426 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13428else
5464f5a1
NN
13429 cat >conftest.$ac_ext <<_ACEOF
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
7ee38065
MS
13435
13436#define _SYSCALL32
252b5132 13437#include <sys/procfs.h>
5464f5a1
NN
13438int
13439main ()
13440{
252b5132 13441lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
13442 ;
13443 return 0;
13444}
13445_ACEOF
13446rm -f conftest.$ac_objext
13447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
49c96104
SE
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
5464f5a1
NN
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
252b5132
RH
13468 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
13469else
5464f5a1
NN
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13474
252b5132 13475fi
5464f5a1 13476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13477fi
13478
13479 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
13480
13481cat >>confdefs.h <<\_ACEOF
252b5132 13482#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 13483_ACEOF
252b5132
RH
13484
13485 fi
5464f5a1
NN
13486 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13487echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 13488
5464f5a1
NN
13489 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13490echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
13491 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 13493else
5464f5a1
NN
13494 cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
7ee38065
MS
13500
13501#define _SYSCALL32
e3c976c4 13502#include <sys/procfs.h>
5464f5a1
NN
13503int
13504main ()
13505{
e3c976c4 13506win32_pstatus_t avar
5464f5a1
NN
13507 ;
13508 return 0;
13509}
13510_ACEOF
13511rm -f conftest.$ac_objext
13512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
49c96104
SE
13520 { ac_try='test -z "$ac_c_werror_flag"
13521 || test ! -s conftest.err'
5464f5a1
NN
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
e3c976c4
ILT
13533 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
13534else
5464f5a1
NN
13535 echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
13538bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13539
e3c976c4 13540fi
5464f5a1 13541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13542fi
13543
e3c976c4 13544 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
13545
13546cat >>confdefs.h <<\_ACEOF
e3c976c4 13547#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 13548_ACEOF
16e9c715
NC
13549
13550 fi
5464f5a1
NN
13551 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13552echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
13553
13554 fi
13555fi
16e9c715 13556
b3baf5d0 13557
6be7c12c 13558if test -n "$TRAD_HEADER"; then
5464f5a1
NN
13559
13560cat >>confdefs.h <<_ACEOF
252b5132 13561#define TRAD_HEADER $TRAD_HEADER
5464f5a1 13562_ACEOF
252b5132 13563
3f9b03b5 13564fi
252b5132
RH
13565
13566# Horrible hacks to build DLLs on Windows.
13567WIN32LDFLAGS=
13568WIN32LIBADD=
13569case "${host}" in
13570*-*-cygwin*)
13571 if test "$enable_shared" = "yes"; then
13572 WIN32LDFLAGS="-no-undefined"
13573 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
13574 fi
13575 ;;
78be1d6e 13576*-*-linux*)
39691762
L
13577 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
13578 # libiberty.a.
ca51bfff
L
13579 case "${host}" in
13580 mips*-*-linux*)
13581 # Linux/MIPS uses PIC by default.
13582 if test "$enable_shared" = "yes"; then
13583 WIN32LIBADD="-L../libiberty -liberty"
13584 fi
13585 ;;
13586 *)
66e25bab 13587 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 13588 if test -n "$x"; then
ca51bfff
L
13589 WIN32LIBADD="-L../libiberty/pic -liberty"
13590 fi
13591 ;;
13592 esac
39691762 13593 ;;
252b5132
RH
13594esac
13595
6be7c12c
AO
13596
13597
252b5132
RH
13598# target stuff:
13599
13600# Canonicalize the secondary target names.
13601if test -n "$enable_targets" ; then
13602 for targ in `echo $enable_targets | sed 's/,/ /g'`
13603 do
6d83c84b 13604 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13605 if test -n "$result" ; then
13606 canon_targets="$canon_targets $result"
13607 else
13608 # Allow targets that config.sub doesn't recognize, like "all".
13609 canon_targets="$canon_targets $targ"
13610 fi
13611 done
13612fi
13613
13614all_targets=false
13615defvec=
13616selvecs=
08f74004 13617assocvecs=
252b5132
RH
13618selarchs=
13619TDEFINES=
13620for targ in $target $canon_targets
13621do
13622 if test "x$targ" = "xall"; then
13623 all_targets=true
08f74004 13624 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
13625 else
13626 . $srcdir/config.bfd
13627 if test "x$targ" = "x$target"; then
13628 defvec=$targ_defvec
13629 fi
13630 selvecs="$selvecs $targ_defvec $targ_selvecs"
13631 selarchs="$selarchs $targ_archs"
13632 TDEFINES="$TDEFINES $targ_cflags"
13633 fi
13634done
13635
6be7c12c 13636
252b5132
RH
13637# This processing still needs to be done if we're to decide properly whether
13638# 64-bit support needs to be compiled in. Currently, it will be included if
13639# the default or any other explicitly requested target requires it; it
13640# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 13641# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
13642# used.
13643
13644# uniq the default and selected vectors in all the configured targets.
13645f=""
13646for i in $selvecs ; do
13647 case " $f " in
13648 *" $i "*) ;;
13649 *) f="$f $i" ;;
13650 esac
13651done
13652selvecs="$f"
13653
6be7c12c 13654
08f74004
AM
13655# uniq the associated vectors in all the configured targets.
13656f=""
13657for i in $assocvecs ; do
13658 case " $f " in
13659 *" $i "*) ;;
13660 *) f="$f $i" ;;
13661 esac
13662done
13663assocvecs="$f"
13664
13665
252b5132
RH
13666# uniq the architectures in all the configured targets.
13667f=""
13668for i in $selarchs ; do
13669 case " $f " in
13670 *" $i "*) ;;
13671 *) f="$f $i" ;;
13672 esac
13673done
13674selarchs="$f"
13675
13676# Target backend .o files.
13677tb=
13678
65765700 13679elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
13680
13681for vec in $selvecs
13682do
69263e90 13683 target_size=32
252b5132
RH
13684 case "$vec" in
13685 # This list is alphabetized to make it easy to compare
dc810e39
AM
13686 # with the two vector lists in targets.c. For the same reason,
13687 # use one entry per line, even though this leads to long lines.
252b5132 13688 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 13689 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
13690 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13691 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13692 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 13693 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
13694 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13695 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13696 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13697 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
13698 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
13699 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
13700 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
13701 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
13702 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13703 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13704 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13705 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13706 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13707 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13708 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
13709 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13710 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 13711 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 13712 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 13713 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 13714 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 13715 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 13716 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 13717 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 13718 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 13719 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 13720 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 13721 bfd_elf32_bigarm_symbian_vec)
00a97672 13722 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 13723 bfd_elf32_bigarm_vxworks_vec)
00a97672 13724 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
13725 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13726 bfd_elf32_bigmips_vxworks_vec)
13727 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 13728 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 13729 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 13730 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
13731 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13732 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 13733 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 13734 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 13735 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 13736 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 13737 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 13738 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 13739 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 13740 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 13741 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
13742 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13743 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13744 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 13745 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 13746 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 13747 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 13748 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 13749 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 13750 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 13751 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 13752 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 13753 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 13754 bfd_elf32_littlearm_symbian_vec)
00a97672 13755 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 13756 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
13757 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13758 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
13759 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13760 bfd_elf32_littlemips_vxworks_vec)
13761 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 13762 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 13763 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
13764 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13765 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13766 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
13767 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13768 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
13769 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13770 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13771 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13772 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
13773 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13774 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
13775 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13776 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 13777 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 13778 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
13779 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13780 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13781 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13782 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 13783 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 13784 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
13785 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13786 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
13787 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13788 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13789 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 13790 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
13791 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
13792 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
13793 # FIXME: We include cofflink.lo not because it's needed for
13794 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13795 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
13796 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13797 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13798 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13799 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13800 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
13801 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
13802 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13803 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13804 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13805 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13806 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13807 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13808 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 13809 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 13810 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
13811 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13812 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 13813 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
13814 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13815 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 13816 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 13817 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 13818 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 13819 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 13820 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
13821 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13822 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 13823 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
13824 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13825 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 13826 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
13827 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13828 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 13829 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 13830 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
13831 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13832 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 13833 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 13834 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
13835 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13836 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13837 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
13838 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13839 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
13840 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13841 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13842 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13843 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 13844 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 13845 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
13846 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13847 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
9d7cbccd 13848 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 13849 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 13850 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
13851 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13852 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13853 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13854 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 13855 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 13856 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 13857 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 13858 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
13859 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13860 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
13861 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13862 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13863 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13864 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13865 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13866 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13867 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13868 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13869 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13870 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 13871 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
13872 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13873 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
13874 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13875 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13876 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13877 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 13878 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
13879 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13880 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
13881 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13882 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
13883 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
13884 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
13885 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13886 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13887 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13888 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
13889 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13890 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
13891 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13892 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13893 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 13894 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
13895 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13896 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 13897 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 13898 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 13899 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
13900 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13901 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13902 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
13903 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13904 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13905 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13906 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
13907 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13908 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 13909 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 13910 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 13911 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 13912 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 13913 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 13914 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 13915 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 13916 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
13917 pef_vec) tb="$tb pef.lo" ;;
13918 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 13919 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 13920 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 13921 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 13922 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 13923 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 13924 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 13925 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 13926 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 13927 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 13928 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
13929 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13930 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 13931 som_vec) tb="$tb som.lo" ;;
dc810e39 13932 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
13933 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13934 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13935 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13936 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13937 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 13938 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 13939 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
13940 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13941 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
13942 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13943 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13944 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13945 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13946 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13947 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 13948 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13949 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13950 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13951 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13952 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13953 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 13954 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 13955 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 13956 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 13957 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 13958 versados_vec) tb="$tb versados.lo" ;;
dc810e39 13959 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
13960 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13961 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13962 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 13963 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 13964 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 13965
341ca622
AM
13966 # These appear out of order in targets.c
13967 srec_vec) tb="$tb srec.lo" ;;
13968 symbolsrec_vec) tb="$tb srec.lo" ;;
13969 tekhex_vec) tb="$tb tekhex.lo" ;;
13970 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13971 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13972
252b5132 13973 "") ;;
5464f5a1
NN
13974 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13975echo "$as_me: error: *** unknown target vector $vec" >&2;}
13976 { (exit 1); exit 1; }; } ;;
252b5132 13977 esac
69263e90
AM
13978
13979 if test ${target_size} = 64; then
13980 target64=true
13981 fi
13982 if test x"${vec}" = x"${defvec}"; then
13983 bfd_default_target_size=${target_size}
13984 fi
252b5132
RH
13985done
13986
13987# Target architecture .o files.
13988# A couple of CPUs use shorter file names to avoid problems on DOS
13989# filesystems.
d031aafb 13990ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
13991
13992# Weed out duplicate .o files.
13993f=""
13994for i in $tb ; do
13995 case " $f " in
13996 *" $i "*) ;;
13997 *) f="$f $i" ;;
13998 esac
13999done
14000tb="$f"
14001
14002f=""
14003for i in $ta ; do
14004 case " $f " in
14005 *" $i "*) ;;
14006 *) f="$f $i" ;;
14007 esac
14008done
14009ta="$f"
14010
14011bfd_backends="$tb"
14012bfd_machines="$ta"
14013
14014if test x${all_targets} = xtrue ; then
14015 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14016 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14017 selvecs=
14018 havevecs=
14019 selarchs=
08f74004
AM
14020 test -n "$assocvecs" &&
14021 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
14022else # all_targets is true
14023 # Only set these if they will be nonempty, for the clever echo.
14024 havevecs=
08f74004 14025 assocvecs=
252b5132
RH
14026 test -n "$selvecs" &&
14027 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14028 test -n "$selvecs" &&
14029 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14030 test -n "$selarchs" &&
14031 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14032fi # all_targets is true
14033
14034case ${host64}-${target64}-${want64} in
14035 *true*)
14036 wordsize=64
21e40a48 14037 bfd64_libs='$(BFD64_LIBS)'
252b5132 14038 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 14039 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
14040 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14041echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
14043echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 14044 fi
966abd70
HPN
14045 if test -n "$GCC" ; then
14046 bad_64bit_gcc=no;
5464f5a1
NN
14047 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
14048echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 14049 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
14050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
966abd70 14056:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 14057_ACEOF
966abd70 14058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 14059 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 14060 bad_64bit_gcc=yes;
5464f5a1
NN
14061 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14062echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 14063else
5464f5a1
NN
14064 echo "$as_me:$LINENO: result: no" >&5
14065echo "${ECHO_T}no" >&6
966abd70
HPN
14066fi
14067rm -f conftest*
14068
14069 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
14070 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
14071echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
14072 { (exit 1); exit 1; }; }
966abd70
HPN
14073 fi
14074 fi
252b5132
RH
14075 ;;
14076 false-false-false)
14077 wordsize=32
14078 all_backends='$(BFD32_BACKENDS)'
14079 ;;
14080esac
14081
6be7c12c
AO
14082
14083
14084
14085
14086
69263e90 14087
2858ef35 14088
1012372a
AC
14089# Determine the host dependant file_ptr a.k.a. off_t type. In order
14090# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
14091# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
14092# Hopefully a reasonable assumption since fseeko et.al. should be
14093# upward compatible.
5464f5a1
NN
14094
14095
14096
14097
2e6f4fae
DJ
14098
14099for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 14100do
5464f5a1
NN
14101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14102echo "$as_me:$LINENO: checking for $ac_func" >&5
14103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14104if eval "test \"\${$as_ac_var+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106else
2ba49b59
KC
14107 cat >conftest.$ac_ext <<_ACEOF
14108/* confdefs.h. */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
14112/* end confdefs.h. */
14113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14115#define $ac_func innocuous_$ac_func
14116
14117/* System header to define __stub macros and hopefully few prototypes,
14118 which can conflict with char $ac_func (); below.
14119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14120 <limits.h> exists even on freestanding compilers. */
14121
14122#ifdef __STDC__
14123# include <limits.h>
14124#else
14125# include <assert.h>
14126#endif
14127
14128#undef $ac_func
14129
14130/* Override any gcc2 internal prototype to avoid an error. */
14131#ifdef __cplusplus
14132extern "C"
14133{
14134#endif
14135/* We use char because int might match the return type of a gcc2
14136 builtin and then its argument prototype would still apply. */
14137char $ac_func ();
14138/* The GNU C library defines this for functions which it implements
14139 to always fail with ENOSYS. Some functions are actually named
14140 something starting with __ and the normal name is an alias. */
14141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14142choke me
14143#else
14144char (*f) () = $ac_func;
14145#endif
14146#ifdef __cplusplus
14147}
14148#endif
14149
14150int
14151main ()
14152{
14153return f != $ac_func;
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158rm -f conftest.$ac_objext conftest$ac_exeext
14159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14160 (eval $ac_link) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
49c96104
SE
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
2ba49b59
KC
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest$ac_exeext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 eval "$as_ac_var=yes"
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185eval "$as_ac_var=no"
14186fi
14187rm -f conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
14189fi
14190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14192if test `eval echo '${'$as_ac_var'}'` = yes; then
14193 cat >>confdefs.h <<_ACEOF
14194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14195_ACEOF
14196
14197fi
14198done
14199
14200if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
14201 echo "$as_me:$LINENO: checking for off_t" >&5
14202echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14203if test "${ac_cv_type_off_t+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205else
14206 cat >conftest.$ac_ext <<_ACEOF
14207/* confdefs.h. */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h. */
14212$ac_includes_default
14213int
14214main ()
14215{
14216if ((off_t *) 0)
14217 return 0;
14218if (sizeof (off_t))
14219 return 0;
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
49c96104
SE
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
2ba49b59
KC
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_type_off_t=yes
14247else
14248 echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
14251ac_cv_type_off_t=no
14252fi
14253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254fi
14255echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14256echo "${ECHO_T}$ac_cv_type_off_t" >&6
14257
14258echo "$as_me:$LINENO: checking size of off_t" >&5
14259echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
14260if test "${ac_cv_sizeof_off_t+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263 if test "$ac_cv_type_off_t" = yes; then
14264 # The cast to unsigned long works around a bug in the HP C Compiler
14265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14267 # This bug is HP SR number 8606223364.
14268 if test "$cross_compiling" = yes; then
14269 # Depending upon the size, compute the lo and hi bounds.
14270cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
14271/* confdefs.h. */
14272_ACEOF
14273cat confdefs.h >>conftest.$ac_ext
14274cat >>conftest.$ac_ext <<_ACEOF
14275/* end confdefs.h. */
2ba49b59
KC
14276$ac_includes_default
14277int
14278main ()
14279{
14280static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
14281test_array [0] = 0
5464f5a1 14282
2ba49b59
KC
14283 ;
14284 return 0;
14285}
14286_ACEOF
14287rm -f conftest.$ac_objext
14288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289 (eval $ac_compile) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
49c96104
SE
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
2ba49b59
KC
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_lo=0 ac_mid=0
14310 while :; do
14311 cat >conftest.$ac_ext <<_ACEOF
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
14317$ac_includes_default
14318int
14319main ()
14320{
14321static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14322test_array [0] = 0
5464f5a1 14323
2ba49b59
KC
14324 ;
14325 return 0;
14326}
14327_ACEOF
14328rm -f conftest.$ac_objext
14329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
49c96104
SE
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
2ba49b59
KC
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_hi=$ac_mid; break
14351else
14352 echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
1012372a 14354
2ba49b59
KC
14355ac_lo=`expr $ac_mid + 1`
14356 if test $ac_lo -le $ac_mid; then
14357 ac_lo= ac_hi=
14358 break
14359 fi
14360 ac_mid=`expr 2 '*' $ac_mid + 1`
14361fi
14362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14363 done
14364else
14365 echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
1012372a 14367
2ba49b59
KC
14368cat >conftest.$ac_ext <<_ACEOF
14369/* confdefs.h. */
14370_ACEOF
14371cat confdefs.h >>conftest.$ac_ext
14372cat >>conftest.$ac_ext <<_ACEOF
14373/* end confdefs.h. */
14374$ac_includes_default
14375int
14376main ()
5464f5a1 14377{
2ba49b59
KC
14378static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
14379test_array [0] = 0
1012372a 14380
2ba49b59
KC
14381 ;
14382 return 0;
14383}
14384_ACEOF
14385rm -f conftest.$ac_objext
14386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>conftest.er1
14388 ac_status=$?
14389 grep -v '^ *+' conftest.er1 >conftest.err
14390 rm -f conftest.er1
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
49c96104
SE
14394 { ac_try='test -z "$ac_c_werror_flag"
14395 || test ! -s conftest.err'
2ba49b59
KC
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest.$ac_objext'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_hi=-1 ac_mid=-1
14408 while :; do
14409 cat >conftest.$ac_ext <<_ACEOF
14410/* confdefs.h. */
14411_ACEOF
14412cat confdefs.h >>conftest.$ac_ext
14413cat >>conftest.$ac_ext <<_ACEOF
14414/* end confdefs.h. */
14415$ac_includes_default
5464f5a1
NN
14416int
14417main ()
14418{
2ba49b59
KC
14419static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
14420test_array [0] = 0
14421
5464f5a1
NN
14422 ;
14423 return 0;
14424}
14425_ACEOF
2ba49b59
KC
14426rm -f conftest.$ac_objext
14427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
49c96104
SE
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
5464f5a1
NN
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
2ba49b59 14442 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
2ba49b59 14448 ac_lo=$ac_mid; break
5464f5a1
NN
14449else
14450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
2ba49b59
KC
14453ac_hi=`expr '(' $ac_mid ')' - 1`
14454 if test $ac_mid -le $ac_hi; then
14455 ac_lo= ac_hi=
14456 break
14457 fi
14458 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 14459fi
2ba49b59
KC
14460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14461 done
14462else
14463 echo "$as_me: failed program was:" >&5
14464sed 's/^/| /' conftest.$ac_ext >&5
1012372a 14465
2ba49b59 14466ac_lo= ac_hi=
1012372a 14467fi
2ba49b59
KC
14468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14469fi
14470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14471# Binary search between lo and hi bounds.
14472while test "x$ac_lo" != "x$ac_hi"; do
14473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
14474 cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
2ba49b59 14480$ac_includes_default
5464f5a1
NN
14481int
14482main ()
14483{
2ba49b59
KC
14484static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14485test_array [0] = 0
14486
5464f5a1
NN
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491rm -f conftest.$ac_objext
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
49c96104
SE
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
5464f5a1
NN
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
2ba49b59 14513 ac_hi=$ac_mid
1012372a 14514else
5464f5a1
NN
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
2ba49b59 14518ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 14519fi
5464f5a1 14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 14521done
2ba49b59
KC
14522case $ac_lo in
14523?*) ac_cv_sizeof_off_t=$ac_lo;;
14524'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14525See \`config.log' for more details." >&5
14526echo "$as_me: error: cannot compute sizeof (off_t), 77
14527See \`config.log' for more details." >&2;}
14528 { (exit 1); exit 1; }; } ;;
14529esac
14530else
14531 if test "$cross_compiling" = yes; then
49c96104
SE
14532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14533See \`config.log' for more details." >&5
14534echo "$as_me: error: cannot run test program while cross compiling
14535See \`config.log' for more details." >&2;}
2ba49b59
KC
14536 { (exit 1); exit 1; }; }
14537else
14538 cat >conftest.$ac_ext <<_ACEOF
14539/* confdefs.h. */
14540_ACEOF
14541cat confdefs.h >>conftest.$ac_ext
14542cat >>conftest.$ac_ext <<_ACEOF
14543/* end confdefs.h. */
14544$ac_includes_default
14545long longval () { return (long) (sizeof (off_t)); }
14546unsigned long ulongval () { return (long) (sizeof (off_t)); }
14547#include <stdio.h>
14548#include <stdlib.h>
14549int
14550main ()
14551{
1012372a 14552
2ba49b59
KC
14553 FILE *f = fopen ("conftest.val", "w");
14554 if (! f)
14555 exit (1);
14556 if (((long) (sizeof (off_t))) < 0)
14557 {
14558 long i = longval ();
14559 if (i != ((long) (sizeof (off_t))))
14560 exit (1);
14561 fprintf (f, "%ld\n", i);
14562 }
14563 else
14564 {
14565 unsigned long i = ulongval ();
14566 if (i != ((long) (sizeof (off_t))))
14567 exit (1);
14568 fprintf (f, "%lu\n", i);
14569 }
14570 exit (ferror (f) || fclose (f) != 0);
14571
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576rm -f conftest$ac_exeext
14577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_cv_sizeof_off_t=`cat conftest.val`
14588else
14589 echo "$as_me: program exited with status $ac_status" >&5
14590echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
1012372a 14592
2ba49b59
KC
14593( exit $ac_status )
14594{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14595See \`config.log' for more details." >&5
14596echo "$as_me: error: cannot compute sizeof (off_t), 77
14597See \`config.log' for more details." >&2;}
5464f5a1 14598 { (exit 1); exit 1; }; }
1012372a 14599fi
2ba49b59
KC
14600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14601fi
14602fi
14603rm -f conftest.val
14604else
14605 ac_cv_sizeof_off_t=0
14606fi
14607fi
5464f5a1
NN
14608echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14609echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 14610cat >>confdefs.h <<_ACEOF
1012372a 14611#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 14612_ACEOF
1012372a
AC
14613
14614
1012372a 14615fi
5464f5a1
NN
14616echo "$as_me:$LINENO: checking file_ptr type" >&5
14617echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
14618bfd_file_ptr="long"
14619bfd_ufile_ptr="unsigned long"
14620if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14621 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
14622 bfd_file_ptr=BFD_HOST_64_BIT
14623 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14624fi
5464f5a1
NN
14625echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14626echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
14627
14628
14629
14630
252b5132
RH
14631tdefaults=""
14632test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14633test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 14634test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
14635test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14636test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
14637
6be7c12c 14638
5464f5a1
NN
14639
14640
14641for ac_header in stdlib.h unistd.h
252b5132 14642do
5464f5a1
NN
14643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14644if eval "test \"\${$as_ac_Header+set}\" = set"; then
14645 echo "$as_me:$LINENO: checking for $ac_header" >&5
14646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14647if eval "test \"\${$as_ac_Header+set}\" = set"; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649fi
14650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14652else
14653 # Is the header compilable?
14654echo "$as_me:$LINENO: checking $ac_header usability" >&5
14655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14656cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662$ac_includes_default
14663#include <$ac_header>
14664_ACEOF
14665rm -f conftest.$ac_objext
14666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
49c96104
SE
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
5464f5a1
NN
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_header_compiler=yes
14688else
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692ac_header_compiler=no
14693fi
14694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14696echo "${ECHO_T}$ac_header_compiler" >&6
14697
14698# Is the header present?
14699echo "$as_me:$LINENO: checking $ac_header presence" >&5
14700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14701cat >conftest.$ac_ext <<_ACEOF
14702/* confdefs.h. */
14703_ACEOF
14704cat confdefs.h >>conftest.$ac_ext
14705cat >>conftest.$ac_ext <<_ACEOF
14706/* end confdefs.h. */
14707#include <$ac_header>
14708_ACEOF
14709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } >/dev/null; then
14717 if test -s conftest.err; then
14718 ac_cpp_err=$ac_c_preproc_warn_flag
14719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14720 else
14721 ac_cpp_err=
14722 fi
252b5132 14723else
5464f5a1 14724 ac_cpp_err=yes
252b5132 14725fi
5464f5a1
NN
14726if test -z "$ac_cpp_err"; then
14727 ac_header_preproc=yes
14728else
14729 echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ac_header_preproc=no
252b5132 14733fi
5464f5a1
NN
14734rm -f conftest.err conftest.$ac_ext
14735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14736echo "${ECHO_T}$ac_header_preproc" >&6
14737
14738# So? What about this header?
14739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14740 yes:no: )
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14745 ac_header_preproc=yes
14746 ;;
14747 no:yes:* )
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14760 (
14761 cat <<\_ASBOX
14762## ------------------------------------------ ##
14763## Report this to the AC_PACKAGE_NAME lists. ##
14764## ------------------------------------------ ##
14765_ASBOX
14766 ) |
14767 sed "s/^/$as_me: WARNING: /" >&2
14768 ;;
14769esac
14770echo "$as_me:$LINENO: checking for $ac_header" >&5
14771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14772if eval "test \"\${$as_ac_Header+set}\" = set"; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 14774else
5464f5a1
NN
14775 eval "$as_ac_Header=\$ac_header_preproc"
14776fi
14777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14779
14780fi
14781if test `eval echo '${'$as_ac_Header'}'` = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14784_ACEOF
14785
252b5132 14786fi
5464f5a1 14787
252b5132
RH
14788done
14789
5464f5a1 14790
252b5132
RH
14791for ac_func in getpagesize
14792do
5464f5a1
NN
14793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794echo "$as_me:$LINENO: checking for $ac_func" >&5
14795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14796if eval "test \"\${$as_ac_var+set}\" = set"; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798else
14799 cat >conftest.$ac_ext <<_ACEOF
14800/* confdefs.h. */
14801_ACEOF
14802cat confdefs.h >>conftest.$ac_ext
14803cat >>conftest.$ac_ext <<_ACEOF
14804/* end confdefs.h. */
14805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807#define $ac_func innocuous_$ac_func
14808
252b5132 14809/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
14810 which can conflict with char $ac_func (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14813
14814#ifdef __STDC__
14815# include <limits.h>
14816#else
14817# include <assert.h>
14818#endif
6be7c12c 14819
5464f5a1 14820#undef $ac_func
252b5132 14821
5464f5a1
NN
14822/* Override any gcc2 internal prototype to avoid an error. */
14823#ifdef __cplusplus
14824extern "C"
14825{
14826#endif
14827/* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14829char $ac_func ();
252b5132
RH
14830/* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14834choke me
14835#else
5464f5a1
NN
14836char (*f) () = $ac_func;
14837#endif
14838#ifdef __cplusplus
14839}
252b5132
RH
14840#endif
14841
5464f5a1
NN
14842int
14843main ()
14844{
14845return f != $ac_func;
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850rm -f conftest.$ac_objext conftest$ac_exeext
14851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
49c96104
SE
14859 { ac_try='test -z "$ac_c_werror_flag"
14860 || test ! -s conftest.err'
5464f5a1
NN
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 eval "$as_ac_var=yes"
14873else
14874 echo "$as_me: failed program was:" >&5
14875sed 's/^/| /' conftest.$ac_ext >&5
14876
14877eval "$as_ac_var=no"
14878fi
14879rm -f conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881fi
14882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14884if test `eval echo '${'$as_ac_var'}'` = yes; then
14885 cat >>confdefs.h <<_ACEOF
14886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14887_ACEOF
252b5132 14888
252b5132
RH
14889fi
14890done
14891
5464f5a1
NN
14892echo "$as_me:$LINENO: checking for working mmap" >&5
14893echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14894if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
14896else
14897 if test "$cross_compiling" = yes; then
14898 ac_cv_func_mmap_fixed_mapped=no
14899else
5464f5a1
NN
14900 cat >conftest.$ac_ext <<_ACEOF
14901/* confdefs.h. */
14902_ACEOF
14903cat confdefs.h >>conftest.$ac_ext
14904cat >>conftest.$ac_ext <<_ACEOF
14905/* end confdefs.h. */
14906$ac_includes_default
14907/* malloc might have been renamed as rpl_malloc. */
14908#undef malloc
6be7c12c 14909
252b5132
RH
14910/* Thanks to Mike Haertel and Jim Avera for this test.
14911 Here is a matrix of mmap possibilities:
14912 mmap private not fixed
14913 mmap private fixed at somewhere currently unmapped
14914 mmap private fixed at somewhere already mapped
14915 mmap shared not fixed
14916 mmap shared fixed at somewhere currently unmapped
14917 mmap shared fixed at somewhere already mapped
14918 For private mappings, we should verify that changes cannot be read()
14919 back from the file, nor mmap's back from the file at a different
14920 address. (There have been systems where private was not correctly
14921 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 14922 VM page cache was not coherent with the file system buffer cache
252b5132
RH
14923 like early versions of FreeBSD and possibly contemporary NetBSD.)
14924 For shared mappings, we should conversely verify that changes get
5464f5a1 14925 propagated back to all the places they're supposed to be.
252b5132
RH
14926
14927 Grep wants private fixed already mapped.
14928 The main things grep needs to know about mmap are:
14929 * does it exist and is it safe to write into the mmap'd area
14930 * how to use it (BSD variants) */
5464f5a1 14931
252b5132
RH
14932#include <fcntl.h>
14933#include <sys/mman.h>
14934
5464f5a1
NN
14935#if !STDC_HEADERS && !HAVE_STDLIB_H
14936char *malloc ();
14937#endif
6be7c12c 14938
5464f5a1
NN
14939/* This mess was copied from the GNU getpagesize.h. */
14940#if !HAVE_GETPAGESIZE
252b5132 14941/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 14942# if !HAVE_SYS_PARAM_H
252b5132
RH
14943# define HAVE_SYS_PARAM_H 1
14944# endif
14945
14946# ifdef _SC_PAGESIZE
14947# define getpagesize() sysconf(_SC_PAGESIZE)
14948# else /* no _SC_PAGESIZE */
5464f5a1 14949# if HAVE_SYS_PARAM_H
252b5132
RH
14950# include <sys/param.h>
14951# ifdef EXEC_PAGESIZE
14952# define getpagesize() EXEC_PAGESIZE
14953# else /* no EXEC_PAGESIZE */
14954# ifdef NBPG
14955# define getpagesize() NBPG * CLSIZE
14956# ifndef CLSIZE
14957# define CLSIZE 1
14958# endif /* no CLSIZE */
14959# else /* no NBPG */
14960# ifdef NBPC
14961# define getpagesize() NBPC
14962# else /* no NBPC */
14963# ifdef PAGESIZE
14964# define getpagesize() PAGESIZE
14965# endif /* PAGESIZE */
14966# endif /* no NBPC */
14967# endif /* no NBPG */
14968# endif /* no EXEC_PAGESIZE */
14969# else /* no HAVE_SYS_PARAM_H */
14970# define getpagesize() 8192 /* punt totally */
14971# endif /* no HAVE_SYS_PARAM_H */
14972# endif /* no _SC_PAGESIZE */
14973
5464f5a1
NN
14974#endif /* no HAVE_GETPAGESIZE */
14975
14976int
14977main ()
14978{
14979 char *data, *data2, *data3;
14980 int i, pagesize;
14981 int fd;
14982
14983 pagesize = getpagesize ();
14984
14985 /* First, make a file with some known garbage in it. */
14986 data = (char *) malloc (pagesize);
14987 if (!data)
14988 exit (1);
14989 for (i = 0; i < pagesize; ++i)
14990 *(data + i) = rand ();
14991 umask (0);
14992 fd = creat ("conftest.mmap", 0600);
14993 if (fd < 0)
14994 exit (1);
14995 if (write (fd, data, pagesize) != pagesize)
14996 exit (1);
14997 close (fd);
14998
14999 /* Next, try to mmap the file at a fixed address which already has
15000 something else allocated at it. If we can, also make sure that
15001 we see the same garbage. */
15002 fd = open ("conftest.mmap", O_RDWR);
15003 if (fd < 0)
15004 exit (1);
15005 data2 = (char *) malloc (2 * pagesize);
15006 if (!data2)
15007 exit (1);
15008 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15009 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15011 exit (1);
15012 for (i = 0; i < pagesize; ++i)
15013 if (*(data + i) != *(data2 + i))
15014 exit (1);
15015
15016 /* Finally, make sure that changes to the mapped area do not
15017 percolate back to the file as seen by read(). (This is a bug on
15018 some variants of i386 svr4.0.) */
15019 for (i = 0; i < pagesize; ++i)
15020 *(data2 + i) = *(data2 + i) + 1;
15021 data3 = (char *) malloc (pagesize);
15022 if (!data3)
15023 exit (1);
15024 if (read (fd, data3, pagesize) != pagesize)
15025 exit (1);
15026 for (i = 0; i < pagesize; ++i)
15027 if (*(data + i) != *(data3 + i))
15028 exit (1);
15029 close (fd);
15030 exit (0);
15031}
15032_ACEOF
15033rm -f conftest$ac_exeext
15034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15035 (eval $ac_link) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_func_mmap_fixed_mapped=yes
15045else
15046 echo "$as_me: program exited with status $ac_status" >&5
15047echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
15050( exit $ac_status )
15051ac_cv_func_mmap_fixed_mapped=no
15052fi
15053rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15054fi
15055fi
15056echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15057echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15058if test $ac_cv_func_mmap_fixed_mapped = yes; then
15059
15060cat >>confdefs.h <<\_ACEOF
15061#define HAVE_MMAP 1
15062_ACEOF
15063
15064fi
15065rm -f conftest.mmap
15066
15067
15068
15069for ac_func in madvise mprotect
15070do
15071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15072echo "$as_me:$LINENO: checking for $ac_func" >&5
15073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15074if eval "test \"\${$as_ac_var+set}\" = set"; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15076else
15077 cat >conftest.$ac_ext <<_ACEOF
15078/* confdefs.h. */
15079_ACEOF
15080cat confdefs.h >>conftest.$ac_ext
15081cat >>conftest.$ac_ext <<_ACEOF
15082/* end confdefs.h. */
15083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15085#define $ac_func innocuous_$ac_func
15086
15087/* System header to define __stub macros and hopefully few prototypes,
15088 which can conflict with char $ac_func (); below.
15089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15090 <limits.h> exists even on freestanding compilers. */
15091
15092#ifdef __STDC__
15093# include <limits.h>
15094#else
15095# include <assert.h>
15096#endif
15097
15098#undef $ac_func
15099
15100/* Override any gcc2 internal prototype to avoid an error. */
15101#ifdef __cplusplus
15102extern "C"
15103{
15104#endif
15105/* We use char because int might match the return type of a gcc2
15106 builtin and then its argument prototype would still apply. */
15107char $ac_func ();
15108/* The GNU C library defines this for functions which it implements
15109 to always fail with ENOSYS. Some functions are actually named
15110 something starting with __ and the normal name is an alias. */
15111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15112choke me
15113#else
15114char (*f) () = $ac_func;
15115#endif
15116#ifdef __cplusplus
15117}
15118#endif
15119
15120int
15121main ()
15122{
15123return f != $ac_func;
15124 ;
15125 return 0;
15126}
15127_ACEOF
15128rm -f conftest.$ac_objext conftest$ac_exeext
15129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
49c96104
SE
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
5464f5a1
NN
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 eval "$as_ac_var=yes"
15151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155eval "$as_ac_var=no"
15156fi
15157rm -f conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15159fi
15160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15162if test `eval echo '${'$as_ac_var'}'` = yes; then
15163 cat >>confdefs.h <<_ACEOF
15164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15165_ACEOF
15166
15167fi
15168done
15169
15170case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15171 true+yes )
15172cat >>confdefs.h <<\_ACEOF
15173#define USE_MMAP 1
15174_ACEOF
15175 ;;
15176esac
15177
15178rm -f doc/config.status
15179 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15180
20e95c23 15181
5464f5a1
NN
15182 ac_config_commands="$ac_config_commands default"
15183
108a6f8e
CD
15184
15185
15186
15187
15188
5464f5a1
NN
15189cat >confcache <<\_ACEOF
15190# This file is a shell script that caches the results of configure
15191# tests run on this system so they can be shared between configure
15192# scripts and configure runs, see configure's option --config-cache.
15193# It is not useful on other systems. If it contains results you don't
15194# want to keep, you may remove or edit it.
15195#
15196# config.status only pays attention to the cache file if you give it
15197# the --recheck option to rerun configure.
15198#
15199# `ac_cv_env_foo' variables (set or unset) will be overridden when
15200# loading this file, other *unset* `ac_cv_foo' will be assigned the
15201# following values.
15202
15203_ACEOF
15204
15205# The following way of writing the cache mishandles newlines in values,
15206# but we know of no workaround that is simple, portable, and efficient.
15207# So, don't put newlines in cache variables' values.
15208# Ultrix sh set writes to stderr and can't be redirected directly,
15209# and sets the high bit in the cache file unless we assign to the vars.
15210{
15211 (set) 2>&1 |
15212 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15213 *ac_space=\ *)
15214 # `set' does not quote correctly, so add quotes (double-quote
15215 # substitution turns \\\\ into \\, and sed turns \\ into \).
15216 sed -n \
15217 "s/'/'\\\\''/g;
15218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15219 ;;
15220 *)
15221 # `set' quotes correctly as required by POSIX, so do not add quotes.
15222 sed -n \
15223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15224 ;;
15225 esac;
15226} |
15227 sed '
15228 t clear
15229 : clear
15230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15231 t end
15232 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15233 : end' >>confcache
15234if diff $cache_file confcache >/dev/null 2>&1; then :; else
15235 if test -w $cache_file; then
15236 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15237 cat confcache >$cache_file
15238 else
15239 echo "not updating unwritable cache $cache_file"
15240 fi
15241fi
15242rm -f confcache
15243
15244test "x$prefix" = xNONE && prefix=$ac_default_prefix
15245# Let make expand exec_prefix.
15246test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15247
15248# VPATH may cause trouble with some makes, so we remove $(srcdir),
15249# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15250# trailing colons and then remove the whole line if VPATH becomes empty
15251# (actually we leave an empty line to preserve line numbers).
15252if test "x$srcdir" = x.; then
15253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15254s/:*\$(srcdir):*/:/;
15255s/:*\${srcdir}:*/:/;
15256s/:*@srcdir@:*/:/;
15257s/^\([^=]*=[ ]*\):*/\1/;
15258s/:*$//;
15259s/^[^=]*=[ ]*$//;
15260}'
15261fi
15262
15263DEFS=-DHAVE_CONFIG_H
15264
15265ac_libobjs=
15266ac_ltlibobjs=
15267for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15268 # 1. Remove the extension, and $U if already installed.
15269 ac_i=`echo "$ac_i" |
15270 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15271 # 2. Add them.
15272 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15273 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15274done
15275LIBOBJS=$ac_libobjs
15276
15277LTLIBOBJS=$ac_ltlibobjs
15278
15279
f5385ebf
AM
15280if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15281 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15282Usually this means the macro was only invoked conditionally." >&5
15283echo "$as_me: error: conditional \"AMDEP\" was never defined.
15284Usually this means the macro was only invoked conditionally." >&2;}
15285 { (exit 1); exit 1; }; }
15286fi
15287if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15288 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15289Usually this means the macro was only invoked conditionally." >&5
15290echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15291Usually this means the macro was only invoked conditionally." >&2;}
15292 { (exit 1); exit 1; }; }
15293fi
15294if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15295 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15296Usually this means the macro was only invoked conditionally." >&5
15297echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15298Usually this means the macro was only invoked conditionally." >&2;}
15299 { (exit 1); exit 1; }; }
15300fi
d5fbea21
DJ
15301if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15302 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15303Usually this means the macro was only invoked conditionally." >&5
15304echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15305Usually this means the macro was only invoked conditionally." >&2;}
15306 { (exit 1); exit 1; }; }
15307fi
f5385ebf
AM
15308if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15309 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
15310Usually this means the macro was only invoked conditionally." >&5
15311echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
15312Usually this means the macro was only invoked conditionally." >&2;}
15313 { (exit 1); exit 1; }; }
15314fi
5464f5a1
NN
15315
15316: ${CONFIG_STATUS=./config.status}
15317ac_clean_files_save=$ac_clean_files
15318ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15319{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15320echo "$as_me: creating $CONFIG_STATUS" >&6;}
15321cat >$CONFIG_STATUS <<_ACEOF
15322#! $SHELL
15323# Generated by $as_me.
15324# Run this file to recreate the current configuration.
15325# Compiler output produced by configure, useful for debugging
15326# configure, is in config.log if it exists.
15327
15328debug=false
15329ac_cs_recheck=false
15330ac_cs_silent=false
15331SHELL=\${CONFIG_SHELL-$SHELL}
15332_ACEOF
15333
15334cat >>$CONFIG_STATUS <<\_ACEOF
15335## --------------------- ##
15336## M4sh Initialization. ##
15337## --------------------- ##
15338
15339# Be Bourne compatible
15340if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15341 emulate sh
15342 NULLCMD=:
15343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15344 # is contrary to our usage. Disable this feature.
15345 alias -g '${1+"$@"}'='"$@"'
15346elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15347 set -o posix
15348fi
15349DUALCASE=1; export DUALCASE # for MKS sh
15350
15351# Support unset when possible.
15352if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15353 as_unset=unset
15354else
15355 as_unset=false
15356fi
15357
15358
15359# Work around bugs in pre-3.0 UWIN ksh.
15360$as_unset ENV MAIL MAILPATH
15361PS1='$ '
15362PS2='> '
15363PS4='+ '
15364
15365# NLS nuisances.
15366for as_var in \
15367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15369 LC_TELEPHONE LC_TIME
15370do
15371 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15372 eval $as_var=C; export $as_var
15373 else
15374 $as_unset $as_var
15375 fi
15376done
15377
15378# Required to use basename.
15379if expr a : '\(a\)' >/dev/null 2>&1; then
15380 as_expr=expr
15381else
15382 as_expr=false
15383fi
15384
15385if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15386 as_basename=basename
15387else
15388 as_basename=false
15389fi
252b5132 15390
6be7c12c 15391
5464f5a1
NN
15392# Name of the executable.
15393as_me=`$as_basename "$0" ||
15394$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15395 X"$0" : 'X\(//\)$' \| \
15396 X"$0" : 'X\(/\)$' \| \
15397 . : '\(.\)' 2>/dev/null ||
15398echo X/"$0" |
15399 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15400 /^X\/\(\/\/\)$/{ s//\1/; q; }
15401 /^X\/\(\/\).*/{ s//\1/; q; }
15402 s/.*/./; q'`
15403
15404
15405# PATH needs CR, and LINENO needs CR and PATH.
15406# Avoid depending upon Character Ranges.
15407as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15408as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15409as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15410as_cr_digits='0123456789'
15411as_cr_alnum=$as_cr_Letters$as_cr_digits
15412
15413# The user is always right.
15414if test "${PATH_SEPARATOR+set}" != set; then
15415 echo "#! /bin/sh" >conf$$.sh
15416 echo "exit 0" >>conf$$.sh
15417 chmod +x conf$$.sh
15418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15419 PATH_SEPARATOR=';'
15420 else
15421 PATH_SEPARATOR=:
15422 fi
15423 rm -f conf$$.sh
15424fi
15425
15426
15427 as_lineno_1=$LINENO
15428 as_lineno_2=$LINENO
15429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15430 test "x$as_lineno_1" != "x$as_lineno_2" &&
15431 test "x$as_lineno_3" = "x$as_lineno_2" || {
15432 # Find who we are. Look in the path if we contain no path at all
15433 # relative or not.
15434 case $0 in
15435 *[\\/]* ) as_myself=$0 ;;
15436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437for as_dir in $PATH
15438do
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15442done
15443
15444 ;;
15445 esac
15446 # We did not find ourselves, most probably we were run as `sh COMMAND'
15447 # in which case we are not to be found in the path.
15448 if test "x$as_myself" = x; then
15449 as_myself=$0
15450 fi
15451 if test ! -f "$as_myself"; then
15452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15453echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15454 { (exit 1); exit 1; }; }
15455 fi
15456 case $CONFIG_SHELL in
15457 '')
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15460do
15461 IFS=$as_save_IFS
15462 test -z "$as_dir" && as_dir=.
15463 for as_base in sh bash ksh sh5; do
15464 case $as_dir in
15465 /*)
15466 if ("$as_dir/$as_base" -c '
15467 as_lineno_1=$LINENO
15468 as_lineno_2=$LINENO
15469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15470 test "x$as_lineno_1" != "x$as_lineno_2" &&
15471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15472 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15473 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15474 CONFIG_SHELL=$as_dir/$as_base
15475 export CONFIG_SHELL
15476 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15477 fi;;
15478 esac
15479 done
15480done
15481;;
15482 esac
15483
15484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15485 # uniformly replaced by the line number. The first 'sed' inserts a
15486 # line-number line before each line; the second 'sed' does the real
15487 # work. The second script uses 'N' to pair each line-number line
15488 # with the numbered line, and appends trailing '-' during
15489 # substitution so that $LINENO is not a special case at line end.
15490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15491 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15492 sed '=' <$as_myself |
15493 sed '
15494 N
15495 s,$,-,
15496 : loop
15497 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15498 t loop
15499 s,-$,,
15500 s,^['$as_cr_digits']*\n,,
15501 ' >$as_me.lineno &&
15502 chmod +x $as_me.lineno ||
15503 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15504echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15505 { (exit 1); exit 1; }; }
15506
15507 # Don't try to exec as it changes $[0], causing all sort of problems
15508 # (the dirname of $[0] is not the place where we might find the
15509 # original and so on. Autoconf is especially sensible to this).
15510 . ./$as_me.lineno
15511 # Exit status is that of the last command.
15512 exit
252b5132 15513}
6be7c12c 15514
5464f5a1
NN
15515
15516case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15517 *c*,-n*) ECHO_N= ECHO_C='
15518' ECHO_T=' ' ;;
15519 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15520 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15521esac
15522
15523if expr a : '\(a\)' >/dev/null 2>&1; then
15524 as_expr=expr
252b5132 15525else
5464f5a1 15526 as_expr=false
252b5132 15527fi
5464f5a1
NN
15528
15529rm -f conf$$ conf$$.exe conf$$.file
15530echo >conf$$.file
15531if ln -s conf$$.file conf$$ 2>/dev/null; then
15532 # We could just check for DJGPP; but this test a) works b) is more generic
15533 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15534 if test -f conf$$.exe; then
15535 # Don't use ln at all; we don't have any links
15536 as_ln_s='cp -p'
15537 else
15538 as_ln_s='ln -s'
15539 fi
15540elif ln conf$$.file conf$$ 2>/dev/null; then
15541 as_ln_s=ln
15542else
15543 as_ln_s='cp -p'
252b5132 15544fi
5464f5a1 15545rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 15546
5464f5a1
NN
15547if mkdir -p . 2>/dev/null; then
15548 as_mkdir_p=:
15549else
15550 test -d ./-p && rmdir ./-p
15551 as_mkdir_p=false
252b5132 15552fi
b3baf5d0 15553
5464f5a1 15554as_executable_p="test -f"
252b5132 15555
5464f5a1
NN
15556# Sed expression to map a string onto a valid CPP name.
15557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15558
5464f5a1
NN
15559# Sed expression to map a string onto a valid variable name.
15560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 15561
252b5132 15562
5464f5a1
NN
15563# IFS
15564# We need space, tab and new line, in precisely that order.
15565as_nl='
15566'
15567IFS=" $as_nl"
252b5132 15568
5464f5a1
NN
15569# CDPATH.
15570$as_unset CDPATH
15571
15572exec 6>&1
15573
15574# Open the log real soon, to keep \$[0] and so on meaningful, and to
15575# report actual input values of CONFIG_FILES etc. instead of their
15576# values after options handling. Logging --version etc. is OK.
15577exec 5>>config.log
15578{
15579 echo
15580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15581## Running $as_me. ##
15582_ASBOX
15583} >&5
15584cat >&5 <<_CSEOF
15585
15586This file was extended by $as_me, which was
15587generated by GNU Autoconf 2.59. Invocation command line was
15588
15589 CONFIG_FILES = $CONFIG_FILES
15590 CONFIG_HEADERS = $CONFIG_HEADERS
15591 CONFIG_LINKS = $CONFIG_LINKS
15592 CONFIG_COMMANDS = $CONFIG_COMMANDS
15593 $ $0 $@
15594
15595_CSEOF
15596echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15597echo >&5
15598_ACEOF
15599
15600# Files that config.status was made for.
15601if test -n "$ac_config_files"; then
15602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 15603fi
5464f5a1
NN
15604
15605if test -n "$ac_config_headers"; then
15606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 15607fi
252b5132 15608
5464f5a1
NN
15609if test -n "$ac_config_links"; then
15610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 15611fi
252b5132 15612
5464f5a1
NN
15613if test -n "$ac_config_commands"; then
15614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15615fi
252b5132 15616
5464f5a1
NN
15617cat >>$CONFIG_STATUS <<\_ACEOF
15618
15619ac_cs_usage="\
15620\`$as_me' instantiates files from templates according to the
15621current configuration.
15622
15623Usage: $0 [OPTIONS] [FILE]...
15624
15625 -h, --help print this help, then exit
15626 -V, --version print version number, then exit
15627 -q, --quiet do not print progress messages
15628 -d, --debug don't remove temporary files
15629 --recheck update $as_me by reconfiguring in the same conditions
15630 --file=FILE[:TEMPLATE]
15631 instantiate the configuration file FILE
15632 --header=FILE[:TEMPLATE]
15633 instantiate the configuration header FILE
15634
15635Configuration files:
15636$config_files
15637
15638Configuration headers:
15639$config_headers
15640
15641Configuration commands:
15642$config_commands
15643
15644Report bugs to <bug-autoconf@gnu.org>."
15645_ACEOF
15646
15647cat >>$CONFIG_STATUS <<_ACEOF
15648ac_cs_version="\\
15649config.status
15650configured by $0, generated by GNU Autoconf 2.59,
15651 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15652
15653Copyright (C) 2003 Free Software Foundation, Inc.
15654This config.status script is free software; the Free Software Foundation
15655gives unlimited permission to copy, distribute and modify it."
15656srcdir=$srcdir
15657INSTALL="$INSTALL"
15658_ACEOF
15659
15660cat >>$CONFIG_STATUS <<\_ACEOF
15661# If no file are specified by the user, then we need to provide default
15662# value. By we need to know if files were specified by the user.
15663ac_need_defaults=:
15664while test $# != 0
15665do
15666 case $1 in
15667 --*=*)
15668 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15669 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15670 ac_shift=:
6be7c12c 15671 ;;
5464f5a1
NN
15672 -*)
15673 ac_option=$1
15674 ac_optarg=$2
15675 ac_shift=shift
6be7c12c 15676 ;;
5464f5a1
NN
15677 *) # This is not an option, so the user has probably given explicit
15678 # arguments.
15679 ac_option=$1
15680 ac_need_defaults=false;;
15681 esac
252b5132 15682
5464f5a1
NN
15683 case $ac_option in
15684 # Handling of the options.
15685_ACEOF
15686cat >>$CONFIG_STATUS <<\_ACEOF
15687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15688 ac_cs_recheck=: ;;
15689 --version | --vers* | -V )
15690 echo "$ac_cs_version"; exit 0 ;;
15691 --he | --h)
15692 # Conflict between --help and --header
15693 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15694Try \`$0 --help' for more information." >&5
15695echo "$as_me: error: ambiguous option: $1
15696Try \`$0 --help' for more information." >&2;}
15697 { (exit 1); exit 1; }; };;
15698 --help | --hel | -h )
15699 echo "$ac_cs_usage"; exit 0 ;;
15700 --debug | --d* | -d )
15701 debug=: ;;
15702 --file | --fil | --fi | --f )
15703 $ac_shift
15704 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15705 ac_need_defaults=false;;
15706 --header | --heade | --head | --hea )
15707 $ac_shift
15708 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15709 ac_need_defaults=false;;
15710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15712 ac_cs_silent=: ;;
6be7c12c 15713
5464f5a1
NN
15714 # This is an error.
15715 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15716Try \`$0 --help' for more information." >&5
15717echo "$as_me: error: unrecognized option: $1
15718Try \`$0 --help' for more information." >&2;}
15719 { (exit 1); exit 1; }; } ;;
252b5132 15720
5464f5a1 15721 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 15722
5464f5a1
NN
15723 esac
15724 shift
15725done
6be7c12c 15726
5464f5a1 15727ac_configure_extra_args=
252b5132 15728
5464f5a1
NN
15729if $ac_cs_silent; then
15730 exec 6>/dev/null
15731 ac_configure_extra_args="$ac_configure_extra_args --silent"
15732fi
6be7c12c 15733
5464f5a1
NN
15734_ACEOF
15735cat >>$CONFIG_STATUS <<_ACEOF
15736if \$ac_cs_recheck; then
15737 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15738 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15739fi
15740
15741_ACEOF
15742
15743cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 15744#
5464f5a1 15745# INIT-COMMANDS section.
6be7c12c 15746#
b3baf5d0 15747
f5385ebf 15748AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
15749# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15750 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15751 # from automake.
15752 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15753 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15754 LINGUAS="${LINGUAS-%UNSET%}"
15755
5464f5a1 15756
d5efd9fc
AM
15757GCC="$GCC"
15758CC="$CC"
15759acx_cv_header_stdint="$acx_cv_header_stdint"
15760acx_cv_type_int8_t="$acx_cv_type_int8_t"
15761acx_cv_type_int16_t="$acx_cv_type_int16_t"
15762acx_cv_type_int32_t="$acx_cv_type_int32_t"
15763acx_cv_type_int64_t="$acx_cv_type_int64_t"
15764acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15765ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15766ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15767ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15768ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15769ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15770ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15771ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15772ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15773
15774
5464f5a1
NN
15775
15776_ACEOF
15777
15778
15779
15780cat >>$CONFIG_STATUS <<\_ACEOF
15781for ac_config_target in $ac_config_targets
252b5132 15782do
5464f5a1
NN
15783 case "$ac_config_target" in
15784 # Handling of arguments.
15785 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15786 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15787 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15788 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 15789 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 15790 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 15791 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
15792 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15793 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15794 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15795echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15796 { (exit 1); exit 1; }; };;
252b5132
RH
15797 esac
15798done
15799
5464f5a1
NN
15800# If the user did not use the arguments to specify the items to instantiate,
15801# then the envvar interface is used. Set only those that are not.
15802# We use the long form for the default assignment because of an extremely
15803# bizarre bug on SunOS 4.1.3.
15804if $ac_need_defaults; then
15805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15808fi
15809
15810# Have a temporary directory for convenience. Make it in the build tree
15811# simply because there is no reason to put it here, and in addition,
15812# creating and moving files from /tmp can sometimes cause problems.
15813# Create a temporary directory, and hook for its removal unless debugging.
15814$debug ||
15815{
15816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15817 trap '{ (exit 1); exit 1; }' 1 2 13 15
15818}
b3baf5d0 15819
5464f5a1 15820# Create a (secure) tmp directory for tmp files.
b3baf5d0 15821
5464f5a1
NN
15822{
15823 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15824 test -n "$tmp" && test -d "$tmp"
15825} ||
15826{
15827 tmp=./confstat$$-$RANDOM
15828 (umask 077 && mkdir $tmp)
15829} ||
15830{
15831 echo "$me: cannot create a temporary directory in ." >&2
15832 { (exit 1); exit 1; }
15833}
15834
15835_ACEOF
15836
15837cat >>$CONFIG_STATUS <<_ACEOF
15838
15839#
15840# CONFIG_FILES section.
15841#
b3baf5d0 15842
5464f5a1
NN
15843# No need to generate the scripts if there are no CONFIG_FILES.
15844# This happens for instance when ./config.status config.h
15845if test -n "\$CONFIG_FILES"; then
15846 # Protect against being on the right side of a sed subst in config.status.
15847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15849s,@SHELL@,$SHELL,;t t
15850s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15851s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15852s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15853s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15854s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15855s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15856s,@exec_prefix@,$exec_prefix,;t t
15857s,@prefix@,$prefix,;t t
15858s,@program_transform_name@,$program_transform_name,;t t
15859s,@bindir@,$bindir,;t t
15860s,@sbindir@,$sbindir,;t t
15861s,@libexecdir@,$libexecdir,;t t
15862s,@datadir@,$datadir,;t t
15863s,@sysconfdir@,$sysconfdir,;t t
15864s,@sharedstatedir@,$sharedstatedir,;t t
15865s,@localstatedir@,$localstatedir,;t t
15866s,@libdir@,$libdir,;t t
15867s,@includedir@,$includedir,;t t
15868s,@oldincludedir@,$oldincludedir,;t t
15869s,@infodir@,$infodir,;t t
15870s,@mandir@,$mandir,;t t
15871s,@build_alias@,$build_alias,;t t
15872s,@host_alias@,$host_alias,;t t
15873s,@target_alias@,$target_alias,;t t
15874s,@DEFS@,$DEFS,;t t
15875s,@ECHO_C@,$ECHO_C,;t t
15876s,@ECHO_N@,$ECHO_N,;t t
15877s,@ECHO_T@,$ECHO_T,;t t
15878s,@LIBS@,$LIBS,;t t
15879s,@build@,$build,;t t
15880s,@build_cpu@,$build_cpu,;t t
15881s,@build_vendor@,$build_vendor,;t t
15882s,@build_os@,$build_os,;t t
15883s,@host@,$host,;t t
15884s,@host_cpu@,$host_cpu,;t t
15885s,@host_vendor@,$host_vendor,;t t
15886s,@host_os@,$host_os,;t t
15887s,@target@,$target,;t t
15888s,@target_cpu@,$target_cpu,;t t
15889s,@target_vendor@,$target_vendor,;t t
15890s,@target_os@,$target_os,;t t
15891s,@CC@,$CC,;t t
15892s,@CFLAGS@,$CFLAGS,;t t
15893s,@LDFLAGS@,$LDFLAGS,;t t
15894s,@CPPFLAGS@,$CPPFLAGS,;t t
15895s,@ac_ct_CC@,$ac_ct_CC,;t t
15896s,@EXEEXT@,$EXEEXT,;t t
15897s,@OBJEXT@,$OBJEXT,;t t
15898s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15899s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15900s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 15901s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
15902s,@PACKAGE@,$PACKAGE,;t t
15903s,@VERSION@,$VERSION,;t t
15904s,@ACLOCAL@,$ACLOCAL,;t t
15905s,@AUTOCONF@,$AUTOCONF,;t t
15906s,@AUTOMAKE@,$AUTOMAKE,;t t
15907s,@AUTOHEADER@,$AUTOHEADER,;t t
15908s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
15909s,@install_sh@,$install_sh,;t t
15910s,@STRIP@,$STRIP,;t t
15911s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15912s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15913s,@mkdir_p@,$mkdir_p,;t t
15914s,@AWK@,$AWK,;t t
5464f5a1 15915s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
15916s,@am__leading_dot@,$am__leading_dot,;t t
15917s,@AMTAR@,$AMTAR,;t t
15918s,@am__tar@,$am__tar,;t t
15919s,@am__untar@,$am__untar,;t t
15920s,@DEPDIR@,$DEPDIR,;t t
15921s,@am__include@,$am__include,;t t
15922s,@am__quote@,$am__quote,;t t
15923s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15924s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15925s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15926s,@CCDEPMODE@,$CCDEPMODE,;t t
15927s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15928s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
15929s,@AR@,$AR,;t t
15930s,@ac_ct_AR@,$ac_ct_AR,;t t
15931s,@RANLIB@,$RANLIB,;t t
15932s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15933s,@LN_S@,$LN_S,;t t
5464f5a1 15934s,@LIBTOOL@,$LIBTOOL,;t t
92f01d61 15935s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
15936s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
15937s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 15938s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 15939s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
15940s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15941s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15942s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15943s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15944s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
15945s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15946s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
15947s,@host_noncanonical@,$host_noncanonical,;t t
15948s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
15949s,@bfdlibdir@,$bfdlibdir,;t t
15950s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 15951s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15952s,@LIBINTL@,$LIBINTL,;t t
15953s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15954s,@INCINTL@,$INCINTL,;t t
5464f5a1 15955s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15956s,@GMSGFMT@,$GMSGFMT,;t t
15957s,@POSUB@,$POSUB,;t t
5464f5a1 15958s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 15959s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 15960s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15961s,@GENCAT@,$GENCAT,;t t
15962s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 15963s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15964s,@MSGFMT@,$MSGFMT,;t t
15965s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 15966s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
15967s,@CPP@,$CPP,;t t
15968s,@EGREP@,$EGREP,;t t
5464f5a1
NN
15969s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15970s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15971s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15972s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15973s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15974s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15975s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15976s,@COREFILE@,$COREFILE,;t t
15977s,@COREFLAG@,$COREFLAG,;t t
15978s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15979s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15980s,@TDEFINES@,$TDEFINES,;t t
15981s,@wordsize@,$wordsize,;t t
21e40a48 15982s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
15983s,@all_backends@,$all_backends,;t t
15984s,@bfd_backends@,$bfd_backends,;t t
15985s,@bfd_machines@,$bfd_machines,;t t
15986s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15987s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15988s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15989s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
15990s,@datarootdir@,$datarootdir,;t t
15991s,@docdir@,$docdir,;t t
15992s,@htmldir@,$htmldir,;t t
5464f5a1
NN
15993s,@LIBOBJS@,$LIBOBJS,;t t
15994s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 15995CEOF
252b5132 15996
5464f5a1
NN
15997_ACEOF
15998
15999 cat >>$CONFIG_STATUS <<\_ACEOF
16000 # Split the substitutions into bite-sized pieces for seds with
16001 # small command number limits, like on Digital OSF/1 and HP-UX.
16002 ac_max_sed_lines=48
16003 ac_sed_frag=1 # Number of current file.
16004 ac_beg=1 # First line for current file.
16005 ac_end=$ac_max_sed_lines # Line after last line for current file.
16006 ac_more_lines=:
16007 ac_sed_cmds=
16008 while $ac_more_lines; do
16009 if test $ac_beg -gt 1; then
16010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 16011 else
5464f5a1
NN
16012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16013 fi
16014 if test ! -s $tmp/subs.frag; then
16015 ac_more_lines=false
16016 else
16017 # The purpose of the label and of the branching condition is to
16018 # speed up the sed processing (if there are no `@' at all, there
16019 # is no need to browse any of the substitutions).
16020 # These are the two extra sed commands mentioned above.
16021 (echo ':t
16022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16023 if test -z "$ac_sed_cmds"; then
16024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16025 else
16026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16027 fi
16028 ac_sed_frag=`expr $ac_sed_frag + 1`
16029 ac_beg=$ac_end
16030 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 16031 fi
5464f5a1
NN
16032 done
16033 if test -z "$ac_sed_cmds"; then
16034 ac_sed_cmds=cat
252b5132 16035 fi
5464f5a1 16036fi # test -n "$CONFIG_FILES"
6be7c12c 16037
5464f5a1
NN
16038_ACEOF
16039cat >>$CONFIG_STATUS <<\_ACEOF
16040for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 16041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
16042 case $ac_file in
16043 - | *:- | *:-:* ) # input from stdin
16044 cat >$tmp/stdin
16045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16049 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16050 esac
16051
5464f5a1
NN
16052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16055 X"$ac_file" : 'X\(//\)[^/]' \| \
16056 X"$ac_file" : 'X\(//\)$' \| \
16057 X"$ac_file" : 'X\(/\)' \| \
16058 . : '\(.\)' 2>/dev/null ||
16059echo X"$ac_file" |
16060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16062 /^X\(\/\/\)$/{ s//\1/; q; }
16063 /^X\(\/\).*/{ s//\1/; q; }
16064 s/.*/./; q'`
16065 { if $as_mkdir_p; then
16066 mkdir -p "$ac_dir"
252b5132 16067 else
5464f5a1
NN
16068 as_dir="$ac_dir"
16069 as_dirs=
16070 while test ! -d "$as_dir"; do
16071 as_dirs="$as_dir $as_dirs"
16072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074 X"$as_dir" : 'X\(//\)[^/]' \| \
16075 X"$as_dir" : 'X\(//\)$' \| \
16076 X"$as_dir" : 'X\(/\)' \| \
16077 . : '\(.\)' 2>/dev/null ||
16078echo X"$as_dir" |
16079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16081 /^X\(\/\/\)$/{ s//\1/; q; }
16082 /^X\(\/\).*/{ s//\1/; q; }
16083 s/.*/./; q'`
16084 done
16085 test ! -n "$as_dirs" || mkdir $as_dirs
16086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16088 { (exit 1); exit 1; }; }; }
16089
16090 ac_builddir=.
16091
16092if test "$ac_dir" != .; then
16093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16094 # A "../" for each directory in $ac_dir_suffix.
16095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16096else
16097 ac_dir_suffix= ac_top_builddir=
16098fi
252b5132 16099
5464f5a1
NN
16100case $srcdir in
16101 .) # No --srcdir option. We are building in place.
16102 ac_srcdir=.
16103 if test -z "$ac_top_builddir"; then
16104 ac_top_srcdir=.
16105 else
16106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16107 fi ;;
16108 [\\/]* | ?:[\\/]* ) # Absolute path.
16109 ac_srcdir=$srcdir$ac_dir_suffix;
16110 ac_top_srcdir=$srcdir ;;
252b5132 16111 *) # Relative path.
5464f5a1
NN
16112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16114esac
252b5132 16115
5464f5a1
NN
16116# Do not use `cd foo && pwd` to compute absolute paths, because
16117# the directories may not exist.
16118case `pwd` in
16119.) ac_abs_builddir="$ac_dir";;
16120*)
16121 case "$ac_dir" in
16122 .) ac_abs_builddir=`pwd`;;
16123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16125 esac;;
16126esac
16127case $ac_abs_builddir in
16128.) ac_abs_top_builddir=${ac_top_builddir}.;;
16129*)
16130 case ${ac_top_builddir}. in
16131 .) ac_abs_top_builddir=$ac_abs_builddir;;
16132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16134 esac;;
16135esac
16136case $ac_abs_builddir in
16137.) ac_abs_srcdir=$ac_srcdir;;
16138*)
16139 case $ac_srcdir in
16140 .) ac_abs_srcdir=$ac_abs_builddir;;
16141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16143 esac;;
16144esac
16145case $ac_abs_builddir in
16146.) ac_abs_top_srcdir=$ac_top_srcdir;;
16147*)
16148 case $ac_top_srcdir in
16149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16152 esac;;
16153esac
252b5132 16154
5464f5a1
NN
16155
16156 case $INSTALL in
16157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 16159 esac
252b5132 16160
49c96104
SE
16161 if test x"$ac_file" != x-; then
16162 { echo "$as_me:$LINENO: creating $ac_file" >&5
16163echo "$as_me: creating $ac_file" >&6;}
16164 rm -f "$ac_file"
16165 fi
5464f5a1
NN
16166 # Let's still pretend it is `configure' which instantiates (i.e., don't
16167 # use $as_me), people would be surprised to read:
16168 # /* config.h. Generated by config.status. */
16169 if test x"$ac_file" = x-; then
16170 configure_input=
16171 else
16172 configure_input="$ac_file. "
16173 fi
16174 configure_input=$configure_input"Generated from `echo $ac_file_in |
16175 sed 's,.*/,,'` by configure."
16176
16177 # First look for the input files in the build tree, otherwise in the
16178 # src tree.
16179 ac_file_inputs=`IFS=:
16180 for f in $ac_file_in; do
16181 case $f in
16182 -) echo $tmp/stdin ;;
16183 [\\/$]*)
16184 # Absolute (can't be DOS-style, as IFS=:)
16185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16186echo "$as_me: error: cannot find input file: $f" >&2;}
16187 { (exit 1); exit 1; }; }
16188 echo "$f";;
16189 *) # Relative
16190 if test -f "$f"; then
16191 # Build tree
16192 echo "$f"
16193 elif test -f "$srcdir/$f"; then
16194 # Source tree
16195 echo "$srcdir/$f"
16196 else
16197 # /dev/null tree
16198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16199echo "$as_me: error: cannot find input file: $f" >&2;}
16200 { (exit 1); exit 1; }; }
16201 fi;;
16202 esac
16203 done` || { (exit 1); exit 1; }
5464f5a1
NN
16204_ACEOF
16205cat >>$CONFIG_STATUS <<_ACEOF
16206 sed "$ac_vpsub
16207$extrasub
16208_ACEOF
16209cat >>$CONFIG_STATUS <<\_ACEOF
16210:t
16211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16212s,@configure_input@,$configure_input,;t t
16213s,@srcdir@,$ac_srcdir,;t t
16214s,@abs_srcdir@,$ac_abs_srcdir,;t t
16215s,@top_srcdir@,$ac_top_srcdir,;t t
16216s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16217s,@builddir@,$ac_builddir,;t t
16218s,@abs_builddir@,$ac_abs_builddir,;t t
16219s,@top_builddir@,$ac_top_builddir,;t t
16220s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16221s,@INSTALL@,$ac_INSTALL,;t t
16222" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16223 rm -f $tmp/stdin
16224 if test x"$ac_file" != x-; then
16225 mv $tmp/out $ac_file
16226 else
16227 cat $tmp/out
16228 rm -f $tmp/out
16229 fi
16230
16231done
16232_ACEOF
16233cat >>$CONFIG_STATUS <<\_ACEOF
16234
16235#
16236# CONFIG_HEADER section.
16237#
252b5132
RH
16238
16239# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16240# NAME is the cpp macro being defined and VALUE is the value it is being given.
16241#
16242# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
16243ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16244ac_dB='[ ].*$,\1#\2'
16245ac_dC=' '
16246ac_dD=',;t'
16247# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16248ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16249ac_uB='$,\1#\2define\3'
252b5132 16250ac_uC=' '
5464f5a1
NN
16251ac_uD=',;t'
16252
16253for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 16254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
16255 case $ac_file in
16256 - | *:- | *:-:* ) # input from stdin
16257 cat >$tmp/stdin
16258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16262 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16263 esac
16264
5464f5a1
NN
16265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16266echo "$as_me: creating $ac_file" >&6;}
16267
16268 # First look for the input files in the build tree, otherwise in the
16269 # src tree.
16270 ac_file_inputs=`IFS=:
16271 for f in $ac_file_in; do
16272 case $f in
16273 -) echo $tmp/stdin ;;
16274 [\\/$]*)
16275 # Absolute (can't be DOS-style, as IFS=:)
16276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16277echo "$as_me: error: cannot find input file: $f" >&2;}
16278 { (exit 1); exit 1; }; }
16279 # Do quote $f, to prevent DOS paths from being IFS'd.
16280 echo "$f";;
16281 *) # Relative
16282 if test -f "$f"; then
16283 # Build tree
16284 echo "$f"
16285 elif test -f "$srcdir/$f"; then
16286 # Source tree
16287 echo "$srcdir/$f"
16288 else
16289 # /dev/null tree
16290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16291echo "$as_me: error: cannot find input file: $f" >&2;}
16292 { (exit 1); exit 1; }; }
16293 fi;;
16294 esac
16295 done` || { (exit 1); exit 1; }
16296 # Remove the trailing spaces.
16297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16298
16299_ACEOF
16300
16301# Transform confdefs.h into two sed scripts, `conftest.defines' and
16302# `conftest.undefs', that substitutes the proper values into
16303# config.h.in to produce config.h. The first handles `#define'
16304# templates, and the second `#undef' templates.
16305# And first: Protect against being on the right side of a sed subst in
16306# config.status. Protect against being in an unquoted here document
16307# in config.status.
16308rm -f conftest.defines conftest.undefs
16309# Using a here document instead of a string reduces the quoting nightmare.
16310# Putting comments in sed scripts is not portable.
16311#
16312# `end' is used to avoid that the second main sed command (meant for
16313# 0-ary CPP macros) applies to n-ary macro definitions.
16314# See the Autoconf documentation for `clear'.
16315cat >confdef2sed.sed <<\_ACEOF
16316s/[\\&,]/\\&/g
16317s,[\\$`],\\&,g
16318t clear
16319: clear
16320s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16321t end
16322s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16323: end
16324_ACEOF
16325# If some macros were called several times there might be several times
16326# the same #defines, which is useless. Nevertheless, we may not want to
16327# sort them, since we want the *last* AC-DEFINE to be honored.
16328uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16329sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16330rm -f confdef2sed.sed
252b5132
RH
16331
16332# This sed command replaces #undef with comments. This is necessary, for
16333# example, in the case of _POSIX_SOURCE, which is predefined and required
16334# on some systems where configure will not decide to define it.
5464f5a1
NN
16335cat >>conftest.undefs <<\_ACEOF
16336s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16337_ACEOF
16338
16339# Break up conftest.defines because some shells have a limit on the size
16340# of here documents, and old seds have small limits too (100 cmds).
16341echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16342echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16343echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16344echo ' :' >>$CONFIG_STATUS
16345rm -f conftest.tail
16346while grep . conftest.defines >/dev/null
16347do
16348 # Write a limited-size here document to $tmp/defines.sed.
16349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16350 # Speed up: don't consider the non `#define' lines.
16351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16352 # Work around the forget-to-reset-the-flag bug.
16353 echo 't clr' >>$CONFIG_STATUS
16354 echo ': clr' >>$CONFIG_STATUS
16355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16356 echo 'CEOF
16357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16358 rm -f $tmp/in
16359 mv $tmp/out $tmp/in
16360' >>$CONFIG_STATUS
16361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16362 rm -f conftest.defines
16363 mv conftest.tail conftest.defines
16364done
16365rm -f conftest.defines
16366echo ' fi # grep' >>$CONFIG_STATUS
16367echo >>$CONFIG_STATUS
252b5132 16368
5464f5a1
NN
16369# Break up conftest.undefs because some shells have a limit on the size
16370# of here documents, and old seds have small limits too (100 cmds).
16371echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16372rm -f conftest.tail
5464f5a1 16373while grep . conftest.undefs >/dev/null
252b5132 16374do
5464f5a1
NN
16375 # Write a limited-size here document to $tmp/undefs.sed.
16376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16377 # Speed up: don't consider the non `#undef'
16378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16379 # Work around the forget-to-reset-the-flag bug.
16380 echo 't clr' >>$CONFIG_STATUS
16381 echo ': clr' >>$CONFIG_STATUS
16382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16383 echo 'CEOF
5464f5a1
NN
16384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16385 rm -f $tmp/in
16386 mv $tmp/out $tmp/in
16387' >>$CONFIG_STATUS
16388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16389 rm -f conftest.undefs
16390 mv conftest.tail conftest.undefs
252b5132 16391done
5464f5a1
NN
16392rm -f conftest.undefs
16393
16394cat >>$CONFIG_STATUS <<\_ACEOF
16395 # Let's still pretend it is `configure' which instantiates (i.e., don't
16396 # use $as_me), people would be surprised to read:
16397 # /* config.h. Generated by config.status. */
16398 if test x"$ac_file" = x-; then
16399 echo "/* Generated by configure. */" >$tmp/config.h
16400 else
16401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16402 fi
16403 cat $tmp/in >>$tmp/config.h
16404 rm -f $tmp/in
16405 if test x"$ac_file" != x-; then
16406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16408echo "$as_me: $ac_file is unchanged" >&6;}
16409 else
16410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16411$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16412 X"$ac_file" : 'X\(//\)[^/]' \| \
16413 X"$ac_file" : 'X\(//\)$' \| \
16414 X"$ac_file" : 'X\(/\)' \| \
16415 . : '\(.\)' 2>/dev/null ||
16416echo X"$ac_file" |
16417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16419 /^X\(\/\/\)$/{ s//\1/; q; }
16420 /^X\(\/\).*/{ s//\1/; q; }
16421 s/.*/./; q'`
16422 { if $as_mkdir_p; then
16423 mkdir -p "$ac_dir"
252b5132 16424 else
5464f5a1
NN
16425 as_dir="$ac_dir"
16426 as_dirs=
16427 while test ! -d "$as_dir"; do
16428 as_dirs="$as_dir $as_dirs"
16429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$as_dir" : 'X\(//\)[^/]' \| \
16432 X"$as_dir" : 'X\(//\)$' \| \
16433 X"$as_dir" : 'X\(/\)' \| \
16434 . : '\(.\)' 2>/dev/null ||
16435echo X"$as_dir" |
16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16438 /^X\(\/\/\)$/{ s//\1/; q; }
16439 /^X\(\/\).*/{ s//\1/; q; }
16440 s/.*/./; q'`
16441 done
16442 test ! -n "$as_dirs" || mkdir $as_dirs
16443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16444echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16445 { (exit 1); exit 1; }; }; }
16446
16447 rm -f $ac_file
16448 mv $tmp/config.h $ac_file
252b5132 16449 fi
5464f5a1
NN
16450 else
16451 cat $tmp/config.h
16452 rm -f $tmp/config.h
252b5132 16453 fi
f5385ebf
AM
16454# Compute $ac_file's index in $config_headers.
16455_am_stamp_count=1
16456for _am_header in $config_headers :; do
16457 case $_am_header in
16458 $ac_file | $ac_file:* )
16459 break ;;
16460 * )
16461 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16462 esac
16463done
16464echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16465$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16466 X$ac_file : 'X\(//\)[^/]' \| \
16467 X$ac_file : 'X\(//\)$' \| \
16468 X$ac_file : 'X\(/\)' \| \
16469 . : '\(.\)' 2>/dev/null ||
16470echo X$ac_file |
16471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16473 /^X\(\/\/\)$/{ s//\1/; q; }
16474 /^X\(\/\).*/{ s//\1/; q; }
16475 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
16476done
16477_ACEOF
16478cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 16479
5464f5a1
NN
16480#
16481# CONFIG_COMMANDS section.
16482#
16483for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16487$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488 X"$ac_dest" : 'X\(//\)[^/]' \| \
16489 X"$ac_dest" : 'X\(//\)$' \| \
16490 X"$ac_dest" : 'X\(/\)' \| \
16491 . : '\(.\)' 2>/dev/null ||
16492echo X"$ac_dest" |
16493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16495 /^X\(\/\/\)$/{ s//\1/; q; }
16496 /^X\(\/\).*/{ s//\1/; q; }
16497 s/.*/./; q'`
16498 { if $as_mkdir_p; then
16499 mkdir -p "$ac_dir"
16500 else
16501 as_dir="$ac_dir"
16502 as_dirs=
16503 while test ! -d "$as_dir"; do
16504 as_dirs="$as_dir $as_dirs"
16505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16507 X"$as_dir" : 'X\(//\)[^/]' \| \
16508 X"$as_dir" : 'X\(//\)$' \| \
16509 X"$as_dir" : 'X\(/\)' \| \
16510 . : '\(.\)' 2>/dev/null ||
16511echo X"$as_dir" |
16512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16514 /^X\(\/\/\)$/{ s//\1/; q; }
16515 /^X\(\/\).*/{ s//\1/; q; }
16516 s/.*/./; q'`
16517 done
16518 test ! -n "$as_dirs" || mkdir $as_dirs
16519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16520echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16521 { (exit 1); exit 1; }; }; }
b3baf5d0 16522
5464f5a1 16523 ac_builddir=.
b3baf5d0 16524
5464f5a1
NN
16525if test "$ac_dir" != .; then
16526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16527 # A "../" for each directory in $ac_dir_suffix.
16528 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16529else
16530 ac_dir_suffix= ac_top_builddir=
16531fi
16532
16533case $srcdir in
16534 .) # No --srcdir option. We are building in place.
16535 ac_srcdir=.
16536 if test -z "$ac_top_builddir"; then
16537 ac_top_srcdir=.
16538 else
16539 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16540 fi ;;
16541 [\\/]* | ?:[\\/]* ) # Absolute path.
16542 ac_srcdir=$srcdir$ac_dir_suffix;
16543 ac_top_srcdir=$srcdir ;;
16544 *) # Relative path.
16545 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16546 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16547esac
16548
16549# Do not use `cd foo && pwd` to compute absolute paths, because
16550# the directories may not exist.
16551case `pwd` in
16552.) ac_abs_builddir="$ac_dir";;
16553*)
16554 case "$ac_dir" in
16555 .) ac_abs_builddir=`pwd`;;
16556 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16557 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16558 esac;;
16559esac
16560case $ac_abs_builddir in
16561.) ac_abs_top_builddir=${ac_top_builddir}.;;
16562*)
16563 case ${ac_top_builddir}. in
16564 .) ac_abs_top_builddir=$ac_abs_builddir;;
16565 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16566 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16567 esac;;
16568esac
16569case $ac_abs_builddir in
16570.) ac_abs_srcdir=$ac_srcdir;;
16571*)
16572 case $ac_srcdir in
16573 .) ac_abs_srcdir=$ac_abs_builddir;;
16574 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16575 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16576 esac;;
16577esac
16578case $ac_abs_builddir in
16579.) ac_abs_top_srcdir=$ac_top_srcdir;;
16580*)
16581 case $ac_top_srcdir in
16582 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16583 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16584 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16585 esac;;
16586esac
16587
16588
16589 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16590echo "$as_me: executing $ac_dest commands" >&6;}
16591 case $ac_dest in
f5385ebf
AM
16592 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16593 # Strip MF so we end up with the name of the file.
16594 mf=`echo "$mf" | sed -e 's/:.*$//'`
16595 # Check whether this is an Automake generated Makefile or not.
16596 # We used to match only the files named `Makefile.in', but
16597 # some people rename them; so instead we look at the file content.
16598 # Grep'ing the first line is not enough: some people post-process
16599 # each Makefile.in and add a new line on top of each file to say so.
16600 # So let's grep whole file.
16601 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16602 dirpart=`(dirname "$mf") 2>/dev/null ||
16603$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16604 X"$mf" : 'X\(//\)[^/]' \| \
16605 X"$mf" : 'X\(//\)$' \| \
16606 X"$mf" : 'X\(/\)' \| \
16607 . : '\(.\)' 2>/dev/null ||
16608echo X"$mf" |
16609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16611 /^X\(\/\/\)$/{ s//\1/; q; }
16612 /^X\(\/\).*/{ s//\1/; q; }
16613 s/.*/./; q'`
16614 else
16615 continue
16616 fi
16617 # Extract the definition of DEPDIR, am__include, and am__quote
16618 # from the Makefile without running `make'.
16619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16620 test -z "$DEPDIR" && continue
16621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16622 test -z "am__include" && continue
16623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16624 # When using ansi2knr, U may be empty or an underscore; expand it
16625 U=`sed -n 's/^U = //p' < "$mf"`
16626 # Find all dependency output files, they are included files with
16627 # $(DEPDIR) in their names. We invoke sed twice because it is the
16628 # simplest approach to changing $(DEPDIR) to its actual value in the
16629 # expansion.
16630 for file in `sed -n "
16631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16633 # Make sure the directory exists.
16634 test -f "$dirpart/$file" && continue
16635 fdir=`(dirname "$file") 2>/dev/null ||
16636$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16637 X"$file" : 'X\(//\)[^/]' \| \
16638 X"$file" : 'X\(//\)$' \| \
16639 X"$file" : 'X\(/\)' \| \
16640 . : '\(.\)' 2>/dev/null ||
16641echo X"$file" |
16642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16644 /^X\(\/\/\)$/{ s//\1/; q; }
16645 /^X\(\/\).*/{ s//\1/; q; }
16646 s/.*/./; q'`
16647 { if $as_mkdir_p; then
16648 mkdir -p $dirpart/$fdir
16649 else
16650 as_dir=$dirpart/$fdir
16651 as_dirs=
16652 while test ! -d "$as_dir"; do
16653 as_dirs="$as_dir $as_dirs"
16654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16656 X"$as_dir" : 'X\(//\)[^/]' \| \
16657 X"$as_dir" : 'X\(//\)$' \| \
16658 X"$as_dir" : 'X\(/\)' \| \
16659 . : '\(.\)' 2>/dev/null ||
16660echo X"$as_dir" |
16661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16663 /^X\(\/\/\)$/{ s//\1/; q; }
16664 /^X\(\/\).*/{ s//\1/; q; }
16665 s/.*/./; q'`
16666 done
16667 test ! -n "$as_dirs" || mkdir $as_dirs
16668 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16669echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16670 { (exit 1); exit 1; }; }; }
16671
16672 # echo "creating $dirpart/$file"
16673 echo '# dummy' > "$dirpart/$file"
16674 done
16675done
16676 ;;
20e95c23
DJ
16677 default-1 )
16678 for ac_file in $CONFIG_FILES; do
16679 # Support "outfile[:infile[:infile...]]"
16680 case "$ac_file" in
16681 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16682 esac
16683 # PO directories have a Makefile.in generated from Makefile.in.in.
16684 case "$ac_file" in */Makefile.in)
16685 # Adjust a relative srcdir.
16686 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16687 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16688 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16689 # In autoconf-2.13 it is called $ac_given_srcdir.
16690 # In autoconf-2.50 it is called $srcdir.
16691 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16692 case "$ac_given_srcdir" in
16693 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16694 /*) top_srcdir="$ac_given_srcdir" ;;
16695 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16696 esac
16697 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16698 rm -f "$ac_dir/POTFILES"
16699 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16700 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16701 POMAKEFILEDEPS="POTFILES.in"
16702 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16703 # on $ac_dir but don't depend on user-specified configuration
16704 # parameters.
16705 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16706 # The LINGUAS file contains the set of available languages.
16707 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16708 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16709 fi
16710 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16711 # Hide the ALL_LINGUAS assigment from automake.
16712 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16713 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16714 else
16715 # The set of available languages was given in configure.in.
16716 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16717 fi
16718 case "$ac_given_srcdir" in
16719 .) srcdirpre= ;;
16720 *) srcdirpre='$(srcdir)/' ;;
16721 esac
16722 POFILES=
16723 GMOFILES=
16724 UPDATEPOFILES=
16725 DUMMYPOFILES=
16726 for lang in $ALL_LINGUAS; do
16727 POFILES="$POFILES $srcdirpre$lang.po"
16728 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16729 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16730 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16731 done
16732 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16733 # environment variable.
16734 INST_LINGUAS=
16735 if test -n "$ALL_LINGUAS"; then
16736 for presentlang in $ALL_LINGUAS; do
16737 useit=no
16738 if test "%UNSET%" != "$LINGUAS"; then
16739 desiredlanguages="$LINGUAS"
16740 else
16741 desiredlanguages="$ALL_LINGUAS"
16742 fi
16743 for desiredlang in $desiredlanguages; do
16744 # Use the presentlang catalog if desiredlang is
16745 # a. equal to presentlang, or
16746 # b. a variant of presentlang (because in this case,
16747 # presentlang can be used as a fallback for messages
16748 # which are not translated in the desiredlang catalog).
16749 case "$desiredlang" in
16750 "$presentlang"*) useit=yes;;
16751 esac
16752 done
16753 if test $useit = yes; then
16754 INST_LINGUAS="$INST_LINGUAS $presentlang"
16755 fi
16756 done
16757 fi
16758 CATALOGS=
16759 if test -n "$INST_LINGUAS"; then
16760 for lang in $INST_LINGUAS; do
16761 CATALOGS="$CATALOGS $lang.gmo"
16762 done
16763 fi
16764 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16765 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16766 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16767 if test -f "$f"; then
16768 case "$f" in
16769 *.orig | *.bak | *~) ;;
16770 *) cat "$f" >> "$ac_dir/Makefile" ;;
16771 esac
16772 fi
16773 done
16774 fi
16775 ;;
16776 esac
16777 done ;;
d5efd9fc
AM
16778 bfd_stdint.h )
16779if test "$GCC" = yes; then
16780 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16781else
16782 echo "/* generated for $CC */" > tmp-stdint.h
16783fi
16784
16785sed 's/^ *//' >> tmp-stdint.h <<EOF
16786
16787 #ifndef GCC_GENERATED_STDINT_H
16788 #define GCC_GENERATED_STDINT_H 1
16789
16790 #include <sys/types.h>
16791EOF
16792
16793if test "$acx_cv_header_stdint" != stdint.h; then
16794 echo "#include <stddef.h>" >> tmp-stdint.h
16795fi
16796if test "$acx_cv_header_stdint" != stddef.h; then
16797 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16798fi
16799
16800sed 's/^ *//' >> tmp-stdint.h <<EOF
16801 /* glibc uses these symbols as guards to prevent redefinitions. */
16802 #ifdef __int8_t_defined
16803 #define _INT8_T
16804 #define _INT16_T
16805 #define _INT32_T
16806 #endif
16807 #ifdef __uint32_t_defined
16808 #define _UINT32_T
16809 #endif
16810
16811EOF
16812
16813# ----------------- done header, emit basic int types -------------
16814if test "$acx_cv_header_stdint" = stddef.h; then
16815 sed 's/^ *//' >> tmp-stdint.h <<EOF
16816
16817 #ifndef _UINT8_T
16818 #define _UINT8_T
16819 #ifndef __uint8_t_defined
16820 #define __uint8_t_defined
16821 typedef unsigned $acx_cv_type_int8_t uint8_t;
16822 #endif
16823 #endif
16824
16825 #ifndef _UINT16_T
16826 #define _UINT16_T
16827 #ifndef __uint16_t_defined
16828 #define __uint16_t_defined
16829 typedef unsigned $acx_cv_type_int16_t uint16_t;
16830 #endif
16831 #endif
16832
16833 #ifndef _UINT32_T
16834 #define _UINT32_T
16835 #ifndef __uint32_t_defined
16836 #define __uint32_t_defined
16837 typedef unsigned $acx_cv_type_int32_t uint32_t;
16838 #endif
16839 #endif
16840
16841 #ifndef _INT8_T
16842 #define _INT8_T
16843 #ifndef __int8_t_defined
16844 #define __int8_t_defined
16845 typedef $acx_cv_type_int8_t int8_t;
16846 #endif
16847 #endif
16848
16849 #ifndef _INT16_T
16850 #define _INT16_T
16851 #ifndef __int16_t_defined
16852 #define __int16_t_defined
16853 typedef $acx_cv_type_int16_t int16_t;
16854 #endif
16855 #endif
16856
16857 #ifndef _INT32_T
16858 #define _INT32_T
16859 #ifndef __int32_t_defined
16860 #define __int32_t_defined
16861 typedef $acx_cv_type_int32_t int32_t;
16862 #endif
16863 #endif
16864EOF
16865elif test "$ac_cv_type_u_int32_t" = yes; then
16866 sed 's/^ *//' >> tmp-stdint.h <<EOF
16867
16868 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16869 #ifndef _INT8_T
16870 #define _INT8_T
16871 #endif
16872 #ifndef _INT16_T
16873 #define _INT16_T
16874 #endif
16875 #ifndef _INT32_T
16876 #define _INT32_T
16877 #endif
16878
16879 #ifndef _UINT8_T
16880 #define _UINT8_T
16881 #ifndef __uint8_t_defined
16882 #define __uint8_t_defined
16883 typedef u_int8_t uint8_t;
16884 #endif
16885 #endif
16886
16887 #ifndef _UINT16_T
16888 #define _UINT16_T
16889 #ifndef __uint16_t_defined
16890 #define __uint16_t_defined
16891 typedef u_int16_t uint16_t;
16892 #endif
16893 #endif
16894
16895 #ifndef _UINT32_T
16896 #define _UINT32_T
16897 #ifndef __uint32_t_defined
16898 #define __uint32_t_defined
16899 typedef u_int32_t uint32_t;
16900 #endif
16901 #endif
16902EOF
16903else
16904 sed 's/^ *//' >> tmp-stdint.h <<EOF
16905
16906 /* Some systems have guard macros to prevent redefinitions, define them. */
16907 #ifndef _INT8_T
16908 #define _INT8_T
16909 #endif
16910 #ifndef _INT16_T
16911 #define _INT16_T
16912 #endif
16913 #ifndef _INT32_T
16914 #define _INT32_T
16915 #endif
16916 #ifndef _UINT8_T
16917 #define _UINT8_T
16918 #endif
16919 #ifndef _UINT16_T
16920 #define _UINT16_T
16921 #endif
16922 #ifndef _UINT32_T
16923 #define _UINT32_T
16924 #endif
16925EOF
16926fi
16927
16928# ------------- done basic int types, emit int64_t types ------------
16929if test "$ac_cv_type_uint64_t" = yes; then
16930 sed 's/^ *//' >> tmp-stdint.h <<EOF
16931
16932 /* system headers have good uint64_t and int64_t */
16933 #ifndef _INT64_T
16934 #define _INT64_T
16935 #endif
16936 #ifndef _UINT64_T
16937 #define _UINT64_T
16938 #endif
16939EOF
16940elif test "$ac_cv_type_u_int64_t" = yes; then
16941 sed 's/^ *//' >> tmp-stdint.h <<EOF
16942
16943 /* system headers have an u_int64_t (and int64_t) */
16944 #ifndef _INT64_T
16945 #define _INT64_T
16946 #endif
16947 #ifndef _UINT64_T
16948 #define _UINT64_T
16949 #ifndef __uint64_t_defined
16950 #define __uint64_t_defined
16951 typedef u_int64_t uint64_t;
16952 #endif
16953 #endif
16954EOF
16955elif test -n "$acx_cv_type_int64_t"; then
16956 sed 's/^ *//' >> tmp-stdint.h <<EOF
16957
16958 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16959 #ifndef _INT64_T
16960 #define _INT64_T
16961 typedef $acx_cv_type_int64_t int64_t;
16962 #endif
16963 #ifndef _UINT64_T
16964 #define _UINT64_T
16965 #ifndef __uint64_t_defined
16966 #define __uint64_t_defined
16967 typedef unsigned $acx_cv_type_int64_t uint64_t;
16968 #endif
16969 #endif
16970EOF
16971else
16972 sed 's/^ *//' >> tmp-stdint.h <<EOF
16973
16974 /* some common heuristics for int64_t, using compiler-specific tests */
16975 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16976 #ifndef _INT64_T
16977 #define _INT64_T
16978 #ifndef __int64_t_defined
16979 typedef long long int64_t;
16980 #endif
16981 #endif
16982 #ifndef _UINT64_T
16983 #define _UINT64_T
16984 typedef unsigned long long uint64_t;
16985 #endif
16986
16987 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16988 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16989 does not implement __extension__. But that compiler doesn't define
16990 __GNUC_MINOR__. */
16991 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16992 # define __extension__
16993 # endif
16994
16995 # ifndef _INT64_T
16996 # define _INT64_T
16997 __extension__ typedef long long int64_t;
16998 # endif
16999 # ifndef _UINT64_T
17000 # define _UINT64_T
17001 __extension__ typedef unsigned long long uint64_t;
17002 # endif
17003
17004 #elif !defined __STRICT_ANSI__
17005 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17006
17007 # ifndef _INT64_T
17008 # define _INT64_T
17009 typedef __int64 int64_t;
17010 # endif
17011 # ifndef _UINT64_T
17012 # define _UINT64_T
17013 typedef unsigned __int64 uint64_t;
17014 # endif
17015 # endif /* compiler */
17016
17017 #endif /* ANSI version */
17018EOF
17019fi
17020
17021# ------------- done int64_t types, emit intptr types ------------
17022if test "$ac_cv_type_uintptr_t" != yes; then
17023 sed 's/^ *//' >> tmp-stdint.h <<EOF
17024
17025 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17026 #ifndef __uintptr_t_defined
17027 typedef u$acx_cv_type_intptr_t uintptr_t;
17028 #endif
17029 #ifndef __intptr_t_defined
17030 typedef $acx_cv_type_intptr_t intptr_t;
17031 #endif
17032EOF
17033fi
17034
17035# ------------- done intptr types, emit int_least types ------------
17036if test "$ac_cv_type_int_least32_t" != yes; then
17037 sed 's/^ *//' >> tmp-stdint.h <<EOF
17038
17039 /* Define int_least types */
17040 typedef int8_t int_least8_t;
17041 typedef int16_t int_least16_t;
17042 typedef int32_t int_least32_t;
17043 #ifdef _INT64_T
17044 typedef int64_t int_least64_t;
17045 #endif
17046
17047 typedef uint8_t uint_least8_t;
17048 typedef uint16_t uint_least16_t;
17049 typedef uint32_t uint_least32_t;
17050 #ifdef _UINT64_T
17051 typedef uint64_t uint_least64_t;
17052 #endif
17053EOF
17054fi
17055
17056# ------------- done intptr types, emit int_fast types ------------
17057if test "$ac_cv_type_int_fast32_t" != yes; then
17058 sed 's/^ *//' >> tmp-stdint.h <<EOF
17059
17060 /* Define int_fast types. short is often slow */
17061 typedef int8_t int_fast8_t;
17062 typedef int int_fast16_t;
17063 typedef int32_t int_fast32_t;
17064 #ifdef _INT64_T
17065 typedef int64_t int_fast64_t;
17066 #endif
17067
17068 typedef uint8_t uint_fast8_t;
17069 typedef unsigned int uint_fast16_t;
17070 typedef uint32_t uint_fast32_t;
17071 #ifdef _UINT64_T
17072 typedef uint64_t uint_fast64_t;
17073 #endif
17074EOF
17075fi
17076
17077if test "$ac_cv_type_uintmax_t" != yes; then
17078 sed 's/^ *//' >> tmp-stdint.h <<EOF
17079
17080 /* Define intmax based on what we found */
17081 #ifdef _INT64_T
17082 typedef int64_t intmax_t;
17083 #else
17084 typedef long intmax_t;
17085 #endif
17086 #ifdef _UINT64_T
17087 typedef uint64_t uintmax_t;
17088 #else
17089 typedef unsigned long uintmax_t;
17090 #endif
17091EOF
17092fi
17093
17094sed 's/^ *//' >> tmp-stdint.h <<EOF
17095
17096 #endif /* GCC_GENERATED_STDINT_H */
17097EOF
17098
17099if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
17100 rm -f tmp-stdint.h
17101else
17102 mv -f tmp-stdint.h bfd_stdint.h
17103fi
17104
17105 ;;
20e95c23
DJ
17106 default )
17107case "$srcdir" in
17108 .) srcdirpre= ;;
17109 *) srcdirpre='$(srcdir)/' ;;
17110esac
17111POFILES=
17112GMOFILES=
17113for lang in dummy $OBSOLETE_ALL_LINGUAS; do
17114 if test $lang != dummy; then
17115 POFILES="$POFILES $srcdirpre$lang.po"
17116 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17117 fi
17118done
17119sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
17120 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
17121 -e "s,@POFILES@,$POFILES," \
17122 -e "s,@GMOFILES@,$GMOFILES," \
17123 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
17124 esac
17125done
17126_ACEOF
17127
17128cat >>$CONFIG_STATUS <<\_ACEOF
17129
17130{ (exit 0); exit 0; }
17131_ACEOF
252b5132 17132chmod +x $CONFIG_STATUS
5464f5a1
NN
17133ac_clean_files=$ac_clean_files_save
17134
17135
17136# configure is writing to config.log, and then calls config.status.
17137# config.status does its own redirection, appending to config.log.
17138# Unfortunately, on DOS this fails, as config.log is still kept open
17139# by configure, so config.status won't be able to write to it; its
17140# output is simply discarded. So we exec the FD to /dev/null,
17141# effectively closing config.log, so it can be properly (re)opened and
17142# appended to by config.status. When coming back to configure, we
17143# need to make the FD available again.
17144if test "$no_create" != yes; then
17145 ac_cs_success=:
17146 ac_config_status_args=
17147 test "$silent" = yes &&
17148 ac_config_status_args="$ac_config_status_args --quiet"
17149 exec 5>/dev/null
17150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17151 exec 5>>config.log
17152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17153 # would make configure fail if this is the last instruction.
17154 $ac_cs_success || { (exit 1); exit 1; }
17155fi
252b5132 17156
55c80943 17157