Configury changes: update src repository (binutils, gdb, and rda) to use
[deliverable/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
20e95c23 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
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
5464f5a1
NN
876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885
886Use these variables to override the choices made by `configure' or to help
887it to find libraries and programs with nonstandard names/locations.
888
889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
921esac
922
5464f5a1
NN
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
6be7c12c 961
5464f5a1
NN
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
49c96104 977 cd $ac_popdir
5464f5a1 978 done
6be7c12c
AO
979fi
980
5464f5a1
NN
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
6be7c12c 984
5464f5a1
NN
985Copyright (C) 2003 Free Software Foundation, Inc.
986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
988_ACEOF
989 exit 0
990fi
991exec 5>config.log
992cat >&5 <<_ACEOF
993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
6be7c12c 995
5464f5a1
NN
996It was created by $as_me, which was
997generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 998
5464f5a1 999 $ $0 $@
6be7c12c 1000
5464f5a1
NN
1001_ACEOF
1002{
1003cat <<_ASUNAME
1004## --------- ##
1005## Platform. ##
1006## --------- ##
1007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
1026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
6be7c12c 1034
5464f5a1 1035} >&5
66e25bab 1036
5464f5a1 1037cat >&5 <<_ACEOF
b3baf5d0 1038
6be7c12c 1039
5464f5a1
NN
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
252b5132 1043
5464f5a1 1044_ACEOF
c5d1701e 1045
6be7c12c 1046
5464f5a1
NN
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
1049# Strip out --silent because we don't want to record it for future runs.
1050# Also quote any args containing shell meta-characters.
1051# Make two passes to allow for proper duplicate-argument suppression.
1052ac_configure_args=
1053ac_configure_args0=
1054ac_configure_args1=
1055ac_sep=
1056ac_must_keep_next=false
1057for ac_pass in 1 2
1058do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094done
1095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
1101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
1103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
1187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
1214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326ac_aux_dir=
1327for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1340 fi
1341done
1342if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1346fi
1347ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351# Make sure we can run config.sub.
1352$ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357echo "$as_me:$LINENO: checking build system type" >&5
1358echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 ac_cv_build_alias=$build_alias
1363test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374fi
1375echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376echo "${ECHO_T}$ac_cv_build" >&6
1377build=$ac_cv_build
1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383echo "$as_me:$LINENO: checking host system type" >&5
1384echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_host_alias=$host_alias
1389test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398echo "${ECHO_T}$ac_cv_host" >&6
1399host=$ac_cv_host
1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405echo "$as_me:$LINENO: checking target system type" >&5
1406echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_target_alias=$target_alias
1411test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420echo "${ECHO_T}$ac_cv_target" >&6
1421target=$ac_cv_target
1422target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427# The aliases save the names the user supplied, while $host etc.
1428# will get canonicalized.
1429test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433ac_ext=c
1434ac_cpp='$CPP $CPPFLAGS'
1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465CC=$ac_cv_prog_CC
1466if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468echo "${ECHO_T}$CC" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474fi
1475if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478set dummy gcc; ac_word=$2
1479echo "$as_me:$LINENO: checking for $ac_word" >&5
1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486else
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498done
1499done
1500
1501fi
1502fi
1503ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506echo "${ECHO_T}$ac_ct_CC" >&6
1507else
1508 echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
1510fi
1511
1512 CC=$ac_ct_CC
1513else
1514 CC="$ac_cv_prog_CC"
1515fi
1516
1517if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520set dummy ${ac_tool_prefix}cc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545CC=$ac_cv_prog_CC
1546if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558set dummy cc; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 CC=$ac_ct_CC
1593else
1594 CC="$ac_cv_prog_CC"
1595fi
1596
1597fi
1598if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609 ac_prog_rejected=no
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1620 fi
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 fi
1639fi
1640fi
1641fi
1642CC=$ac_cv_prog_CC
1643if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
1646else
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
1650
1651fi
1652if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691 test -n "$CC" && break
1692 done
1693fi
1694if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1697do
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699set dummy $ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719done
1720done
1721
1722fi
1723fi
1724ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727echo "${ECHO_T}$ac_ct_CC" >&6
1728else
1729 echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733 test -n "$ac_ct_CC" && break
1734done
1735
1736 CC=$ac_ct_CC
1737fi
1738
1739fi
1740
1741
1742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743See \`config.log' for more details." >&5
1744echo "$as_me: error: no acceptable C compiler found in \$PATH
1745See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1747
1748# Provide some information about the compiler.
1749echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751ac_compiler=`set X $ac_compile; echo $2`
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1767
1768cat >conftest.$ac_ext <<_ACEOF
1769/* confdefs.h. */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h. */
1774
1775int
1776main ()
1777{
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783ac_clean_files_save=$ac_clean_files
1784ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785# Try to create an executable without -o first, disregard a.out.
1786# It will help us diagnose broken compilers, and finding out an intuition
1787# of exeext.
1788echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798# resort.
1799
1800# Be careful to initialize this variable, since it used to be cached.
1801# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802ac_cv_exeext=
1803# b.out is created by i960 compilers.
1804for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805do
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 ;;
1810 conftest.$ac_ext )
1811 # This is the source file.
1812 ;;
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1824 * )
1825 break;;
1826 esac
1827done
1828else
1829 echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: C compiler cannot create executables
1835See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1837fi
1838
1839ac_exeext=$ac_cv_exeext
1840echo "$as_me:$LINENO: result: $ac_file" >&5
1841echo "${ECHO_T}$ac_file" >&6
1842
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848# If not cross compiling, check that we can run a simple program.
1849if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&5
1864echo "$as_me: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1868 fi
1869 fi
1870fi
1871echo "$as_me:$LINENO: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873
1874rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875ac_clean_files=$ac_clean_files_save
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
1878echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881echo "${ECHO_T}$cross_compiling" >&6
1882
1883echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892# work properly (i.e., refer to `conftest.exe'), while it won't with
1893# `rm'.
1894for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903done
1904else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest$ac_cv_exeext
1913echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916rm -f conftest.$ac_ext
1917EXEEXT=$ac_cv_exeext
1918ac_exeext=$EXEEXT
1919echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.o conftest.obj
1940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951done
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1961fi
1962
1963rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964fi
1965echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966echo "${ECHO_T}$ac_cv_objext" >&6
1967OBJEXT=$ac_cv_objext
1968ac_objext=$OBJEXT
1969echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
1980
1981int
1982main ()
1983{
1984#ifndef __GNUC__
1985 choke me
1986#endif
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.$ac_objext
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
49c96104
SE
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
5464f5a1
NN
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015else
2016 echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019ac_compiler_gnu=no
2020fi
2021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024fi
2025echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027GCC=`test $ac_compiler_gnu = yes && echo yes`
2028ac_test_CFLAGS=${CFLAGS+set}
2029ac_save_CFLAGS=$CFLAGS
2030CFLAGS="-g"
2031echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 cat >conftest.$ac_ext <<_ACEOF
2037/* confdefs.h. */
2038_ACEOF
2039cat confdefs.h >>conftest.$ac_ext
2040cat >>conftest.$ac_ext <<_ACEOF
2041/* end confdefs.h. */
2042
2043int
2044main ()
2045{
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051rm -f conftest.$ac_objext
2052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
49c96104
SE
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
5464f5a1
NN
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074else
2075 echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078ac_cv_prog_cc_g=no
2079fi
2080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098fi
2099echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104 ac_cv_prog_cc_stdc=no
2105ac_save_CC=$CC
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h. */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h. */
2112#include <stdarg.h>
2113#include <stdio.h>
2114#include <sys/types.h>
2115#include <sys/stat.h>
2116/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117struct buf { int x; };
2118FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119static char *e (p, i)
2120 char **p;
2121 int i;
2122{
2123 return p[i];
2124}
2125static char *f (char * (*g) (char **, int), char **p, ...)
2126{
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133}
2134
2135/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144int test (int i, double x);
2145struct s1 {int (*f) (int a);};
2146struct s2 {int (*f) (double a);};
2147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148int argc;
2149char **argv;
2150int
2151main ()
2152{
2153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158# Don't try gcc -ansi; that turns off useful extensions and
2159# breaks some systems' header files.
2160# AIX -qlanglvl=ansi
2161# Ultrix and OSF/1 -std1
2162# HP-UX 10.20 and later -Ae
2163# HP-UX older versions -Aa -D_HPUX_SOURCE
2164# SVR4 -Xc -D__EXTENSIONS__
2165for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166do
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
49c96104
SE
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
5464f5a1
NN
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191break
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196fi
2197rm -f conftest.err conftest.$ac_objext
2198done
2199rm -f conftest.$ac_ext conftest.$ac_objext
2200CC=$ac_save_CC
2201
2202fi
2203
2204case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207echo "${ECHO_T}none needed" >&6 ;;
2208 *)
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212esac
2213
2214# Some people use a C++ compiler to compile C. Since we use `exit',
2215# in C++ we need to declare it. In case someone uses the same compiler
2216# for both compiling C and C++ we need to have the C++ compiler decide
2217# the declaration of exit, since it's the most demanding environment.
2218cat >conftest.$ac_ext <<_ACEOF
2219#ifndef __cplusplus
2220 choke me
2221#endif
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
49c96104
SE
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
5464f5a1
NN
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2252do
2253 cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259$ac_declaration
2260#include <stdlib.h>
2261int
2262main ()
2263{
2264exit (42);
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.$ac_objext
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
49c96104
SE
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
5464f5a1
NN
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 :
2292else
2293 echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
2295
2296continue
2297fi
2298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
2304/* end confdefs.h. */
2305$ac_declaration
2306int
2307main ()
2308{
2309exit (42);
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
49c96104
SE
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
5464f5a1
NN
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337else
2338 echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341fi
2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343done
2344rm -f conftest*
2345if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2349fi
2350
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
f5385ebf
AM
2364echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
f5385ebf
AM
2369 ac_func_search_save_LIBS=$LIBS
2370ac_cv_search_strerror=no
5464f5a1
NN
2371cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377
2378/* Override any gcc2 internal prototype to avoid an error. */
2379#ifdef __cplusplus
2380extern "C"
2381#endif
2382/* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384char strerror ();
2385int
2386main ()
2387{
2388strerror ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext conftest$ac_exeext
2394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
49c96104
SE
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
5464f5a1
NN
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
f5385ebf 2415 ac_cv_search_strerror="none required"
5464f5a1
NN
2416else
2417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
5464f5a1
NN
2420fi
2421rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2423if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432
2433/* Override any gcc2 internal prototype to avoid an error. */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437/* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439char strerror ();
2440int
2441main ()
2442{
2443strerror ();
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext conftest$ac_exeext
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
49c96104
SE
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
f5385ebf
AM
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2471break
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
5464f5a1 2476fi
f5385ebf
AM
2477rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479 done
5464f5a1 2480fi
f5385ebf
AM
2481LIBS=$ac_func_search_save_LIBS
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2487
f5385ebf 2488fi
5464f5a1
NN
2489
2490
f5385ebf 2491am__api_version="1.9"
5464f5a1
NN
2492# Find a good install program. We prefer a C program (faster),
2493# so one script is as good as another. But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
2499# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2503# OS/2's system install, which has a completely different semantic
252b5132 2504# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2505echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2507if test -z "$INSTALL"; then
5464f5a1
NN
2508if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2510else
5464f5a1
NN
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2529 if test $ac_prog = install &&
5464f5a1 2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2531 # AIX install. It has an incompatible calling convention.
2532 :
5464f5a1
NN
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
252b5132 2537 else
5464f5a1
NN
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
252b5132
RH
2540 fi
2541 fi
2542 done
5464f5a1
NN
2543 done
2544 ;;
2545esac
2546done
2547
252b5132
RH
2548
2549fi
2550 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2551 INSTALL=$ac_cv_path_install
252b5132
RH
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
5464f5a1 2557 INSTALL=$ac_install_sh
252b5132
RH
2558 fi
2559fi
5464f5a1
NN
2560echo "$as_me:$LINENO: result: $INSTALL" >&5
2561echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2562
2563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564# It thinks the first close brace ends the variable substitution.
2565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
5464f5a1 2567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2568
2569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
5464f5a1
NN
2571echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2573# Just in case
2574sleep 1
f5385ebf 2575echo timestamp > conftest.file
252b5132
RH
2576# Do `set' in a subshell so we don't clobber the current shell's
2577# arguments. Must try -L first in case configure is actually a
2578# symlink; some systems play weird games with the mod time of symlinks
2579# (eg FreeBSD returns the mod time of the symlink's containing
2580# directory).
2581if (
f5385ebf 2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2583 if test "$*" = "X"; then
2584 # -L didn't work.
f5385ebf 2585 set X `ls -t $srcdir/configure conftest.file`
252b5132 2586 fi
f5385ebf
AM
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&5
2597echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
252b5132
RH
2600 fi
2601
f5385ebf 2602 test "$2" = conftest.file
252b5132
RH
2603 )
2604then
2605 # Ok.
2606 :
2607else
5464f5a1
NN
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609Check your system clock" >&5
2610echo "$as_me: error: newly created file is older than distributed files!
2611Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
252b5132 2613fi
5464f5a1
NN
2614echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
252b5132 2616test "$program_prefix" != NONE &&
5464f5a1 2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2618# Use a double $ so make ignores it.
2619test "$program_suffix" != NONE &&
5464f5a1
NN
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621# Double any \ or $. echo might interpret backslashes.
2622# By default was `s,x,x', remove it if useless.
2623cat <<\_ACEOF >conftest.sed
2624s/[\\$]/&&/g;s/;s,x,x,$//
2625_ACEOF
2626program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627rm conftest.sed
2628
f5385ebf
AM
2629# expand $ac_aux_dir to an absolute path
2630am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633# Use eval to expand $SHELL
2634if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640fi
2641
2642if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2664 do
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2672 fi
2673fi
2674
2675for ac_prog in gawk mawk nawk awk
2676do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699done
2700
2701fi
2702fi
2703AWK=$ac_cv_prog_AWK
2704if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706echo "${ECHO_T}$AWK" >&6
2707else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710fi
2711
2712 test -n "$AWK" && break
2713done
2714
5464f5a1
NN
2715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 cat >conftest.make <<\_ACEOF
252b5132 2722all:
5464f5a1
NN
2723 @echo 'ac_maketemp="$(MAKE)"'
2724_ACEOF
252b5132 2725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2727if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2731fi
5464f5a1 2732rm -f conftest.make
252b5132
RH
2733fi
2734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
252b5132
RH
2737 SET_MAKE=
2738else
5464f5a1
NN
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
252b5132
RH
2741 SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
f5385ebf
AM
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747 am__leading_dot=.
2748else
2749 am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753DEPDIR="${am__leading_dot}deps"
2754
2755 ac_config_commands="$ac_config_commands depfiles"
2756
2757
2758am_make=${MAKE-make}
2759cat > confinc << 'END'
2760am__doit:
2761 @echo done
2762.PHONY: am__doit
2763END
2764# If we don't find an include directive, just comment out the code.
2765echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767am__include="#"
2768am__quote=
2769_am_result=none
2770# First try GNU make style include.
2771echo "include confinc" > confmf
2772# We grep out `Entering directory' and `Leaving directory'
2773# messages which can occur if `w' ends up in MAKEFLAGS.
2774# In particular we don't look at `^make:' because GNU make might
2775# be invoked under some other name (usually "gmake"), in which
2776# case it prints its new name instead of `make'.
2777if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2781fi
2782# Now try BSD make style include.
2783if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2789 fi
2790fi
2791
2792
2793echo "$as_me:$LINENO: result: $_am_result" >&5
2794echo "${ECHO_T}$_am_result" >&6
2795rm -f confinc confmf
2796
2797# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2800
2801fi;
2802if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2805fi
2806
2807
2808if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2814fi
6be7c12c 2815
252b5132 2816
252b5132 2817
f5385ebf
AM
2818# test to see if srcdir already configured
2819if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
5464f5a1
NN
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
252b5132 2824fi
5464f5a1 2825
f5385ebf
AM
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2832 fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE=bfd
ffdc4eed 2838 VERSION=2.17.50
f5385ebf
AM
2839
2840
5464f5a1 2841cat >>confdefs.h <<_ACEOF
252b5132 2842#define PACKAGE "$PACKAGE"
5464f5a1 2843_ACEOF
252b5132 2844
5464f5a1
NN
2845
2846cat >>confdefs.h <<_ACEOF
252b5132 2847#define VERSION "$VERSION"
5464f5a1 2848_ACEOF
252b5132 2849
f5385ebf
AM
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2865
f5385ebf 2866install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2867
f5385ebf
AM
2868# Installed binaries are usually stripped using `strip' when the user
2869# run `make install-strip'. However `strip' might not be the right
2870# tool to use in cross-compilation environments, therefore Automake
2871# will honor the `STRIP' environment variable to overrule this program.
2872if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}strip; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2883else
f5385ebf
AM
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900STRIP=$ac_cv_prog_STRIP
2901if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903echo "${ECHO_T}$STRIP" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
252b5132 2909fi
f5385ebf
AM
2910if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913set dummy strip; ac_word=$2
2914echo "$as_me:$LINENO: checking for $ac_word" >&5
2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934done
252b5132 2935
f5385ebf
AM
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937fi
2938fi
2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2943else
f5385ebf
AM
2944 echo "$as_me:$LINENO: result: no" >&5
2945echo "${ECHO_T}no" >&6
252b5132
RH
2946fi
2947
f5385ebf 2948 STRIP=$ac_ct_STRIP
252b5132 2949else
f5385ebf
AM
2950 STRIP="$ac_cv_prog_STRIP"
2951fi
2952
252b5132 2953fi
f5385ebf
AM
2954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2955
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
2958# Always define AMTAR for backward compatibility.
2959
2960AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
252b5132 2964
f5385ebf
AM
2965
2966
2967depcc="$CC" am_compiler_list=
2968
2969echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2973else
f5385ebf
AM
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2992
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2996 fi
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3001 #
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3013
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3022 fi
3023 ;;
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3048 fi
3049 fi
3050 done
3051
3052 cd ..
3053 rm -rf conftest.dir
3054else
3055 am_cv_CC_dependencies_compiler_type=none
3056fi
3057
252b5132 3058fi
f5385ebf
AM
3059echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3062
f5385ebf
AM
3063
3064
3065if
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
252b5132 3070else
f5385ebf
AM
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
252b5132
RH
3073fi
3074
6be7c12c 3075
e43d48cc 3076
f5385ebf 3077
5464f5a1
NN
3078if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3080set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3085else
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3088else
5464f5a1
NN
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
252b5132
RH
3103fi
3104fi
5464f5a1 3105AR=$ac_cv_prog_AR
252b5132 3106if test -n "$AR"; then
5464f5a1
NN
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108echo "${ECHO_T}$AR" >&6
252b5132 3109else
5464f5a1
NN
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112fi
3113
252b5132 3114fi
5464f5a1
NN
3115if test -z "$ac_cv_prog_AR"; then
3116 ac_ct_AR=$AR
3117 # Extract the first word of "ar", so it can be a program name with args.
3118set dummy ar; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138done
3139done
252b5132 3140
5464f5a1
NN
3141fi
3142fi
3143ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146echo "${ECHO_T}$ac_ct_AR" >&6
3147else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
252b5132 3151
5464f5a1
NN
3152 AR=$ac_ct_AR
3153else
3154 AR="$ac_cv_prog_AR"
3155fi
6be7c12c 3156
5464f5a1
NN
3157if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3159set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3160echo "$as_me:$LINENO: checking for $ac_word" >&5
3161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3164else
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167else
5464f5a1
NN
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180done
3181
252b5132
RH
3182fi
3183fi
5464f5a1 3184RANLIB=$ac_cv_prog_RANLIB
252b5132 3185if test -n "$RANLIB"; then
5464f5a1
NN
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187echo "${ECHO_T}$RANLIB" >&6
252b5132 3188else
5464f5a1
NN
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
252b5132
RH
3191fi
3192
5464f5a1 3193fi
252b5132 3194if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3195 ac_ct_RANLIB=$RANLIB
252b5132
RH
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197set dummy ranlib; ac_word=$2
5464f5a1
NN
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3202else
5464f5a1
NN
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3205else
5464f5a1
NN
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
3219
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3221fi
3222fi
5464f5a1
NN
3223ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3227else
5464f5a1
NN
3228 echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6
252b5132
RH
3230fi
3231
5464f5a1 3232 RANLIB=$ac_ct_RANLIB
252b5132 3233else
5464f5a1 3234 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3235fi
3236
252b5132
RH
3237
3238# Check whether --enable-shared or --disable-shared was given.
3239if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
55c80943 3242case $enableval in
252b5132
RH
3243yes) enable_shared=yes ;;
3244no) enable_shared=no ;;
3245*)
3246 enable_shared=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3252 fi
3253 done
3254 IFS="$ac_save_ifs"
3255 ;;
3256esac
3257else
3258 enable_shared=no
5464f5a1 3259fi;
252b5132
RH
3260
3261# Check whether --enable-static or --disable-static was given.
3262if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
55c80943 3265case $enableval in
252b5132
RH
3266yes) enable_static=yes ;;
3267no) enable_static=no ;;
3268*)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3274 enable_static=yes
3275 fi
3276 done
3277 IFS="$ac_save_ifs"
3278 ;;
3279esac
3280else
3281 enable_static=yes
5464f5a1 3282fi;
b2ef150d
ILT
3283# Check whether --enable-fast-install or --disable-fast-install was given.
3284if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
55c80943 3287case $enableval in
b2ef150d
ILT
3288yes) enable_fast_install=yes ;;
3289no) enable_fast_install=no ;;
3290*)
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3297 fi
3298 done
3299 IFS="$ac_save_ifs"
3300 ;;
3301esac
3302else
3303 enable_fast_install=yes
5464f5a1 3304fi;
c5d1701e 3305
252b5132
RH
3306# Check whether --with-gnu-ld or --without-gnu-ld was given.
3307if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3310else
3311 with_gnu_ld=no
5464f5a1 3312fi;
252b5132 3313ac_prog=ld
55c80943 3314if test "$GCC" = yes; then
252b5132 3315 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3318 case $host in
3319 *-*-mingw*)
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322 *)
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 esac
55c80943 3325 case $ac_prog in
b2ef150d 3326 # Accept absolute paths.
a74801ba 3327 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333 done
3334 test -z "$LD" && LD="$ac_prog"
3335 ;;
252b5132
RH
3336 "")
3337 # If it fails, then pretend we aren't using GCC.
3338 ac_prog=ld
3339 ;;
3340 *)
3341 # If it is relative, then search for the first ld in PATH.
3342 with_gnu_ld=unknown
3343 ;;
3344 esac
3345elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3348else
5464f5a1
NN
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3351fi
5464f5a1
NN
3352if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3354else
3355 if test -z "$LD"; then
a74801ba 3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
a74801ba 3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3360 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3365 test "$with_gnu_ld" != no && break
3366 else
b2ef150d 3367 test "$with_gnu_ld" != yes && break
252b5132
RH
3368 fi
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372else
55c80943 3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3374fi
3375fi
3376
55c80943 3377LD="$lt_cv_path_LD"
252b5132 3378if test -n "$LD"; then
5464f5a1
NN
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380echo "${ECHO_T}$LD" >&6
252b5132 3381else
5464f5a1
NN
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
252b5132 3384fi
5464f5a1
NN
3385test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3392else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3395 lt_cv_prog_gnu_ld=yes
252b5132 3396else
55c80943 3397 lt_cv_prog_gnu_ld=no
252b5132
RH
3398fi
3399fi
5464f5a1
NN
3400echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3402with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3403
6be7c12c 3404
5464f5a1
NN
3405echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3409else
3410 lt_cv_ld_reload_flag='-r'
3411fi
5464f5a1
NN
3412echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3414reload_flag=$lt_cv_ld_reload_flag
3415test -n "$reload_flag" && reload_flag=" $reload_flag"
3416
5464f5a1
NN
3417echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3421else
3422 if test -n "$NM"; then
3423 # Let the user override the test.
55c80943 3424 lt_cv_path_NM="$NM"
252b5132 3425else
a74801ba 3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3428 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
90f2472a
AO
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3436 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3437 break
ac48eca1 3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3439 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3440 break
252b5132 3441 else
55c80943 3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3443 continue # so that we can try to find one that supports BSD flags
252b5132 3444 fi
252b5132
RH
3445 fi
3446 done
3447 IFS="$ac_save_ifs"
55c80943 3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3449fi
3450fi
3451
55c80943 3452NM="$lt_cv_path_NM"
5464f5a1
NN
3453echo "$as_me:$LINENO: result: $NM" >&5
3454echo "${ECHO_T}$NM" >&6
252b5132 3455
5464f5a1
NN
3456echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458LN_S=$as_ln_s
3459if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461echo "${ECHO_T}yes" >&6
6be7c12c 3462else
5464f5a1
NN
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3465fi
3466
5464f5a1
NN
3467echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3471else
d64552c5 3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3473lt_cv_file_magic_test_file=
3474lt_cv_deplibs_check_method='unknown'
3475# Need to set the preceding variable on all platforms that support
3476# interlibrary dependencies.
3477# 'none' -- dependencies not supported.
3478# `unknown' -- same as none, but documents that we really don't know.
3479# 'pass_all' -- all dependencies passed with no checks.
3480# 'test_compile' -- check by making test program.
3481# 'file_magic [regex]' -- check by looking for files in library path
3482# which responds to the $file_magic_cmd with a given egrep regex.
3483# If you have `file' or equivalent on your system and you're not sure
3484# whether `pass_all' will *always* work, you probably want this one.
3485
55c80943
NC
3486case $host_os in
3487aix*)
ac48eca1
AO
3488 lt_cv_deplibs_check_method=pass_all
3489 ;;
3490
3491beos*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495bsdi4*)
55c80943
NC
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3499 ;;
3500
d64552c5 3501cygwin* | mingw* |pw32*)
ac48eca1 3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3504 ;;
3505
55c80943 3506darwin* | rhapsody*)
d70c5fc7 3507 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3509 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 case "$host_os" in
3511 rhapsody* | darwin1.012)
3512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3513 ;;
3514 *) # Darwin 1.3 on
3515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3516 ;;
3517 esac
d70c5fc7 3518 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3519 ;;
3520
5464f5a1 3521freebsd* | kfreebsd*-gnu)
ac48eca1 3522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3523 case $host_cpu in
ac48eca1 3524 i*86 )
90f2472a
AO
3525 # Not sure whether the presence of OpenBSD here was a mistake.
3526 # Let's accept both of them until this is cleared up.
55c80943
NC
3527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3528 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3530 ;;
3531 esac
3532 else
3533 lt_cv_deplibs_check_method=pass_all
3534 fi
3535 ;;
3536
3537gnu*)
3538 lt_cv_deplibs_check_method=pass_all
3539 ;;
3540
55c80943 3541hpux10.20*|hpux11*)
4867be41
DJ
3542 case $host_cpu in
3543 hppa*)
3544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547 ;;
3548 ia64*)
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3550 lt_cv_file_magic_cmd=/usr/bin/file
3551 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3552 ;;
3553 esac
ac48eca1
AO
3554 ;;
3555
3556irix5* | irix6*)
55c80943 3557 case $host_os in
ac48eca1
AO
3558 irix5*)
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3561 ;;
3562 *)
55c80943 3563 case $LD in
ac48eca1
AO
3564 *-32|*"-32 ") libmagic=32-bit;;
3565 *-n32|*"-n32 ") libmagic=N32;;
3566 *-64|*"-64 ") libmagic=64-bit;;
3567 *) libmagic=never-match;;
3568 esac
3569 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3570 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3571 ;;
ac48eca1
AO
3572 esac
3573 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577# This must be Linux ELF.
90f2472a 3578linux-gnu*)
d70c5fc7 3579 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3580 ;;
3581
5464f5a1 3582netbsd* | knetbsd*-gnu)
55c80943 3583 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3585 else
b3baf5d0 3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3587 fi
55c80943
NC
3588 ;;
3589
3590newsos6)
3591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3594 ;;
3595
3596osf3* | osf4* | osf5*)
3597 # this will be overridden with pass_all, but let us keep it just in case
3598 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3599 lt_cv_file_magic_test_file=/shlib/libc.so
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603sco3.2v5*)
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607solaris*)
3608 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_file_magic_test_file=/lib/libc.so
3610 ;;
3611
6be7c12c
AO
3612sysv5uw[78]* | sysv4*uw2*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
ac48eca1 3616sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3617 case $host_vendor in
ac48eca1
AO
3618 ncr)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621 motorola)
55c80943
NC
3622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3624 ;;
3625 esac
3626 ;;
3627esac
3628
3629fi
5464f5a1
NN
3630echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3631echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3632file_magic_cmd=$lt_cv_file_magic_cmd
3633deplibs_check_method=$lt_cv_deplibs_check_method
3634
6be7c12c
AO
3635
3636
6be7c12c
AO
3637
3638# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3639
d70c5fc7
NC
3640# find the maximum length of command line arguments
3641echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3642echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3643if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646 i=0
3647 teststring="ABCD"
3648
3649 case $build_os in
3650 msdosdjgpp*)
3651 # On DJGPP, this test can blow up pretty badly due to problems in libc
3652 # (any single argument exceeding 2000 bytes causes a buffer overrun
3653 # during glob expansion). Even if it were fixed, the result of this
3654 # check would be larger than it should be.
3655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3656 ;;
3657
3658 cygwin* | mingw*)
3659 # On Win9x/ME, this test blows up -- it succeeds, but takes
3660 # about 5 minutes as the teststring grows exponentially.
3661 # Worse, since 9x/ME are not pre-emptively multitasking,
3662 # you end up with a "frozen" computer, even though with patience
3663 # the test eventually succeeds (with a max line length of 256k).
3664 # Instead, let's just punt: use the minimum linelength reported by
3665 # all of the supported platforms: 8192 (on NT/2K/XP).
3666 lt_cv_sys_max_cmd_len=8192;
3667 ;;
3668
3669 amigaos*)
3670 # On AmigaOS with pdksh, this test takes hours, literally.
3671 # So we just punt and use a minimum line length of 8192.
3672 lt_cv_sys_max_cmd_len=8192;
3673 ;;
3674
3675 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3676 # This has been around since 386BSD, at least. Likely further.
3677 if test -x /sbin/sysctl; then
3678 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3679 elif test -x /usr/sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3681 else
3682 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3683 fi
3684 # And add a safety zone
3685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3687 ;;
3688 esac
3689
3690fi
3691
3692if test -n "$lt_cv_sys_max_cmd_len" ; then
3693 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3694echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3695else
3696 echo "$as_me:$LINENO: result: none" >&5
3697echo "${ECHO_T}none" >&6
3698fi
3699
3700
6be7c12c
AO
3701# Only perform the check for file, if the check method requires it
3702case $deplibs_check_method in
3703file_magic*)
3704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3705 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3706echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3707if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3709else
3710 case $MAGIC_CMD in
3711 /*)
3712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3713 ;;
3714 ?:/*)
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3716 ;;
3717 *)
d64552c5 3718 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3720 ac_dummy="/usr/bin:$PATH"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3725 if test -n "$file_magic_test_file"; then
55c80943 3726 case $deplibs_check_method in
ac48eca1
AO
3727 "file_magic "*)
3728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3731 egrep "$file_magic_regex" > /dev/null; then
3732 :
3733 else
3734 cat <<EOF 1>&2
3735
3736*** Warning: the command libtool uses to detect shared libraries,
3737*** $file_magic_cmd, produces output that libtool cannot recognize.
3738*** The result is that libtool may fail to recognize shared libraries
3739*** as such. This will affect the creation of libtool libraries that
3740*** depend on shared libraries, but programs linked with such libtool
3741*** libraries will work regardless of this problem. Nevertheless, you
3742*** may want to report the problem to your system manager and/or to
3743*** bug-libtool@gnu.org
3744
3745EOF
3746 fi ;;
3747 esac
3748 fi
3749 break
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
d64552c5 3753 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3754 ;;
3755esac
3756fi
3757
d64552c5
AO
3758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3759if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3761echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3762else
5464f5a1
NN
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
ac48eca1
AO
3765fi
3766
d64552c5 3767if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3768 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3769 echo "$as_me:$LINENO: checking for file" >&5
3770echo $ECHO_N "checking for file... $ECHO_C" >&6
3771if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3773else
55c80943 3774 case $MAGIC_CMD in
ac48eca1 3775 /*)
d64552c5 3776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3777 ;;
3778 ?:/*)
d64552c5 3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3780 ;;
3781 *)
d64552c5 3782 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 ac_dummy="/usr/bin:$PATH"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/file; then
d64552c5 3788 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3789 if test -n "$file_magic_test_file"; then
55c80943 3790 case $deplibs_check_method in
ac48eca1
AO
3791 "file_magic "*)
3792 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3795 egrep "$file_magic_regex" > /dev/null; then
3796 :
3797 else
3798 cat <<EOF 1>&2
3799
3800*** Warning: the command libtool uses to detect shared libraries,
3801*** $file_magic_cmd, produces output that libtool cannot recognize.
3802*** The result is that libtool may fail to recognize shared libraries
3803*** as such. This will affect the creation of libtool libraries that
3804*** depend on shared libraries, but programs linked with such libtool
3805*** libraries will work regardless of this problem. Nevertheless, you
3806*** may want to report the problem to your system manager and/or to
3807*** bug-libtool@gnu.org
3808
3809EOF
3810 fi ;;
3811 esac
3812 fi
3813 break
3814 fi
3815 done
3816 IFS="$ac_save_ifs"
d64552c5 3817 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3818 ;;
3819esac
3820fi
3821
d64552c5
AO
3822MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3823if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3824 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3825echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3826else
5464f5a1
NN
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
ac48eca1
AO
3829fi
3830
3831 else
d64552c5 3832 MAGIC_CMD=:
ac48eca1
AO
3833 fi
3834fi
3835
3836 fi
3837 ;;
3838esac
3839
5464f5a1
NN
3840if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3842set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3843echo "$as_me:$LINENO: checking for $ac_word" >&5
3844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845if test "${ac_cv_prog_RANLIB+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3847else
3848 if test -n "$RANLIB"; then
3849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3850else
5464f5a1
NN
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863done
3864
ac48eca1
AO
3865fi
3866fi
5464f5a1 3867RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3868if test -n "$RANLIB"; then
5464f5a1
NN
3869 echo "$as_me:$LINENO: result: $RANLIB" >&5
3870echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3871else
5464f5a1
NN
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
ac48eca1
AO
3874fi
3875
5464f5a1 3876fi
ac48eca1 3877if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3878 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3879 # Extract the first word of "ranlib", so it can be a program name with args.
3880set dummy ranlib; ac_word=$2
5464f5a1
NN
3881echo "$as_me:$LINENO: checking for $ac_word" >&5
3882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3885else
5464f5a1
NN
3886 if test -n "$ac_ct_RANLIB"; then
3887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3888else
5464f5a1
NN
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_RANLIB="ranlib"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900done
3901done
3902
3903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3904fi
3905fi
5464f5a1
NN
3906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3907if test -n "$ac_ct_RANLIB"; then
3908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3909echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3910else
5464f5a1
NN
3911 echo "$as_me:$LINENO: result: no" >&5
3912echo "${ECHO_T}no" >&6
ac48eca1
AO
3913fi
3914
5464f5a1 3915 RANLIB=$ac_ct_RANLIB
ac48eca1 3916else
5464f5a1 3917 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3918fi
3919
5464f5a1
NN
3920if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3922set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3923echo "$as_me:$LINENO: checking for $ac_word" >&5
3924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925if test "${ac_cv_prog_STRIP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3927else
3928 if test -n "$STRIP"; then
3929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3930else
5464f5a1
NN
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942done
3943done
3944
ac48eca1
AO
3945fi
3946fi
5464f5a1 3947STRIP=$ac_cv_prog_STRIP
ac48eca1 3948if test -n "$STRIP"; then
5464f5a1
NN
3949 echo "$as_me:$LINENO: result: $STRIP" >&5
3950echo "${ECHO_T}$STRIP" >&6
ac48eca1 3951else
5464f5a1
NN
3952 echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
ac48eca1
AO
3954fi
3955
5464f5a1 3956fi
ac48eca1 3957if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3958 ac_ct_STRIP=$STRIP
ac48eca1
AO
3959 # Extract the first word of "strip", so it can be a program name with args.
3960set dummy strip; ac_word=$2
5464f5a1
NN
3961echo "$as_me:$LINENO: checking for $ac_word" >&5
3962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3965else
5464f5a1
NN
3966 if test -n "$ac_ct_STRIP"; then
3967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3968else
5464f5a1
NN
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_ac_ct_STRIP="strip"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980done
3981done
3982
3983 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3984fi
3985fi
5464f5a1
NN
3986ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3987if test -n "$ac_ct_STRIP"; then
3988 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3989echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3990else
5464f5a1
NN
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
ac48eca1
AO
3993fi
3994
5464f5a1 3995 STRIP=$ac_ct_STRIP
ac48eca1 3996else
5464f5a1 3997 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3998fi
252b5132 3999
6be7c12c 4000
252b5132 4001# Check for any special flags to pass to ltconfig.
b2ef150d 4002libtool_flags="--cache-file=$cache_file"
252b5132
RH
4003test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4004test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4005test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4006test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4007test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4008
6be7c12c 4009
a74801ba
ILT
4010# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4011if test "${enable_libtool_lock+set}" = set; then
4012 enableval="$enable_libtool_lock"
a74801ba 4013
5464f5a1 4014fi;
a74801ba
ILT
4015test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4016test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4017
5464f5a1 4018
ac48eca1
AO
4019# Check whether --with-pic or --without-pic was given.
4020if test "${with_pic+set}" = set; then
4021 withval="$with_pic"
4022 pic_mode="$withval"
4023else
5464f5a1
NN
4024 pic_mode=default
4025fi;
ac48eca1
AO
4026test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4027test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4028
252b5132
RH
4029# Some flags need to be propagated to the compiler or linker for good
4030# libtool support.
55c80943 4031case $host in
252b5132
RH
4032*-*-irix6*)
4033 # Find out which ABI we are using.
20e95c23 4034 echo '#line 4034 "configure"' > conftest.$ac_ext
5464f5a1
NN
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; then
6a457e5c
NC
4040 if test "$lt_cv_prog_gnu_ld" = yes; then
4041 case `/usr/bin/file conftest.$ac_objext` in
4042 *32-bit*)
4043 LD="${LD-ld} -melf32bsmip"
4044 ;;
4045 *N32*)
4046 LD="${LD-ld} -melf32bmipn32"
4047 ;;
4048 *64-bit*)
4049 LD="${LD-ld} -melf64bmip"
4050 ;;
4051 esac
4052 else
55c80943 4053 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4054 *32-bit*)
4055 LD="${LD-ld} -32"
4056 ;;
4057 *N32*)
4058 LD="${LD-ld} -n32"
4059 ;;
4060 *64-bit*)
4061 LD="${LD-ld} -64"
4062 ;;
4063 esac
6a457e5c 4064 fi
252b5132
RH
4065 fi
4066 rm -rf conftest*
4067 ;;
4068
4867be41
DJ
4069ia64-*-hpux*)
4070 # Find out which ABI we are using.
4071 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4867be41
DJ
4077 case "`/usr/bin/file conftest.o`" in
4078 *ELF-32*)
4079 HPUX_IA64_MODE="32"
4080 ;;
4081 *ELF-64*)
4082 HPUX_IA64_MODE="64"
4083 ;;
4084 esac
4085 fi
4086 rm -rf conftest*
4087 ;;
4088
d70c5fc7
NC
4089x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4090 # Find out which ABI we are using.
4091 echo 'int i;' > conftest.$ac_ext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; then
4097 case "`/usr/bin/file conftest.o`" in
4098 *32-bit*)
4099 case $host in
4100 x86_64-*linux*)
4101 LD="${LD-ld} -m elf_i386"
4102 ;;
4103 ppc64-*linux*|powerpc64-*linux*)
4104 LD="${LD-ld} -m elf32ppclinux"
4105 ;;
4106 s390x-*linux*)
4107 LD="${LD-ld} -m elf_s390"
4108 ;;
4109 sparc64-*linux*)
4110 LD="${LD-ld} -m elf32_sparc"
4111 ;;
4112 esac
4113 ;;
4114 *64-bit*)
4115 case $host in
4116 x86_64-*linux*)
4117 LD="${LD-ld} -m elf_x86_64"
4118 ;;
4119 ppc*-*linux*|powerpc*-*linux*)
4120 LD="${LD-ld} -m elf64ppc"
4121 ;;
4122 s390*-*linux*)
4123 LD="${LD-ld} -m elf64_s390"
4124 ;;
4125 sparc*-*linux*)
4126 LD="${LD-ld} -m elf64_sparc"
4127 ;;
4128 esac
4129 ;;
4130 esac
4131 fi
4132 rm -rf conftest*
4133 ;;
4134
252b5132
RH
4135*-*-sco3.2v5*)
4136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4137 SAVE_CFLAGS="$CFLAGS"
252b5132 4138 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4139 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4140echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4141if test "${lt_cv_cc_needs_belf+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4143else
5464f5a1
NN
4144
4145
ac48eca1 4146 ac_ext=c
ac48eca1 4147ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4151
5464f5a1
NN
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
b2ef150d 4158
5464f5a1
NN
4159int
4160main ()
4161{
b2ef150d 4162
5464f5a1
NN
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext conftest$ac_exeext
4168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
49c96104
SE
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
5464f5a1
NN
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
b2ef150d
ILT
4189 lt_cv_cc_needs_belf=yes
4190else
5464f5a1
NN
4191 echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194lt_cv_cc_needs_belf=no
b2ef150d 4195fi
5464f5a1
NN
4196rm -f conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4198 ac_ext=c
ac48eca1 4199ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4203
b2ef150d 4204fi
5464f5a1
NN
4205echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4206echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4209 CFLAGS="$SAVE_CFLAGS"
4210 fi
252b5132
RH
4211 ;;
4212
6be7c12c 4213
252b5132
RH
4214esac
4215
6be7c12c 4216
b2ef150d 4217# Save cache, so that ltconfig can load it
5464f5a1 4218cat >confcache <<\_ACEOF
b2ef150d
ILT
4219# This file is a shell script that caches the results of configure
4220# tests run on this system so they can be shared between configure
5464f5a1
NN
4221# scripts and configure runs, see configure's option --config-cache.
4222# It is not useful on other systems. If it contains results you don't
4223# want to keep, you may remove or edit it.
b2ef150d 4224#
5464f5a1
NN
4225# config.status only pays attention to the cache file if you give it
4226# the --recheck option to rerun configure.
b2ef150d 4227#
5464f5a1
NN
4228# `ac_cv_env_foo' variables (set or unset) will be overridden when
4229# loading this file, other *unset* `ac_cv_foo' will be assigned the
4230# following values.
4231
4232_ACEOF
4233
b2ef150d
ILT
4234# The following way of writing the cache mishandles newlines in values,
4235# but we know of no workaround that is simple, portable, and efficient.
4236# So, don't put newlines in cache variables' values.
4237# Ultrix sh set writes to stderr and can't be redirected directly,
4238# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4239{
4240 (set) 2>&1 |
4241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4242 *ac_space=\ *)
4243 # `set' does not quote correctly, so add quotes (double-quote
4244 # substitution turns \\\\ into \\, and sed turns \\ into \).
4245 sed -n \
4246 "s/'/'\\\\''/g;
4247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4248 ;;
4249 *)
4250 # `set' quotes correctly as required by POSIX, so do not add quotes.
4251 sed -n \
4252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4253 ;;
4254 esac;
4255} |
4256 sed '
4257 t clear
4258 : clear
4259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4260 t end
4261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4262 : end' >>confcache
4263if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4264 if test -w $cache_file; then
5464f5a1
NN
4265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4266 cat confcache >$cache_file
b2ef150d
ILT
4267 else
4268 echo "not updating unwritable cache $cache_file"
4269 fi
4270fi
4271rm -f confcache
4272
252b5132 4273# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4274AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4275MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4276LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4277AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4278objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4279deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4280${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4281$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4282|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4283echo "$as_me: error: libtool configure failed" >&2;}
4284 { (exit 1); exit 1; }; }
252b5132 4285
b2ef150d
ILT
4286# Reload cache, that may have been modified by ltconfig
4287if test -r "$cache_file"; then
5464f5a1
NN
4288 # Some versions of bash will fail to source /dev/null (special
4289 # files actually), so we avoid doing that.
4290 if test -f "$cache_file"; then
4291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4292echo "$as_me: loading cache $cache_file" >&6;}
4293 case $cache_file in
4294 [\\/]* | ?:[\\/]* ) . $cache_file;;
4295 *) . ./$cache_file;;
4296 esac
4297 fi
b2ef150d 4298else
5464f5a1
NN
4299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4300echo "$as_me: creating cache $cache_file" >&6;}
4301 >$cache_file
b2ef150d
ILT
4302fi
4303
6be7c12c 4304
b2ef150d 4305# This can be used to rebuild libtool when needed
ac48eca1 4306LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4307
4308# Always use our own libtool.
4309LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4310
252b5132
RH
4311# Redirect the config.log output again, so that the ltconfig log is not
4312# clobbered by the next message.
4313exec 5>>./config.log
4314
6be7c12c 4315
5464f5a1
NN
4316
4317
4318
4319
6be7c12c 4320
252b5132
RH
4321# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4322if test "${enable_64_bit_bfd+set}" = set; then
4323 enableval="$enable_64_bit_bfd"
4324 case "${enableval}" in
4325 yes) want64=true ;;
4326 no) want64=false ;;
5464f5a1
NN
4327 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4328echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4329 { (exit 1); exit 1; }; } ;;
252b5132
RH
4330esac
4331else
4332 want64=false
5464f5a1 4333fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4334if test "${enable_targets+set}" = set; then
4335 enableval="$enable_targets"
4336 case "${enableval}" in
5464f5a1
NN
4337 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4338echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4339 { (exit 1); exit 1; }; }
252b5132
RH
4340 ;;
4341 no) enable_targets= ;;
4342 *) enable_targets=$enableval ;;
4343esac
5464f5a1 4344fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4345if test "${enable_commonbfdlib+set}" = set; then
4346 enableval="$enable_commonbfdlib"
4347 case "${enableval}" in
4348 yes) commonbfdlib=true ;;
4349 no) commonbfdlib=false ;;
5464f5a1
NN
4350 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4351echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4352 { (exit 1); exit 1; }; } ;;
252b5132 4353esac
5464f5a1 4354fi;
252b5132
RH
4355# Check whether --with-mmap or --without-mmap was given.
4356if test "${with_mmap+set}" = set; then
4357 withval="$with_mmap"
4358 case "${withval}" in
4359 yes) want_mmap=true ;;
4360 no) want_mmap=false ;;
5464f5a1
NN
4361 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4362echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4363 { (exit 1); exit 1; }; } ;;
252b5132
RH
4364esac
4365else
4366 want_mmap=false
5464f5a1 4367fi;
6ec7057a
RH
4368# Check whether --enable-secureplt or --disable-secureplt was given.
4369if test "${enable_secureplt+set}" = set; then
4370 enableval="$enable_secureplt"
4371 case "${enableval}" in
4372 yes) use_secureplt=true ;;
4373 no) use_secureplt=false ;;
4374 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4375echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4377esac
4378else
4379 use_secureplt=false
4380fi; if test $use_secureplt = true; then
4381
4382cat >>confdefs.h <<\_ACEOF
4383#define USE_SECUREPLT 1
4384_ACEOF
4385
4386fi
4387
9e9b66a9 4388
49c96104 4389GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4390
569acd2c
NC
4391# Check whether --enable-werror or --disable-werror was given.
4392if test "${enable_werror+set}" = set; then
4393 enableval="$enable_werror"
1ad12f97
NC
4394 case "${enableval}" in
4395 yes | y) ERROR_ON_WARNING="yes" ;;
4396 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4397 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4398echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4399 { (exit 1); exit 1; }; } ;;
4400 esac
4401fi;
4402
9e9b66a9
AM
4403# Enable -Werror by default when using gcc
4404if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4405 ERROR_ON_WARNING=yes
4406fi
4407
4408NO_WERROR=
4409if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4410 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4411 NO_WERROR="-Wno-error"
1ad12f97
NC
4412fi
4413
49c96104
SE
4414if test "${GCC}" = yes ; then
4415 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4416fi
4417
a2d91340
AC
4418# Check whether --enable-build-warnings or --disable-build-warnings was given.
4419if test "${enable_build_warnings+set}" = set; then
4420 enableval="$enable_build_warnings"
4421 case "${enableval}" in
49c96104
SE
4422 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4423 no) if test "${GCC}" = yes ; then
4424 WARN_CFLAGS="-w"
4425 fi;;
a2d91340 4426 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4427 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4429 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4430 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4431esac
9e9b66a9
AM
4432fi;
4433
4434if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4435 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4436fi
4437
4438
9e9b66a9
AM
4439
4440
4441
5464f5a1 4442 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4443
252b5132
RH
4444
4445if test -z "$target" ; then
5464f5a1
NN
4446 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4447echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4448 { (exit 1); exit 1; }; }
252b5132 4449fi
252b5132 4450
5464f5a1
NN
4451echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4452echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4453 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4454if test "${enable_maintainer_mode+set}" = set; then
4455 enableval="$enable_maintainer_mode"
4456 USE_MAINTAINER_MODE=$enableval
4457else
4458 USE_MAINTAINER_MODE=no
5464f5a1
NN
4459fi;
4460 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4461echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4462
252b5132
RH
4463
4464if test $USE_MAINTAINER_MODE = yes; then
4465 MAINTAINER_MODE_TRUE=
4466 MAINTAINER_MODE_FALSE='#'
4467else
4468 MAINTAINER_MODE_TRUE='#'
4469 MAINTAINER_MODE_FALSE=
4470fi
f5385ebf 4471
252b5132 4472 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4473
5464f5a1 4474
24443139
AS
4475 case ${build_alias} in
4476 "") build_noncanonical=${build} ;;
4477 *) build_noncanonical=${build_alias} ;;
4478esac
4479
4480 case ${host_alias} in
4481 "") host_noncanonical=${build_noncanonical} ;;
4482 *) host_noncanonical=${host_alias} ;;
4483esac
4484
4485 case ${target_alias} in
4486 "") target_noncanonical=${host_noncanonical} ;;
4487 *) target_noncanonical=${target_alias} ;;
4488esac
4489
5464f5a1
NN
4490echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4491echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4492 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4493if test "${enable_install_libbfd+set}" = set; then
4494 enableval="$enable_install_libbfd"
4495 install_libbfd_p=$enableval
4496else
66e25bab 4497 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4498 install_libbfd_p=yes
4499 else
4500 install_libbfd_p=no
4501 fi
5464f5a1
NN
4502fi;
4503 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4504echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4505
a703a6ea
AM
4506
4507if test $install_libbfd_p = yes; then
4508 INSTALL_LIBBFD_TRUE=
4509 INSTALL_LIBBFD_FALSE='#'
4510else
4511 INSTALL_LIBBFD_TRUE='#'
4512 INSTALL_LIBBFD_FALSE=
4513fi
f5385ebf 4514
5464f5a1 4515 # Need _noncanonical variables for this.
24443139
AS
4516
4517
4518
4519
a703a6ea
AM
4520 # libbfd.a is a host library containing target dependent code
4521 bfdlibdir='$(libdir)'
4522 bfdincludedir='$(includedir)'
4523 if test "${host}" != "${target}"; then
5464f5a1
NN
4524 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4525 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4526 fi
a703a6ea
AM
4527
4528
252b5132
RH
4529
4530
5464f5a1
NN
4531
4532
4533host64=false
4534target64=false
4535bfd_default_target_size=32
4536
4537# host stuff:
4538
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}gcc; ac_word=$2
4547echo "$as_me:$LINENO: checking for $ac_word" >&5
4548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549if test "${ac_cv_prog_CC+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4551else
5464f5a1
NN
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4554else
5464f5a1
NN
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
6be7c12c 4565 fi
5464f5a1
NN
4566done
4567done
4568
252b5132 4569fi
b3baf5d0 4570fi
5464f5a1
NN
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
4573 echo "$as_me:$LINENO: result: $CC" >&5
4574echo "${ECHO_T}$CC" >&6
4575else
4576 echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6
4578fi
252b5132 4579
5464f5a1
NN
4580fi
4581if test -z "$ac_cv_prog_CC"; then
4582 ac_ct_CC=$CC
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584set dummy gcc; ac_word=$2
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_ac_ct_CC="gcc"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
252b5132 4606
5464f5a1
NN
4607fi
4608fi
4609ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610if test -n "$ac_ct_CC"; then
4611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4612echo "${ECHO_T}$ac_ct_CC" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
252b5132 4617
5464f5a1
NN
4618 CC=$ac_ct_CC
4619else
4620 CC="$ac_cv_prog_CC"
4621fi
252b5132 4622
5464f5a1
NN
4623if test -z "$CC"; then
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4626set dummy ${ac_tool_prefix}cc; ac_word=$2
4627echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629if test "${ac_cv_prog_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_CC="${ac_tool_prefix}cc"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647done
6be7c12c 4648
5464f5a1
NN
4649fi
4650fi
4651CC=$ac_cv_prog_CC
4652if test -n "$CC"; then
4653 echo "$as_me:$LINENO: result: $CC" >&5
4654echo "${ECHO_T}$CC" >&6
4655else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658fi
4659
4660fi
4661if test -z "$ac_cv_prog_CC"; then
4662 ac_ct_CC=$CC
4663 # Extract the first word of "cc", so it can be a program name with args.
4664set dummy cc; ac_word=$2
4665echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 if test -n "$ac_ct_CC"; then
4671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_ac_ct_CC="cc"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684done
4685done
4686
4687fi
4688fi
4689ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690if test -n "$ac_ct_CC"; then
4691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692echo "${ECHO_T}$ac_ct_CC" >&6
4693else
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
4696fi
4697
4698 CC=$ac_ct_CC
4699else
4700 CC="$ac_cv_prog_CC"
4701fi
4702
4703fi
4704if test -z "$CC"; then
4705 # Extract the first word of "cc", so it can be a program name with args.
4706set dummy cc; ac_word=$2
4707echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709if test "${ac_cv_prog_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4711else
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC="$CC" # Let the user override the test.
4714else
5464f5a1
NN
4715 ac_prog_rejected=no
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4724 ac_prog_rejected=yes
4725 continue
4726 fi
4727 ac_cv_prog_CC="cc"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732done
4733
4734if test $ac_prog_rejected = yes; then
4735 # We found a bogon in the path, so make sure we never use it.
4736 set dummy $ac_cv_prog_CC
4737 shift
4738 if test $# != 0; then
4739 # We chose a different compiler from the bogus one.
4740 # However, it has the same basename, so the bogon will be chosen
4741 # first if we set CC to just the basename; use the full file name.
4742 shift
4743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4744 fi
4745fi
4746fi
4747fi
4748CC=$ac_cv_prog_CC
4749if test -n "$CC"; then
4750 echo "$as_me:$LINENO: result: $CC" >&5
4751echo "${ECHO_T}$CC" >&6
4752else
4753 echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755fi
4756
4757fi
4758if test -z "$CC"; then
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog in cl
4761 do
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4764echo "$as_me:$LINENO: checking for $ac_word" >&5
4765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766if test "${ac_cv_prog_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783done
4784done
4785
4786fi
4787fi
4788CC=$ac_cv_prog_CC
4789if test -n "$CC"; then
4790 echo "$as_me:$LINENO: result: $CC" >&5
4791echo "${ECHO_T}$CC" >&6
4792else
4793 echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6
4795fi
4796
4797 test -n "$CC" && break
6be7c12c 4798 done
252b5132 4799fi
5464f5a1
NN
4800if test -z "$CC"; then
4801 ac_ct_CC=$CC
4802 for ac_prog in cl
4803do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805set dummy $ac_prog; ac_word=$2
4806echo "$as_me:$LINENO: checking for $ac_word" >&5
4807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 if test -n "$ac_ct_CC"; then
4812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_ac_ct_CC="$ac_prog"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825done
4826done
4827
4828fi
4829fi
4830ac_ct_CC=$ac_cv_prog_ac_ct_CC
4831if test -n "$ac_ct_CC"; then
4832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4833echo "${ECHO_T}$ac_ct_CC" >&6
4834else
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
4837fi
4838
4839 test -n "$ac_ct_CC" && break
4840done
4841
4842 CC=$ac_ct_CC
4843fi
4844
4845fi
4846
4847
4848test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4849See \`config.log' for more details." >&5
4850echo "$as_me: error: no acceptable C compiler found in \$PATH
4851See \`config.log' for more details." >&2;}
4852 { (exit 1); exit 1; }; }
4853
4854# Provide some information about the compiler.
4855echo "$as_me:$LINENO:" \
4856 "checking for C compiler version" >&5
4857ac_compiler=`set X $ac_compile; echo $2`
4858{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4859 (eval $ac_compiler --version </dev/null >&5) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }
4863{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4864 (eval $ac_compiler -v </dev/null >&5) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }
4868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4869 (eval $ac_compiler -V </dev/null >&5) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }
4873
4874echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4875echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4876if test "${ac_cv_c_compiler_gnu+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879 cat >conftest.$ac_ext <<_ACEOF
4880/* confdefs.h. */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h. */
4885
4886int
4887main ()
4888{
4889#ifndef __GNUC__
4890 choke me
4891#endif
4892
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897rm -f conftest.$ac_objext
4898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
49c96104
SE
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
5464f5a1
NN
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_compiler_gnu=yes
4920else
4921 echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924ac_compiler_gnu=no
4925fi
4926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4927ac_cv_c_compiler_gnu=$ac_compiler_gnu
4928
4929fi
4930echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4931echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4932GCC=`test $ac_compiler_gnu = yes && echo yes`
4933ac_test_CFLAGS=${CFLAGS+set}
4934ac_save_CFLAGS=$CFLAGS
4935CFLAGS="-g"
4936echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4937echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4938if test "${ac_cv_prog_cc_g+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947
4948int
4949main ()
4950{
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
49c96104
SE
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
5464f5a1
NN
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_prog_cc_g=yes
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983ac_cv_prog_cc_g=no
4984fi
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986fi
4987echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4988echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4989if test "$ac_test_CFLAGS" = set; then
4990 CFLAGS=$ac_save_CFLAGS
4991elif test $ac_cv_prog_cc_g = yes; then
4992 if test "$GCC" = yes; then
4993 CFLAGS="-g -O2"
4994 else
4995 CFLAGS="-g"
4996 fi
4997else
4998 if test "$GCC" = yes; then
4999 CFLAGS="-O2"
5000 else
5001 CFLAGS=
5002 fi
5003fi
5004echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5005echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5006if test "${ac_cv_prog_cc_stdc+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009 ac_cv_prog_cc_stdc=no
5010ac_save_CC=$CC
5011cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <stdarg.h>
5018#include <stdio.h>
5019#include <sys/types.h>
5020#include <sys/stat.h>
5021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5022struct buf { int x; };
5023FILE * (*rcsopen) (struct buf *, struct stat *, int);
5024static char *e (p, i)
5025 char **p;
5026 int i;
5027{
5028 return p[i];
5029}
5030static char *f (char * (*g) (char **, int), char **p, ...)
5031{
5032 char *s;
5033 va_list v;
5034 va_start (v,p);
5035 s = g (p, va_arg (v,int));
5036 va_end (v);
5037 return s;
5038}
5039
5040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5041 function prototypes and stuff, but not '\xHH' hex character constants.
5042 These don't provoke an error unfortunately, instead are silently treated
5043 as 'x'. The following induces an error, until -std1 is added to get
5044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5045 array size at least. It's necessary to write '\x00'==0 to get something
5046 that's true only with -std1. */
5047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5048
5049int test (int i, double x);
5050struct s1 {int (*f) (int a);};
5051struct s2 {int (*f) (double a);};
5052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5053int argc;
5054char **argv;
5055int
5056main ()
5057{
5058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063# Don't try gcc -ansi; that turns off useful extensions and
5064# breaks some systems' header files.
5065# AIX -qlanglvl=ansi
5066# Ultrix and OSF/1 -std1
5067# HP-UX 10.20 and later -Ae
5068# HP-UX older versions -Aa -D_HPUX_SOURCE
5069# SVR4 -Xc -D__EXTENSIONS__
5070for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5071do
5072 CC="$ac_save_CC $ac_arg"
5073 rm -f conftest.$ac_objext
5074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
49c96104
SE
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5464f5a1
NN
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 ac_cv_prog_cc_stdc=$ac_arg
5096break
5097else
5098 echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101fi
5102rm -f conftest.err conftest.$ac_objext
5103done
5104rm -f conftest.$ac_ext conftest.$ac_objext
5105CC=$ac_save_CC
5106
5107fi
5108
5109case "x$ac_cv_prog_cc_stdc" in
5110 x|xno)
5111 echo "$as_me:$LINENO: result: none needed" >&5
5112echo "${ECHO_T}none needed" >&6 ;;
5113 *)
5114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5115echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5116 CC="$CC $ac_cv_prog_cc_stdc" ;;
5117esac
5118
5119# Some people use a C++ compiler to compile C. Since we use `exit',
5120# in C++ we need to declare it. In case someone uses the same compiler
5121# for both compiling C and C++ we need to have the C++ compiler decide
5122# the declaration of exit, since it's the most demanding environment.
5123cat >conftest.$ac_ext <<_ACEOF
5124#ifndef __cplusplus
5125 choke me
5126#endif
5127_ACEOF
5128rm -f conftest.$ac_objext
5129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
49c96104
SE
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
5464f5a1
NN
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 for ac_declaration in \
5151 '' \
5152 'extern "C" void std::exit (int) throw (); using std::exit;' \
5153 'extern "C" void std::exit (int); using std::exit;' \
5154 'extern "C" void exit (int) throw ();' \
5155 'extern "C" void exit (int);' \
5156 'void exit (int);'
5157do
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164$ac_declaration
5165#include <stdlib.h>
5166int
5167main ()
5168{
5169exit (42);
5170 ;
5171 return 0;
5172}
5173_ACEOF
5174rm -f conftest.$ac_objext
5175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
49c96104
SE
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5464f5a1
NN
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 :
5197else
5198 echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201continue
5202fi
5203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5204 cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h. */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h. */
5210$ac_declaration
5211int
5212main ()
5213{
5214exit (42);
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
49c96104
SE
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5464f5a1
NN
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 break
5242else
5243 echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246fi
5247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248done
5249rm -f conftest*
5250if test -n "$ac_declaration"; then
5251 echo '#ifdef __cplusplus' >>confdefs.h
5252 echo $ac_declaration >>confdefs.h
5253 echo '#endif' >>confdefs.h
252b5132 5254fi
5464f5a1 5255
b3baf5d0 5256else
5464f5a1
NN
5257 echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
b3baf5d0 5260fi
5464f5a1
NN
5261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262ac_ext=c
5263ac_cpp='$CPP $CPPFLAGS'
5264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5267
5464f5a1 5268
4a2a2686
HPN
5269cat >>confdefs.h <<\_ACEOF
5270#define _GNU_SOURCE 1
5271_ACEOF
5272
5273
5274
dcd4b381 5275ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5276# If we haven't got the data from the intl directory,
5277# assume NLS is disabled.
5278USE_NLS=no
5279LIBINTL=
5280LIBINTL_DEP=
5281INCINTL=
5282XGETTEXT=
5283GMSGFMT=
5284POSUB=
5285if test -f ../intl/config.intl; then
5286 . ../intl/config.intl
5287fi
5288echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5289echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5290if test x"$USE_NLS" != xyes; then
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
252b5132 5293else
20e95c23
DJ
5294 echo "$as_me:$LINENO: result: yes" >&5
5295echo "${ECHO_T}yes" >&6
5296
5297cat >>confdefs.h <<\_ACEOF
5298#define ENABLE_NLS 1
5299_ACEOF
5300
5301
5302 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5303echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5304 # Look for .po and .gmo files in the source directory.
5305 CATALOGS=
5306 XLINGUAS=
5307 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5308 # If there aren't any .gmo files the shell will give us the
5309 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5310 # weeded out.
5311 case "$cat" in *\**)
5312 continue;;
5313 esac
5314 # The quadruple backslash is collapsed to a double backslash
5315 # by the backticks, then collapsed again by the double quotes,
5316 # leaving us with one backslash in the sed expression (right
5317 # before the dot that mustn't act as a wildcard).
5318 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5319 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5320 # The user is allowed to set LINGUAS to a list of languages to
5321 # install catalogs for. If it's empty that means "all of them."
5322 if test "x$LINGUAS" = x; then
5323 CATALOGS="$CATALOGS $cat"
5324 XLINGUAS="$XLINGUAS $lang"
5325 else
5326 case "$LINGUAS" in *$lang*)
5327 CATALOGS="$CATALOGS $cat"
5328 XLINGUAS="$XLINGUAS $lang"
5329 ;;
5330 esac
5331 fi
5332 done
5333 LINGUAS="$XLINGUAS"
5334 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5335echo "${ECHO_T}$LINGUAS" >&6
5336
5337
5338 DATADIRNAME=share
5339
5340 INSTOBJEXT=.mo
5341
5342 GENCAT=gencat
5343
5344 CATOBJEXT=.gmo
5345
5346fi
5347
5348 MKINSTALLDIRS=
5349 if test -n "$ac_aux_dir"; then
5350 case "$ac_aux_dir" in
5351 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5352 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5353 esac
5354 fi
5355 if test -z "$MKINSTALLDIRS"; then
5356 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5357 fi
5358
5359
5360
5361 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5362echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5363 # Check whether --enable-nls or --disable-nls was given.
5364if test "${enable_nls+set}" = set; then
5365 enableval="$enable_nls"
5366 USE_NLS=$enableval
252b5132 5367else
20e95c23
DJ
5368 USE_NLS=yes
5369fi;
5370 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5371echo "${ECHO_T}$USE_NLS" >&6
5372
5373
5374
5375
5376
5377
5378# Prepare PATH_SEPARATOR.
5379# The user is always right.
5380if test "${PATH_SEPARATOR+set}" != set; then
5381 echo "#! /bin/sh" >conf$$.sh
5382 echo "exit 0" >>conf$$.sh
5383 chmod +x conf$$.sh
5384 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5385 PATH_SEPARATOR=';'
5386 else
5387 PATH_SEPARATOR=:
252b5132 5388 fi
20e95c23
DJ
5389 rm -f conf$$.sh
5390fi
5464f5a1 5391
20e95c23
DJ
5392# Find out how to test for executable files. Don't use a zero-byte file,
5393# as systems may use methods other than mode bits to determine executability.
5394cat >conf$$.file <<_ASEOF
5395#! /bin/sh
5396exit 0
5397_ASEOF
5398chmod +x conf$$.file
5399if test -x conf$$.file >/dev/null 2>&1; then
5400 ac_executable_p="test -x"
5401else
5402 ac_executable_p="test -f"
252b5132 5403fi
20e95c23
DJ
5404rm -f conf$$.file
5405
5406# Extract the first word of "msgfmt", so it can be a program name with args.
5407set dummy msgfmt; ac_word=$2
5408echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410if test "${ac_cv_path_MSGFMT+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 case "$MSGFMT" in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5416 ;;
5417 *)
5418 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5419 for ac_dir in $PATH; do
5420 IFS="$ac_save_IFS"
5421 test -z "$ac_dir" && ac_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5424 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5425 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5426 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5427 break 2
5428 fi
5429 fi
5430 done
5431 done
5432 IFS="$ac_save_IFS"
5433 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5434 ;;
5435esac
252b5132 5436fi
20e95c23
DJ
5437MSGFMT="$ac_cv_path_MSGFMT"
5438if test "$MSGFMT" != ":"; then
5439 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5440echo "${ECHO_T}$MSGFMT" >&6
252b5132 5441else
5464f5a1
NN
5442 echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6
252b5132
RH
5444fi
5445
20e95c23
DJ
5446 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5447set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5450if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5451 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5452else
20e95c23
DJ
5453 case $GMSGFMT in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5465 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469done
5470done
5471
20e95c23
DJ
5472 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5473 ;;
5474esac
252b5132 5475fi
20e95c23
DJ
5476GMSGFMT=$ac_cv_path_GMSGFMT
5477
5478if test -n "$GMSGFMT"; then
5479 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5480echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5481else
5464f5a1
NN
5482 echo "$as_me:$LINENO: result: no" >&5
5483echo "${ECHO_T}no" >&6
b3baf5d0 5484fi
252b5132 5485
20e95c23
DJ
5486
5487
5488# Prepare PATH_SEPARATOR.
5489# The user is always right.
5490if test "${PATH_SEPARATOR+set}" != set; then
5491 echo "#! /bin/sh" >conf$$.sh
5492 echo "exit 0" >>conf$$.sh
5493 chmod +x conf$$.sh
5494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5495 PATH_SEPARATOR=';'
5496 else
5497 PATH_SEPARATOR=:
5498 fi
5499 rm -f conf$$.sh
252b5132 5500fi
5464f5a1 5501
20e95c23
DJ
5502# Find out how to test for executable files. Don't use a zero-byte file,
5503# as systems may use methods other than mode bits to determine executability.
5504cat >conf$$.file <<_ASEOF
5505#! /bin/sh
5506exit 0
5507_ASEOF
5508chmod +x conf$$.file
5509if test -x conf$$.file >/dev/null 2>&1; then
5510 ac_executable_p="test -x"
5511else
5512 ac_executable_p="test -f"
6be7c12c 5513fi
20e95c23
DJ
5514rm -f conf$$.file
5515
5516# Extract the first word of "xgettext", so it can be a program name with args.
5517set dummy xgettext; ac_word=$2
5518echo "$as_me:$LINENO: checking for $ac_word" >&5
5519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5520if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5521 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5522else
20e95c23
DJ
5523 case "$XGETTEXT" in
5524 [\\/]* | ?:[\\/]*)
5525 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5526 ;;
5527 *)
5528 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5529 for ac_dir in $PATH; do
5530 IFS="$ac_save_IFS"
5531 test -z "$ac_dir" && ac_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5534 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5535 (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
5536 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5537 break 2
5538 fi
5539 fi
5540 done
5541 done
5542 IFS="$ac_save_IFS"
5543 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5544 ;;
5545esac
5546fi
5547XGETTEXT="$ac_cv_path_XGETTEXT"
5548if test "$XGETTEXT" != ":"; then
5549 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5550echo "${ECHO_T}$XGETTEXT" >&6
5551else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554fi
5555
5556 rm -f messages.po
5557
5558
5559# Prepare PATH_SEPARATOR.
5560# The user is always right.
5561if test "${PATH_SEPARATOR+set}" != set; then
5562 echo "#! /bin/sh" >conf$$.sh
5563 echo "exit 0" >>conf$$.sh
5564 chmod +x conf$$.sh
5565 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5566 PATH_SEPARATOR=';'
5464f5a1 5567 else
20e95c23 5568 PATH_SEPARATOR=:
5464f5a1 5569 fi
20e95c23 5570 rm -f conf$$.sh
6be7c12c 5571fi
5464f5a1 5572
20e95c23
DJ
5573# Find out how to test for executable files. Don't use a zero-byte file,
5574# as systems may use methods other than mode bits to determine executability.
5575cat >conf$$.file <<_ASEOF
5576#! /bin/sh
5577exit 0
5578_ASEOF
5579chmod +x conf$$.file
5580if test -x conf$$.file >/dev/null 2>&1; then
5581 ac_executable_p="test -x"
5582else
5583 ac_executable_p="test -f"
5464f5a1 5584fi
20e95c23 5585rm -f conf$$.file
5464f5a1 5586
20e95c23
DJ
5587# Extract the first word of "msgmerge", so it can be a program name with args.
5588set dummy msgmerge; ac_word=$2
5589echo "$as_me:$LINENO: checking for $ac_word" >&5
5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5591if test "${ac_cv_path_MSGMERGE+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5593else
20e95c23
DJ
5594 case "$MSGMERGE" in
5595 [\\/]* | ?:[\\/]*)
5596 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5597 ;;
5598 *)
5599 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5600 for ac_dir in $PATH; do
5601 IFS="$ac_save_IFS"
5602 test -z "$ac_dir" && ac_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5605 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5606 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5607 break 2
5608 fi
5609 fi
5610 done
5464f5a1 5611 done
20e95c23
DJ
5612 IFS="$ac_save_IFS"
5613 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5614 ;;
5615esac
5464f5a1 5616fi
20e95c23
DJ
5617MSGMERGE="$ac_cv_path_MSGMERGE"
5618if test "$MSGMERGE" != ":"; then
5619 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5620echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5621else
20e95c23
DJ
5622 echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
5464f5a1 5624fi
5464f5a1 5625
5464f5a1 5626
20e95c23
DJ
5627 if test "$GMSGFMT" != ":"; then
5628 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5629 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5630 : ;
5631 else
5632 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5633 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5634echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5635 GMSGFMT=":"
5636 fi
5464f5a1 5637 fi
5464f5a1 5638
20e95c23
DJ
5639 if test "$XGETTEXT" != ":"; then
5640 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5641 (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
5642 : ;
5643 else
5644 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5645echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5646 XGETTEXT=":"
5647 fi
5648 rm -f messages.po
5649 fi
6be7c12c 5650
20e95c23 5651 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5652
5464f5a1
NN
5653
5654
20e95c23
DJ
5655# Permit host specific settings.
5656. ${srcdir}/configure.host
5464f5a1 5657
ac48eca1 5658
20e95c23
DJ
5659# Find a good install program. We prefer a C program (faster),
5660# so one script is as good as another. But avoid the broken or
5661# incompatible versions:
5662# SysV /etc/install, /usr/sbin/install
5663# SunOS /usr/etc/install
5664# IRIX /sbin/install
5665# AIX /bin/install
5666# AmigaOS /C/install, which installs bootblocks on floppy discs
5667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5668# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5670# OS/2's system install, which has a completely different semantic
5671# ./install, which can be erroneously created by make from ./install.sh.
5672echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5673echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5674if test -z "$INSTALL"; then
5675if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5676 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5677else
20e95c23
DJ
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 # Account for people who put trailing slashes in PATH elements.
5684case $as_dir/ in
5685 ./ | .// | /cC/* | \
5686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5688 /usr/ucb/* ) ;;
5464f5a1 5689 *)
20e95c23
DJ
5690 # OSF1 and SCO ODT 3.0 have their own names for install.
5691 # Don't use installbsd from OSF since it installs stuff as root
5692 # by default.
5693 for ac_prog in ginstall scoinst install; do
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5696 if test $ac_prog = install &&
5697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5698 # AIX install. It has an incompatible calling convention.
5699 :
5700 elif test $ac_prog = install &&
5701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5702 # program-specific install script used by HP pwplus--don't use.
5703 :
5704 else
5705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5706 break 3
5707 fi
5708 fi
5709 done
5710 done
5464f5a1
NN
5711 ;;
5712esac
252b5132
RH
5713done
5714
20e95c23 5715
252b5132 5716fi
20e95c23
DJ
5717 if test "${ac_cv_path_install+set}" = set; then
5718 INSTALL=$ac_cv_path_install
5719 else
5720 # As a last resort, use the slow shell script. We don't cache a
5721 # path for INSTALL within a source directory, because that will
5722 # break other packages using the cache if that directory is
5723 # removed, or if the path is relative.
5724 INSTALL=$ac_install_sh
5725 fi
252b5132 5726fi
20e95c23
DJ
5727echo "$as_me:$LINENO: result: $INSTALL" >&5
5728echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5729
20e95c23
DJ
5730# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5731# It thinks the first close brace ends the variable substitution.
5732test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5733
20e95c23 5734test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5735
20e95c23 5736test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5737
252b5132 5738
20e95c23
DJ
5739BFD_HOST_64BIT_LONG=0
5740BFD_HOST_LONG_LONG=0
5741BFD_HOST_64_BIT_DEFINED=0
5742BFD_HOST_64_BIT=
5743BFD_HOST_U_64_BIT=
5464f5a1 5744
20e95c23
DJ
5745echo "$as_me:$LINENO: checking for long long" >&5
5746echo $ECHO_N "checking for long long... $ECHO_C" >&6
5747if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5749else
20e95c23 5750 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5751/* confdefs.h. */
5752_ACEOF
5753cat confdefs.h >>conftest.$ac_ext
5754cat >>conftest.$ac_ext <<_ACEOF
5755/* end confdefs.h. */
20e95c23
DJ
5756
5757int
5758main ()
5759{
5760unsigned long long ll = 18446744073709551615ULL;
5761 ;
5762 return 0;
5763}
5464f5a1
NN
5764_ACEOF
5765rm -f conftest.$ac_objext
5766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
49c96104
SE
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5464f5a1
NN
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
20e95c23 5787 bfd_cv_has_long_long=yes
5464f5a1
NN
5788else
5789 echo "$as_me: failed program was:" >&5
5790sed 's/^/| /' conftest.$ac_ext >&5
5791
20e95c23 5792bfd_cv_has_long_long=no
5464f5a1
NN
5793fi
5794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5795fi
5464f5a1 5796
20e95c23
DJ
5797echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5798echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5799if test $bfd_cv_has_long_long = yes; then
5800 BFD_HOST_LONG_LONG=1
5801 ac_ext=c
5802ac_cpp='$CPP $CPPFLAGS'
5803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5807echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5808# On Suns, sometimes $CPP names a directory.
5809if test -n "$CPP" && test -d "$CPP"; then
5810 CPP=
5811fi
5812if test -z "$CPP"; then
5813 if test "${ac_cv_prog_CPP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815else
5816 # Double quotes because CPP needs to be expanded
5817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5818 do
5819 ac_preproc_ok=false
5820for ac_c_preproc_warn_flag in '' yes
5821do
5822 # Use a header file that comes with gcc, so configuring glibc
5823 # with a fresh cross-compiler works.
5824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 # <limits.h> exists even on freestanding compilers.
5826 # On the NeXT, cc -E runs the code through the compiler's parser,
5827 # not just through cpp. "Syntax error" is here to catch this case.
5828 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
20e95c23
DJ
5834#ifdef __STDC__
5835# include <limits.h>
5836#else
5837# include <assert.h>
5838#endif
5839 Syntax error
5464f5a1
NN
5840_ACEOF
5841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } >/dev/null; then
5849 if test -s conftest.err; then
5850 ac_cpp_err=$ac_c_preproc_warn_flag
5851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5852 else
5853 ac_cpp_err=
5854 fi
252b5132 5855else
5464f5a1 5856 ac_cpp_err=yes
252b5132 5857fi
5464f5a1 5858if test -z "$ac_cpp_err"; then
20e95c23 5859 :
5464f5a1
NN
5860else
5861 echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
20e95c23
DJ
5864 # Broken: fails on valid input.
5865continue
252b5132 5866fi
5464f5a1 5867rm -f conftest.err conftest.$ac_ext
5464f5a1 5868
20e95c23
DJ
5869 # OK, works on sane cases. Now check whether non-existent headers
5870 # can be detected and how.
5464f5a1
NN
5871 cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h. */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h. */
20e95c23 5877#include <ac_nonexistent.h>
5464f5a1 5878_ACEOF
20e95c23
DJ
5879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5881 ac_status=$?
20e95c23
DJ
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5464f5a1 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5886 (exit $ac_status); } >/dev/null; then
5887 if test -s conftest.err; then
5888 ac_cpp_err=$ac_c_preproc_warn_flag
5889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5890 else
5891 ac_cpp_err=
5892 fi
5893else
5894 ac_cpp_err=yes
5895fi
5896if test -z "$ac_cpp_err"; then
5897 # Broken: success on invalid input.
5898continue
252b5132 5899else
5464f5a1
NN
5900 echo "$as_me: failed program was:" >&5
5901sed 's/^/| /' conftest.$ac_ext >&5
5902
20e95c23
DJ
5903 # Passes both tests.
5904ac_preproc_ok=:
5905break
252b5132 5906fi
20e95c23 5907rm -f conftest.err conftest.$ac_ext
252b5132 5908
20e95c23
DJ
5909done
5910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911rm -f conftest.err conftest.$ac_ext
5912if $ac_preproc_ok; then
5913 break
5914fi
5464f5a1 5915
20e95c23
DJ
5916 done
5917 ac_cv_prog_CPP=$CPP
252b5132 5918
252b5132 5919fi
20e95c23 5920 CPP=$ac_cv_prog_CPP
252b5132 5921else
20e95c23 5922 ac_cv_prog_CPP=$CPP
252b5132 5923fi
20e95c23
DJ
5924echo "$as_me:$LINENO: result: $CPP" >&5
5925echo "${ECHO_T}$CPP" >&6
5926ac_preproc_ok=false
5927for ac_c_preproc_warn_flag in '' yes
252b5132 5928do
20e95c23
DJ
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
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. */
5464f5a1
NN
5941#ifdef __STDC__
5942# include <limits.h>
5943#else
5944# include <assert.h>
5945#endif
20e95c23 5946 Syntax error
5464f5a1 5947_ACEOF
20e95c23
DJ
5948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5955 (exit $ac_status); } >/dev/null; then
5956 if test -s conftest.err; then
5957 ac_cpp_err=$ac_c_preproc_warn_flag
5958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5959 else
5960 ac_cpp_err=
5961 fi
5962else
5963 ac_cpp_err=yes
5964fi
5965if test -z "$ac_cpp_err"; then
5966 :
5464f5a1
NN
5967else
5968 echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
20e95c23
DJ
5971 # Broken: fails on valid input.
5972continue
5464f5a1 5973fi
20e95c23 5974rm -f conftest.err conftest.$ac_ext
252b5132 5975
20e95c23
DJ
5976 # OK, works on sane cases. Now check whether non-existent headers
5977 # can be detected and how.
5978 cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h. */
5984#include <ac_nonexistent.h>
5985_ACEOF
5986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null; then
5994 if test -s conftest.err; then
5995 ac_cpp_err=$ac_c_preproc_warn_flag
5996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5997 else
5998 ac_cpp_err=
5999 fi
6000else
6001 ac_cpp_err=yes
252b5132 6002fi
20e95c23
DJ
6003if test -z "$ac_cpp_err"; then
6004 # Broken: success on invalid input.
6005continue
252b5132 6006else
20e95c23
DJ
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6009
20e95c23
DJ
6010 # Passes both tests.
6011ac_preproc_ok=:
6012break
252b5132 6013fi
20e95c23 6014rm -f conftest.err conftest.$ac_ext
5464f5a1 6015
20e95c23
DJ
6016done
6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018rm -f conftest.err conftest.$ac_ext
6019if $ac_preproc_ok; then
6020 :
252b5132 6021else
20e95c23
DJ
6022 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6023See \`config.log' for more details." >&5
6024echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6025See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
252b5132
RH
6027fi
6028
20e95c23
DJ
6029ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035
6036echo "$as_me:$LINENO: checking for egrep" >&5
6037echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6038if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6039 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6040else
20e95c23
DJ
6041 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6042 then ac_cv_prog_egrep='grep -E'
6043 else ac_cv_prog_egrep='egrep'
252b5132 6044 fi
252b5132 6045fi
20e95c23
DJ
6046echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6047echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6048 EGREP=$ac_cv_prog_egrep
6049
252b5132 6050
20e95c23
DJ
6051echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6052echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6053if test "${ac_cv_header_stdc+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6057/* confdefs.h. */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h. */
20e95c23
DJ
6062#include <stdlib.h>
6063#include <stdarg.h>
6064#include <string.h>
6065#include <float.h>
252b5132 6066
5464f5a1
NN
6067int
6068main ()
6069{
20e95c23 6070
5464f5a1
NN
6071 ;
6072 return 0;
6073}
6074_ACEOF
20e95c23
DJ
6075rm -f conftest.$ac_objext
6076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
49c96104
SE
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
5464f5a1
NN
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
20e95c23 6091 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
20e95c23 6097 ac_cv_header_stdc=yes
252b5132 6098else
5464f5a1
NN
6099 echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
20e95c23 6102ac_cv_header_stdc=no
252b5132 6103fi
20e95c23 6104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6105
20e95c23
DJ
6106if test $ac_cv_header_stdc = yes; then
6107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6108 cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h. */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h. */
6114#include <string.h>
5464f5a1 6115
20e95c23
DJ
6116_ACEOF
6117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6118 $EGREP "memchr" >/dev/null 2>&1; then
6119 :
252b5132 6120else
20e95c23 6121 ac_cv_header_stdc=no
252b5132 6122fi
20e95c23 6123rm -f conftest*
252b5132 6124
252b5132
RH
6125fi
6126
20e95c23
DJ
6127if test $ac_cv_header_stdc = yes; then
6128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6129 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
20e95c23
DJ
6135#include <stdlib.h>
6136
5464f5a1 6137_ACEOF
20e95c23
DJ
6138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6139 $EGREP "free" >/dev/null 2>&1; then
6140 :
5464f5a1 6141else
20e95c23
DJ
6142 ac_cv_header_stdc=no
6143fi
6144rm -f conftest*
5464f5a1 6145
5464f5a1 6146fi
5464f5a1 6147
20e95c23
DJ
6148if test $ac_cv_header_stdc = yes; then
6149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6150 if test "$cross_compiling" = yes; then
6151 :
6152else
6153 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6154/* confdefs.h. */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h. */
20e95c23
DJ
6159#include <ctype.h>
6160#if ((' ' & 0x0FF) == 0x020)
6161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6163#else
6164# define ISLOWER(c) \
6165 (('a' <= (c) && (c) <= 'i') \
6166 || ('j' <= (c) && (c) <= 'r') \
6167 || ('s' <= (c) && (c) <= 'z'))
6168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6169#endif
6170
6171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6172int
6173main ()
6174{
6175 int i;
6176 for (i = 0; i < 256; i++)
6177 if (XOR (islower (i), ISLOWER (i))
6178 || toupper (i) != TOUPPER (i))
6179 exit(2);
6180 exit (0);
6181}
5464f5a1 6182_ACEOF
20e95c23
DJ
6183rm -f conftest$ac_exeext
6184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>&5
5464f5a1 6186 ac_status=$?
5464f5a1 6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 :
5464f5a1 6195else
20e95c23
DJ
6196 echo "$as_me: program exited with status $ac_status" >&5
6197echo "$as_me: failed program was:" >&5
5464f5a1
NN
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
20e95c23
DJ
6200( exit $ac_status )
6201ac_cv_header_stdc=no
5464f5a1 6202fi
20e95c23 6203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6204fi
252b5132 6205fi
252b5132 6206fi
20e95c23
DJ
6207echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6208echo "${ECHO_T}$ac_cv_header_stdc" >&6
6209if test $ac_cv_header_stdc = yes; then
252b5132 6210
20e95c23
DJ
6211cat >>confdefs.h <<\_ACEOF
6212#define STDC_HEADERS 1
6213_ACEOF
6be7c12c 6214
20e95c23 6215fi
5464f5a1 6216
20e95c23 6217# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6218
5464f5a1 6219
252b5132 6220
5464f5a1 6221
252b5132 6222
5464f5a1 6223
252b5132 6224
252b5132 6225
6be7c12c 6226
20e95c23
DJ
6227for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6228 inttypes.h stdint.h unistd.h
5464f5a1 6229do
20e95c23
DJ
6230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6231echo "$as_me:$LINENO: checking for $ac_header" >&5
6232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6233if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6234 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6235else
5464f5a1
NN
6236 cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
20e95c23 6242$ac_includes_default
ec317fb1 6243
20e95c23 6244#include <$ac_header>
5464f5a1
NN
6245_ACEOF
6246rm -f conftest.$ac_objext
6247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
49c96104
SE
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
5464f5a1
NN
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
20e95c23 6268 eval "$as_ac_Header=yes"
ec317fb1 6269else
5464f5a1
NN
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
20e95c23 6273eval "$as_ac_Header=no"
ec317fb1 6274fi
5464f5a1 6275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6276fi
6277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6279if test `eval echo '${'$as_ac_Header'}'` = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6282_ACEOF
6283
ec317fb1
ILT
6284fi
6285
20e95c23
DJ
6286done
6287
6288
6289echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6290echo $ECHO_N "checking for long long... $ECHO_C" >&6
6291if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6293else
5464f5a1
NN
6294 cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
2ba49b59 6300$ac_includes_default
5464f5a1
NN
6301int
6302main ()
6303{
2ba49b59
KC
6304if ((long long *) 0)
6305 return 0;
6306if (sizeof (long long))
6307 return 0;
5464f5a1
NN
6308 ;
6309 return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext
6313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314 (eval $ac_compile) 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
49c96104
SE
6321 { ac_try='test -z "$ac_c_werror_flag"
6322 || test ! -s conftest.err'
5464f5a1
NN
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest.$ac_objext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
2ba49b59 6334 ac_cv_type_long_long=yes
6726e1ea 6335else
5464f5a1
NN
6336 echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
2ba49b59 6339ac_cv_type_long_long=no
6726e1ea 6340fi
5464f5a1 6341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6342fi
2ba49b59
KC
6343echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6344echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6345
2ba49b59
KC
6346echo "$as_me:$LINENO: checking size of long long" >&5
6347echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6348if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6350else
2ba49b59
KC
6351 if test "$ac_cv_type_long_long" = yes; then
6352 # The cast to unsigned long works around a bug in the HP C Compiler
6353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6355 # This bug is HP SR number 8606223364.
6356 if test "$cross_compiling" = yes; then
6357 # Depending upon the size, compute the lo and hi bounds.
6358cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6359/* confdefs.h. */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h. */
2ba49b59
KC
6364$ac_includes_default
6365int
6366main ()
6367{
6368static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6369test_array [0] = 0
6726e1ea 6370
2ba49b59
KC
6371 ;
6372 return 0;
6373}
6374_ACEOF
6375rm -f conftest.$ac_objext
6376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
49c96104
SE
6384 { ac_try='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
2ba49b59
KC
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_lo=0 ac_mid=0
6398 while :; do
6399 cat >conftest.$ac_ext <<_ACEOF
6400/* confdefs.h. */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
6404/* end confdefs.h. */
6405$ac_includes_default
5464f5a1
NN
6406int
6407main ()
6408{
2ba49b59
KC
6409static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6410test_array [0] = 0
6411
5464f5a1
NN
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext
6417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
49c96104
SE
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
5464f5a1
NN
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
2ba49b59 6438 ac_hi=$ac_mid; break
6726e1ea 6439else
5464f5a1
NN
6440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
2ba49b59
KC
6443ac_lo=`expr $ac_mid + 1`
6444 if test $ac_lo -le $ac_mid; then
6445 ac_lo= ac_hi=
6446 break
6447 fi
6448 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6449fi
5464f5a1 6450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6451 done
252b5132 6452else
2ba49b59
KC
6453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6455
5464f5a1
NN
6456cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h. */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h. */
6462$ac_includes_default
2ba49b59
KC
6463int
6464main ()
6465{
6466static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6467test_array [0] = 0
6468
6469 ;
6470 return 0;
6471}
5464f5a1
NN
6472_ACEOF
6473rm -f conftest.$ac_objext
6474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
49c96104
SE
6482 { ac_try='test -z "$ac_c_werror_flag"
6483 || test ! -s conftest.err'
5464f5a1
NN
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
2ba49b59
KC
6495 ac_hi=-1 ac_mid=-1
6496 while :; do
6497 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6498/* confdefs.h. */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h. */
2ba49b59
KC
6503$ac_includes_default
6504int
6505main ()
6506{
6507static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6508test_array [0] = 0
6509
6510 ;
6511 return 0;
6512}
5464f5a1 6513_ACEOF
2ba49b59
KC
6514rm -f conftest.$ac_objext
6515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6522 (exit $ac_status); } &&
49c96104
SE
6523 { ac_try='test -z "$ac_c_werror_flag"
6524 || test ! -s conftest.err'
2ba49b59
KC
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_lo=$ac_mid; break
252b5132 6537else
2ba49b59
KC
6538 echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
6541ac_hi=`expr '(' $ac_mid ')' - 1`
6542 if test $ac_mid -le $ac_hi; then
6543 ac_lo= ac_hi=
6544 break
6545 fi
6546 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6547fi
2ba49b59
KC
6548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6549 done
5464f5a1
NN
6550else
6551 echo "$as_me: failed program was:" >&5
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
2ba49b59 6554ac_lo= ac_hi=
252b5132 6555fi
2ba49b59
KC
6556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559# Binary search between lo and hi bounds.
6560while test "x$ac_lo" != "x$ac_hi"; do
6561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6562 cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h. */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h. */
6568$ac_includes_default
6569int
6570main ()
6571{
6572static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6573test_array [0] = 0
5464f5a1 6574
2ba49b59
KC
6575 ;
6576 return 0;
6577}
5464f5a1
NN
6578_ACEOF
6579rm -f conftest.$ac_objext
6580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
49c96104
SE
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
5464f5a1
NN
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest.$ac_objext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
2ba49b59 6601 ac_hi=$ac_mid
5464f5a1
NN
6602else
6603 echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
2ba49b59 6606ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6607fi
6608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6609done
6610case $ac_lo in
6611?*) ac_cv_sizeof_long_long=$ac_lo;;
6612'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6613See \`config.log' for more details." >&5
6614echo "$as_me: error: cannot compute sizeof (long long), 77
6615See \`config.log' for more details." >&2;}
6616 { (exit 1); exit 1; }; } ;;
6617esac
6618else
6619 if test "$cross_compiling" = yes; then
49c96104
SE
6620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6621See \`config.log' for more details." >&5
6622echo "$as_me: error: cannot run test program while cross compiling
6623See \`config.log' for more details." >&2;}
2ba49b59
KC
6624 { (exit 1); exit 1; }; }
6625else
6626 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
2ba49b59
KC
6632$ac_includes_default
6633long longval () { return (long) (sizeof (long long)); }
6634unsigned long ulongval () { return (long) (sizeof (long long)); }
6635#include <stdio.h>
6636#include <stdlib.h>
6637int
6638main ()
6639{
6640
6641 FILE *f = fopen ("conftest.val", "w");
6642 if (! f)
6643 exit (1);
6644 if (((long) (sizeof (long long))) < 0)
6645 {
6646 long i = longval ();
6647 if (i != ((long) (sizeof (long long))))
6648 exit (1);
6649 fprintf (f, "%ld\n", i);
6650 }
6651 else
6652 {
6653 unsigned long i = ulongval ();
6654 if (i != ((long) (sizeof (long long))))
6655 exit (1);
6656 fprintf (f, "%lu\n", i);
6657 }
6658 exit (ferror (f) || fclose (f) != 0);
6659
6660 ;
6661 return 0;
6662}
5464f5a1 6663_ACEOF
2ba49b59
KC
6664rm -f conftest$ac_exeext
6665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
5464f5a1 6667 ac_status=$?
5464f5a1 6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6676else
2ba49b59
KC
6677 echo "$as_me: program exited with status $ac_status" >&5
6678echo "$as_me: failed program was:" >&5
5464f5a1
NN
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
2ba49b59
KC
6681( exit $ac_status )
6682{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6683See \`config.log' for more details." >&5
6684echo "$as_me: error: cannot compute sizeof (long long), 77
6685See \`config.log' for more details." >&2;}
6686 { (exit 1); exit 1; }; }
252b5132 6687fi
2ba49b59
KC
6688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6689fi
6690fi
6691rm -f conftest.val
6be7c12c 6692else
2ba49b59 6693 ac_cv_sizeof_long_long=0
5464f5a1 6694fi
5464f5a1 6695fi
2ba49b59
KC
6696echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6697echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6698cat >>confdefs.h <<_ACEOF
6699#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6700_ACEOF
6701
5464f5a1 6702
2ba49b59 6703fi
252b5132 6704
2ba49b59
KC
6705echo "$as_me:$LINENO: checking for long" >&5
6706echo $ECHO_N "checking for long... $ECHO_C" >&6
6707if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710 cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h. */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h. */
2ba49b59 6716$ac_includes_default
5464f5a1
NN
6717int
6718main ()
6719{
2ba49b59
KC
6720if ((long *) 0)
6721 return 0;
6722if (sizeof (long))
6723 return 0;
5464f5a1
NN
6724 ;
6725 return 0;
6726}
6727_ACEOF
6728rm -f conftest.$ac_objext
6729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } &&
49c96104
SE
6737 { ac_try='test -z "$ac_c_werror_flag"
6738 || test ! -s conftest.err'
5464f5a1
NN
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 (eval $ac_try) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; } &&
6744 { ac_try='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
2ba49b59 6750 ac_cv_type_long=yes
252b5132 6751else
5464f5a1
NN
6752 echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
2ba49b59 6755ac_cv_type_long=no
252b5132 6756fi
5464f5a1 6757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6758fi
2ba49b59
KC
6759echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6760echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6761
2ba49b59
KC
6762echo "$as_me:$LINENO: checking size of long" >&5
6763echo $ECHO_N "checking size of long... $ECHO_C" >&6
6764if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
2ba49b59
KC
6767 if test "$ac_cv_type_long" = yes; then
6768 # The cast to unsigned long works around a bug in the HP C Compiler
6769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6771 # This bug is HP SR number 8606223364.
6772 if test "$cross_compiling" = yes; then
6773 # Depending upon the size, compute the lo and hi bounds.
6774cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
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
6784static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6785test_array [0] = 0
6786
5464f5a1
NN
6787 ;
6788 return 0;
6789}
6790_ACEOF
6791rm -f conftest.$ac_objext
6792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6793 (eval $ac_compile) 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
49c96104
SE
6800 { ac_try='test -z "$ac_c_werror_flag"
6801 || test ! -s conftest.err'
5464f5a1
NN
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; } &&
6807 { ac_try='test -s conftest.$ac_objext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
2ba49b59
KC
6813 ac_lo=0 ac_mid=0
6814 while :; do
6815 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
2ba49b59 6821$ac_includes_default
5464f5a1
NN
6822int
6823main ()
6824{
2ba49b59
KC
6825static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6826test_array [0] = 0
6827
5464f5a1
NN
6828 ;
6829 return 0;
6830}
6831_ACEOF
2ba49b59
KC
6832rm -f conftest.$ac_objext
6833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
49c96104
SE
6841 { ac_try='test -z "$ac_c_werror_flag"
6842 || test ! -s conftest.err'
5464f5a1
NN
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
2ba49b59 6848 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
2ba49b59 6854 ac_hi=$ac_mid; break
5464f5a1
NN
6855else
6856 echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
2ba49b59
KC
6859ac_lo=`expr $ac_mid + 1`
6860 if test $ac_lo -le $ac_mid; then
6861 ac_lo= ac_hi=
6862 break
6863 fi
6864 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6865fi
2ba49b59
KC
6866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6867 done
6868else
6869 echo "$as_me: failed program was:" >&5
6870sed 's/^/| /' conftest.$ac_ext >&5
6871
6872cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
2ba49b59 6878$ac_includes_default
5464f5a1
NN
6879int
6880main ()
6881{
2ba49b59
KC
6882static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6883test_array [0] = 0
6884
5464f5a1
NN
6885 ;
6886 return 0;
6887}
6888_ACEOF
2ba49b59
KC
6889rm -f conftest.$ac_objext
6890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
49c96104
SE
6898 { ac_try='test -z "$ac_c_werror_flag"
6899 || test ! -s conftest.err'
5464f5a1
NN
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
2ba49b59 6905 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
2ba49b59
KC
6911 ac_hi=-1 ac_mid=-1
6912 while :; do
6913 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
2ba49b59 6919$ac_includes_default
5464f5a1
NN
6920int
6921main ()
6922{
2ba49b59
KC
6923static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6924test_array [0] = 0
6925
5464f5a1
NN
6926 ;
6927 return 0;
6928}
6929_ACEOF
2ba49b59
KC
6930rm -f conftest.$ac_objext
6931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
49c96104
SE
6939 { ac_try='test -z "$ac_c_werror_flag"
6940 || test ! -s conftest.err'
5464f5a1
NN
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; } &&
2ba49b59 6946 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
2ba49b59 6952 ac_lo=$ac_mid; break
5464f5a1
NN
6953else
6954 echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
2ba49b59
KC
6957ac_hi=`expr '(' $ac_mid ')' - 1`
6958 if test $ac_mid -le $ac_hi; then
6959 ac_lo= ac_hi=
6960 break
6961 fi
6962 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 6963fi
2ba49b59
KC
6964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6965 done
6966else
6967 echo "$as_me: failed program was:" >&5
6968sed 's/^/| /' conftest.$ac_ext >&5
6969
6970ac_lo= ac_hi=
6971fi
6972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6973fi
6974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975# Binary search between lo and hi bounds.
6976while test "x$ac_lo" != "x$ac_hi"; do
6977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6978 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6979/* confdefs.h. */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h. */
2ba49b59 6984$ac_includes_default
5464f5a1
NN
6985int
6986main ()
6987{
2ba49b59
KC
6988static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6989test_array [0] = 0
6990
5464f5a1
NN
6991 ;
6992 return 0;
6993}
6994_ACEOF
2ba49b59
KC
6995rm -f conftest.$ac_objext
6996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
49c96104
SE
7004 { ac_try='test -z "$ac_c_werror_flag"
7005 || test ! -s conftest.err'
5464f5a1
NN
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
2ba49b59 7011 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
2ba49b59 7017 ac_hi=$ac_mid
5464f5a1
NN
7018else
7019 echo "$as_me: failed program was:" >&5
7020sed 's/^/| /' conftest.$ac_ext >&5
7021
2ba49b59 7022ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7023fi
2ba49b59
KC
7024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7025done
7026case $ac_lo in
7027?*) ac_cv_sizeof_long=$ac_lo;;
7028'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7029See \`config.log' for more details." >&5
7030echo "$as_me: error: cannot compute sizeof (long), 77
7031See \`config.log' for more details." >&2;}
7032 { (exit 1); exit 1; }; } ;;
7033esac
7034else
7035 if test "$cross_compiling" = yes; then
49c96104
SE
7036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7037See \`config.log' for more details." >&5
7038echo "$as_me: error: cannot run test program while cross compiling
7039See \`config.log' for more details." >&2;}
2ba49b59 7040 { (exit 1); exit 1; }; }
2e0fbf77
JW
7041else
7042 cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
2ba49b59
KC
7048$ac_includes_default
7049long longval () { return (long) (sizeof (long)); }
7050unsigned long ulongval () { return (long) (sizeof (long)); }
7051#include <stdio.h>
7052#include <stdlib.h>
2e0fbf77
JW
7053int
7054main ()
7055{
7056
2ba49b59
KC
7057 FILE *f = fopen ("conftest.val", "w");
7058 if (! f)
7059 exit (1);
7060 if (((long) (sizeof (long))) < 0)
7061 {
7062 long i = longval ();
7063 if (i != ((long) (sizeof (long))))
7064 exit (1);
7065 fprintf (f, "%ld\n", i);
7066 }
7067 else
7068 {
7069 unsigned long i = ulongval ();
7070 if (i != ((long) (sizeof (long))))
7071 exit (1);
7072 fprintf (f, "%lu\n", i);
7073 }
7074 exit (ferror (f) || fclose (f) != 0);
7075
2e0fbf77
JW
7076 ;
7077 return 0;
7078}
7079_ACEOF
2ba49b59
KC
7080rm -f conftest$ac_exeext
7081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>&5
2e0fbf77
JW
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
2ba49b59 7091 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7092else
2ba49b59
KC
7093 echo "$as_me: program exited with status $ac_status" >&5
7094echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
2ba49b59
KC
7097( exit $ac_status )
7098{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7099See \`config.log' for more details." >&5
7100echo "$as_me: error: cannot compute sizeof (long), 77
7101See \`config.log' for more details." >&2;}
7102 { (exit 1); exit 1; }; }
2e0fbf77 7103fi
2ba49b59 7104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7105fi
2ba49b59
KC
7106fi
7107rm -f conftest.val
7108else
7109 ac_cv_sizeof_long=0
7110fi
7111fi
7112echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7113echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7114cat >>confdefs.h <<_ACEOF
7115#define SIZEOF_LONG $ac_cv_sizeof_long
7116_ACEOF
7117
7118
7119if test "x${ac_cv_sizeof_long}" = "x8"; then
7120 host64=true
7121 BFD_HOST_64BIT_LONG=1
7122 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7123 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7124elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7125 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7126 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7127fi
7128
7129if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7130 BFD_HOST_64_BIT_DEFINED=1
7131 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7132 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7133fi
7134
7135
7136
7137
7138
7139
7140
7141# Put a plausible default for CC_FOR_BUILD in Makefile.
7142if test -z "$CC_FOR_BUILD"; then
7143 if test "x$cross_compiling" = "xno"; then
7144 CC_FOR_BUILD='$(CC)'
7145 else
7146 CC_FOR_BUILD=gcc
7147 fi
7148fi
7149
7150# Also set EXEEXT_FOR_BUILD.
7151if test "x$cross_compiling" = "xno"; then
7152 EXEEXT_FOR_BUILD='$(EXEEXT)'
7153else
7154 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7155echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7156if test "${bfd_cv_build_exeext+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159 rm -f conftest*
7160 echo 'int main () { return 0; }' > conftest.c
7161 bfd_cv_build_exeext=
7162 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7163 for file in conftest.*; do
7164 case $file in
7165 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7166 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7167 esac
7168 done
7169 rm -f conftest*
7170 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7171fi
7172echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7173echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7174 EXEEXT_FOR_BUILD=""
7175 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7176fi
7177
7178
7179
7180
7181
7182
7183
7184
7185for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7186do
7187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189 echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193fi
7194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196else
7197 # Is the header compilable?
7198echo "$as_me:$LINENO: checking $ac_header usability" >&5
7199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7200cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206$ac_includes_default
7207#include <$ac_header>
7208_ACEOF
7209rm -f conftest.$ac_objext
7210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
49c96104
SE
7218 { ac_try='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
2ba49b59
KC
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 ac_header_compiler=yes
7232else
7233 echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236ac_header_compiler=no
7237fi
7238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7240echo "${ECHO_T}$ac_header_compiler" >&6
7241
7242# Is the header present?
7243echo "$as_me:$LINENO: checking $ac_header presence" >&5
7244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7245cat >conftest.$ac_ext <<_ACEOF
7246/* confdefs.h. */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h. */
7251#include <$ac_header>
7252_ACEOF
7253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } >/dev/null; then
7261 if test -s conftest.err; then
7262 ac_cpp_err=$ac_c_preproc_warn_flag
7263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7264 else
7265 ac_cpp_err=
7266 fi
7267else
7268 ac_cpp_err=yes
7269fi
7270if test -z "$ac_cpp_err"; then
7271 ac_header_preproc=yes
7272else
7273 echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 ac_header_preproc=no
7277fi
7278rm -f conftest.err conftest.$ac_ext
7279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7280echo "${ECHO_T}$ac_header_preproc" >&6
7281
7282# So? What about this header?
7283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7284 yes:no: )
7285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7289 ac_header_preproc=yes
7290 ;;
7291 no:yes:* )
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7304 (
7305 cat <<\_ASBOX
7306## ------------------------------------------ ##
7307## Report this to the AC_PACKAGE_NAME lists. ##
7308## ------------------------------------------ ##
7309_ASBOX
7310 ) |
7311 sed "s/^/$as_me: WARNING: /" >&2
7312 ;;
7313esac
7314echo "$as_me:$LINENO: checking for $ac_header" >&5
7315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7316if eval "test \"\${$as_ac_Header+set}\" = set"; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 eval "$as_ac_Header=\$ac_header_preproc"
7320fi
7321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323
7324fi
7325if test `eval echo '${'$as_ac_Header'}'` = yes; then
7326 cat >>confdefs.h <<_ACEOF
7327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328_ACEOF
7329
7330fi
7331
7332done
7333
7334
7335
7336
7337for ac_header in fcntl.h sys/file.h sys/time.h
7338do
7339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341 echo "$as_me:$LINENO: checking for $ac_header" >&5
7342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7343if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345fi
7346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348else
7349 # Is the header compilable?
7350echo "$as_me:$LINENO: checking $ac_header usability" >&5
7351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7352cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h. */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h. */
7358$ac_includes_default
7359#include <$ac_header>
7360_ACEOF
7361rm -f conftest.$ac_objext
7362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
49c96104
SE
7370 { ac_try='test -z "$ac_c_werror_flag"
7371 || test ! -s conftest.err'
2ba49b59
KC
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 (eval $ac_try) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 ac_header_compiler=yes
7384else
7385 echo "$as_me: failed program was:" >&5
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388ac_header_compiler=no
7389fi
7390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392echo "${ECHO_T}$ac_header_compiler" >&6
7393
7394# Is the header present?
7395echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h. */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h. */
7403#include <$ac_header>
7404_ACEOF
7405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } >/dev/null; then
7413 if test -s conftest.err; then
7414 ac_cpp_err=$ac_c_preproc_warn_flag
7415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7416 else
7417 ac_cpp_err=
7418 fi
7419else
7420 ac_cpp_err=yes
7421fi
7422if test -z "$ac_cpp_err"; then
7423 ac_header_preproc=yes
7424else
7425 echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 ac_header_preproc=no
7429fi
7430rm -f conftest.err conftest.$ac_ext
7431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432echo "${ECHO_T}$ac_header_preproc" >&6
7433
7434# So? What about this header?
7435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7436 yes:no: )
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7441 ac_header_preproc=yes
7442 ;;
7443 no:yes:* )
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7456 (
7457 cat <<\_ASBOX
7458## ------------------------------------------ ##
7459## Report this to the AC_PACKAGE_NAME lists. ##
7460## ------------------------------------------ ##
7461_ASBOX
7462 ) |
7463 sed "s/^/$as_me: WARNING: /" >&2
7464 ;;
7465esac
7466echo "$as_me:$LINENO: checking for $ac_header" >&5
7467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 eval "$as_ac_Header=\$ac_header_preproc"
7472fi
7473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7475
7476fi
7477if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480_ACEOF
7481
7482fi
7483
7484done
7485
7486echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7487echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7488if test "${ac_cv_header_time+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491 cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497#include <sys/types.h>
7498#include <sys/time.h>
7499#include <time.h>
7500
7501int
7502main ()
7503{
7504if ((struct tm *) 0)
7505return 0;
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510rm -f conftest.$ac_objext
7511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512 (eval $ac_compile) 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
49c96104
SE
7519 { ac_try='test -z "$ac_c_werror_flag"
7520 || test ! -s conftest.err'
2ba49b59
KC
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; } &&
7526 { ac_try='test -s conftest.$ac_objext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 (eval $ac_try) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_header_time=yes
7533else
7534 echo "$as_me: failed program was:" >&5
7535sed 's/^/| /' conftest.$ac_ext >&5
7536
7537ac_cv_header_time=no
7538fi
7539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7540fi
7541echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7542echo "${ECHO_T}$ac_cv_header_time" >&6
7543if test $ac_cv_header_time = yes; then
7544
7545cat >>confdefs.h <<\_ACEOF
7546#define TIME_WITH_SYS_TIME 1
7547_ACEOF
7548
7549fi
7550
7551
7552
7553
7554
7555
7556ac_header_dirent=no
7557for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7558 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7559echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7560echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7561if eval "test \"\${$as_ac_Header+set}\" = set"; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 cat >conftest.$ac_ext <<_ACEOF
7565/* confdefs.h. */
7566_ACEOF
7567cat confdefs.h >>conftest.$ac_ext
7568cat >>conftest.$ac_ext <<_ACEOF
7569/* end confdefs.h. */
7570#include <sys/types.h>
7571#include <$ac_hdr>
7572
7573int
7574main ()
7575{
7576if ((DIR *) 0)
7577return 0;
7578 ;
7579 return 0;
7580}
7581_ACEOF
7582rm -f conftest.$ac_objext
7583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>conftest.er1
7585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
49c96104
SE
7591 { ac_try='test -z "$ac_c_werror_flag"
7592 || test ! -s conftest.err'
2ba49b59
KC
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; } &&
7598 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7604 eval "$as_ac_Header=yes"
7605else
7606 echo "$as_me: failed program was:" >&5
7607sed 's/^/| /' conftest.$ac_ext >&5
7608
7609eval "$as_ac_Header=no"
7610fi
7611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7612fi
7613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7615if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616 cat >>confdefs.h <<_ACEOF
7617#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7618_ACEOF
7619
7620ac_header_dirent=$ac_hdr; break
7621fi
7622
7623done
7624# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7625if test $ac_header_dirent = dirent.h; then
7626 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7627echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7628if test "${ac_cv_search_opendir+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631 ac_func_search_save_LIBS=$LIBS
7632ac_cv_search_opendir=no
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
7639
7640/* Override any gcc2 internal prototype to avoid an error. */
7641#ifdef __cplusplus
7642extern "C"
7643#endif
7644/* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7646char opendir ();
7647int
7648main ()
7649{
7650opendir ();
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
49c96104
SE
7664 { ac_try='test -z "$ac_c_werror_flag"
7665 || test ! -s conftest.err'
2ba49b59
KC
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_search_opendir="none required"
7678else
7679 echo "$as_me: failed program was:" >&5
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7682fi
7683rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685if test "$ac_cv_search_opendir" = no; then
7686 for ac_lib in dir; do
7687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7688 cat >conftest.$ac_ext <<_ACEOF
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
7694
7695/* Override any gcc2 internal prototype to avoid an error. */
7696#ifdef __cplusplus
7697extern "C"
7698#endif
7699/* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701char opendir ();
7702int
7703main ()
7704{
7705opendir ();
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext conftest$ac_exeext
7711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
49c96104
SE
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
2ba49b59
KC
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7732 ac_cv_search_opendir="-l$ac_lib"
7733break
7734else
7735 echo "$as_me: failed program was:" >&5
7736sed 's/^/| /' conftest.$ac_ext >&5
7737
7738fi
7739rm -f conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 done
7742fi
7743LIBS=$ac_func_search_save_LIBS
7744fi
7745echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7746echo "${ECHO_T}$ac_cv_search_opendir" >&6
7747if test "$ac_cv_search_opendir" != no; then
7748 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7749
7750fi
7751
7752else
7753 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7754echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7755if test "${ac_cv_search_opendir+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758 ac_func_search_save_LIBS=$LIBS
7759ac_cv_search_opendir=no
7760cat >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
7767/* Override any gcc2 internal prototype to avoid an error. */
7768#ifdef __cplusplus
7769extern "C"
7770#endif
7771/* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7773char opendir ();
7774int
7775main ()
7776{
7777opendir ();
7778 ;
7779 return 0;
7780}
7781_ACEOF
7782rm -f conftest.$ac_objext conftest$ac_exeext
7783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7784 (eval $ac_link) 2>conftest.er1
7785 ac_status=$?
7786 grep -v '^ *+' conftest.er1 >conftest.err
7787 rm -f conftest.er1
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
49c96104
SE
7791 { ac_try='test -z "$ac_c_werror_flag"
7792 || test ! -s conftest.err'
2ba49b59
KC
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_cv_search_opendir="none required"
7805else
7806 echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809fi
7810rm -f conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7812if test "$ac_cv_search_opendir" = no; then
7813 for ac_lib in x; do
7814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h. */
7821
7822/* Override any gcc2 internal prototype to avoid an error. */
7823#ifdef __cplusplus
7824extern "C"
7825#endif
7826/* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828char opendir ();
7829int
7830main ()
7831{
7832opendir ();
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837rm -f conftest.$ac_objext conftest$ac_exeext
7838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
49c96104
SE
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
2ba49b59
KC
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_search_opendir="-l$ac_lib"
7860break
7861else
7862 echo "$as_me: failed program was:" >&5
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
7865fi
7866rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 done
7869fi
7870LIBS=$ac_func_search_save_LIBS
7871fi
7872echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7873echo "${ECHO_T}$ac_cv_search_opendir" >&6
7874if test "$ac_cv_search_opendir" != no; then
7875 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7876
7877fi
7878
7879fi
7880
7881echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7882echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7883if test "${gcc_cv_header_string+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886 cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892#include <string.h>
7893#include <strings.h>
7894int
7895main ()
7896{
7897
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902rm -f conftest.$ac_objext
7903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904 (eval $ac_compile) 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
49c96104
SE
7911 { ac_try='test -z "$ac_c_werror_flag"
7912 || test ! -s conftest.err'
2ba49b59
KC
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try='test -s conftest.$ac_objext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 gcc_cv_header_string=yes
7925else
7926 echo "$as_me: failed program was:" >&5
7927sed 's/^/| /' conftest.$ac_ext >&5
7928
7929gcc_cv_header_string=no
7930fi
7931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7932fi
7933echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7934echo "${ECHO_T}$gcc_cv_header_string" >&6
7935if test $gcc_cv_header_string = yes; then
7936
7937cat >>confdefs.h <<\_ACEOF
7938#define STRING_WITH_STRINGS 1
7939_ACEOF
7940
2e0fbf77
JW
7941fi
7942
5464f5a1
NN
7943
7944
7945
7946
7947
7948
7949
633fd09f 7950for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 7951do
5464f5a1
NN
7952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7953echo "$as_me:$LINENO: checking for $ac_func" >&5
7954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7955if eval "test \"\${$as_ac_var+set}\" = set"; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958 cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h. */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h. */
7964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7966#define $ac_func innocuous_$ac_func
7967
252b5132 7968/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7969 which can conflict with char $ac_func (); below.
7970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7971 <limits.h> exists even on freestanding compilers. */
7972
7973#ifdef __STDC__
7974# include <limits.h>
7975#else
7976# include <assert.h>
7977#endif
6be7c12c 7978
5464f5a1 7979#undef $ac_func
252b5132 7980
5464f5a1
NN
7981/* Override any gcc2 internal prototype to avoid an error. */
7982#ifdef __cplusplus
7983extern "C"
7984{
7985#endif
7986/* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */
7988char $ac_func ();
252b5132
RH
7989/* The GNU C library defines this for functions which it implements
7990 to always fail with ENOSYS. Some functions are actually named
7991 something starting with __ and the normal name is an alias. */
7992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7993choke me
7994#else
5464f5a1
NN
7995char (*f) () = $ac_func;
7996#endif
7997#ifdef __cplusplus
7998}
252b5132
RH
7999#endif
8000
5464f5a1
NN
8001int
8002main ()
8003{
8004return f != $ac_func;
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009rm -f conftest.$ac_objext conftest$ac_exeext
8010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
49c96104
SE
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
5464f5a1
NN
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 eval "$as_ac_var=yes"
8032else
8033 echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036eval "$as_ac_var=no"
8037fi
8038rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040fi
8041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8043if test `eval echo '${'$as_ac_var'}'` = yes; then
8044 cat >>confdefs.h <<_ACEOF
8045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8046_ACEOF
252b5132 8047
252b5132
RH
8048fi
8049done
8050
5464f5a1 8051
49c97a80
ILT
8052for ac_func in strtoull
8053do
5464f5a1
NN
8054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8055echo "$as_me:$LINENO: checking for $ac_func" >&5
8056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8057if eval "test \"\${$as_ac_var+set}\" = set"; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060 cat >conftest.$ac_ext <<_ACEOF
8061/* confdefs.h. */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h. */
8066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8068#define $ac_func innocuous_$ac_func
8069
49c97a80 8070/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8071 which can conflict with char $ac_func (); below.
8072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8073 <limits.h> exists even on freestanding compilers. */
8074
8075#ifdef __STDC__
8076# include <limits.h>
8077#else
8078# include <assert.h>
8079#endif
49c97a80 8080
5464f5a1 8081#undef $ac_func
49c97a80 8082
5464f5a1
NN
8083/* Override any gcc2 internal prototype to avoid an error. */
8084#ifdef __cplusplus
8085extern "C"
8086{
8087#endif
8088/* We use char because int might match the return type of a gcc2
8089 builtin and then its argument prototype would still apply. */
8090char $ac_func ();
49c97a80
ILT
8091/* The GNU C library defines this for functions which it implements
8092 to always fail with ENOSYS. Some functions are actually named
8093 something starting with __ and the normal name is an alias. */
8094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8095choke me
8096#else
5464f5a1
NN
8097char (*f) () = $ac_func;
8098#endif
8099#ifdef __cplusplus
8100}
49c97a80
ILT
8101#endif
8102
5464f5a1
NN
8103int
8104main ()
8105{
8106return f != $ac_func;
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext conftest$ac_exeext
8112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
49c96104
SE
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
5464f5a1
NN
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 eval "$as_ac_var=yes"
8134else
8135 echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138eval "$as_ac_var=no"
8139fi
8140rm -f conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142fi
8143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8145if test `eval echo '${'$as_ac_var'}'` = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8148_ACEOF
49c97a80 8149
49c97a80
ILT
8150fi
8151done
8152
6be7c12c 8153
2e9ebff5
JG
8154echo "$as_me:$LINENO: checking whether basename is declared" >&5
8155echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8156if test "${ac_cv_have_decl_basename+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
ec7b76fe 8165$ac_includes_default
2e9ebff5
JG
8166int
8167main ()
8168{
8169#ifndef basename
8170 char *p = (char *) basename;
8171#endif
8172
8173 ;
8174 return 0;
8175}
8176_ACEOF
8177rm -f conftest.$ac_objext
8178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
49c96104
SE
8186 { ac_try='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
2e9ebff5
JG
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_cv_have_decl_basename=yes
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204ac_cv_have_decl_basename=no
8205fi
8206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207fi
8208echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8209echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8210if test $ac_cv_have_decl_basename = yes; then
8211
8212cat >>confdefs.h <<_ACEOF
8213#define HAVE_DECL_BASENAME 1
8214_ACEOF
8215
8216
8217else
8218 cat >>confdefs.h <<_ACEOF
8219#define HAVE_DECL_BASENAME 0
8220_ACEOF
8221
8222
8223fi
8224
8225
ec7b76fe
JG
8226echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8227echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8228if test "${ac_cv_have_decl_ftello+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231 cat >conftest.$ac_ext <<_ACEOF
8232/* confdefs.h. */
8233_ACEOF
8234cat confdefs.h >>conftest.$ac_ext
8235cat >>conftest.$ac_ext <<_ACEOF
8236/* end confdefs.h. */
8237$ac_includes_default
8238int
8239main ()
8240{
8241#ifndef ftello
8242 char *p = (char *) ftello;
8243#endif
8244
8245 ;
8246 return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext
8250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
49c96104
SE
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
ec7b76fe
JG
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_have_decl_ftello=yes
8272else
8273 echo "$as_me: failed program was:" >&5
8274sed 's/^/| /' conftest.$ac_ext >&5
8275
8276ac_cv_have_decl_ftello=no
8277fi
8278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8279fi
8280echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8281echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8282if test $ac_cv_have_decl_ftello = yes; then
8283
8284cat >>confdefs.h <<_ACEOF
8285#define HAVE_DECL_FTELLO 1
8286_ACEOF
8287
8288
8289else
8290 cat >>confdefs.h <<_ACEOF
8291#define HAVE_DECL_FTELLO 0
8292_ACEOF
8293
8294
8295fi
8296
8297
8298echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8299echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8300if test "${ac_cv_have_decl_ftello64+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 cat >conftest.$ac_ext <<_ACEOF
8304/* confdefs.h. */
8305_ACEOF
8306cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF
8308/* end confdefs.h. */
8309$ac_includes_default
8310int
8311main ()
8312{
8313#ifndef ftello64
8314 char *p = (char *) ftello64;
8315#endif
8316
8317 ;
8318 return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext
8322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323 (eval $ac_compile) 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
49c96104
SE
8330 { ac_try='test -z "$ac_c_werror_flag"
8331 || test ! -s conftest.err'
ec7b76fe
JG
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; } &&
8337 { ac_try='test -s conftest.$ac_objext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_have_decl_ftello64=yes
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348ac_cv_have_decl_ftello64=no
8349fi
8350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8351fi
8352echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8353echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8354if test $ac_cv_have_decl_ftello64 = yes; then
8355
8356cat >>confdefs.h <<_ACEOF
8357#define HAVE_DECL_FTELLO64 1
8358_ACEOF
8359
8360
8361else
8362 cat >>confdefs.h <<_ACEOF
8363#define HAVE_DECL_FTELLO64 0
8364_ACEOF
8365
8366
8367fi
8368
8369
8370echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8371echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8372if test "${ac_cv_have_decl_fseeko+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375 cat >conftest.$ac_ext <<_ACEOF
8376/* confdefs.h. */
8377_ACEOF
8378cat confdefs.h >>conftest.$ac_ext
8379cat >>conftest.$ac_ext <<_ACEOF
8380/* end confdefs.h. */
8381$ac_includes_default
8382int
8383main ()
8384{
8385#ifndef fseeko
8386 char *p = (char *) fseeko;
8387#endif
8388
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext
8394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
49c96104
SE
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
ec7b76fe
JG
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_have_decl_fseeko=yes
8416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420ac_cv_have_decl_fseeko=no
8421fi
8422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8425echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8426if test $ac_cv_have_decl_fseeko = yes; then
8427
8428cat >>confdefs.h <<_ACEOF
8429#define HAVE_DECL_FSEEKO 1
8430_ACEOF
8431
8432
8433else
8434 cat >>confdefs.h <<_ACEOF
8435#define HAVE_DECL_FSEEKO 0
8436_ACEOF
8437
8438
8439fi
8440
8441
8442echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8443echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8444if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447 cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453$ac_includes_default
8454int
8455main ()
8456{
8457#ifndef fseeko64
8458 char *p = (char *) fseeko64;
8459#endif
8460
8461 ;
8462 return 0;
8463}
8464_ACEOF
8465rm -f conftest.$ac_objext
8466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8467 (eval $ac_compile) 2>conftest.er1
8468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
49c96104
SE
8474 { ac_try='test -z "$ac_c_werror_flag"
8475 || test ! -s conftest.err'
ec7b76fe
JG
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; } &&
8481 { ac_try='test -s conftest.$ac_objext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_cv_have_decl_fseeko64=yes
8488else
8489 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
8492ac_cv_have_decl_fseeko64=no
8493fi
8494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8495fi
8496echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8497echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8498if test $ac_cv_have_decl_fseeko64 = yes; then
8499
8500cat >>confdefs.h <<_ACEOF
8501#define HAVE_DECL_FSEEKO64 1
8502_ACEOF
8503
8504
8505else
8506 cat >>confdefs.h <<_ACEOF
8507#define HAVE_DECL_FSEEKO64 0
8508_ACEOF
8509
8510
8511fi
8512
8513
2e9ebff5 8514
6be7c12c 8515
252b5132 8516case "${host}" in
855b0be7 8517*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
8518
8519cat >>confdefs.h <<\_ACEOF
252b5132 8520#define USE_BINARY_FOPEN 1
5464f5a1 8521_ACEOF
252b5132
RH
8522 ;;
8523esac
8524
d34a2b1d
JG
8525echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8526echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8527if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 8528 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8529else
5464f5a1
NN
8530 cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
d34a2b1d 8536$ac_includes_default
5464f5a1
NN
8537int
8538main ()
8539{
d34a2b1d
JG
8540#ifndef ffs
8541 char *p = (char *) ffs;
8542#endif
8543
5464f5a1
NN
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext
8549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
49c96104
SE
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
5464f5a1
NN
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest.$ac_objext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
d34a2b1d 8570 ac_cv_have_decl_ffs=yes
252b5132 8571else
5464f5a1
NN
8572 echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
d34a2b1d 8575ac_cv_have_decl_ffs=no
252b5132 8576fi
5464f5a1 8577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8578fi
d34a2b1d
JG
8579echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8580echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8581if test $ac_cv_have_decl_ffs = yes; then
252b5132 8582
d34a2b1d
JG
8583cat >>confdefs.h <<_ACEOF
8584#define HAVE_DECL_FFS 1
8585_ACEOF
5464f5a1 8586
d34a2b1d
JG
8587
8588else
8589 cat >>confdefs.h <<_ACEOF
8590#define HAVE_DECL_FFS 0
5464f5a1 8591_ACEOF
252b5132 8592
d34a2b1d 8593
252b5132
RH
8594fi
8595
d34a2b1d
JG
8596
8597echo "$as_me:$LINENO: checking whether free is declared" >&5
8598echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8599if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 8600 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8601else
5464f5a1
NN
8602 cat >conftest.$ac_ext <<_ACEOF
8603/* confdefs.h. */
8604_ACEOF
8605cat confdefs.h >>conftest.$ac_ext
8606cat >>conftest.$ac_ext <<_ACEOF
8607/* end confdefs.h. */
d34a2b1d 8608$ac_includes_default
5464f5a1
NN
8609int
8610main ()
8611{
d34a2b1d
JG
8612#ifndef free
8613 char *p = (char *) free;
8614#endif
8615
5464f5a1
NN
8616 ;
8617 return 0;
8618}
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
49c96104
SE
8629 { ac_try='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
5464f5a1
NN
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
d34a2b1d 8642 ac_cv_have_decl_free=yes
252b5132 8643else
5464f5a1
NN
8644 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
d34a2b1d 8647ac_cv_have_decl_free=no
252b5132 8648fi
5464f5a1 8649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8650fi
d34a2b1d
JG
8651echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8652echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8653if test $ac_cv_have_decl_free = yes; then
8654
8655cat >>confdefs.h <<_ACEOF
8656#define HAVE_DECL_FREE 1
8657_ACEOF
252b5132 8658
5464f5a1 8659
d34a2b1d
JG
8660else
8661 cat >>confdefs.h <<_ACEOF
8662#define HAVE_DECL_FREE 0
5464f5a1 8663_ACEOF
252b5132 8664
d34a2b1d 8665
252b5132
RH
8666fi
8667
d34a2b1d
JG
8668
8669echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8670echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8671if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 8672 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8673else
5464f5a1
NN
8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
d34a2b1d 8680$ac_includes_default
5464f5a1
NN
8681int
8682main ()
8683{
d34a2b1d
JG
8684#ifndef getenv
8685 char *p = (char *) getenv;
8686#endif
8687
5464f5a1
NN
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext
8693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694 (eval $ac_compile) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
49c96104
SE
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
5464f5a1
NN
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
d34a2b1d 8714 ac_cv_have_decl_getenv=yes
252b5132 8715else
5464f5a1
NN
8716 echo "$as_me: failed program was:" >&5
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
d34a2b1d 8719ac_cv_have_decl_getenv=no
252b5132 8720fi
5464f5a1 8721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8722fi
d34a2b1d
JG
8723echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8724echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8725if test $ac_cv_have_decl_getenv = yes; then
252b5132 8726
d34a2b1d
JG
8727cat >>confdefs.h <<_ACEOF
8728#define HAVE_DECL_GETENV 1
8729_ACEOF
5464f5a1 8730
d34a2b1d
JG
8731
8732else
8733 cat >>confdefs.h <<_ACEOF
8734#define HAVE_DECL_GETENV 0
5464f5a1 8735_ACEOF
252b5132 8736
d34a2b1d 8737
252b5132
RH
8738fi
8739
d34a2b1d
JG
8740
8741echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8742echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8743if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 8744 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8745else
5464f5a1
NN
8746 cat >conftest.$ac_ext <<_ACEOF
8747/* confdefs.h. */
8748_ACEOF
8749cat confdefs.h >>conftest.$ac_ext
8750cat >>conftest.$ac_ext <<_ACEOF
8751/* end confdefs.h. */
d34a2b1d 8752$ac_includes_default
5464f5a1
NN
8753int
8754main ()
8755{
d34a2b1d
JG
8756#ifndef malloc
8757 char *p = (char *) malloc;
8758#endif
8759
5464f5a1
NN
8760 ;
8761 return 0;
8762}
8763_ACEOF
8764rm -f conftest.$ac_objext
8765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766 (eval $ac_compile) 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
49c96104
SE
8773 { ac_try='test -z "$ac_c_werror_flag"
8774 || test ! -s conftest.err'
5464f5a1
NN
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; } &&
8780 { ac_try='test -s conftest.$ac_objext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
d34a2b1d 8786 ac_cv_have_decl_malloc=yes
252b5132 8787else
5464f5a1
NN
8788 echo "$as_me: failed program was:" >&5
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
d34a2b1d 8791ac_cv_have_decl_malloc=no
252b5132 8792fi
5464f5a1 8793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8794fi
d34a2b1d
JG
8795echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8796echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8797if test $ac_cv_have_decl_malloc = yes; then
252b5132 8798
d34a2b1d
JG
8799cat >>confdefs.h <<_ACEOF
8800#define HAVE_DECL_MALLOC 1
8801_ACEOF
5464f5a1 8802
d34a2b1d
JG
8803
8804else
8805 cat >>confdefs.h <<_ACEOF
8806#define HAVE_DECL_MALLOC 0
5464f5a1 8807_ACEOF
252b5132 8808
d34a2b1d 8809
252b5132
RH
8810fi
8811
d34a2b1d
JG
8812
8813echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8814echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8815if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 8816 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8817else
5464f5a1
NN
8818 cat >conftest.$ac_ext <<_ACEOF
8819/* confdefs.h. */
8820_ACEOF
8821cat confdefs.h >>conftest.$ac_ext
8822cat >>conftest.$ac_ext <<_ACEOF
8823/* end confdefs.h. */
d34a2b1d 8824$ac_includes_default
5464f5a1
NN
8825int
8826main ()
8827{
d34a2b1d
JG
8828#ifndef realloc
8829 char *p = (char *) realloc;
8830#endif
8831
5464f5a1
NN
8832 ;
8833 return 0;
8834}
8835_ACEOF
8836rm -f conftest.$ac_objext
8837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838 (eval $ac_compile) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
49c96104
SE
8845 { ac_try='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
5464f5a1
NN
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest.$ac_objext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
d34a2b1d 8858 ac_cv_have_decl_realloc=yes
252b5132 8859else
5464f5a1
NN
8860 echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
d34a2b1d 8863ac_cv_have_decl_realloc=no
252b5132 8864fi
5464f5a1 8865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8866fi
d34a2b1d
JG
8867echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8868echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8869if test $ac_cv_have_decl_realloc = yes; then
8870
8871cat >>confdefs.h <<_ACEOF
8872#define HAVE_DECL_REALLOC 1
8873_ACEOF
252b5132 8874
5464f5a1 8875
d34a2b1d
JG
8876else
8877 cat >>confdefs.h <<_ACEOF
8878#define HAVE_DECL_REALLOC 0
efa9bda4
AL
8879_ACEOF
8880
d34a2b1d 8881
efa9bda4
AL
8882fi
8883
d34a2b1d 8884
be5cacdb
L
8885echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8886echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8887if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
8890 cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h. */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h. */
8896$ac_includes_default
8897int
8898main ()
8899{
8900#ifndef stpcpy
8901 char *p = (char *) stpcpy;
8902#endif
8903
8904 ;
8905 return 0;
8906}
8907_ACEOF
8908rm -f conftest.$ac_objext
8909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
49c96104
SE
8917 { ac_try='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
be5cacdb
L
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_cv_have_decl_stpcpy=yes
8931else
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935ac_cv_have_decl_stpcpy=no
8936fi
8937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938fi
8939echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8940echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8941if test $ac_cv_have_decl_stpcpy = yes; then
8942
8943cat >>confdefs.h <<_ACEOF
8944#define HAVE_DECL_STPCPY 1
8945_ACEOF
8946
8947
8948else
8949 cat >>confdefs.h <<_ACEOF
8950#define HAVE_DECL_STPCPY 0
8951_ACEOF
8952
8953
8954fi
8955
8956
d34a2b1d
JG
8957echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8958echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8959if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962 cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
d34a2b1d 8968$ac_includes_default
efa9bda4
AL
8969int
8970main ()
8971{
d34a2b1d
JG
8972#ifndef strstr
8973 char *p = (char *) strstr;
8974#endif
8975
efa9bda4
AL
8976 ;
8977 return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext
8981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
49c96104
SE
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
efa9bda4
AL
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
d34a2b1d 9002 ac_cv_have_decl_strstr=yes
efa9bda4
AL
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
d34a2b1d 9007ac_cv_have_decl_strstr=no
efa9bda4
AL
9008fi
9009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010fi
d34a2b1d
JG
9011echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9012echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9013if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 9014
d34a2b1d
JG
9015cat >>confdefs.h <<_ACEOF
9016#define HAVE_DECL_STRSTR 1
9017_ACEOF
efa9bda4 9018
d34a2b1d
JG
9019
9020else
9021 cat >>confdefs.h <<_ACEOF
9022#define HAVE_DECL_STRSTR 0
5464f5a1 9023_ACEOF
252b5132 9024
d34a2b1d 9025
252b5132
RH
9026fi
9027
6be7c12c 9028
36527912
AJ
9029echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9030echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9031if test "${ac_cv_have_decl_snprintf+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033else
9034 cat >conftest.$ac_ext <<_ACEOF
9035/* confdefs.h. */
9036_ACEOF
9037cat confdefs.h >>conftest.$ac_ext
9038cat >>conftest.$ac_ext <<_ACEOF
9039/* end confdefs.h. */
9040$ac_includes_default
9041int
9042main ()
9043{
9044#ifndef snprintf
9045 char *p = (char *) snprintf;
9046#endif
9047
9048 ;
9049 return 0;
9050}
9051_ACEOF
9052rm -f conftest.$ac_objext
9053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054 (eval $ac_compile) 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
49c96104
SE
9061 { ac_try='test -z "$ac_c_werror_flag"
9062 || test ! -s conftest.err'
36527912
AJ
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest.$ac_objext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_have_decl_snprintf=yes
9075else
9076 echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079ac_cv_have_decl_snprintf=no
9080fi
9081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9082fi
9083echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9084echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9085if test $ac_cv_have_decl_snprintf = yes; then
9086
9087cat >>confdefs.h <<_ACEOF
9088#define HAVE_DECL_SNPRINTF 1
9089_ACEOF
9090
9091
9092else
9093 cat >>confdefs.h <<_ACEOF
9094#define HAVE_DECL_SNPRINTF 0
9095_ACEOF
9096
9097
9098fi
9099
9100
9101echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9102echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9103if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106 cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112$ac_includes_default
9113int
9114main ()
9115{
9116#ifndef vsnprintf
9117 char *p = (char *) vsnprintf;
9118#endif
9119
9120 ;
9121 return 0;
9122}
9123_ACEOF
9124rm -f conftest.$ac_objext
9125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
49c96104
SE
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
36527912
AJ
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_have_decl_vsnprintf=yes
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151ac_cv_have_decl_vsnprintf=no
9152fi
9153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9154fi
9155echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9156echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9157if test $ac_cv_have_decl_vsnprintf = yes; then
9158
9159cat >>confdefs.h <<_ACEOF
9160#define HAVE_DECL_VSNPRINTF 1
9161_ACEOF
9162
9163
9164else
9165 cat >>confdefs.h <<_ACEOF
9166#define HAVE_DECL_VSNPRINTF 0
9167_ACEOF
9168
9169
9170fi
9171
9172
d34a2b1d 9173
252b5132
RH
9174# If we are configured native, pick a core file support file.
9175COREFILE=
9176COREFLAG=
9177TRAD_HEADER=
9178if test "${target}" = "${host}"; then
9179 case "${host}" in
13dfd2d0 9180 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9181 COREFILE=''
9182 ;;
ed84e695 9183 alpha*-*-linux-*)
252b5132
RH
9184 COREFILE=trad-core.lo
9185 TRAD_HEADER='"hosts/alphalinux.h"'
9186 ;;
690cc98b
NC
9187 alpha*-*-netbsd* | alpha*-*-openbsd*)
9188 COREFILE=netbsd-core.lo
9189 ;;
252b5132 9190 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9191 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9192 COREFILE='' ;;
61d0bc33 9193 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
9194 arm-*-riscix) COREFILE=trad-core.lo ;;
9195 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9196 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9197 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9198 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9199 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9200 hppa*-*-netbsd* | hppa*-*-openbsd*)
9201 COREFILE=netbsd-core.lo
9202 ;;
9203
dc810e39 9204 i370-*-*)
5b93d8bb
AM
9205 COREFILE=trad-core.lo
9206 TRAD_HEADER='"hosts/i370linux.h"'
9207 ;;
9208
80c7c40a 9209 i[3-7]86-sequent-bsd*)
5b93d8bb 9210 COREFILE=trad-core.lo
252b5132
RH
9211 TRAD_HEADER='"hosts/symmetry.h"'
9212 ;;
80c7c40a
NC
9213 i[3-7]86-sequent-sysv4*) ;;
9214 i[3-7]86-sequent-sysv*)
252b5132
RH
9215 COREFILE=trad-core.lo
9216 TRAD_HEADER='"hosts/symmetry.h"'
9217 ;;
80c7c40a 9218 i[3-7]86-*-bsdi)
7e3b3466
NC
9219 COREFILE=
9220 ;;
d2bef492 9221 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
9222 COREFILE=trad-core.lo
9223 TRAD_HEADER='"hosts/i386bsd.h"'
9224 ;;
13dfd2d0 9225 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9226 COREFILE=''
9227 TRAD_HEADER='"hosts/i386bsd.h"'
9228 ;;
4615568e 9229 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9230 COREFILE=netbsd-core.lo
9231 ;;
80c7c40a 9232 i[3-7]86-esix-sysv3*)
252b5132
RH
9233 COREFILE=trad-core.lo
9234 TRAD_HEADER='"hosts/esix.h"'
9235 ;;
80c7c40a 9236 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9237 COREFILE=sco5-core.lo
9238 ;;
80c7c40a 9239 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9240 COREFILE=trad-core.lo
9241 TRAD_HEADER='"hosts/i386sco.h"'
9242 ;;
80c7c40a 9243 i[3-7]86-*-mach3*)
252b5132
RH
9244 COREFILE=trad-core.lo
9245 TRAD_HEADER='"hosts/i386mach3.h"'
9246 ;;
ed84e695 9247 i[3-7]86-*-linux-*)
252b5132
RH
9248 COREFILE=trad-core.lo
9249 TRAD_HEADER='"hosts/i386linux.h"'
9250 ;;
80c7c40a
NC
9251 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9252 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9253 i860-*-mach3* | i860-*-osf1*)
9254 COREFILE=trad-core.lo
9255 TRAD_HEADER='"hosts/i860mach3.h"'
9256 ;;
252b5132
RH
9257 mips-*-netbsd* | mips*-*-openbsd*)
9258 COREFILE=netbsd-core.lo
9259 ;;
9260 mips-dec-*)
9261 COREFILE=trad-core.lo
9262 TRAD_HEADER='"hosts/decstation.h"'
9263 ;;
9264 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9265 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9266 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9267 mips-*-sysv4*) ;;
9268 mips-*-sysv* | mips-*-riscos*)
9269 COREFILE=trad-core.lo
9270 TRAD_HEADER='"hosts/riscos.h"'
9271 ;;
9272 mips-sony-bsd*)
9273 COREFILE=trad-core.lo
9274 TRAD_HEADER='"hosts/news-mips.h"'
9275 ;;
9276 m68*-bull*-sysv*)
9277 COREFILE=trad-core.lo
9278 TRAD_HEADER='"hosts/dpx2.h"'
9279 ;;
9280 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9281 m68*-hp-bsd*)
9282 COREFILE=trad-core.lo
9283 TRAD_HEADER='"hosts/hp300bsd.h"'
9284 ;;
ed84e695 9285 m68*-*-linux-*)
252b5132
RH
9286 COREFILE=trad-core.lo
9287 TRAD_HEADER='"hosts/m68klinux.h"'
9288 ;;
9289 m68*-motorola-sysv*)
9290 COREFILE=trad-core.lo
9291 TRAD_HEADER='"hosts/delta68.h"'
9292 ;;
9293 m68*-sony-*)
9294 COREFILE=trad-core.lo
9295 TRAD_HEADER='"hosts/news.h"'
9296 ;;
9297 m68*-*-netbsd* | m68*-*-openbsd*)
9298 COREFILE=netbsd-core.lo
9299 ;;
9300 m68*-apple-aux*)
9301 COREFILE=trad-core.lo
9302 TRAD_HEADER='"hosts/m68kaux.h"'
9303 ;;
eb1e0e80
NC
9304 m88*-*-sysv4*)
9305 ;;
9306 m88*-motorola-sysv*)
9307 COREFILE=ptrace-core.lo
9308 ;;
252b5132
RH
9309 m88*-*-mach3*)
9310 COREFILE=trad-core.lo
9311 TRAD_HEADER='"hosts/m88kmach3.h"'
9312 ;;
c6f8758f
NC
9313 m88*-*-openbsd*)
9314 COREFILE=netbsd-core.lo
9315 ;;
252b5132
RH
9316 ns32k-pc532-mach)
9317 COREFILE=trad-core.lo
9318 TRAD_HEADER='"hosts/pc532mach.h"'
9319 ;;
9320 ns32k-*-netbsd* | ns32k-*-openbsd*)
9321 COREFILE=netbsd-core.lo
9322 ;;
eb1e0e80
NC
9323 rs6000-*-lynx*)
9324 COREFILE=lynx-core.lo
9325 ;;
9326 rs6000-*-aix5.* | powerpc-*-aix5.*)
9327 COREFILE=rs6000-core.lo
9328 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9329 ;;
83954261 9330 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9331 COREFILE=rs6000-core.lo
9332 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9333 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9334 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9335 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9336echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9338/* confdefs.h. */
9339_ACEOF
9340cat confdefs.h >>conftest.$ac_ext
9341cat >>conftest.$ac_ext <<_ACEOF
9342/* end confdefs.h. */
83954261 9343#include <core.h>
5464f5a1
NN
9344int
9345main ()
9346{
83954261 9347struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext
9353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9354 (eval $ac_compile) 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
49c96104
SE
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
5464f5a1
NN
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374
9375cat >>confdefs.h <<\_ACEOF
83954261 9376#define HAVE_ST_C_IMPL 1
5464f5a1 9377_ACEOF
83954261 9378
5464f5a1
NN
9379 echo "$as_me:$LINENO: result: yes" >&5
9380echo "${ECHO_T}yes" >&6
83954261 9381else
5464f5a1
NN
9382 echo "$as_me: failed program was:" >&5
9383sed 's/^/| /' conftest.$ac_ext >&5
9384
9385echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
83954261 9387fi
5464f5a1 9388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9389 ;;
252b5132
RH
9390 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9391 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9392 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9393 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9394 powerpc-*-beos*) ;;
13dfd2d0
NC
9395 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9396 COREFILE='' ;;
252b5132 9397 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9398 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9399 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 9400 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 9401 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9402 COREFILE=netbsd-core.lo
9403 ;;
9404 tahoe-*-*)
9405 COREFILE=trad-core.lo
9406 TRAD_HEADER='"hosts/tahoe.h"'
9407 ;;
de6e5e1a
NC
9408 vax-*-netbsd* | vax-*-openbsd*)
9409 COREFILE=netbsd-core.lo
9410 ;;
252b5132
RH
9411 vax-*-ultrix2*)
9412 COREFILE=trad-core.lo
9413 TRAD_HEADER='"hosts/vaxult2.h"'
9414 ;;
9415 vax-*-ultrix*)
9416 COREFILE=trad-core.lo
9417 TRAD_HEADER='"hosts/vaxult2.h"'
9418 ;;
ed84e695 9419 vax-*-linux-*)
f8fc3443
NC
9420 COREFILE=trad-core.lo
9421 TRAD_HEADER='"hosts/vaxlinux.h"'
9422 ;;
252b5132
RH
9423 vax-*-*)
9424 COREFILE=trad-core.lo
9425 TRAD_HEADER='"hosts/vaxbsd.h"'
9426 ;;
85cfd8d3
MK
9427 x86_64-*-netbsd* | x86_64-*-openbsd*)
9428 COREFILE=netbsd-core.lo
9429 ;;
252b5132
RH
9430 esac
9431
9432 case "$COREFILE" in
9433 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9434 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9435 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9436 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9437 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9438 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9439 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9440 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9441 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9442 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9443 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9444 esac
9445
9446 # ELF corefile support has several flavors, but all of
9447 # them use something called <sys/procfs.h>
5464f5a1
NN
9448
9449for ac_header in sys/procfs.h
252b5132 9450do
5464f5a1
NN
9451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452if eval "test \"\${$as_ac_Header+set}\" = set"; then
9453 echo "$as_me:$LINENO: checking for $ac_header" >&5
9454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457fi
9458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460else
9461 # Is the header compilable?
9462echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9464cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470$ac_includes_default
9471#include <$ac_header>
9472_ACEOF
9473rm -f conftest.$ac_objext
9474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
49c96104
SE
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
5464f5a1
NN
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_header_compiler=yes
9496else
9497 echo "$as_me: failed program was:" >&5
9498sed 's/^/| /' conftest.$ac_ext >&5
9499
9500ac_header_compiler=no
9501fi
9502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9504echo "${ECHO_T}$ac_header_compiler" >&6
9505
9506# Is the header present?
9507echo "$as_me:$LINENO: checking $ac_header presence" >&5
9508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515#include <$ac_header>
9516_ACEOF
9517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } >/dev/null; then
9525 if test -s conftest.err; then
9526 ac_cpp_err=$ac_c_preproc_warn_flag
9527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9528 else
9529 ac_cpp_err=
9530 fi
252b5132 9531else
5464f5a1 9532 ac_cpp_err=yes
252b5132 9533fi
5464f5a1
NN
9534if test -z "$ac_cpp_err"; then
9535 ac_header_preproc=yes
9536else
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_header_preproc=no
252b5132 9541fi
5464f5a1
NN
9542rm -f conftest.err conftest.$ac_ext
9543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9544echo "${ECHO_T}$ac_header_preproc" >&6
9545
9546# So? What about this header?
9547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9548 yes:no: )
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9553 ac_header_preproc=yes
9554 ;;
9555 no:yes:* )
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9568 (
9569 cat <<\_ASBOX
9570## ------------------------------------------ ##
9571## Report this to the AC_PACKAGE_NAME lists. ##
9572## ------------------------------------------ ##
9573_ASBOX
9574 ) |
9575 sed "s/^/$as_me: WARNING: /" >&2
9576 ;;
9577esac
9578echo "$as_me:$LINENO: checking for $ac_header" >&5
9579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9582else
5464f5a1
NN
9583 eval "$as_ac_Header=\$ac_header_preproc"
9584fi
9585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9587
252b5132 9588fi
5464f5a1
NN
9589if test `eval echo '${'$as_ac_Header'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9592_ACEOF
9593
9594fi
9595
252b5132
RH
9596done
9597
9598 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9599 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9600echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9601 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604 cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h. */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h. */
7ee38065
MS
9610
9611#define _SYSCALL32
252b5132 9612#include <sys/procfs.h>
5464f5a1
NN
9613int
9614main ()
9615{
252b5132 9616prstatus_t avar
5464f5a1
NN
9617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext
9622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
49c96104
SE
9630 { ac_try='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
5464f5a1
NN
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
252b5132
RH
9643 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9644else
5464f5a1
NN
9645 echo "$as_me: failed program was:" >&5
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
9648bfd_cv_have_sys_procfs_type_prstatus_t=no
9649
252b5132 9650fi
5464f5a1 9651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9652fi
9653
9654 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9655
9656cat >>confdefs.h <<\_ACEOF
252b5132 9657#define HAVE_PRSTATUS_T 1
5464f5a1 9658_ACEOF
252b5132
RH
9659
9660 fi
5464f5a1
NN
9661 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9662echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9663
5464f5a1
NN
9664 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9665echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9666 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9668else
5464f5a1
NN
9669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
7ee38065
MS
9675
9676#define _SYSCALL32
9677#include <sys/procfs.h>
5464f5a1
NN
9678int
9679main ()
9680{
7ee38065 9681prstatus32_t avar
5464f5a1
NN
9682 ;
9683 return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext
9687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
49c96104
SE
9695 { ac_try='test -z "$ac_c_werror_flag"
9696 || test ! -s conftest.err'
5464f5a1
NN
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest.$ac_objext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
7ee38065
MS
9708 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9709else
5464f5a1
NN
9710 echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
9713bfd_cv_have_sys_procfs_type_prstatus32_t=no
9714
7ee38065 9715fi
5464f5a1 9716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9717fi
9718
9719 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
9720
9721cat >>confdefs.h <<\_ACEOF
7ee38065 9722#define HAVE_PRSTATUS32_T 1
5464f5a1 9723_ACEOF
7ee38065
MS
9724
9725 fi
5464f5a1
NN
9726 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9727echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 9728
5464f5a1
NN
9729 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9730echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9731 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9733else
5464f5a1
NN
9734 cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h. */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
7ee38065
MS
9740
9741#define _SYSCALL32
252b5132 9742#include <sys/procfs.h>
5464f5a1
NN
9743int
9744main ()
9745{
252b5132 9746prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751rm -f conftest.$ac_objext
9752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
49c96104
SE
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
5464f5a1
NN
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest.$ac_objext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
252b5132
RH
9773 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9774else
5464f5a1
NN
9775 echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9779
252b5132 9780fi
5464f5a1 9781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9782fi
9783
9784 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
9785
9786cat >>confdefs.h <<\_ACEOF
252b5132 9787#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 9788_ACEOF
252b5132
RH
9789
9790 fi
5464f5a1
NN
9791 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9792echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 9793
5464f5a1
NN
9794 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9795echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9796 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9798else
5464f5a1
NN
9799 cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h. */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h. */
7ee38065
MS
9805
9806#define _SYSCALL32
9807#include <sys/procfs.h>
5464f5a1
NN
9808int
9809main ()
9810{
7ee38065 9811prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext
9817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
49c96104
SE
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
5464f5a1
NN
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
7ee38065
MS
9838 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9839else
5464f5a1
NN
9840 echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9844
7ee38065 9845fi
5464f5a1 9846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9847fi
9848
9849 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
9850
9851cat >>confdefs.h <<\_ACEOF
7ee38065 9852#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 9853_ACEOF
7ee38065
MS
9854
9855 fi
5464f5a1
NN
9856 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9857echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 9858
5464f5a1
NN
9859 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9860echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9861 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9863else
5464f5a1
NN
9864 cat >conftest.$ac_ext <<_ACEOF
9865/* confdefs.h. */
9866_ACEOF
9867cat confdefs.h >>conftest.$ac_ext
9868cat >>conftest.$ac_ext <<_ACEOF
9869/* end confdefs.h. */
7ee38065
MS
9870
9871#define _SYSCALL32
252b5132 9872#include <sys/procfs.h>
5464f5a1
NN
9873int
9874main ()
9875{
252b5132 9876pstatus_t avar
5464f5a1
NN
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext
9882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
49c96104
SE
9890 { ac_try='test -z "$ac_c_werror_flag"
9891 || test ! -s conftest.err'
5464f5a1
NN
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest.$ac_objext'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
252b5132
RH
9903 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9904else
5464f5a1
NN
9905 echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908bfd_cv_have_sys_procfs_type_pstatus_t=no
9909
252b5132 9910fi
5464f5a1 9911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9912fi
9913
9914 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
9915
9916cat >>confdefs.h <<\_ACEOF
252b5132 9917#define HAVE_PSTATUS_T 1
5464f5a1 9918_ACEOF
252b5132
RH
9919
9920 fi
5464f5a1
NN
9921 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9922echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 9923
5464f5a1
NN
9924 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9925echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9926 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 9928else
5464f5a1
NN
9929 cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
f572a39d
AM
9935
9936#define _SYSCALL32
9937#include <sys/procfs.h>
5464f5a1
NN
9938int
9939main ()
9940{
f572a39d 9941pxstatus_t avar
5464f5a1
NN
9942 ;
9943 return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948 (eval $ac_compile) 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
49c96104
SE
9955 { ac_try='test -z "$ac_c_werror_flag"
9956 || test ! -s conftest.err'
5464f5a1
NN
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest.$ac_objext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
f572a39d
AM
9968 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
9969else
5464f5a1
NN
9970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973bfd_cv_have_sys_procfs_type_pxstatus_t=no
9974
f572a39d 9975fi
5464f5a1 9976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
9977fi
9978
9979 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
9980
9981cat >>confdefs.h <<\_ACEOF
f572a39d 9982#define HAVE_PXSTATUS_T 1
5464f5a1 9983_ACEOF
f572a39d
AM
9984
9985 fi
5464f5a1
NN
9986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
9987echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 9988
5464f5a1
NN
9989 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
9990echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
9991 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9993else
5464f5a1
NN
9994 cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h. */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h. */
7ee38065
MS
10000
10001#define _SYSCALL32
10002#include <sys/procfs.h>
5464f5a1
NN
10003int
10004main ()
10005{
7ee38065 10006pstatus32_t avar
5464f5a1
NN
10007 ;
10008 return 0;
10009}
10010_ACEOF
10011rm -f conftest.$ac_objext
10012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013 (eval $ac_compile) 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
49c96104
SE
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
5464f5a1
NN
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
7ee38065
MS
10033 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10034else
5464f5a1
NN
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038bfd_cv_have_sys_procfs_type_pstatus32_t=no
10039
7ee38065 10040fi
5464f5a1 10041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10042fi
10043
10044 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10045
10046cat >>confdefs.h <<\_ACEOF
7ee38065 10047#define HAVE_PSTATUS32_T 1
5464f5a1 10048_ACEOF
7ee38065
MS
10049
10050 fi
5464f5a1
NN
10051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10052echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10053
5464f5a1
NN
10054 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10055echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10056 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10058else
5464f5a1
NN
10059 cat >conftest.$ac_ext <<_ACEOF
10060/* confdefs.h. */
10061_ACEOF
10062cat confdefs.h >>conftest.$ac_ext
10063cat >>conftest.$ac_ext <<_ACEOF
10064/* end confdefs.h. */
7ee38065
MS
10065
10066#define _SYSCALL32
252b5132 10067#include <sys/procfs.h>
5464f5a1
NN
10068int
10069main ()
10070{
252b5132 10071prpsinfo_t avar
5464f5a1
NN
10072 ;
10073 return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext
10077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
49c96104
SE
10085 { ac_try='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
5464f5a1
NN
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest.$ac_objext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
252b5132
RH
10098 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10099else
5464f5a1
NN
10100 echo "$as_me: failed program was:" >&5
10101sed 's/^/| /' conftest.$ac_ext >&5
10102
10103bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10104
252b5132 10105fi
5464f5a1 10106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10107fi
10108
10109 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10110
10111cat >>confdefs.h <<\_ACEOF
252b5132 10112#define HAVE_PRPSINFO_T 1
5464f5a1 10113_ACEOF
252b5132
RH
10114
10115 fi
5464f5a1
NN
10116 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10117echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10118
5464f5a1
NN
10119 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10120echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10121 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10123else
5464f5a1
NN
10124 cat >conftest.$ac_ext <<_ACEOF
10125/* confdefs.h. */
10126_ACEOF
10127cat confdefs.h >>conftest.$ac_ext
10128cat >>conftest.$ac_ext <<_ACEOF
10129/* end confdefs.h. */
7ee38065
MS
10130
10131#define _SYSCALL32
10132#include <sys/procfs.h>
5464f5a1
NN
10133int
10134main ()
10135{
7ee38065 10136prpsinfo32_t avar
5464f5a1
NN
10137 ;
10138 return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext
10142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
49c96104
SE
10150 { ac_try='test -z "$ac_c_werror_flag"
10151 || test ! -s conftest.err'
5464f5a1
NN
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest.$ac_objext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
7ee38065
MS
10163 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10164else
5464f5a1
NN
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10169
7ee38065 10170fi
5464f5a1 10171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10172fi
10173
10174 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10175
10176cat >>confdefs.h <<\_ACEOF
7ee38065 10177#define HAVE_PRPSINFO32_T 1
5464f5a1 10178_ACEOF
7ee38065
MS
10179
10180 fi
5464f5a1
NN
10181 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10182echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10183
5464f5a1
NN
10184 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10185echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10186 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10188else
5464f5a1
NN
10189 cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h. */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h. */
7ee38065
MS
10195
10196#define _SYSCALL32
252b5132 10197#include <sys/procfs.h>
5464f5a1
NN
10198int
10199main ()
10200{
252b5132 10201psinfo_t avar
5464f5a1
NN
10202 ;
10203 return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext
10207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
49c96104
SE
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
5464f5a1
NN
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
252b5132
RH
10228 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10229else
5464f5a1
NN
10230 echo "$as_me: failed program was:" >&5
10231sed 's/^/| /' conftest.$ac_ext >&5
10232
10233bfd_cv_have_sys_procfs_type_psinfo_t=no
10234
252b5132 10235fi
5464f5a1 10236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10237fi
10238
10239 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10240
10241cat >>confdefs.h <<\_ACEOF
252b5132 10242#define HAVE_PSINFO_T 1
5464f5a1 10243_ACEOF
252b5132
RH
10244
10245 fi
5464f5a1
NN
10246 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10247echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10248
5464f5a1
NN
10249 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10250echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10251 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10253else
5464f5a1
NN
10254 cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h. */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h. */
7ee38065
MS
10260
10261#define _SYSCALL32
10262#include <sys/procfs.h>
5464f5a1
NN
10263int
10264main ()
10265{
7ee38065 10266psinfo32_t avar
5464f5a1
NN
10267 ;
10268 return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext
10272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
49c96104
SE
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
5464f5a1
NN
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest.$ac_objext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
7ee38065
MS
10293 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10294else
5464f5a1
NN
10295 echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
10298bfd_cv_have_sys_procfs_type_psinfo32_t=no
10299
7ee38065 10300fi
5464f5a1 10301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10302fi
10303
10304 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10305
10306cat >>confdefs.h <<\_ACEOF
7ee38065 10307#define HAVE_PSINFO32_T 1
5464f5a1 10308_ACEOF
7ee38065
MS
10309
10310 fi
5464f5a1
NN
10311 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10312echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10313
5464f5a1
NN
10314 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10315echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10316 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10318else
5464f5a1
NN
10319 cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
7ee38065
MS
10325
10326#define _SYSCALL32
252b5132 10327#include <sys/procfs.h>
5464f5a1
NN
10328int
10329main ()
10330{
252b5132 10331lwpstatus_t avar
5464f5a1
NN
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext
10337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
49c96104
SE
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
5464f5a1
NN
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest.$ac_objext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
252b5132
RH
10358 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10359else
5464f5a1
NN
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10364
252b5132 10365fi
5464f5a1 10366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10367fi
10368
10369 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10370
10371cat >>confdefs.h <<\_ACEOF
252b5132 10372#define HAVE_LWPSTATUS_T 1
5464f5a1 10373_ACEOF
252b5132
RH
10374
10375 fi
5464f5a1
NN
10376 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10377echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10378
5464f5a1
NN
10379 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10380echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10381 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10383else
5464f5a1
NN
10384 cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
f572a39d
AM
10390
10391#define _SYSCALL32
10392#include <sys/procfs.h>
5464f5a1
NN
10393int
10394main ()
10395{
f572a39d 10396lwpxstatus_t avar
5464f5a1
NN
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401rm -f conftest.$ac_objext
10402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
49c96104
SE
10410 { ac_try='test -z "$ac_c_werror_flag"
10411 || test ! -s conftest.err'
5464f5a1
NN
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
f572a39d
AM
10423 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10424else
5464f5a1
NN
10425 echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
10428bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10429
f572a39d 10430fi
5464f5a1 10431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10432fi
10433
10434 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10435
10436cat >>confdefs.h <<\_ACEOF
f572a39d 10437#define HAVE_LWPXSTATUS_T 1
5464f5a1 10438_ACEOF
f572a39d
AM
10439
10440 fi
5464f5a1
NN
10441 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10442echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10443
5464f5a1
NN
10444 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10445echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10446 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10448else
5464f5a1
NN
10449 cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
7ee38065
MS
10455
10456#define _SYSCALL32
252b5132 10457#include <sys/procfs.h>
5464f5a1
NN
10458int
10459main ()
10460{
252b5132 10461lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10462 ;
10463 return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext
10467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
49c96104
SE
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
5464f5a1
NN
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
252b5132
RH
10488 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10489else
5464f5a1
NN
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10494
252b5132 10495fi
5464f5a1 10496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10497fi
10498
10499 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10500
10501cat >>confdefs.h <<\_ACEOF
252b5132 10502#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10503_ACEOF
252b5132
RH
10504
10505 fi
5464f5a1
NN
10506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10507echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10508
5464f5a1
NN
10509 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10510echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10511 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10513else
5464f5a1
NN
10514 cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
7ee38065
MS
10520
10521#define _SYSCALL32
252b5132 10522#include <sys/procfs.h>
5464f5a1
NN
10523int
10524main ()
10525{
252b5132 10526lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10527 ;
10528 return 0;
10529}
10530_ACEOF
10531rm -f conftest.$ac_objext
10532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10533 (eval $ac_compile) 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
49c96104
SE
10540 { ac_try='test -z "$ac_c_werror_flag"
10541 || test ! -s conftest.err'
5464f5a1
NN
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest.$ac_objext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
252b5132
RH
10553 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10554else
5464f5a1
NN
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10559
252b5132 10560fi
5464f5a1 10561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10562fi
10563
10564 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10565
10566cat >>confdefs.h <<\_ACEOF
252b5132 10567#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10568_ACEOF
252b5132
RH
10569
10570 fi
5464f5a1
NN
10571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10572echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10573
5464f5a1
NN
10574 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10575echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10576 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10578else
5464f5a1
NN
10579 cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
7ee38065
MS
10585
10586#define _SYSCALL32
e3c976c4 10587#include <sys/procfs.h>
5464f5a1
NN
10588int
10589main ()
10590{
e3c976c4 10591win32_pstatus_t avar
5464f5a1
NN
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596rm -f conftest.$ac_objext
10597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
49c96104
SE
10605 { ac_try='test -z "$ac_c_werror_flag"
10606 || test ! -s conftest.err'
5464f5a1
NN
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
e3c976c4
ILT
10618 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10619else
5464f5a1
NN
10620 echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
10622
10623bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10624
e3c976c4 10625fi
5464f5a1 10626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10627fi
10628
e3c976c4 10629 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10630
10631cat >>confdefs.h <<\_ACEOF
e3c976c4 10632#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10633_ACEOF
16e9c715
NC
10634
10635 fi
5464f5a1
NN
10636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10637echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10638
10639 fi
10640fi
16e9c715 10641
b3baf5d0 10642
6be7c12c 10643if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10644
10645cat >>confdefs.h <<_ACEOF
252b5132 10646#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10647_ACEOF
252b5132 10648
3f9b03b5 10649fi
252b5132
RH
10650
10651# Horrible hacks to build DLLs on Windows.
10652WIN32LDFLAGS=
10653WIN32LIBADD=
10654case "${host}" in
10655*-*-cygwin*)
10656 if test "$enable_shared" = "yes"; then
10657 WIN32LDFLAGS="-no-undefined"
10658 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10659 fi
10660 ;;
78be1d6e 10661*-*-linux*)
39691762
L
10662 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10663 # libiberty.a.
ca51bfff
L
10664 case "${host}" in
10665 mips*-*-linux*)
10666 # Linux/MIPS uses PIC by default.
10667 if test "$enable_shared" = "yes"; then
10668 WIN32LIBADD="-L../libiberty -liberty"
10669 fi
10670 ;;
10671 *)
66e25bab 10672 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10673 if test -n "$x"; then
ca51bfff
L
10674 WIN32LIBADD="-L../libiberty/pic -liberty"
10675 fi
10676 ;;
10677 esac
39691762 10678 ;;
252b5132
RH
10679esac
10680
6be7c12c
AO
10681
10682
252b5132
RH
10683# target stuff:
10684
10685# Canonicalize the secondary target names.
10686if test -n "$enable_targets" ; then
10687 for targ in `echo $enable_targets | sed 's/,/ /g'`
10688 do
6d83c84b 10689 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10690 if test -n "$result" ; then
10691 canon_targets="$canon_targets $result"
10692 else
10693 # Allow targets that config.sub doesn't recognize, like "all".
10694 canon_targets="$canon_targets $targ"
10695 fi
10696 done
10697fi
10698
10699all_targets=false
10700defvec=
10701selvecs=
08f74004 10702assocvecs=
252b5132
RH
10703selarchs=
10704TDEFINES=
10705for targ in $target $canon_targets
10706do
10707 if test "x$targ" = "xall"; then
10708 all_targets=true
08f74004 10709 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10710 else
10711 . $srcdir/config.bfd
10712 if test "x$targ" = "x$target"; then
10713 defvec=$targ_defvec
10714 fi
10715 selvecs="$selvecs $targ_defvec $targ_selvecs"
10716 selarchs="$selarchs $targ_archs"
10717 TDEFINES="$TDEFINES $targ_cflags"
10718 fi
10719done
10720
6be7c12c 10721
252b5132
RH
10722# This processing still needs to be done if we're to decide properly whether
10723# 64-bit support needs to be compiled in. Currently, it will be included if
10724# the default or any other explicitly requested target requires it; it
10725# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10726# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10727# used.
10728
10729# uniq the default and selected vectors in all the configured targets.
10730f=""
10731for i in $selvecs ; do
10732 case " $f " in
10733 *" $i "*) ;;
10734 *) f="$f $i" ;;
10735 esac
10736done
10737selvecs="$f"
10738
6be7c12c 10739
08f74004
AM
10740# uniq the associated vectors in all the configured targets.
10741f=""
10742for i in $assocvecs ; do
10743 case " $f " in
10744 *" $i "*) ;;
10745 *) f="$f $i" ;;
10746 esac
10747done
10748assocvecs="$f"
10749
10750
252b5132
RH
10751# uniq the architectures in all the configured targets.
10752f=""
10753for i in $selarchs ; do
10754 case " $f " in
10755 *" $i "*) ;;
10756 *) f="$f $i" ;;
10757 esac
10758done
10759selarchs="$f"
10760
10761# Target backend .o files.
10762tb=
10763
65765700 10764elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
10765
10766for vec in $selvecs
10767do
69263e90 10768 target_size=32
252b5132
RH
10769 case "$vec" in
10770 # This list is alphabetized to make it easy to compare
dc810e39
AM
10771 # with the two vector lists in targets.c. For the same reason,
10772 # use one entry per line, even though this leads to long lines.
252b5132 10773 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 10774 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
10775 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10776 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10777 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 10778 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
10779 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10780 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10781 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10782 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10783 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10784 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10785 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10786 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10787 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10788 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10789 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
10790 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10791 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 10792 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 10793 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 10794 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 10795 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 10796 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 10797 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 10798 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 10799 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 10800 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 10801 bfd_elf32_bigarm_symbian_vec)
00a97672 10802 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10803 bfd_elf32_bigarm_vxworks_vec)
00a97672 10804 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10805 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10806 bfd_elf32_bigmips_vxworks_vec)
10807 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 10808 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 10809 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 10810 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
10811 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10812 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 10813 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 10814 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 10815 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 10816 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 10817 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 10818 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 10819 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 10820 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 10821 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
10822 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10823 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10824 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 10825 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 10826 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 10827 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 10828 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 10829 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 10830 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 10831 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 10832 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 10833 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 10834 bfd_elf32_littlearm_symbian_vec)
00a97672 10835 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10836 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
10837 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10838 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10839 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10840 bfd_elf32_littlemips_vxworks_vec)
10841 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 10842 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 10843 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
10844 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10845 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10846 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
10847 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10848 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
10849 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10850 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10851 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10852 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10853 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10854 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 10855 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 10856 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
10857 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10858 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10859 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10860 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 10861 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 10862 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
10863 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10864 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
10865 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10866 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10867 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 10868 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
10869 # FIXME: We include cofflink.lo not because it's needed for
10870 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10871 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
10872 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10873 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
10874 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10875 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10876 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
10877 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
10878 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
10879 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10880 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 10881 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
10882 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10883 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10884 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
910600e9
RS
10885 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10886 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
0a44bf69
RS
10887 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10888 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 10889 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 10890 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 10891 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 10892 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 10893 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
10894 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10895 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 10896 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10897 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10898 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10899 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
10900 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10901 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10902 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 10903 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10904 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10905 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10906 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 10907 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
10908 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10909 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10910 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
10911 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10912 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
10913 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10914 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10915 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10916 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 10917 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
10918 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 ;;
10919 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 ;;
dc810e39 10920 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 10921 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
10922 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10923 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10924 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10925 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 10926 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 10927 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 10928 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 10929 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
10930 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10931 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
10932 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
10933 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
10934 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
10935 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
10936 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
10937 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
10938 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
10939 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
10940 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
10941 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
10942 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
10943 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
10944 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
10945 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
10946 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
10947 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 10948 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
10949 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
10950 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
10951 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
10952 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
10953 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
10954 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10955 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10956 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
10957 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
10958 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
10959 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
10960 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
10961 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 10962 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
10963 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
10964 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 10965 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 10966 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 10967 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
10968 mach_o_be_vec) tb="$tb mach-o.lo" ;;
10969 mach_o_le_vec) tb="$tb mach-o.lo" ;;
10970 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
10971 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
10972 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
10973 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
10974 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
10975 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
10976 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 10977 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 10978 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 10979 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 10980 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 10981 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 10982 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 10983 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 10984 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
10985 pef_vec) tb="$tb pef.lo" ;;
10986 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 10987 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 10988 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 10989 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 10990 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 10991 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 10992 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 10993 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 10994 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 10995 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 10996 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
10997 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
10998 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 10999 som_vec) tb="$tb som.lo" ;;
dc810e39 11000 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11001 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11002 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11003 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11004 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11005 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11006 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11007 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11008 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11009 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11010 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11011 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11012 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11013 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11014 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11015 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11016 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11017 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11018 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11019 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11020 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11021 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11022 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11023 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11024 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11025 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11026 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11027 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11028 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11029 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11030 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 11031 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 11032 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 11033
341ca622
AM
11034 # These appear out of order in targets.c
11035 srec_vec) tb="$tb srec.lo" ;;
11036 symbolsrec_vec) tb="$tb srec.lo" ;;
11037 tekhex_vec) tb="$tb tekhex.lo" ;;
11038 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11039 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11040
252b5132 11041 "") ;;
5464f5a1
NN
11042 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11043echo "$as_me: error: *** unknown target vector $vec" >&2;}
11044 { (exit 1); exit 1; }; } ;;
252b5132 11045 esac
69263e90
AM
11046
11047 if test ${target_size} = 64; then
11048 target64=true
11049 fi
11050 if test x"${vec}" = x"${defvec}"; then
11051 bfd_default_target_size=${target_size}
11052 fi
252b5132
RH
11053done
11054
11055# Target architecture .o files.
11056# A couple of CPUs use shorter file names to avoid problems on DOS
11057# filesystems.
d031aafb 11058ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
11059
11060# Weed out duplicate .o files.
11061f=""
11062for i in $tb ; do
11063 case " $f " in
11064 *" $i "*) ;;
11065 *) f="$f $i" ;;
11066 esac
11067done
11068tb="$f"
11069
11070f=""
11071for i in $ta ; do
11072 case " $f " in
11073 *" $i "*) ;;
11074 *) f="$f $i" ;;
11075 esac
11076done
11077ta="$f"
11078
11079bfd_backends="$tb"
11080bfd_machines="$ta"
11081
11082if test x${all_targets} = xtrue ; then
11083 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11084 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11085 selvecs=
11086 havevecs=
11087 selarchs=
08f74004
AM
11088 test -n "$assocvecs" &&
11089 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11090else # all_targets is true
11091 # Only set these if they will be nonempty, for the clever echo.
11092 havevecs=
08f74004 11093 assocvecs=
252b5132
RH
11094 test -n "$selvecs" &&
11095 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11096 test -n "$selvecs" &&
11097 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11098 test -n "$selarchs" &&
11099 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11100fi # all_targets is true
11101
11102case ${host64}-${target64}-${want64} in
11103 *true*)
11104 wordsize=64
2858ef35 11105 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11106 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11107 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11108 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11109echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11111echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11112 fi
966abd70
HPN
11113 if test -n "$GCC" ; then
11114 bad_64bit_gcc=no;
5464f5a1
NN
11115 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11116echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11117 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11118 cat >conftest.$ac_ext <<_ACEOF
11119/* confdefs.h. */
11120_ACEOF
11121cat confdefs.h >>conftest.$ac_ext
11122cat >>conftest.$ac_ext <<_ACEOF
11123/* end confdefs.h. */
966abd70 11124:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11125_ACEOF
966abd70 11126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11127 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11128 bad_64bit_gcc=yes;
5464f5a1
NN
11129 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11130echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11131else
5464f5a1
NN
11132 echo "$as_me:$LINENO: result: no" >&5
11133echo "${ECHO_T}no" >&6
966abd70
HPN
11134fi
11135rm -f conftest*
11136
11137 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11138 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11139echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11140 { (exit 1); exit 1; }; }
966abd70
HPN
11141 fi
11142 fi
252b5132
RH
11143 ;;
11144 false-false-false)
11145 wordsize=32
2858ef35 11146 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11147 all_backends='$(BFD32_BACKENDS)'
11148 ;;
11149esac
11150
6be7c12c
AO
11151
11152
11153
11154
11155
69263e90 11156
2858ef35 11157
1012372a
AC
11158# Determine the host dependant file_ptr a.k.a. off_t type. In order
11159# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11160# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11161# Hopefully a reasonable assumption since fseeko et.al. should be
11162# upward compatible.
5464f5a1
NN
11163
11164
11165
11166
2e6f4fae
DJ
11167
11168for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 11169do
5464f5a1
NN
11170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11171echo "$as_me:$LINENO: checking for $ac_func" >&5
11172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11173if eval "test \"\${$as_ac_var+set}\" = set"; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
2ba49b59
KC
11176 cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h. */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
11181/* end confdefs.h. */
11182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11184#define $ac_func innocuous_$ac_func
11185
11186/* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char $ac_func (); below.
11188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11189 <limits.h> exists even on freestanding compilers. */
11190
11191#ifdef __STDC__
11192# include <limits.h>
11193#else
11194# include <assert.h>
11195#endif
11196
11197#undef $ac_func
11198
11199/* Override any gcc2 internal prototype to avoid an error. */
11200#ifdef __cplusplus
11201extern "C"
11202{
11203#endif
11204/* We use char because int might match the return type of a gcc2
11205 builtin and then its argument prototype would still apply. */
11206char $ac_func ();
11207/* The GNU C library defines this for functions which it implements
11208 to always fail with ENOSYS. Some functions are actually named
11209 something starting with __ and the normal name is an alias. */
11210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11211choke me
11212#else
11213char (*f) () = $ac_func;
11214#endif
11215#ifdef __cplusplus
11216}
11217#endif
11218
11219int
11220main ()
11221{
11222return f != $ac_func;
11223 ;
11224 return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext conftest$ac_exeext
11228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
49c96104
SE
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
2ba49b59
KC
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest$ac_exeext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 eval "$as_ac_var=yes"
11250else
11251 echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254eval "$as_ac_var=no"
11255fi
11256rm -f conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258fi
11259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11261if test `eval echo '${'$as_ac_var'}'` = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264_ACEOF
11265
11266fi
11267done
11268
11269if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11270 echo "$as_me:$LINENO: checking for off_t" >&5
11271echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11272if test "${ac_cv_type_off_t+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281$ac_includes_default
11282int
11283main ()
11284{
11285if ((off_t *) 0)
11286 return 0;
11287if (sizeof (off_t))
11288 return 0;
11289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext
11294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
49c96104
SE
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
2ba49b59
KC
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_cv_type_off_t=yes
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320ac_cv_type_off_t=no
11321fi
11322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11325echo "${ECHO_T}$ac_cv_type_off_t" >&6
11326
11327echo "$as_me:$LINENO: checking size of off_t" >&5
11328echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11329if test "${ac_cv_sizeof_off_t+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331else
11332 if test "$ac_cv_type_off_t" = yes; then
11333 # The cast to unsigned long works around a bug in the HP C Compiler
11334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11336 # This bug is HP SR number 8606223364.
11337 if test "$cross_compiling" = yes; then
11338 # Depending upon the size, compute the lo and hi bounds.
11339cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
2ba49b59
KC
11345$ac_includes_default
11346int
11347main ()
11348{
11349static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11350test_array [0] = 0
5464f5a1 11351
2ba49b59
KC
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
49c96104
SE
11365 { ac_try='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
2ba49b59
KC
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_lo=0 ac_mid=0
11379 while :; do
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386$ac_includes_default
11387int
11388main ()
11389{
11390static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11391test_array [0] = 0
5464f5a1 11392
2ba49b59
KC
11393 ;
11394 return 0;
11395}
11396_ACEOF
11397rm -f conftest.$ac_objext
11398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
49c96104
SE
11406 { ac_try='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
2ba49b59
KC
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest.$ac_objext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 ac_hi=$ac_mid; break
11420else
11421 echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11423
2ba49b59
KC
11424ac_lo=`expr $ac_mid + 1`
11425 if test $ac_lo -le $ac_mid; then
11426 ac_lo= ac_hi=
11427 break
11428 fi
11429 ac_mid=`expr 2 '*' $ac_mid + 1`
11430fi
11431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432 done
11433else
11434 echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11436
2ba49b59
KC
11437cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443$ac_includes_default
11444int
11445main ()
5464f5a1 11446{
2ba49b59
KC
11447static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11448test_array [0] = 0
1012372a 11449
2ba49b59
KC
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext
11455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
49c96104
SE
11463 { ac_try='test -z "$ac_c_werror_flag"
11464 || test ! -s conftest.err'
2ba49b59
KC
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_hi=-1 ac_mid=-1
11477 while :; do
11478 cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484$ac_includes_default
5464f5a1
NN
11485int
11486main ()
11487{
2ba49b59
KC
11488static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11489test_array [0] = 0
11490
5464f5a1
NN
11491 ;
11492 return 0;
11493}
11494_ACEOF
2ba49b59
KC
11495rm -f conftest.$ac_objext
11496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
49c96104
SE
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
5464f5a1
NN
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
2ba49b59 11511 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
2ba49b59 11517 ac_lo=$ac_mid; break
5464f5a1
NN
11518else
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
2ba49b59
KC
11522ac_hi=`expr '(' $ac_mid ')' - 1`
11523 if test $ac_mid -le $ac_hi; then
11524 ac_lo= ac_hi=
11525 break
11526 fi
11527 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11528fi
2ba49b59
KC
11529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 done
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11534
2ba49b59 11535ac_lo= ac_hi=
1012372a 11536fi
2ba49b59
KC
11537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538fi
11539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11540# Binary search between lo and hi bounds.
11541while test "x$ac_lo" != "x$ac_hi"; do
11542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
2ba49b59 11549$ac_includes_default
5464f5a1
NN
11550int
11551main ()
11552{
2ba49b59
KC
11553static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11554test_array [0] = 0
11555
5464f5a1
NN
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext
11561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
49c96104
SE
11569 { ac_try='test -z "$ac_c_werror_flag"
11570 || test ! -s conftest.err'
5464f5a1
NN
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest.$ac_objext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
2ba49b59 11582 ac_hi=$ac_mid
1012372a 11583else
5464f5a1
NN
11584 echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
2ba49b59 11587ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 11588fi
5464f5a1 11589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 11590done
2ba49b59
KC
11591case $ac_lo in
11592?*) ac_cv_sizeof_off_t=$ac_lo;;
11593'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11594See \`config.log' for more details." >&5
11595echo "$as_me: error: cannot compute sizeof (off_t), 77
11596See \`config.log' for more details." >&2;}
11597 { (exit 1); exit 1; }; } ;;
11598esac
11599else
11600 if test "$cross_compiling" = yes; then
49c96104
SE
11601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11602See \`config.log' for more details." >&5
11603echo "$as_me: error: cannot run test program while cross compiling
11604See \`config.log' for more details." >&2;}
2ba49b59
KC
11605 { (exit 1); exit 1; }; }
11606else
11607 cat >conftest.$ac_ext <<_ACEOF
11608/* confdefs.h. */
11609_ACEOF
11610cat confdefs.h >>conftest.$ac_ext
11611cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h. */
11613$ac_includes_default
11614long longval () { return (long) (sizeof (off_t)); }
11615unsigned long ulongval () { return (long) (sizeof (off_t)); }
11616#include <stdio.h>
11617#include <stdlib.h>
11618int
11619main ()
11620{
1012372a 11621
2ba49b59
KC
11622 FILE *f = fopen ("conftest.val", "w");
11623 if (! f)
11624 exit (1);
11625 if (((long) (sizeof (off_t))) < 0)
11626 {
11627 long i = longval ();
11628 if (i != ((long) (sizeof (off_t))))
11629 exit (1);
11630 fprintf (f, "%ld\n", i);
11631 }
11632 else
11633 {
11634 unsigned long i = ulongval ();
11635 if (i != ((long) (sizeof (off_t))))
11636 exit (1);
11637 fprintf (f, "%lu\n", i);
11638 }
11639 exit (ferror (f) || fclose (f) != 0);
11640
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest$ac_exeext
11646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_sizeof_off_t=`cat conftest.val`
11657else
11658 echo "$as_me: program exited with status $ac_status" >&5
11659echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11661
2ba49b59
KC
11662( exit $ac_status )
11663{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11664See \`config.log' for more details." >&5
11665echo "$as_me: error: cannot compute sizeof (off_t), 77
11666See \`config.log' for more details." >&2;}
5464f5a1 11667 { (exit 1); exit 1; }; }
1012372a 11668fi
2ba49b59
KC
11669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11670fi
11671fi
11672rm -f conftest.val
11673else
11674 ac_cv_sizeof_off_t=0
11675fi
11676fi
5464f5a1
NN
11677echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11678echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 11679cat >>confdefs.h <<_ACEOF
1012372a 11680#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11681_ACEOF
1012372a
AC
11682
11683
1012372a 11684fi
5464f5a1
NN
11685echo "$as_me:$LINENO: checking file_ptr type" >&5
11686echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11687bfd_file_ptr="long"
11688bfd_ufile_ptr="unsigned long"
11689if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11690 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11691 bfd_file_ptr=BFD_HOST_64_BIT
11692 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11693fi
5464f5a1
NN
11694echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11695echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11696
11697
11698
11699
252b5132
RH
11700tdefaults=""
11701test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11702test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11703test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11704test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11705test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11706
6be7c12c 11707
5464f5a1
NN
11708
11709
11710for ac_header in stdlib.h unistd.h
252b5132 11711do
5464f5a1
NN
11712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11713if eval "test \"\${$as_ac_Header+set}\" = set"; then
11714 echo "$as_me:$LINENO: checking for $ac_header" >&5
11715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11716if eval "test \"\${$as_ac_Header+set}\" = set"; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718fi
11719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11721else
11722 # Is the header compilable?
11723echo "$as_me:$LINENO: checking $ac_header usability" >&5
11724echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11725cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731$ac_includes_default
11732#include <$ac_header>
11733_ACEOF
11734rm -f conftest.$ac_objext
11735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736 (eval $ac_compile) 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
49c96104
SE
11743 { ac_try='test -z "$ac_c_werror_flag"
11744 || test ! -s conftest.err'
5464f5a1
NN
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest.$ac_objext'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 ac_header_compiler=yes
11757else
11758 echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761ac_header_compiler=no
11762fi
11763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11765echo "${ECHO_T}$ac_header_compiler" >&6
11766
11767# Is the header present?
11768echo "$as_me:$LINENO: checking $ac_header presence" >&5
11769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11770cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776#include <$ac_header>
11777_ACEOF
11778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } >/dev/null; then
11786 if test -s conftest.err; then
11787 ac_cpp_err=$ac_c_preproc_warn_flag
11788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11789 else
11790 ac_cpp_err=
11791 fi
252b5132 11792else
5464f5a1 11793 ac_cpp_err=yes
252b5132 11794fi
5464f5a1
NN
11795if test -z "$ac_cpp_err"; then
11796 ac_header_preproc=yes
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_header_preproc=no
252b5132 11802fi
5464f5a1
NN
11803rm -f conftest.err conftest.$ac_ext
11804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11805echo "${ECHO_T}$ac_header_preproc" >&6
11806
11807# So? What about this header?
11808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11809 yes:no: )
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11814 ac_header_preproc=yes
11815 ;;
11816 no:yes:* )
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11829 (
11830 cat <<\_ASBOX
11831## ------------------------------------------ ##
11832## Report this to the AC_PACKAGE_NAME lists. ##
11833## ------------------------------------------ ##
11834_ASBOX
11835 ) |
11836 sed "s/^/$as_me: WARNING: /" >&2
11837 ;;
11838esac
11839echo "$as_me:$LINENO: checking for $ac_header" >&5
11840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11841if eval "test \"\${$as_ac_Header+set}\" = set"; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11843else
5464f5a1
NN
11844 eval "$as_ac_Header=\$ac_header_preproc"
11845fi
11846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11848
11849fi
11850if test `eval echo '${'$as_ac_Header'}'` = yes; then
11851 cat >>confdefs.h <<_ACEOF
11852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11853_ACEOF
11854
252b5132 11855fi
5464f5a1 11856
252b5132
RH
11857done
11858
5464f5a1 11859
252b5132
RH
11860for ac_func in getpagesize
11861do
5464f5a1
NN
11862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863echo "$as_me:$LINENO: checking for $ac_func" >&5
11864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11865if eval "test \"\${$as_ac_var+set}\" = set"; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868 cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
11874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11876#define $ac_func innocuous_$ac_func
11877
252b5132 11878/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11879 which can conflict with char $ac_func (); below.
11880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881 <limits.h> exists even on freestanding compilers. */
11882
11883#ifdef __STDC__
11884# include <limits.h>
11885#else
11886# include <assert.h>
11887#endif
6be7c12c 11888
5464f5a1 11889#undef $ac_func
252b5132 11890
5464f5a1
NN
11891/* Override any gcc2 internal prototype to avoid an error. */
11892#ifdef __cplusplus
11893extern "C"
11894{
11895#endif
11896/* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898char $ac_func ();
252b5132
RH
11899/* The GNU C library defines this for functions which it implements
11900 to always fail with ENOSYS. Some functions are actually named
11901 something starting with __ and the normal name is an alias. */
11902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11903choke me
11904#else
5464f5a1
NN
11905char (*f) () = $ac_func;
11906#endif
11907#ifdef __cplusplus
11908}
252b5132
RH
11909#endif
11910
5464f5a1
NN
11911int
11912main ()
11913{
11914return f != $ac_func;
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext conftest$ac_exeext
11920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
49c96104
SE
11928 { ac_try='test -z "$ac_c_werror_flag"
11929 || test ! -s conftest.err'
5464f5a1
NN
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 eval "$as_ac_var=yes"
11942else
11943 echo "$as_me: failed program was:" >&5
11944sed 's/^/| /' conftest.$ac_ext >&5
11945
11946eval "$as_ac_var=no"
11947fi
11948rm -f conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950fi
11951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11953if test `eval echo '${'$as_ac_var'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11956_ACEOF
252b5132 11957
252b5132
RH
11958fi
11959done
11960
5464f5a1
NN
11961echo "$as_me:$LINENO: checking for working mmap" >&5
11962echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11963if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11965else
11966 if test "$cross_compiling" = yes; then
11967 ac_cv_func_mmap_fixed_mapped=no
11968else
5464f5a1
NN
11969 cat >conftest.$ac_ext <<_ACEOF
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
11975$ac_includes_default
11976/* malloc might have been renamed as rpl_malloc. */
11977#undef malloc
6be7c12c 11978
252b5132
RH
11979/* Thanks to Mike Haertel and Jim Avera for this test.
11980 Here is a matrix of mmap possibilities:
11981 mmap private not fixed
11982 mmap private fixed at somewhere currently unmapped
11983 mmap private fixed at somewhere already mapped
11984 mmap shared not fixed
11985 mmap shared fixed at somewhere currently unmapped
11986 mmap shared fixed at somewhere already mapped
11987 For private mappings, we should verify that changes cannot be read()
11988 back from the file, nor mmap's back from the file at a different
11989 address. (There have been systems where private was not correctly
11990 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 11991 VM page cache was not coherent with the file system buffer cache
252b5132
RH
11992 like early versions of FreeBSD and possibly contemporary NetBSD.)
11993 For shared mappings, we should conversely verify that changes get
5464f5a1 11994 propagated back to all the places they're supposed to be.
252b5132
RH
11995
11996 Grep wants private fixed already mapped.
11997 The main things grep needs to know about mmap are:
11998 * does it exist and is it safe to write into the mmap'd area
11999 * how to use it (BSD variants) */
5464f5a1 12000
252b5132
RH
12001#include <fcntl.h>
12002#include <sys/mman.h>
12003
5464f5a1
NN
12004#if !STDC_HEADERS && !HAVE_STDLIB_H
12005char *malloc ();
12006#endif
6be7c12c 12007
5464f5a1
NN
12008/* This mess was copied from the GNU getpagesize.h. */
12009#if !HAVE_GETPAGESIZE
252b5132 12010/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12011# if !HAVE_SYS_PARAM_H
252b5132
RH
12012# define HAVE_SYS_PARAM_H 1
12013# endif
12014
12015# ifdef _SC_PAGESIZE
12016# define getpagesize() sysconf(_SC_PAGESIZE)
12017# else /* no _SC_PAGESIZE */
5464f5a1 12018# if HAVE_SYS_PARAM_H
252b5132
RH
12019# include <sys/param.h>
12020# ifdef EXEC_PAGESIZE
12021# define getpagesize() EXEC_PAGESIZE
12022# else /* no EXEC_PAGESIZE */
12023# ifdef NBPG
12024# define getpagesize() NBPG * CLSIZE
12025# ifndef CLSIZE
12026# define CLSIZE 1
12027# endif /* no CLSIZE */
12028# else /* no NBPG */
12029# ifdef NBPC
12030# define getpagesize() NBPC
12031# else /* no NBPC */
12032# ifdef PAGESIZE
12033# define getpagesize() PAGESIZE
12034# endif /* PAGESIZE */
12035# endif /* no NBPC */
12036# endif /* no NBPG */
12037# endif /* no EXEC_PAGESIZE */
12038# else /* no HAVE_SYS_PARAM_H */
12039# define getpagesize() 8192 /* punt totally */
12040# endif /* no HAVE_SYS_PARAM_H */
12041# endif /* no _SC_PAGESIZE */
12042
5464f5a1
NN
12043#endif /* no HAVE_GETPAGESIZE */
12044
12045int
12046main ()
12047{
12048 char *data, *data2, *data3;
12049 int i, pagesize;
12050 int fd;
12051
12052 pagesize = getpagesize ();
12053
12054 /* First, make a file with some known garbage in it. */
12055 data = (char *) malloc (pagesize);
12056 if (!data)
12057 exit (1);
12058 for (i = 0; i < pagesize; ++i)
12059 *(data + i) = rand ();
12060 umask (0);
12061 fd = creat ("conftest.mmap", 0600);
12062 if (fd < 0)
12063 exit (1);
12064 if (write (fd, data, pagesize) != pagesize)
12065 exit (1);
12066 close (fd);
12067
12068 /* Next, try to mmap the file at a fixed address which already has
12069 something else allocated at it. If we can, also make sure that
12070 we see the same garbage. */
12071 fd = open ("conftest.mmap", O_RDWR);
12072 if (fd < 0)
12073 exit (1);
12074 data2 = (char *) malloc (2 * pagesize);
12075 if (!data2)
12076 exit (1);
12077 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12078 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12079 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12080 exit (1);
12081 for (i = 0; i < pagesize; ++i)
12082 if (*(data + i) != *(data2 + i))
12083 exit (1);
12084
12085 /* Finally, make sure that changes to the mapped area do not
12086 percolate back to the file as seen by read(). (This is a bug on
12087 some variants of i386 svr4.0.) */
12088 for (i = 0; i < pagesize; ++i)
12089 *(data2 + i) = *(data2 + i) + 1;
12090 data3 = (char *) malloc (pagesize);
12091 if (!data3)
12092 exit (1);
12093 if (read (fd, data3, pagesize) != pagesize)
12094 exit (1);
12095 for (i = 0; i < pagesize; ++i)
12096 if (*(data + i) != *(data3 + i))
12097 exit (1);
12098 close (fd);
12099 exit (0);
12100}
12101_ACEOF
12102rm -f conftest$ac_exeext
12103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_cv_func_mmap_fixed_mapped=yes
12114else
12115 echo "$as_me: program exited with status $ac_status" >&5
12116echo "$as_me: failed program was:" >&5
12117sed 's/^/| /' conftest.$ac_ext >&5
12118
12119( exit $ac_status )
12120ac_cv_func_mmap_fixed_mapped=no
12121fi
12122rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12123fi
12124fi
12125echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12126echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12127if test $ac_cv_func_mmap_fixed_mapped = yes; then
12128
12129cat >>confdefs.h <<\_ACEOF
12130#define HAVE_MMAP 1
12131_ACEOF
12132
12133fi
12134rm -f conftest.mmap
12135
12136
12137
12138for ac_func in madvise mprotect
12139do
12140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12141echo "$as_me:$LINENO: checking for $ac_func" >&5
12142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12143if eval "test \"\${$as_ac_var+set}\" = set"; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12145else
12146 cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12154#define $ac_func innocuous_$ac_func
12155
12156/* System header to define __stub macros and hopefully few prototypes,
12157 which can conflict with char $ac_func (); below.
12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12159 <limits.h> exists even on freestanding compilers. */
12160
12161#ifdef __STDC__
12162# include <limits.h>
12163#else
12164# include <assert.h>
12165#endif
12166
12167#undef $ac_func
12168
12169/* Override any gcc2 internal prototype to avoid an error. */
12170#ifdef __cplusplus
12171extern "C"
12172{
12173#endif
12174/* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12176char $ac_func ();
12177/* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12181choke me
12182#else
12183char (*f) () = $ac_func;
12184#endif
12185#ifdef __cplusplus
12186}
12187#endif
12188
12189int
12190main ()
12191{
12192return f != $ac_func;
12193 ;
12194 return 0;
12195}
12196_ACEOF
12197rm -f conftest.$ac_objext conftest$ac_exeext
12198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
49c96104
SE
12206 { ac_try='test -z "$ac_c_werror_flag"
12207 || test ! -s conftest.err'
5464f5a1
NN
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 eval "$as_ac_var=yes"
12220else
12221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
12224eval "$as_ac_var=no"
12225fi
12226rm -f conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
12228fi
12229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12231if test `eval echo '${'$as_ac_var'}'` = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12234_ACEOF
12235
12236fi
12237done
12238
12239case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12240 true+yes )
12241cat >>confdefs.h <<\_ACEOF
12242#define USE_MMAP 1
12243_ACEOF
12244 ;;
12245esac
12246
12247rm -f doc/config.status
12248 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12249
20e95c23 12250
5464f5a1
NN
12251 ac_config_commands="$ac_config_commands default"
12252
108a6f8e
CD
12253
12254
12255
12256
12257
5464f5a1
NN
12258cat >confcache <<\_ACEOF
12259# This file is a shell script that caches the results of configure
12260# tests run on this system so they can be shared between configure
12261# scripts and configure runs, see configure's option --config-cache.
12262# It is not useful on other systems. If it contains results you don't
12263# want to keep, you may remove or edit it.
12264#
12265# config.status only pays attention to the cache file if you give it
12266# the --recheck option to rerun configure.
12267#
12268# `ac_cv_env_foo' variables (set or unset) will be overridden when
12269# loading this file, other *unset* `ac_cv_foo' will be assigned the
12270# following values.
12271
12272_ACEOF
12273
12274# The following way of writing the cache mishandles newlines in values,
12275# but we know of no workaround that is simple, portable, and efficient.
12276# So, don't put newlines in cache variables' values.
12277# Ultrix sh set writes to stderr and can't be redirected directly,
12278# and sets the high bit in the cache file unless we assign to the vars.
12279{
12280 (set) 2>&1 |
12281 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12282 *ac_space=\ *)
12283 # `set' does not quote correctly, so add quotes (double-quote
12284 # substitution turns \\\\ into \\, and sed turns \\ into \).
12285 sed -n \
12286 "s/'/'\\\\''/g;
12287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12288 ;;
12289 *)
12290 # `set' quotes correctly as required by POSIX, so do not add quotes.
12291 sed -n \
12292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12293 ;;
12294 esac;
12295} |
12296 sed '
12297 t clear
12298 : clear
12299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12300 t end
12301 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12302 : end' >>confcache
12303if diff $cache_file confcache >/dev/null 2>&1; then :; else
12304 if test -w $cache_file; then
12305 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12306 cat confcache >$cache_file
12307 else
12308 echo "not updating unwritable cache $cache_file"
12309 fi
12310fi
12311rm -f confcache
12312
12313test "x$prefix" = xNONE && prefix=$ac_default_prefix
12314# Let make expand exec_prefix.
12315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12316
12317# VPATH may cause trouble with some makes, so we remove $(srcdir),
12318# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12319# trailing colons and then remove the whole line if VPATH becomes empty
12320# (actually we leave an empty line to preserve line numbers).
12321if test "x$srcdir" = x.; then
12322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12323s/:*\$(srcdir):*/:/;
12324s/:*\${srcdir}:*/:/;
12325s/:*@srcdir@:*/:/;
12326s/^\([^=]*=[ ]*\):*/\1/;
12327s/:*$//;
12328s/^[^=]*=[ ]*$//;
12329}'
12330fi
12331
12332DEFS=-DHAVE_CONFIG_H
12333
12334ac_libobjs=
12335ac_ltlibobjs=
12336for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12337 # 1. Remove the extension, and $U if already installed.
12338 ac_i=`echo "$ac_i" |
12339 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12340 # 2. Add them.
12341 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12342 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12343done
12344LIBOBJS=$ac_libobjs
12345
12346LTLIBOBJS=$ac_ltlibobjs
12347
12348
f5385ebf
AM
12349if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12350 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12351Usually this means the macro was only invoked conditionally." >&5
12352echo "$as_me: error: conditional \"AMDEP\" was never defined.
12353Usually this means the macro was only invoked conditionally." >&2;}
12354 { (exit 1); exit 1; }; }
12355fi
12356if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12357 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12358Usually this means the macro was only invoked conditionally." >&5
12359echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12360Usually this means the macro was only invoked conditionally." >&2;}
12361 { (exit 1); exit 1; }; }
12362fi
12363if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12364 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12365Usually this means the macro was only invoked conditionally." >&5
12366echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12367Usually this means the macro was only invoked conditionally." >&2;}
12368 { (exit 1); exit 1; }; }
12369fi
12370if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12371 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12372Usually this means the macro was only invoked conditionally." >&5
12373echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12374Usually this means the macro was only invoked conditionally." >&2;}
12375 { (exit 1); exit 1; }; }
12376fi
5464f5a1
NN
12377
12378: ${CONFIG_STATUS=./config.status}
12379ac_clean_files_save=$ac_clean_files
12380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12381{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12382echo "$as_me: creating $CONFIG_STATUS" >&6;}
12383cat >$CONFIG_STATUS <<_ACEOF
12384#! $SHELL
12385# Generated by $as_me.
12386# Run this file to recreate the current configuration.
12387# Compiler output produced by configure, useful for debugging
12388# configure, is in config.log if it exists.
12389
12390debug=false
12391ac_cs_recheck=false
12392ac_cs_silent=false
12393SHELL=\${CONFIG_SHELL-$SHELL}
12394_ACEOF
12395
12396cat >>$CONFIG_STATUS <<\_ACEOF
12397## --------------------- ##
12398## M4sh Initialization. ##
12399## --------------------- ##
12400
12401# Be Bourne compatible
12402if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12403 emulate sh
12404 NULLCMD=:
12405 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12406 # is contrary to our usage. Disable this feature.
12407 alias -g '${1+"$@"}'='"$@"'
12408elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12409 set -o posix
12410fi
12411DUALCASE=1; export DUALCASE # for MKS sh
12412
12413# Support unset when possible.
12414if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12415 as_unset=unset
12416else
12417 as_unset=false
12418fi
12419
12420
12421# Work around bugs in pre-3.0 UWIN ksh.
12422$as_unset ENV MAIL MAILPATH
12423PS1='$ '
12424PS2='> '
12425PS4='+ '
12426
12427# NLS nuisances.
12428for as_var in \
12429 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12430 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12431 LC_TELEPHONE LC_TIME
12432do
12433 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12434 eval $as_var=C; export $as_var
12435 else
12436 $as_unset $as_var
12437 fi
12438done
12439
12440# Required to use basename.
12441if expr a : '\(a\)' >/dev/null 2>&1; then
12442 as_expr=expr
12443else
12444 as_expr=false
12445fi
12446
12447if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12448 as_basename=basename
12449else
12450 as_basename=false
12451fi
252b5132 12452
6be7c12c 12453
5464f5a1
NN
12454# Name of the executable.
12455as_me=`$as_basename "$0" ||
12456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12457 X"$0" : 'X\(//\)$' \| \
12458 X"$0" : 'X\(/\)$' \| \
12459 . : '\(.\)' 2>/dev/null ||
12460echo X/"$0" |
12461 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12462 /^X\/\(\/\/\)$/{ s//\1/; q; }
12463 /^X\/\(\/\).*/{ s//\1/; q; }
12464 s/.*/./; q'`
12465
12466
12467# PATH needs CR, and LINENO needs CR and PATH.
12468# Avoid depending upon Character Ranges.
12469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12472as_cr_digits='0123456789'
12473as_cr_alnum=$as_cr_Letters$as_cr_digits
12474
12475# The user is always right.
12476if test "${PATH_SEPARATOR+set}" != set; then
12477 echo "#! /bin/sh" >conf$$.sh
12478 echo "exit 0" >>conf$$.sh
12479 chmod +x conf$$.sh
12480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12481 PATH_SEPARATOR=';'
12482 else
12483 PATH_SEPARATOR=:
12484 fi
12485 rm -f conf$$.sh
12486fi
12487
12488
12489 as_lineno_1=$LINENO
12490 as_lineno_2=$LINENO
12491 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12492 test "x$as_lineno_1" != "x$as_lineno_2" &&
12493 test "x$as_lineno_3" = "x$as_lineno_2" || {
12494 # Find who we are. Look in the path if we contain no path at all
12495 # relative or not.
12496 case $0 in
12497 *[\\/]* ) as_myself=$0 ;;
12498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499for as_dir in $PATH
12500do
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12504done
12505
12506 ;;
12507 esac
12508 # We did not find ourselves, most probably we were run as `sh COMMAND'
12509 # in which case we are not to be found in the path.
12510 if test "x$as_myself" = x; then
12511 as_myself=$0
12512 fi
12513 if test ! -f "$as_myself"; then
12514 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12515echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12516 { (exit 1); exit 1; }; }
12517 fi
12518 case $CONFIG_SHELL in
12519 '')
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12522do
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for as_base in sh bash ksh sh5; do
12526 case $as_dir in
12527 /*)
12528 if ("$as_dir/$as_base" -c '
12529 as_lineno_1=$LINENO
12530 as_lineno_2=$LINENO
12531 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12532 test "x$as_lineno_1" != "x$as_lineno_2" &&
12533 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12534 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12535 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12536 CONFIG_SHELL=$as_dir/$as_base
12537 export CONFIG_SHELL
12538 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12539 fi;;
12540 esac
12541 done
12542done
12543;;
12544 esac
12545
12546 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12547 # uniformly replaced by the line number. The first 'sed' inserts a
12548 # line-number line before each line; the second 'sed' does the real
12549 # work. The second script uses 'N' to pair each line-number line
12550 # with the numbered line, and appends trailing '-' during
12551 # substitution so that $LINENO is not a special case at line end.
12552 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12553 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12554 sed '=' <$as_myself |
12555 sed '
12556 N
12557 s,$,-,
12558 : loop
12559 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12560 t loop
12561 s,-$,,
12562 s,^['$as_cr_digits']*\n,,
12563 ' >$as_me.lineno &&
12564 chmod +x $as_me.lineno ||
12565 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12566echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12567 { (exit 1); exit 1; }; }
12568
12569 # Don't try to exec as it changes $[0], causing all sort of problems
12570 # (the dirname of $[0] is not the place where we might find the
12571 # original and so on. Autoconf is especially sensible to this).
12572 . ./$as_me.lineno
12573 # Exit status is that of the last command.
12574 exit
252b5132 12575}
6be7c12c 12576
5464f5a1
NN
12577
12578case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12579 *c*,-n*) ECHO_N= ECHO_C='
12580' ECHO_T=' ' ;;
12581 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12582 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12583esac
12584
12585if expr a : '\(a\)' >/dev/null 2>&1; then
12586 as_expr=expr
252b5132 12587else
5464f5a1 12588 as_expr=false
252b5132 12589fi
5464f5a1
NN
12590
12591rm -f conf$$ conf$$.exe conf$$.file
12592echo >conf$$.file
12593if ln -s conf$$.file conf$$ 2>/dev/null; then
12594 # We could just check for DJGPP; but this test a) works b) is more generic
12595 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12596 if test -f conf$$.exe; then
12597 # Don't use ln at all; we don't have any links
12598 as_ln_s='cp -p'
12599 else
12600 as_ln_s='ln -s'
12601 fi
12602elif ln conf$$.file conf$$ 2>/dev/null; then
12603 as_ln_s=ln
12604else
12605 as_ln_s='cp -p'
252b5132 12606fi
5464f5a1 12607rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12608
5464f5a1
NN
12609if mkdir -p . 2>/dev/null; then
12610 as_mkdir_p=:
12611else
12612 test -d ./-p && rmdir ./-p
12613 as_mkdir_p=false
252b5132 12614fi
b3baf5d0 12615
5464f5a1 12616as_executable_p="test -f"
252b5132 12617
5464f5a1
NN
12618# Sed expression to map a string onto a valid CPP name.
12619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12620
5464f5a1
NN
12621# Sed expression to map a string onto a valid variable name.
12622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12623
252b5132 12624
5464f5a1
NN
12625# IFS
12626# We need space, tab and new line, in precisely that order.
12627as_nl='
12628'
12629IFS=" $as_nl"
252b5132 12630
5464f5a1
NN
12631# CDPATH.
12632$as_unset CDPATH
12633
12634exec 6>&1
12635
12636# Open the log real soon, to keep \$[0] and so on meaningful, and to
12637# report actual input values of CONFIG_FILES etc. instead of their
12638# values after options handling. Logging --version etc. is OK.
12639exec 5>>config.log
12640{
12641 echo
12642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12643## Running $as_me. ##
12644_ASBOX
12645} >&5
12646cat >&5 <<_CSEOF
12647
12648This file was extended by $as_me, which was
12649generated by GNU Autoconf 2.59. Invocation command line was
12650
12651 CONFIG_FILES = $CONFIG_FILES
12652 CONFIG_HEADERS = $CONFIG_HEADERS
12653 CONFIG_LINKS = $CONFIG_LINKS
12654 CONFIG_COMMANDS = $CONFIG_COMMANDS
12655 $ $0 $@
12656
12657_CSEOF
12658echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12659echo >&5
12660_ACEOF
12661
12662# Files that config.status was made for.
12663if test -n "$ac_config_files"; then
12664 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12665fi
5464f5a1
NN
12666
12667if test -n "$ac_config_headers"; then
12668 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12669fi
252b5132 12670
5464f5a1
NN
12671if test -n "$ac_config_links"; then
12672 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12673fi
252b5132 12674
5464f5a1
NN
12675if test -n "$ac_config_commands"; then
12676 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12677fi
252b5132 12678
5464f5a1
NN
12679cat >>$CONFIG_STATUS <<\_ACEOF
12680
12681ac_cs_usage="\
12682\`$as_me' instantiates files from templates according to the
12683current configuration.
12684
12685Usage: $0 [OPTIONS] [FILE]...
12686
12687 -h, --help print this help, then exit
12688 -V, --version print version number, then exit
12689 -q, --quiet do not print progress messages
12690 -d, --debug don't remove temporary files
12691 --recheck update $as_me by reconfiguring in the same conditions
12692 --file=FILE[:TEMPLATE]
12693 instantiate the configuration file FILE
12694 --header=FILE[:TEMPLATE]
12695 instantiate the configuration header FILE
12696
12697Configuration files:
12698$config_files
12699
12700Configuration headers:
12701$config_headers
12702
12703Configuration commands:
12704$config_commands
12705
12706Report bugs to <bug-autoconf@gnu.org>."
12707_ACEOF
12708
12709cat >>$CONFIG_STATUS <<_ACEOF
12710ac_cs_version="\\
12711config.status
12712configured by $0, generated by GNU Autoconf 2.59,
12713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12714
12715Copyright (C) 2003 Free Software Foundation, Inc.
12716This config.status script is free software; the Free Software Foundation
12717gives unlimited permission to copy, distribute and modify it."
12718srcdir=$srcdir
12719INSTALL="$INSTALL"
12720_ACEOF
12721
12722cat >>$CONFIG_STATUS <<\_ACEOF
12723# If no file are specified by the user, then we need to provide default
12724# value. By we need to know if files were specified by the user.
12725ac_need_defaults=:
12726while test $# != 0
12727do
12728 case $1 in
12729 --*=*)
12730 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12732 ac_shift=:
6be7c12c 12733 ;;
5464f5a1
NN
12734 -*)
12735 ac_option=$1
12736 ac_optarg=$2
12737 ac_shift=shift
6be7c12c 12738 ;;
5464f5a1
NN
12739 *) # This is not an option, so the user has probably given explicit
12740 # arguments.
12741 ac_option=$1
12742 ac_need_defaults=false;;
12743 esac
252b5132 12744
5464f5a1
NN
12745 case $ac_option in
12746 # Handling of the options.
12747_ACEOF
12748cat >>$CONFIG_STATUS <<\_ACEOF
12749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12750 ac_cs_recheck=: ;;
12751 --version | --vers* | -V )
12752 echo "$ac_cs_version"; exit 0 ;;
12753 --he | --h)
12754 # Conflict between --help and --header
12755 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12756Try \`$0 --help' for more information." >&5
12757echo "$as_me: error: ambiguous option: $1
12758Try \`$0 --help' for more information." >&2;}
12759 { (exit 1); exit 1; }; };;
12760 --help | --hel | -h )
12761 echo "$ac_cs_usage"; exit 0 ;;
12762 --debug | --d* | -d )
12763 debug=: ;;
12764 --file | --fil | --fi | --f )
12765 $ac_shift
12766 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12767 ac_need_defaults=false;;
12768 --header | --heade | --head | --hea )
12769 $ac_shift
12770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12771 ac_need_defaults=false;;
12772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12774 ac_cs_silent=: ;;
6be7c12c 12775
5464f5a1
NN
12776 # This is an error.
12777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12778Try \`$0 --help' for more information." >&5
12779echo "$as_me: error: unrecognized option: $1
12780Try \`$0 --help' for more information." >&2;}
12781 { (exit 1); exit 1; }; } ;;
252b5132 12782
5464f5a1 12783 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12784
5464f5a1
NN
12785 esac
12786 shift
12787done
6be7c12c 12788
5464f5a1 12789ac_configure_extra_args=
252b5132 12790
5464f5a1
NN
12791if $ac_cs_silent; then
12792 exec 6>/dev/null
12793 ac_configure_extra_args="$ac_configure_extra_args --silent"
12794fi
6be7c12c 12795
5464f5a1
NN
12796_ACEOF
12797cat >>$CONFIG_STATUS <<_ACEOF
12798if \$ac_cs_recheck; then
12799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12801fi
12802
12803_ACEOF
12804
12805cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12806#
5464f5a1 12807# INIT-COMMANDS section.
6be7c12c 12808#
b3baf5d0 12809
f5385ebf 12810AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
12811# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12812 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12813 # from automake.
12814 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12815 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12816 LINGUAS="${LINGUAS-%UNSET%}"
12817
5464f5a1
NN
12818
12819
12820_ACEOF
12821
12822
12823
12824cat >>$CONFIG_STATUS <<\_ACEOF
12825for ac_config_target in $ac_config_targets
252b5132 12826do
5464f5a1
NN
12827 case "$ac_config_target" in
12828 # Handling of arguments.
12829 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12830 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12831 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12832 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 12833 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 12834 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5464f5a1
NN
12835 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12836 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12837 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12838echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12839 { (exit 1); exit 1; }; };;
252b5132
RH
12840 esac
12841done
12842
5464f5a1
NN
12843# If the user did not use the arguments to specify the items to instantiate,
12844# then the envvar interface is used. Set only those that are not.
12845# We use the long form for the default assignment because of an extremely
12846# bizarre bug on SunOS 4.1.3.
12847if $ac_need_defaults; then
12848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12851fi
12852
12853# Have a temporary directory for convenience. Make it in the build tree
12854# simply because there is no reason to put it here, and in addition,
12855# creating and moving files from /tmp can sometimes cause problems.
12856# Create a temporary directory, and hook for its removal unless debugging.
12857$debug ||
12858{
12859 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12860 trap '{ (exit 1); exit 1; }' 1 2 13 15
12861}
b3baf5d0 12862
5464f5a1 12863# Create a (secure) tmp directory for tmp files.
b3baf5d0 12864
5464f5a1
NN
12865{
12866 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12867 test -n "$tmp" && test -d "$tmp"
12868} ||
12869{
12870 tmp=./confstat$$-$RANDOM
12871 (umask 077 && mkdir $tmp)
12872} ||
12873{
12874 echo "$me: cannot create a temporary directory in ." >&2
12875 { (exit 1); exit 1; }
12876}
12877
12878_ACEOF
12879
12880cat >>$CONFIG_STATUS <<_ACEOF
12881
12882#
12883# CONFIG_FILES section.
12884#
b3baf5d0 12885
5464f5a1
NN
12886# No need to generate the scripts if there are no CONFIG_FILES.
12887# This happens for instance when ./config.status config.h
12888if test -n "\$CONFIG_FILES"; then
12889 # Protect against being on the right side of a sed subst in config.status.
12890 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12891 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12892s,@SHELL@,$SHELL,;t t
12893s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12894s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12895s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12896s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12897s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12898s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12899s,@exec_prefix@,$exec_prefix,;t t
12900s,@prefix@,$prefix,;t t
12901s,@program_transform_name@,$program_transform_name,;t t
12902s,@bindir@,$bindir,;t t
12903s,@sbindir@,$sbindir,;t t
12904s,@libexecdir@,$libexecdir,;t t
12905s,@datadir@,$datadir,;t t
12906s,@sysconfdir@,$sysconfdir,;t t
12907s,@sharedstatedir@,$sharedstatedir,;t t
12908s,@localstatedir@,$localstatedir,;t t
12909s,@libdir@,$libdir,;t t
12910s,@includedir@,$includedir,;t t
12911s,@oldincludedir@,$oldincludedir,;t t
12912s,@infodir@,$infodir,;t t
12913s,@mandir@,$mandir,;t t
12914s,@build_alias@,$build_alias,;t t
12915s,@host_alias@,$host_alias,;t t
12916s,@target_alias@,$target_alias,;t t
12917s,@DEFS@,$DEFS,;t t
12918s,@ECHO_C@,$ECHO_C,;t t
12919s,@ECHO_N@,$ECHO_N,;t t
12920s,@ECHO_T@,$ECHO_T,;t t
12921s,@LIBS@,$LIBS,;t t
12922s,@build@,$build,;t t
12923s,@build_cpu@,$build_cpu,;t t
12924s,@build_vendor@,$build_vendor,;t t
12925s,@build_os@,$build_os,;t t
12926s,@host@,$host,;t t
12927s,@host_cpu@,$host_cpu,;t t
12928s,@host_vendor@,$host_vendor,;t t
12929s,@host_os@,$host_os,;t t
12930s,@target@,$target,;t t
12931s,@target_cpu@,$target_cpu,;t t
12932s,@target_vendor@,$target_vendor,;t t
12933s,@target_os@,$target_os,;t t
12934s,@CC@,$CC,;t t
12935s,@CFLAGS@,$CFLAGS,;t t
12936s,@LDFLAGS@,$LDFLAGS,;t t
12937s,@CPPFLAGS@,$CPPFLAGS,;t t
12938s,@ac_ct_CC@,$ac_ct_CC,;t t
12939s,@EXEEXT@,$EXEEXT,;t t
12940s,@OBJEXT@,$OBJEXT,;t t
12941s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12942s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12943s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 12944s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
12945s,@PACKAGE@,$PACKAGE,;t t
12946s,@VERSION@,$VERSION,;t t
12947s,@ACLOCAL@,$ACLOCAL,;t t
12948s,@AUTOCONF@,$AUTOCONF,;t t
12949s,@AUTOMAKE@,$AUTOMAKE,;t t
12950s,@AUTOHEADER@,$AUTOHEADER,;t t
12951s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
12952s,@install_sh@,$install_sh,;t t
12953s,@STRIP@,$STRIP,;t t
12954s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12955s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12956s,@mkdir_p@,$mkdir_p,;t t
12957s,@AWK@,$AWK,;t t
5464f5a1 12958s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
12959s,@am__leading_dot@,$am__leading_dot,;t t
12960s,@AMTAR@,$AMTAR,;t t
12961s,@am__tar@,$am__tar,;t t
12962s,@am__untar@,$am__untar,;t t
12963s,@DEPDIR@,$DEPDIR,;t t
12964s,@am__include@,$am__include,;t t
12965s,@am__quote@,$am__quote,;t t
12966s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12967s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12968s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12969s,@CCDEPMODE@,$CCDEPMODE,;t t
12970s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12971s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
12972s,@AR@,$AR,;t t
12973s,@ac_ct_AR@,$ac_ct_AR,;t t
12974s,@RANLIB@,$RANLIB,;t t
12975s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12976s,@LN_S@,$LN_S,;t t
5464f5a1
NN
12977s,@LIBTOOL@,$LIBTOOL,;t t
12978s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 12979s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
12980s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12981s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12982s,@MAINT@,$MAINT,;t t
12983s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12984s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
12985s,@host_noncanonical@,$host_noncanonical,;t t
12986s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
12987s,@bfdlibdir@,$bfdlibdir,;t t
12988s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 12989s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
12990s,@LIBINTL@,$LIBINTL,;t t
12991s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12992s,@INCINTL@,$INCINTL,;t t
5464f5a1 12993s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
12994s,@GMSGFMT@,$GMSGFMT,;t t
12995s,@POSUB@,$POSUB,;t t
5464f5a1 12996s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 12997s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 12998s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
12999s,@GENCAT@,$GENCAT,;t t
13000s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 13001s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13002s,@MSGFMT@,$MSGFMT,;t t
13003s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 13004s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
13005s,@CPP@,$CPP,;t t
13006s,@EGREP@,$EGREP,;t t
5464f5a1
NN
13007s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13008s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13009s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13010s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13011s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13012s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13013s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13014s,@COREFILE@,$COREFILE,;t t
13015s,@COREFLAG@,$COREFLAG,;t t
13016s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13017s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13018s,@TDEFINES@,$TDEFINES,;t t
13019s,@wordsize@,$wordsize,;t t
13020s,@bfd_libs@,$bfd_libs,;t t
13021s,@all_backends@,$all_backends,;t t
13022s,@bfd_backends@,$bfd_backends,;t t
13023s,@bfd_machines@,$bfd_machines,;t t
13024s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13025s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13026s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13027s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
13028s,@datarootdir@,$datarootdir,;t t
13029s,@docdir@,$docdir,;t t
13030s,@htmldir@,$htmldir,;t t
5464f5a1
NN
13031s,@LIBOBJS@,$LIBOBJS,;t t
13032s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13033CEOF
252b5132 13034
5464f5a1
NN
13035_ACEOF
13036
13037 cat >>$CONFIG_STATUS <<\_ACEOF
13038 # Split the substitutions into bite-sized pieces for seds with
13039 # small command number limits, like on Digital OSF/1 and HP-UX.
13040 ac_max_sed_lines=48
13041 ac_sed_frag=1 # Number of current file.
13042 ac_beg=1 # First line for current file.
13043 ac_end=$ac_max_sed_lines # Line after last line for current file.
13044 ac_more_lines=:
13045 ac_sed_cmds=
13046 while $ac_more_lines; do
13047 if test $ac_beg -gt 1; then
13048 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13049 else
5464f5a1
NN
13050 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13051 fi
13052 if test ! -s $tmp/subs.frag; then
13053 ac_more_lines=false
13054 else
13055 # The purpose of the label and of the branching condition is to
13056 # speed up the sed processing (if there are no `@' at all, there
13057 # is no need to browse any of the substitutions).
13058 # These are the two extra sed commands mentioned above.
13059 (echo ':t
13060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13061 if test -z "$ac_sed_cmds"; then
13062 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13063 else
13064 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13065 fi
13066 ac_sed_frag=`expr $ac_sed_frag + 1`
13067 ac_beg=$ac_end
13068 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13069 fi
5464f5a1
NN
13070 done
13071 if test -z "$ac_sed_cmds"; then
13072 ac_sed_cmds=cat
252b5132 13073 fi
5464f5a1 13074fi # test -n "$CONFIG_FILES"
6be7c12c 13075
5464f5a1
NN
13076_ACEOF
13077cat >>$CONFIG_STATUS <<\_ACEOF
13078for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13080 case $ac_file in
13081 - | *:- | *:-:* ) # input from stdin
13082 cat >$tmp/stdin
13083 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13085 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13087 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13088 esac
13089
5464f5a1
NN
13090 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13093 X"$ac_file" : 'X\(//\)[^/]' \| \
13094 X"$ac_file" : 'X\(//\)$' \| \
13095 X"$ac_file" : 'X\(/\)' \| \
13096 . : '\(.\)' 2>/dev/null ||
13097echo X"$ac_file" |
13098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13100 /^X\(\/\/\)$/{ s//\1/; q; }
13101 /^X\(\/\).*/{ s//\1/; q; }
13102 s/.*/./; q'`
13103 { if $as_mkdir_p; then
13104 mkdir -p "$ac_dir"
252b5132 13105 else
5464f5a1
NN
13106 as_dir="$ac_dir"
13107 as_dirs=
13108 while test ! -d "$as_dir"; do
13109 as_dirs="$as_dir $as_dirs"
13110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112 X"$as_dir" : 'X\(//\)[^/]' \| \
13113 X"$as_dir" : 'X\(//\)$' \| \
13114 X"$as_dir" : 'X\(/\)' \| \
13115 . : '\(.\)' 2>/dev/null ||
13116echo X"$as_dir" |
13117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13119 /^X\(\/\/\)$/{ s//\1/; q; }
13120 /^X\(\/\).*/{ s//\1/; q; }
13121 s/.*/./; q'`
13122 done
13123 test ! -n "$as_dirs" || mkdir $as_dirs
13124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13125echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13126 { (exit 1); exit 1; }; }; }
13127
13128 ac_builddir=.
13129
13130if test "$ac_dir" != .; then
13131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13132 # A "../" for each directory in $ac_dir_suffix.
13133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13134else
13135 ac_dir_suffix= ac_top_builddir=
13136fi
252b5132 13137
5464f5a1
NN
13138case $srcdir in
13139 .) # No --srcdir option. We are building in place.
13140 ac_srcdir=.
13141 if test -z "$ac_top_builddir"; then
13142 ac_top_srcdir=.
13143 else
13144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13145 fi ;;
13146 [\\/]* | ?:[\\/]* ) # Absolute path.
13147 ac_srcdir=$srcdir$ac_dir_suffix;
13148 ac_top_srcdir=$srcdir ;;
252b5132 13149 *) # Relative path.
5464f5a1
NN
13150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13152esac
252b5132 13153
5464f5a1
NN
13154# Do not use `cd foo && pwd` to compute absolute paths, because
13155# the directories may not exist.
13156case `pwd` in
13157.) ac_abs_builddir="$ac_dir";;
13158*)
13159 case "$ac_dir" in
13160 .) ac_abs_builddir=`pwd`;;
13161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13163 esac;;
13164esac
13165case $ac_abs_builddir in
13166.) ac_abs_top_builddir=${ac_top_builddir}.;;
13167*)
13168 case ${ac_top_builddir}. in
13169 .) ac_abs_top_builddir=$ac_abs_builddir;;
13170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13172 esac;;
13173esac
13174case $ac_abs_builddir in
13175.) ac_abs_srcdir=$ac_srcdir;;
13176*)
13177 case $ac_srcdir in
13178 .) ac_abs_srcdir=$ac_abs_builddir;;
13179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13181 esac;;
13182esac
13183case $ac_abs_builddir in
13184.) ac_abs_top_srcdir=$ac_top_srcdir;;
13185*)
13186 case $ac_top_srcdir in
13187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13190 esac;;
13191esac
252b5132 13192
5464f5a1
NN
13193
13194 case $INSTALL in
13195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13196 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13197 esac
252b5132 13198
49c96104
SE
13199 if test x"$ac_file" != x-; then
13200 { echo "$as_me:$LINENO: creating $ac_file" >&5
13201echo "$as_me: creating $ac_file" >&6;}
13202 rm -f "$ac_file"
13203 fi
5464f5a1
NN
13204 # Let's still pretend it is `configure' which instantiates (i.e., don't
13205 # use $as_me), people would be surprised to read:
13206 # /* config.h. Generated by config.status. */
13207 if test x"$ac_file" = x-; then
13208 configure_input=
13209 else
13210 configure_input="$ac_file. "
13211 fi
13212 configure_input=$configure_input"Generated from `echo $ac_file_in |
13213 sed 's,.*/,,'` by configure."
13214
13215 # First look for the input files in the build tree, otherwise in the
13216 # src tree.
13217 ac_file_inputs=`IFS=:
13218 for f in $ac_file_in; do
13219 case $f in
13220 -) echo $tmp/stdin ;;
13221 [\\/$]*)
13222 # Absolute (can't be DOS-style, as IFS=:)
13223 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13224echo "$as_me: error: cannot find input file: $f" >&2;}
13225 { (exit 1); exit 1; }; }
13226 echo "$f";;
13227 *) # Relative
13228 if test -f "$f"; then
13229 # Build tree
13230 echo "$f"
13231 elif test -f "$srcdir/$f"; then
13232 # Source tree
13233 echo "$srcdir/$f"
13234 else
13235 # /dev/null tree
13236 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13237echo "$as_me: error: cannot find input file: $f" >&2;}
13238 { (exit 1); exit 1; }; }
13239 fi;;
13240 esac
13241 done` || { (exit 1); exit 1; }
5464f5a1
NN
13242_ACEOF
13243cat >>$CONFIG_STATUS <<_ACEOF
13244 sed "$ac_vpsub
13245$extrasub
13246_ACEOF
13247cat >>$CONFIG_STATUS <<\_ACEOF
13248:t
13249/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13250s,@configure_input@,$configure_input,;t t
13251s,@srcdir@,$ac_srcdir,;t t
13252s,@abs_srcdir@,$ac_abs_srcdir,;t t
13253s,@top_srcdir@,$ac_top_srcdir,;t t
13254s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13255s,@builddir@,$ac_builddir,;t t
13256s,@abs_builddir@,$ac_abs_builddir,;t t
13257s,@top_builddir@,$ac_top_builddir,;t t
13258s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13259s,@INSTALL@,$ac_INSTALL,;t t
13260" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13261 rm -f $tmp/stdin
13262 if test x"$ac_file" != x-; then
13263 mv $tmp/out $ac_file
13264 else
13265 cat $tmp/out
13266 rm -f $tmp/out
13267 fi
13268
13269done
13270_ACEOF
13271cat >>$CONFIG_STATUS <<\_ACEOF
13272
13273#
13274# CONFIG_HEADER section.
13275#
252b5132
RH
13276
13277# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13278# NAME is the cpp macro being defined and VALUE is the value it is being given.
13279#
13280# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13281ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13282ac_dB='[ ].*$,\1#\2'
13283ac_dC=' '
13284ac_dD=',;t'
13285# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13286ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13287ac_uB='$,\1#\2define\3'
252b5132 13288ac_uC=' '
5464f5a1
NN
13289ac_uD=',;t'
13290
13291for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13293 case $ac_file in
13294 - | *:- | *:-:* ) # input from stdin
13295 cat >$tmp/stdin
13296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13300 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13301 esac
13302
5464f5a1
NN
13303 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13304echo "$as_me: creating $ac_file" >&6;}
13305
13306 # First look for the input files in the build tree, otherwise in the
13307 # src tree.
13308 ac_file_inputs=`IFS=:
13309 for f in $ac_file_in; do
13310 case $f in
13311 -) echo $tmp/stdin ;;
13312 [\\/$]*)
13313 # Absolute (can't be DOS-style, as IFS=:)
13314 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13315echo "$as_me: error: cannot find input file: $f" >&2;}
13316 { (exit 1); exit 1; }; }
13317 # Do quote $f, to prevent DOS paths from being IFS'd.
13318 echo "$f";;
13319 *) # Relative
13320 if test -f "$f"; then
13321 # Build tree
13322 echo "$f"
13323 elif test -f "$srcdir/$f"; then
13324 # Source tree
13325 echo "$srcdir/$f"
13326 else
13327 # /dev/null tree
13328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13329echo "$as_me: error: cannot find input file: $f" >&2;}
13330 { (exit 1); exit 1; }; }
13331 fi;;
13332 esac
13333 done` || { (exit 1); exit 1; }
13334 # Remove the trailing spaces.
13335 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13336
13337_ACEOF
13338
13339# Transform confdefs.h into two sed scripts, `conftest.defines' and
13340# `conftest.undefs', that substitutes the proper values into
13341# config.h.in to produce config.h. The first handles `#define'
13342# templates, and the second `#undef' templates.
13343# And first: Protect against being on the right side of a sed subst in
13344# config.status. Protect against being in an unquoted here document
13345# in config.status.
13346rm -f conftest.defines conftest.undefs
13347# Using a here document instead of a string reduces the quoting nightmare.
13348# Putting comments in sed scripts is not portable.
13349#
13350# `end' is used to avoid that the second main sed command (meant for
13351# 0-ary CPP macros) applies to n-ary macro definitions.
13352# See the Autoconf documentation for `clear'.
13353cat >confdef2sed.sed <<\_ACEOF
13354s/[\\&,]/\\&/g
13355s,[\\$`],\\&,g
13356t clear
13357: clear
13358s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13359t end
13360s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13361: end
13362_ACEOF
13363# If some macros were called several times there might be several times
13364# the same #defines, which is useless. Nevertheless, we may not want to
13365# sort them, since we want the *last* AC-DEFINE to be honored.
13366uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13367sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13368rm -f confdef2sed.sed
252b5132
RH
13369
13370# This sed command replaces #undef with comments. This is necessary, for
13371# example, in the case of _POSIX_SOURCE, which is predefined and required
13372# on some systems where configure will not decide to define it.
5464f5a1
NN
13373cat >>conftest.undefs <<\_ACEOF
13374s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13375_ACEOF
13376
13377# Break up conftest.defines because some shells have a limit on the size
13378# of here documents, and old seds have small limits too (100 cmds).
13379echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13380echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13381echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13382echo ' :' >>$CONFIG_STATUS
13383rm -f conftest.tail
13384while grep . conftest.defines >/dev/null
13385do
13386 # Write a limited-size here document to $tmp/defines.sed.
13387 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13388 # Speed up: don't consider the non `#define' lines.
13389 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13390 # Work around the forget-to-reset-the-flag bug.
13391 echo 't clr' >>$CONFIG_STATUS
13392 echo ': clr' >>$CONFIG_STATUS
13393 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13394 echo 'CEOF
13395 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13396 rm -f $tmp/in
13397 mv $tmp/out $tmp/in
13398' >>$CONFIG_STATUS
13399 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13400 rm -f conftest.defines
13401 mv conftest.tail conftest.defines
13402done
13403rm -f conftest.defines
13404echo ' fi # grep' >>$CONFIG_STATUS
13405echo >>$CONFIG_STATUS
252b5132 13406
5464f5a1
NN
13407# Break up conftest.undefs because some shells have a limit on the size
13408# of here documents, and old seds have small limits too (100 cmds).
13409echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13410rm -f conftest.tail
5464f5a1 13411while grep . conftest.undefs >/dev/null
252b5132 13412do
5464f5a1
NN
13413 # Write a limited-size here document to $tmp/undefs.sed.
13414 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13415 # Speed up: don't consider the non `#undef'
13416 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13417 # Work around the forget-to-reset-the-flag bug.
13418 echo 't clr' >>$CONFIG_STATUS
13419 echo ': clr' >>$CONFIG_STATUS
13420 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13421 echo 'CEOF
5464f5a1
NN
13422 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13423 rm -f $tmp/in
13424 mv $tmp/out $tmp/in
13425' >>$CONFIG_STATUS
13426 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13427 rm -f conftest.undefs
13428 mv conftest.tail conftest.undefs
252b5132 13429done
5464f5a1
NN
13430rm -f conftest.undefs
13431
13432cat >>$CONFIG_STATUS <<\_ACEOF
13433 # Let's still pretend it is `configure' which instantiates (i.e., don't
13434 # use $as_me), people would be surprised to read:
13435 # /* config.h. Generated by config.status. */
13436 if test x"$ac_file" = x-; then
13437 echo "/* Generated by configure. */" >$tmp/config.h
13438 else
13439 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13440 fi
13441 cat $tmp/in >>$tmp/config.h
13442 rm -f $tmp/in
13443 if test x"$ac_file" != x-; then
13444 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13445 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13446echo "$as_me: $ac_file is unchanged" >&6;}
13447 else
13448 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13450 X"$ac_file" : 'X\(//\)[^/]' \| \
13451 X"$ac_file" : 'X\(//\)$' \| \
13452 X"$ac_file" : 'X\(/\)' \| \
13453 . : '\(.\)' 2>/dev/null ||
13454echo X"$ac_file" |
13455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13457 /^X\(\/\/\)$/{ s//\1/; q; }
13458 /^X\(\/\).*/{ s//\1/; q; }
13459 s/.*/./; q'`
13460 { if $as_mkdir_p; then
13461 mkdir -p "$ac_dir"
252b5132 13462 else
5464f5a1
NN
13463 as_dir="$ac_dir"
13464 as_dirs=
13465 while test ! -d "$as_dir"; do
13466 as_dirs="$as_dir $as_dirs"
13467 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13469 X"$as_dir" : 'X\(//\)[^/]' \| \
13470 X"$as_dir" : 'X\(//\)$' \| \
13471 X"$as_dir" : 'X\(/\)' \| \
13472 . : '\(.\)' 2>/dev/null ||
13473echo X"$as_dir" |
13474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13476 /^X\(\/\/\)$/{ s//\1/; q; }
13477 /^X\(\/\).*/{ s//\1/; q; }
13478 s/.*/./; q'`
13479 done
13480 test ! -n "$as_dirs" || mkdir $as_dirs
13481 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13482echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13483 { (exit 1); exit 1; }; }; }
13484
13485 rm -f $ac_file
13486 mv $tmp/config.h $ac_file
252b5132 13487 fi
5464f5a1
NN
13488 else
13489 cat $tmp/config.h
13490 rm -f $tmp/config.h
252b5132 13491 fi
f5385ebf
AM
13492# Compute $ac_file's index in $config_headers.
13493_am_stamp_count=1
13494for _am_header in $config_headers :; do
13495 case $_am_header in
13496 $ac_file | $ac_file:* )
13497 break ;;
13498 * )
13499 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13500 esac
13501done
13502echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13503$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13504 X$ac_file : 'X\(//\)[^/]' \| \
13505 X$ac_file : 'X\(//\)$' \| \
13506 X$ac_file : 'X\(/\)' \| \
13507 . : '\(.\)' 2>/dev/null ||
13508echo X$ac_file |
13509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13511 /^X\(\/\/\)$/{ s//\1/; q; }
13512 /^X\(\/\).*/{ s//\1/; q; }
13513 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13514done
13515_ACEOF
13516cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13517
5464f5a1
NN
13518#
13519# CONFIG_COMMANDS section.
13520#
13521for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13522 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13523 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13524 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13525$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13526 X"$ac_dest" : 'X\(//\)[^/]' \| \
13527 X"$ac_dest" : 'X\(//\)$' \| \
13528 X"$ac_dest" : 'X\(/\)' \| \
13529 . : '\(.\)' 2>/dev/null ||
13530echo X"$ac_dest" |
13531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13533 /^X\(\/\/\)$/{ s//\1/; q; }
13534 /^X\(\/\).*/{ s//\1/; q; }
13535 s/.*/./; q'`
13536 { if $as_mkdir_p; then
13537 mkdir -p "$ac_dir"
13538 else
13539 as_dir="$ac_dir"
13540 as_dirs=
13541 while test ! -d "$as_dir"; do
13542 as_dirs="$as_dir $as_dirs"
13543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13545 X"$as_dir" : 'X\(//\)[^/]' \| \
13546 X"$as_dir" : 'X\(//\)$' \| \
13547 X"$as_dir" : 'X\(/\)' \| \
13548 . : '\(.\)' 2>/dev/null ||
13549echo X"$as_dir" |
13550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13552 /^X\(\/\/\)$/{ s//\1/; q; }
13553 /^X\(\/\).*/{ s//\1/; q; }
13554 s/.*/./; q'`
13555 done
13556 test ! -n "$as_dirs" || mkdir $as_dirs
13557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13558echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13559 { (exit 1); exit 1; }; }; }
b3baf5d0 13560
5464f5a1 13561 ac_builddir=.
b3baf5d0 13562
5464f5a1
NN
13563if test "$ac_dir" != .; then
13564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13565 # A "../" for each directory in $ac_dir_suffix.
13566 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13567else
13568 ac_dir_suffix= ac_top_builddir=
13569fi
13570
13571case $srcdir in
13572 .) # No --srcdir option. We are building in place.
13573 ac_srcdir=.
13574 if test -z "$ac_top_builddir"; then
13575 ac_top_srcdir=.
13576 else
13577 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13578 fi ;;
13579 [\\/]* | ?:[\\/]* ) # Absolute path.
13580 ac_srcdir=$srcdir$ac_dir_suffix;
13581 ac_top_srcdir=$srcdir ;;
13582 *) # Relative path.
13583 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13584 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13585esac
13586
13587# Do not use `cd foo && pwd` to compute absolute paths, because
13588# the directories may not exist.
13589case `pwd` in
13590.) ac_abs_builddir="$ac_dir";;
13591*)
13592 case "$ac_dir" in
13593 .) ac_abs_builddir=`pwd`;;
13594 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13595 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13596 esac;;
13597esac
13598case $ac_abs_builddir in
13599.) ac_abs_top_builddir=${ac_top_builddir}.;;
13600*)
13601 case ${ac_top_builddir}. in
13602 .) ac_abs_top_builddir=$ac_abs_builddir;;
13603 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13604 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13605 esac;;
13606esac
13607case $ac_abs_builddir in
13608.) ac_abs_srcdir=$ac_srcdir;;
13609*)
13610 case $ac_srcdir in
13611 .) ac_abs_srcdir=$ac_abs_builddir;;
13612 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13613 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13614 esac;;
13615esac
13616case $ac_abs_builddir in
13617.) ac_abs_top_srcdir=$ac_top_srcdir;;
13618*)
13619 case $ac_top_srcdir in
13620 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13621 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13622 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13623 esac;;
13624esac
13625
13626
13627 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13628echo "$as_me: executing $ac_dest commands" >&6;}
13629 case $ac_dest in
f5385ebf
AM
13630 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13631 # Strip MF so we end up with the name of the file.
13632 mf=`echo "$mf" | sed -e 's/:.*$//'`
13633 # Check whether this is an Automake generated Makefile or not.
13634 # We used to match only the files named `Makefile.in', but
13635 # some people rename them; so instead we look at the file content.
13636 # Grep'ing the first line is not enough: some people post-process
13637 # each Makefile.in and add a new line on top of each file to say so.
13638 # So let's grep whole file.
13639 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13640 dirpart=`(dirname "$mf") 2>/dev/null ||
13641$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13642 X"$mf" : 'X\(//\)[^/]' \| \
13643 X"$mf" : 'X\(//\)$' \| \
13644 X"$mf" : 'X\(/\)' \| \
13645 . : '\(.\)' 2>/dev/null ||
13646echo X"$mf" |
13647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13649 /^X\(\/\/\)$/{ s//\1/; q; }
13650 /^X\(\/\).*/{ s//\1/; q; }
13651 s/.*/./; q'`
13652 else
13653 continue
13654 fi
13655 # Extract the definition of DEPDIR, am__include, and am__quote
13656 # from the Makefile without running `make'.
13657 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13658 test -z "$DEPDIR" && continue
13659 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13660 test -z "am__include" && continue
13661 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13662 # When using ansi2knr, U may be empty or an underscore; expand it
13663 U=`sed -n 's/^U = //p' < "$mf"`
13664 # Find all dependency output files, they are included files with
13665 # $(DEPDIR) in their names. We invoke sed twice because it is the
13666 # simplest approach to changing $(DEPDIR) to its actual value in the
13667 # expansion.
13668 for file in `sed -n "
13669 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13670 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13671 # Make sure the directory exists.
13672 test -f "$dirpart/$file" && continue
13673 fdir=`(dirname "$file") 2>/dev/null ||
13674$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675 X"$file" : 'X\(//\)[^/]' \| \
13676 X"$file" : 'X\(//\)$' \| \
13677 X"$file" : 'X\(/\)' \| \
13678 . : '\(.\)' 2>/dev/null ||
13679echo X"$file" |
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13682 /^X\(\/\/\)$/{ s//\1/; q; }
13683 /^X\(\/\).*/{ s//\1/; q; }
13684 s/.*/./; q'`
13685 { if $as_mkdir_p; then
13686 mkdir -p $dirpart/$fdir
13687 else
13688 as_dir=$dirpart/$fdir
13689 as_dirs=
13690 while test ! -d "$as_dir"; do
13691 as_dirs="$as_dir $as_dirs"
13692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13694 X"$as_dir" : 'X\(//\)[^/]' \| \
13695 X"$as_dir" : 'X\(//\)$' \| \
13696 X"$as_dir" : 'X\(/\)' \| \
13697 . : '\(.\)' 2>/dev/null ||
13698echo X"$as_dir" |
13699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13701 /^X\(\/\/\)$/{ s//\1/; q; }
13702 /^X\(\/\).*/{ s//\1/; q; }
13703 s/.*/./; q'`
13704 done
13705 test ! -n "$as_dirs" || mkdir $as_dirs
13706 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13707echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13708 { (exit 1); exit 1; }; }; }
13709
13710 # echo "creating $dirpart/$file"
13711 echo '# dummy' > "$dirpart/$file"
13712 done
13713done
13714 ;;
20e95c23
DJ
13715 default-1 )
13716 for ac_file in $CONFIG_FILES; do
13717 # Support "outfile[:infile[:infile...]]"
13718 case "$ac_file" in
13719 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13720 esac
13721 # PO directories have a Makefile.in generated from Makefile.in.in.
13722 case "$ac_file" in */Makefile.in)
13723 # Adjust a relative srcdir.
13724 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13725 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13726 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13727 # In autoconf-2.13 it is called $ac_given_srcdir.
13728 # In autoconf-2.50 it is called $srcdir.
13729 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13730 case "$ac_given_srcdir" in
13731 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13732 /*) top_srcdir="$ac_given_srcdir" ;;
13733 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13734 esac
13735 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13736 rm -f "$ac_dir/POTFILES"
13737 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13738 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13739 POMAKEFILEDEPS="POTFILES.in"
13740 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13741 # on $ac_dir but don't depend on user-specified configuration
13742 # parameters.
13743 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13744 # The LINGUAS file contains the set of available languages.
13745 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13746 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13747 fi
13748 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13749 # Hide the ALL_LINGUAS assigment from automake.
13750 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13751 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13752 else
13753 # The set of available languages was given in configure.in.
13754 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13755 fi
13756 case "$ac_given_srcdir" in
13757 .) srcdirpre= ;;
13758 *) srcdirpre='$(srcdir)/' ;;
13759 esac
13760 POFILES=
13761 GMOFILES=
13762 UPDATEPOFILES=
13763 DUMMYPOFILES=
13764 for lang in $ALL_LINGUAS; do
13765 POFILES="$POFILES $srcdirpre$lang.po"
13766 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13767 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13768 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13769 done
13770 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13771 # environment variable.
13772 INST_LINGUAS=
13773 if test -n "$ALL_LINGUAS"; then
13774 for presentlang in $ALL_LINGUAS; do
13775 useit=no
13776 if test "%UNSET%" != "$LINGUAS"; then
13777 desiredlanguages="$LINGUAS"
13778 else
13779 desiredlanguages="$ALL_LINGUAS"
13780 fi
13781 for desiredlang in $desiredlanguages; do
13782 # Use the presentlang catalog if desiredlang is
13783 # a. equal to presentlang, or
13784 # b. a variant of presentlang (because in this case,
13785 # presentlang can be used as a fallback for messages
13786 # which are not translated in the desiredlang catalog).
13787 case "$desiredlang" in
13788 "$presentlang"*) useit=yes;;
13789 esac
13790 done
13791 if test $useit = yes; then
13792 INST_LINGUAS="$INST_LINGUAS $presentlang"
13793 fi
13794 done
13795 fi
13796 CATALOGS=
13797 if test -n "$INST_LINGUAS"; then
13798 for lang in $INST_LINGUAS; do
13799 CATALOGS="$CATALOGS $lang.gmo"
13800 done
13801 fi
13802 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13803 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"
13804 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13805 if test -f "$f"; then
13806 case "$f" in
13807 *.orig | *.bak | *~) ;;
13808 *) cat "$f" >> "$ac_dir/Makefile" ;;
13809 esac
13810 fi
13811 done
13812 fi
13813 ;;
13814 esac
13815 done ;;
13816 default )
13817case "$srcdir" in
13818 .) srcdirpre= ;;
13819 *) srcdirpre='$(srcdir)/' ;;
13820esac
13821POFILES=
13822GMOFILES=
13823for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13824 if test $lang != dummy; then
13825 POFILES="$POFILES $srcdirpre$lang.po"
13826 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13827 fi
13828done
13829sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13830 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13831 -e "s,@POFILES@,$POFILES," \
13832 -e "s,@GMOFILES@,$GMOFILES," \
13833 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
13834 esac
13835done
13836_ACEOF
13837
13838cat >>$CONFIG_STATUS <<\_ACEOF
13839
13840{ (exit 0); exit 0; }
13841_ACEOF
252b5132 13842chmod +x $CONFIG_STATUS
5464f5a1
NN
13843ac_clean_files=$ac_clean_files_save
13844
13845
13846# configure is writing to config.log, and then calls config.status.
13847# config.status does its own redirection, appending to config.log.
13848# Unfortunately, on DOS this fails, as config.log is still kept open
13849# by configure, so config.status won't be able to write to it; its
13850# output is simply discarded. So we exec the FD to /dev/null,
13851# effectively closing config.log, so it can be properly (re)opened and
13852# appended to by config.status. When coming back to configure, we
13853# need to make the FD available again.
13854if test "$no_create" != yes; then
13855 ac_cs_success=:
13856 ac_config_status_args=
13857 test "$silent" = yes &&
13858 ac_config_status_args="$ac_config_status_args --quiet"
13859 exec 5>/dev/null
13860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13861 exec 5>>config.log
13862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13863 # would make configure fail if this is the last instruction.
13864 $ac_cs_success || { (exit 1); exit 1; }
13865fi
252b5132 13866
55c80943 13867
This page took 1.211882 seconds and 4 git commands to generate.