bfd/
[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
c428fa83 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
5464f5a1
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
5464f5a1
NN
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 862 --enable-secureplt Default to creating read-only plt entries
241a6c40
AM
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
5464f5a1
NN
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
92f01d61 876 --with-pkgversion=PKG Add PKG to the version string
c428fa83 877 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
878
879Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
891_ACEOF
892fi
893
894if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
900
901if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
908
909case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
923esac
924
5464f5a1
NN
925# Do not use `cd foo && pwd` to compute absolute paths, because
926# the directories may not exist.
927case `pwd` in
928.) ac_abs_builddir="$ac_dir";;
929*)
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_top_builddir=${ac_top_builddir}.;;
938*)
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_srcdir=$ac_srcdir;;
947*)
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_srcdir=$ac_top_srcdir;;
956*)
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962esac
6be7c12c 963
5464f5a1
NN
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 fi
49c96104 979 cd $ac_popdir
5464f5a1 980 done
6be7c12c
AO
981fi
982
5464f5a1
NN
983test -n "$ac_init_help" && exit 0
984if $ac_init_version; then
985 cat <<\_ACEOF
6be7c12c 986
5464f5a1
NN
987Copyright (C) 2003 Free Software Foundation, Inc.
988This configure script is free software; the Free Software Foundation
989gives unlimited permission to copy, distribute and modify it.
990_ACEOF
991 exit 0
992fi
993exec 5>config.log
994cat >&5 <<_ACEOF
995This file contains any messages produced by compilers while
996running configure, to aid debugging if configure makes a mistake.
6be7c12c 997
5464f5a1
NN
998It was created by $as_me, which was
999generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1000
5464f5a1 1001 $ $0 $@
6be7c12c 1002
5464f5a1
NN
1003_ACEOF
1004{
1005cat <<_ASUNAME
1006## --------- ##
1007## Platform. ##
1008## --------- ##
1009
1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027_ASUNAME
1028
1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030for as_dir in $PATH
1031do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035done
6be7c12c 1036
5464f5a1 1037} >&5
66e25bab 1038
5464f5a1 1039cat >&5 <<_ACEOF
b3baf5d0 1040
6be7c12c 1041
5464f5a1
NN
1042## ----------- ##
1043## Core tests. ##
1044## ----------- ##
252b5132 1045
5464f5a1 1046_ACEOF
c5d1701e 1047
6be7c12c 1048
5464f5a1
NN
1049# Keep a trace of the command line.
1050# Strip out --no-create and --no-recursion so they do not pile up.
1051# Strip out --silent because we don't want to record it for future runs.
1052# Also quote any args containing shell meta-characters.
1053# Make two passes to allow for proper duplicate-argument suppression.
1054ac_configure_args=
1055ac_configure_args0=
1056ac_configure_args1=
1057ac_sep=
1058ac_must_keep_next=false
1059for ac_pass in 1 2
1060do
1061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1093 ;;
1094 esac
1095 done
1096done
1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100# When interrupted or exit'd, cleanup temporary files, and complete
1101# config.log. We remove comments because anyway the quotes in there
1102# would cause problems or look ugly.
1103# WARNING: Be sure not to use single quotes in there, as some shells,
1104# such as our DU 5.0 friend, will then `close' the trap.
1105trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111## ---------------- ##
1112## Cache variables. ##
1113## ---------------- ##
1114_ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1117{
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 ;;
1125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130}
1131 echo
1132
1133 cat <<\_ASBOX
1134## ----------------- ##
1135## Output variables. ##
1136## ----------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148## ------------- ##
1149## Output files. ##
1150## ------------- ##
1151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163## ----------- ##
1164## confdefs.h. ##
1165## ----------- ##
1166_ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1178 ' 0
1179for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181done
1182ac_signal=0
1183
1184# confdefs.h avoids OS command line length limits that DEFS can exceed.
1185rm -rf conftest* confdefs.h
1186# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187echo >confdefs.h
1188
1189# Predefined preprocessor variables.
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_NAME "$PACKAGE_NAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_VERSION "$PACKAGE_VERSION"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_STRING "$PACKAGE_STRING"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213_ACEOF
1214
1215
1216# Let the site file select an alternate cache file if it wants to.
1217# Prefer explicitly selected file to automatically selected ones.
1218if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
1224fi
1225for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1231 fi
1232done
1233
1234if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1244 fi
1245else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249fi
1250
1251# Check that the precious variables saved in the cache have kept the same
1252# value.
1253ac_cache_corrupted=false
1254for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1292 fi
1293done
1294if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300fi
1301
1302ac_ext=c
1303ac_cpp='$CPP $CPPFLAGS'
1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328ac_aux_dir=
1329for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1342 fi
1343done
1344if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1348fi
1349ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353# Make sure we can run config.sub.
1354$ac_config_sub sun4 >/dev/null 2>&1 ||
1355 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1356echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359echo "$as_me:$LINENO: checking build system type" >&5
1360echo $ECHO_N "checking build system type... $ECHO_C" >&6
1361if test "${ac_cv_build+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363else
1364 ac_cv_build_alias=$build_alias
1365test -z "$ac_cv_build_alias" &&
1366 ac_cv_build_alias=`$ac_config_guess`
1367test -z "$ac_cv_build_alias" &&
1368 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1369echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1370 { (exit 1); exit 1; }; }
1371ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1373echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1375
1376fi
1377echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1378echo "${ECHO_T}$ac_cv_build" >&6
1379build=$ac_cv_build
1380build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383
1384
1385echo "$as_me:$LINENO: checking host system type" >&5
1386echo $ECHO_N "checking host system type... $ECHO_C" >&6
1387if test "${ac_cv_host+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389else
1390 ac_cv_host_alias=$host_alias
1391test -z "$ac_cv_host_alias" &&
1392 ac_cv_host_alias=$ac_cv_build_alias
1393ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1395echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1397
1398fi
1399echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1400echo "${ECHO_T}$ac_cv_host" >&6
1401host=$ac_cv_host
1402host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405
1406
1407echo "$as_me:$LINENO: checking target system type" >&5
1408echo $ECHO_N "checking target system type... $ECHO_C" >&6
1409if test "${ac_cv_target+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412 ac_cv_target_alias=$target_alias
1413test "x$ac_cv_target_alias" = "x" &&
1414 ac_cv_target_alias=$ac_cv_host_alias
1415ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1417echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1419
1420fi
1421echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1422echo "${ECHO_T}$ac_cv_target" >&6
1423target=$ac_cv_target
1424target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427
1428
1429# The aliases save the names the user supplied, while $host etc.
1430# will get canonicalized.
1431test -n "$target_alias" &&
1432 test "$program_prefix$program_suffix$program_transform_name" = \
1433 NONENONEs,x,x, &&
1434 program_prefix=${target_alias}-
1435ac_ext=c
1436ac_cpp='$CPP $CPPFLAGS'
1437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443echo "$as_me:$LINENO: checking for $ac_word" >&5
1444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450else
1451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452for as_dir in $PATH
1453do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462done
1463done
1464
1465fi
1466fi
1467CC=$ac_cv_prog_CC
1468if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470echo "${ECHO_T}$CC" >&6
1471else
1472 echo "$as_me:$LINENO: result: no" >&5
1473echo "${ECHO_T}no" >&6
1474fi
1475
1476fi
1477if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480set dummy gcc; ac_word=$2
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488else
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
1503fi
1504fi
1505ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508echo "${ECHO_T}$ac_ct_CC" >&6
1509else
1510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
1512fi
1513
1514 CC=$ac_ct_CC
1515else
1516 CC="$ac_cv_prog_CC"
1517fi
1518
1519if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522set dummy ${ac_tool_prefix}cc; ac_word=$2
1523echo "$as_me:$LINENO: checking for $ac_word" >&5
1524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530else
1531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532for as_dir in $PATH
1533do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542done
1543done
1544
1545fi
1546fi
1547CC=$ac_cv_prog_CC
1548if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550echo "${ECHO_T}$CC" >&6
1551else
1552 echo "$as_me:$LINENO: result: no" >&5
1553echo "${ECHO_T}no" >&6
1554fi
1555
1556fi
1557if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560set dummy cc; ac_word=$2
1561echo "$as_me:$LINENO: checking for $ac_word" >&5
1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568else
1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1579 fi
1580done
1581done
1582
1583fi
1584fi
1585ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588echo "${ECHO_T}$ac_ct_CC" >&6
1589else
1590 echo "$as_me:$LINENO: result: no" >&5
1591echo "${ECHO_T}no" >&6
1592fi
1593
1594 CC=$ac_ct_CC
1595else
1596 CC="$ac_cv_prog_CC"
1597fi
1598
1599fi
1600if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602set dummy cc; ac_word=$2
1603echo "$as_me:$LINENO: checking for $ac_word" >&5
1604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
1611 ac_prog_rejected=no
1612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1622 fi
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
1628done
1629
1630if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
1634 if test $# != 0; then
1635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1640 fi
1641fi
1642fi
1643fi
1644CC=$ac_cv_prog_CC
1645if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647echo "${ECHO_T}$CC" >&6
1648else
1649 echo "$as_me:$LINENO: result: no" >&5
1650echo "${ECHO_T}no" >&6
1651fi
1652
1653fi
1654if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1657 do
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660echo "$as_me:$LINENO: checking for $ac_word" >&5
1661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667else
1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679done
1680done
1681
1682fi
1683fi
1684CC=$ac_cv_prog_CC
1685if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687echo "${ECHO_T}$CC" >&6
1688else
1689 echo "$as_me:$LINENO: result: no" >&5
1690echo "${ECHO_T}no" >&6
1691fi
1692
1693 test -n "$CC" && break
1694 done
1695fi
1696if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1699do
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701set dummy $ac_prog; ac_word=$2
1702echo "$as_me:$LINENO: checking for $ac_word" >&5
1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709else
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721done
1722done
1723
1724fi
1725fi
1726ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729echo "${ECHO_T}$ac_ct_CC" >&6
1730else
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735 test -n "$ac_ct_CC" && break
1736done
1737
1738 CC=$ac_ct_CC
1739fi
1740
1741fi
1742
1743
1744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1745See \`config.log' for more details." >&5
1746echo "$as_me: error: no acceptable C compiler found in \$PATH
1747See \`config.log' for more details." >&2;}
1748 { (exit 1); exit 1; }; }
1749
1750# Provide some information about the compiler.
1751echo "$as_me:$LINENO:" \
1752 "checking for C compiler version" >&5
1753ac_compiler=`set X $ac_compile; echo $2`
1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1755 (eval $ac_compiler --version </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1760 (eval $ac_compiler -v </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1765 (eval $ac_compiler -V </dev/null >&5) 2>&5
1766 ac_status=$?
1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768 (exit $ac_status); }
1769
1770cat >conftest.$ac_ext <<_ACEOF
1771/* confdefs.h. */
1772_ACEOF
1773cat confdefs.h >>conftest.$ac_ext
1774cat >>conftest.$ac_ext <<_ACEOF
1775/* end confdefs.h. */
1776
1777int
1778main ()
1779{
1780
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785ac_clean_files_save=$ac_clean_files
1786ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787# Try to create an executable without -o first, disregard a.out.
1788# It will help us diagnose broken compilers, and finding out an intuition
1789# of exeext.
1790echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1791echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1792ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800# resort.
1801
1802# Be careful to initialize this variable, since it used to be cached.
1803# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804ac_cv_exeext=
1805# b.out is created by i960 compilers.
1806for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1807do
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1811 ;;
1812 conftest.$ac_ext )
1813 # This is the source file.
1814 ;;
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1826 * )
1827 break;;
1828 esac
1829done
1830else
1831 echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1835See \`config.log' for more details." >&5
1836echo "$as_me: error: C compiler cannot create executables
1837See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1839fi
1840
1841ac_exeext=$ac_cv_exeext
1842echo "$as_me:$LINENO: result: $ac_file" >&5
1843echo "${ECHO_T}$ac_file" >&6
1844
1845# Check the compiler produces executables we can run. If not, either
1846# the compiler is broken, or we cross compile.
1847echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1848echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1849# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850# If not cross compiling, check that we can run a simple program.
1851if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1864If you meant to cross compile, use \`--host'.
1865See \`config.log' for more details." >&5
1866echo "$as_me: error: cannot run C compiled programs.
1867If you meant to cross compile, use \`--host'.
1868See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1870 fi
1871 fi
1872fi
1873echo "$as_me:$LINENO: result: yes" >&5
1874echo "${ECHO_T}yes" >&6
1875
1876rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877ac_clean_files=$ac_clean_files_save
1878# Check the compiler produces executables we can run. If not, either
1879# the compiler is broken, or we cross compile.
1880echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883echo "${ECHO_T}$cross_compiling" >&6
1884
1885echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894# work properly (i.e., refer to `conftest.exe'), while it won't with
1895# `rm'.
1896for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905done
1906else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&5
1909echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1912fi
1913
1914rm -f conftest$ac_cv_exeext
1915echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916echo "${ECHO_T}$ac_cv_exeext" >&6
1917
1918rm -f conftest.$ac_ext
1919EXEEXT=$ac_cv_exeext
1920ac_exeext=$EXEEXT
1921echo "$as_me:$LINENO: checking for suffix of object files" >&5
1922echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1923if test "${ac_cv_objext+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925else
1926 cat >conftest.$ac_ext <<_ACEOF
1927/* confdefs.h. */
1928_ACEOF
1929cat confdefs.h >>conftest.$ac_ext
1930cat >>conftest.$ac_ext <<_ACEOF
1931/* end confdefs.h. */
1932
1933int
1934main ()
1935{
1936
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941rm -f conftest.o conftest.obj
1942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 break;;
1952 esac
1953done
1954else
1955 echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1959See \`config.log' for more details." >&5
1960echo "$as_me: error: cannot compute suffix of object files: cannot compile
1961See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1963fi
1964
1965rm -f conftest.$ac_cv_objext conftest.$ac_ext
1966fi
1967echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1968echo "${ECHO_T}$ac_cv_objext" >&6
1969OBJEXT=$ac_cv_objext
1970ac_objext=$OBJEXT
1971echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1972echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1973if test "${ac_cv_c_compiler_gnu+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976 cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h. */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h. */
1982
1983int
1984main ()
1985{
1986#ifndef __GNUC__
1987 choke me
1988#endif
1989
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994rm -f conftest.$ac_objext
1995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>conftest.er1
1997 ac_status=$?
1998 grep -v '^ *+' conftest.er1 >conftest.err
1999 rm -f conftest.er1
2000 cat conftest.err >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
49c96104
SE
2003 { ac_try='test -z "$ac_c_werror_flag"
2004 || test ! -s conftest.err'
5464f5a1
NN
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 ac_compiler_gnu=yes
2017else
2018 echo "$as_me: failed program was:" >&5
2019sed 's/^/| /' conftest.$ac_ext >&5
2020
2021ac_compiler_gnu=no
2022fi
2023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024ac_cv_c_compiler_gnu=$ac_compiler_gnu
2025
2026fi
2027echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2028echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2029GCC=`test $ac_compiler_gnu = yes && echo yes`
2030ac_test_CFLAGS=${CFLAGS+set}
2031ac_save_CFLAGS=$CFLAGS
2032CFLAGS="-g"
2033echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2034echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2035if test "${ac_cv_prog_cc_g+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038 cat >conftest.$ac_ext <<_ACEOF
2039/* confdefs.h. */
2040_ACEOF
2041cat confdefs.h >>conftest.$ac_ext
2042cat >>conftest.$ac_ext <<_ACEOF
2043/* end confdefs.h. */
2044
2045int
2046main ()
2047{
2048
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053rm -f conftest.$ac_objext
2054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2056 ac_status=$?
2057 grep -v '^ *+' conftest.er1 >conftest.err
2058 rm -f conftest.er1
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
49c96104
SE
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
5464f5a1
NN
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_g=yes
2076else
2077 echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080ac_cv_prog_cc_g=no
2081fi
2082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2083fi
2084echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2085echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2086if test "$ac_test_CFLAGS" = set; then
2087 CFLAGS=$ac_save_CFLAGS
2088elif test $ac_cv_prog_cc_g = yes; then
2089 if test "$GCC" = yes; then
2090 CFLAGS="-g -O2"
2091 else
2092 CFLAGS="-g"
2093 fi
2094else
2095 if test "$GCC" = yes; then
2096 CFLAGS="-O2"
2097 else
2098 CFLAGS=
2099 fi
2100fi
2101echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2102echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2103if test "${ac_cv_prog_cc_stdc+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
2106 ac_cv_prog_cc_stdc=no
2107ac_save_CC=$CC
2108cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h. */
2114#include <stdarg.h>
2115#include <stdio.h>
2116#include <sys/types.h>
2117#include <sys/stat.h>
2118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2119struct buf { int x; };
2120FILE * (*rcsopen) (struct buf *, struct stat *, int);
2121static char *e (p, i)
2122 char **p;
2123 int i;
2124{
2125 return p[i];
2126}
2127static char *f (char * (*g) (char **, int), char **p, ...)
2128{
2129 char *s;
2130 va_list v;
2131 va_start (v,p);
2132 s = g (p, va_arg (v,int));
2133 va_end (v);
2134 return s;
2135}
2136
2137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2138 function prototypes and stuff, but not '\xHH' hex character constants.
2139 These don't provoke an error unfortunately, instead are silently treated
2140 as 'x'. The following induces an error, until -std1 is added to get
2141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2142 array size at least. It's necessary to write '\x00'==0 to get something
2143 that's true only with -std1. */
2144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2145
2146int test (int i, double x);
2147struct s1 {int (*f) (int a);};
2148struct s2 {int (*f) (double a);};
2149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2150int argc;
2151char **argv;
2152int
2153main ()
2154{
2155return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160# Don't try gcc -ansi; that turns off useful extensions and
2161# breaks some systems' header files.
2162# AIX -qlanglvl=ansi
2163# Ultrix and OSF/1 -std1
2164# HP-UX 10.20 and later -Ae
2165# HP-UX older versions -Aa -D_HPUX_SOURCE
2166# SVR4 -Xc -D__EXTENSIONS__
2167for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2168do
2169 CC="$ac_save_CC $ac_arg"
2170 rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
49c96104
SE
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
5464f5a1
NN
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_cv_prog_cc_stdc=$ac_arg
2193break
2194else
2195 echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198fi
2199rm -f conftest.err conftest.$ac_objext
2200done
2201rm -f conftest.$ac_ext conftest.$ac_objext
2202CC=$ac_save_CC
2203
2204fi
2205
2206case "x$ac_cv_prog_cc_stdc" in
2207 x|xno)
2208 echo "$as_me:$LINENO: result: none needed" >&5
2209echo "${ECHO_T}none needed" >&6 ;;
2210 *)
2211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2212echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2213 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214esac
2215
2216# Some people use a C++ compiler to compile C. Since we use `exit',
2217# in C++ we need to declare it. In case someone uses the same compiler
2218# for both compiling C and C++ we need to have the C++ compiler decide
2219# the declaration of exit, since it's the most demanding environment.
2220cat >conftest.$ac_ext <<_ACEOF
2221#ifndef __cplusplus
2222 choke me
2223#endif
2224_ACEOF
2225rm -f conftest.$ac_objext
2226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
49c96104
SE
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
5464f5a1
NN
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 for ac_declaration in \
2248 '' \
2249 'extern "C" void std::exit (int) throw (); using std::exit;' \
2250 'extern "C" void std::exit (int); using std::exit;' \
2251 'extern "C" void exit (int) throw ();' \
2252 'extern "C" void exit (int);' \
2253 'void exit (int);'
2254do
2255 cat >conftest.$ac_ext <<_ACEOF
2256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
2261$ac_declaration
2262#include <stdlib.h>
2263int
2264main ()
2265{
2266exit (42);
2267 ;
2268 return 0;
2269}
2270_ACEOF
2271rm -f conftest.$ac_objext
2272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2274 ac_status=$?
2275 grep -v '^ *+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
49c96104
SE
2280 { ac_try='test -z "$ac_c_werror_flag"
2281 || test ! -s conftest.err'
5464f5a1
NN
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 :
2294else
2295 echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298continue
2299fi
2300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
2307$ac_declaration
2308int
2309main ()
2310{
2311exit (42);
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316rm -f conftest.$ac_objext
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>conftest.er1
2319 ac_status=$?
2320 grep -v '^ *+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
49c96104
SE
2325 { ac_try='test -z "$ac_c_werror_flag"
2326 || test ! -s conftest.err'
5464f5a1
NN
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 break
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343fi
2344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345done
2346rm -f conftest*
2347if test -n "$ac_declaration"; then
2348 echo '#ifdef __cplusplus' >>confdefs.h
2349 echo $ac_declaration >>confdefs.h
2350 echo '#endif' >>confdefs.h
2351fi
2352
2353else
2354 echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357fi
2358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
f5385ebf
AM
2366echo "$as_me:$LINENO: checking for library containing strerror" >&5
2367echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2368if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
f5385ebf
AM
2371 ac_func_search_save_LIBS=$LIBS
2372ac_cv_search_strerror=no
5464f5a1
NN
2373cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h. */
2379
2380/* Override any gcc2 internal prototype to avoid an error. */
2381#ifdef __cplusplus
2382extern "C"
2383#endif
2384/* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386char strerror ();
2387int
2388main ()
2389{
2390strerror ();
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext conftest$ac_exeext
2396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
49c96104
SE
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
5464f5a1
NN
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest$ac_exeext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
f5385ebf 2417 ac_cv_search_strerror="none required"
5464f5a1
NN
2418else
2419 echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
5464f5a1
NN
2422fi
2423rm -f conftest.err conftest.$ac_objext \
2424 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2425if test "$ac_cv_search_strerror" = no; then
2426 for ac_lib in cposix; do
2427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2428 cat >conftest.$ac_ext <<_ACEOF
2429/* confdefs.h. */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h. */
2434
2435/* Override any gcc2 internal prototype to avoid an error. */
2436#ifdef __cplusplus
2437extern "C"
2438#endif
2439/* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441char strerror ();
2442int
2443main ()
2444{
2445strerror ();
2446 ;
2447 return 0;
2448}
2449_ACEOF
2450rm -f conftest.$ac_objext conftest$ac_exeext
2451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2452 (eval $ac_link) 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
49c96104
SE
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
f5385ebf
AM
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest$ac_exeext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_search_strerror="-l$ac_lib"
2473break
2474else
2475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
5464f5a1 2478fi
f5385ebf
AM
2479rm -f conftest.err conftest.$ac_objext \
2480 conftest$ac_exeext conftest.$ac_ext
2481 done
5464f5a1 2482fi
f5385ebf
AM
2483LIBS=$ac_func_search_save_LIBS
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487if test "$ac_cv_search_strerror" != no; then
2488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2489
f5385ebf 2490fi
5464f5a1
NN
2491
2492
f5385ebf 2493am__api_version="1.9"
5464f5a1
NN
2494# Find a good install program. We prefer a C program (faster),
2495# so one script is as good as another. But avoid the broken or
2496# incompatible versions:
2497# SysV /etc/install, /usr/sbin/install
2498# SunOS /usr/etc/install
2499# IRIX /sbin/install
2500# AIX /bin/install
2501# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2505# OS/2's system install, which has a completely different semantic
252b5132 2506# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2507echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2508echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2509if test -z "$INSTALL"; then
5464f5a1
NN
2510if test "${ac_cv_path_install+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2512else
5464f5a1
NN
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519case $as_dir/ in
2520 ./ | .// | /cC/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2523 /usr/ucb/* ) ;;
2524 *)
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2531 if test $ac_prog = install &&
5464f5a1 2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2533 # AIX install. It has an incompatible calling convention.
2534 :
5464f5a1
NN
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2538 :
252b5132 2539 else
5464f5a1
NN
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 break 3
252b5132
RH
2542 fi
2543 fi
2544 done
5464f5a1
NN
2545 done
2546 ;;
2547esac
2548done
2549
252b5132
RH
2550
2551fi
2552 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2553 INSTALL=$ac_cv_path_install
252b5132
RH
2554 else
2555 # As a last resort, use the slow shell script. We don't cache a
2556 # path for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the path is relative.
5464f5a1 2559 INSTALL=$ac_install_sh
252b5132
RH
2560 fi
2561fi
5464f5a1
NN
2562echo "$as_me:$LINENO: result: $INSTALL" >&5
2563echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2564
2565# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566# It thinks the first close brace ends the variable substitution.
2567test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2568
5464f5a1 2569test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2570
2571test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2572
5464f5a1
NN
2573echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2574echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2575# Just in case
2576sleep 1
f5385ebf 2577echo timestamp > conftest.file
252b5132
RH
2578# Do `set' in a subshell so we don't clobber the current shell's
2579# arguments. Must try -L first in case configure is actually a
2580# symlink; some systems play weird games with the mod time of symlinks
2581# (eg FreeBSD returns the mod time of the symlink's containing
2582# directory).
2583if (
f5385ebf 2584 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2585 if test "$*" = "X"; then
2586 # -L didn't work.
f5385ebf 2587 set X `ls -t $srcdir/configure conftest.file`
252b5132 2588 fi
f5385ebf
AM
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2592
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2597 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2598alias in your environment" >&5
2599echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2600alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
252b5132
RH
2602 fi
2603
f5385ebf 2604 test "$2" = conftest.file
252b5132
RH
2605 )
2606then
2607 # Ok.
2608 :
2609else
5464f5a1
NN
2610 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2611Check your system clock" >&5
2612echo "$as_me: error: newly created file is older than distributed files!
2613Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
252b5132 2615fi
5464f5a1
NN
2616echo "$as_me:$LINENO: result: yes" >&5
2617echo "${ECHO_T}yes" >&6
252b5132 2618test "$program_prefix" != NONE &&
5464f5a1 2619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2620# Use a double $ so make ignores it.
2621test "$program_suffix" != NONE &&
5464f5a1
NN
2622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2623# Double any \ or $. echo might interpret backslashes.
2624# By default was `s,x,x', remove it if useless.
2625cat <<\_ACEOF >conftest.sed
2626s/[\\$]/&&/g;s/;s,x,x,$//
2627_ACEOF
2628program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2629rm conftest.sed
2630
f5385ebf
AM
2631# expand $ac_aux_dir to an absolute path
2632am_aux_dir=`cd $ac_aux_dir && pwd`
2633
2634test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2635# Use eval to expand $SHELL
2636if eval "$MISSING --run true"; then
2637 am_missing_run="$MISSING --run "
2638else
2639 am_missing_run=
2640 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2641echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642fi
2643
2644if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2645 # We used to keeping the `.' as first argument, in order to
2646 # allow $(mkdir_p) to be used without argument. As in
2647 # $(mkdir_p) $(somedir)
2648 # where $(somedir) is conditionally defined. However this is wrong
2649 # for two reasons:
2650 # 1. if the package is installed by a user who cannot write `.'
2651 # make install will fail,
2652 # 2. the above comment should most certainly read
2653 # $(mkdir_p) $(DESTDIR)$(somedir)
2654 # so it does not work when $(somedir) is undefined and
2655 # $(DESTDIR) is not.
2656 # To support the latter case, we have to write
2657 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2658 # so the `.' trick is pointless.
2659 mkdir_p='mkdir -p --'
2660else
2661 # On NextStep and OpenStep, the `mkdir' command does not
2662 # recognize any option. It will interpret all options as
2663 # directories to create, and then abort because `.' already
2664 # exists.
2665 for d in ./-p ./--version;
2666 do
2667 test -d $d && rmdir $d
2668 done
2669 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2670 if test -f "$ac_aux_dir/mkinstalldirs"; then
2671 mkdir_p='$(mkinstalldirs)'
2672 else
2673 mkdir_p='$(install_sh) -d'
2674 fi
2675fi
2676
2677for ac_prog in gawk mawk nawk awk
2678do
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680set dummy $ac_prog; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_AWK+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2699 fi
2700done
2701done
2702
2703fi
2704fi
2705AWK=$ac_cv_prog_AWK
2706if test -n "$AWK"; then
2707 echo "$as_me:$LINENO: result: $AWK" >&5
2708echo "${ECHO_T}$AWK" >&6
2709else
2710 echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714 test -n "$AWK" && break
2715done
2716
5464f5a1
NN
2717echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2720if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723 cat >conftest.make <<\_ACEOF
252b5132 2724all:
5464f5a1
NN
2725 @echo 'ac_maketemp="$(MAKE)"'
2726_ACEOF
252b5132 2727# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2728eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2729if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_${ac_make}_set=yes
2731else
2732 eval ac_cv_prog_make_${ac_make}_set=no
2733fi
5464f5a1 2734rm -f conftest.make
252b5132
RH
2735fi
2736if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2737 echo "$as_me:$LINENO: result: yes" >&5
2738echo "${ECHO_T}yes" >&6
252b5132
RH
2739 SET_MAKE=
2740else
5464f5a1
NN
2741 echo "$as_me:$LINENO: result: no" >&5
2742echo "${ECHO_T}no" >&6
252b5132
RH
2743 SET_MAKE="MAKE=${MAKE-make}"
2744fi
2745
f5385ebf
AM
2746rm -rf .tst 2>/dev/null
2747mkdir .tst 2>/dev/null
2748if test -d .tst; then
2749 am__leading_dot=.
2750else
2751 am__leading_dot=_
2752fi
2753rmdir .tst 2>/dev/null
2754
2755DEPDIR="${am__leading_dot}deps"
2756
2757 ac_config_commands="$ac_config_commands depfiles"
2758
2759
2760am_make=${MAKE-make}
2761cat > confinc << 'END'
2762am__doit:
2763 @echo done
2764.PHONY: am__doit
2765END
2766# If we don't find an include directive, just comment out the code.
2767echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2768echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2769am__include="#"
2770am__quote=
2771_am_result=none
2772# First try GNU make style include.
2773echo "include confinc" > confmf
2774# We grep out `Entering directory' and `Leaving directory'
2775# messages which can occur if `w' ends up in MAKEFLAGS.
2776# In particular we don't look at `^make:' because GNU make might
2777# be invoked under some other name (usually "gmake"), in which
2778# case it prints its new name instead of `make'.
2779if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2780 am__include=include
2781 am__quote=
2782 _am_result=GNU
2783fi
2784# Now try BSD make style include.
2785if test "$am__include" = "#"; then
2786 echo '.include "confinc"' > confmf
2787 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2788 am__include=.include
2789 am__quote="\""
2790 _am_result=BSD
2791 fi
2792fi
2793
2794
2795echo "$as_me:$LINENO: result: $_am_result" >&5
2796echo "${ECHO_T}$_am_result" >&6
2797rm -f confinc confmf
2798
2799# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2800if test "${enable_dependency_tracking+set}" = set; then
2801 enableval="$enable_dependency_tracking"
2802
2803fi;
2804if test "x$enable_dependency_tracking" != xno; then
2805 am_depcomp="$ac_aux_dir/depcomp"
2806 AMDEPBACKSLASH='\'
2807fi
2808
2809
2810if test "x$enable_dependency_tracking" != xno; then
2811 AMDEP_TRUE=
2812 AMDEP_FALSE='#'
2813else
2814 AMDEP_TRUE='#'
2815 AMDEP_FALSE=
2816fi
6be7c12c 2817
252b5132 2818
252b5132 2819
f5385ebf
AM
2820# test to see if srcdir already configured
2821if test "`cd $srcdir && pwd`" != "`pwd`" &&
2822 test -f $srcdir/config.status; then
5464f5a1
NN
2823 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2824echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2825 { (exit 1); exit 1; }; }
252b5132 2826fi
5464f5a1 2827
f5385ebf
AM
2828# test whether we have cygpath
2829if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2832 else
2833 CYGPATH_W=echo
2834 fi
2835fi
2836
2837
2838# Define the identity of the package.
2839 PACKAGE=bfd
ffdc4eed 2840 VERSION=2.17.50
f5385ebf
AM
2841
2842
5464f5a1 2843cat >>confdefs.h <<_ACEOF
252b5132 2844#define PACKAGE "$PACKAGE"
5464f5a1 2845_ACEOF
252b5132 2846
5464f5a1
NN
2847
2848cat >>confdefs.h <<_ACEOF
252b5132 2849#define VERSION "$VERSION"
5464f5a1 2850_ACEOF
252b5132 2851
f5385ebf
AM
2852# Some tools Automake needs.
2853
2854ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855
2856
2857AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858
2859
2860AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861
2862
2863AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864
2865
2866MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2867
f5385ebf 2868install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2869
f5385ebf
AM
2870# Installed binaries are usually stripped using `strip' when the user
2871# run `make install-strip'. However `strip' might not be the right
2872# tool to use in cross-compilation environments, therefore Automake
2873# will honor the `STRIP' environment variable to overrule this program.
2874if test "$cross_compiling" != no; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877set dummy ${ac_tool_prefix}strip; ac_word=$2
2878echo "$as_me:$LINENO: checking for $ac_word" >&5
2879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880if test "${ac_cv_prog_STRIP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882else
2883 if test -n "$STRIP"; then
2884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2885else
f5385ebf
AM
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897done
2898done
2899
2900fi
2901fi
2902STRIP=$ac_cv_prog_STRIP
2903if test -n "$STRIP"; then
2904 echo "$as_me:$LINENO: result: $STRIP" >&5
2905echo "${ECHO_T}$STRIP" >&6
2906else
2907 echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
2909fi
2910
252b5132 2911fi
f5385ebf
AM
2912if test -z "$ac_cv_prog_STRIP"; then
2913 ac_ct_STRIP=$STRIP
2914 # Extract the first word of "strip", so it can be a program name with args.
2915set dummy strip; ac_word=$2
2916echo "$as_me:$LINENO: checking for $ac_word" >&5
2917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 if test -n "$ac_ct_STRIP"; then
2922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_ac_ct_STRIP="strip"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935done
2936done
252b5132 2937
f5385ebf
AM
2938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2939fi
2940fi
2941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2942if test -n "$ac_ct_STRIP"; then
2943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2944echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2945else
f5385ebf
AM
2946 echo "$as_me:$LINENO: result: no" >&5
2947echo "${ECHO_T}no" >&6
252b5132
RH
2948fi
2949
f5385ebf 2950 STRIP=$ac_ct_STRIP
252b5132 2951else
f5385ebf
AM
2952 STRIP="$ac_cv_prog_STRIP"
2953fi
2954
252b5132 2955fi
f5385ebf
AM
2956INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2957
2958# We need awk for the "check" target. The system "awk" is bad on
2959# some platforms.
2960# Always define AMTAR for backward compatibility.
2961
2962AMTAR=${AMTAR-"${am_missing_run}tar"}
2963
2964am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965
252b5132 2966
f5385ebf
AM
2967
2968
2969depcc="$CC" am_compiler_list=
2970
2971echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2972echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2973if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2975else
f5385ebf
AM
2976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2977 # We make a subdir and do the tests there. Otherwise we can end up
2978 # making bogus files that we don't know about and never remove. For
2979 # instance it was reported that on HP-UX the gcc test will end up
2980 # making a dummy file named `D' -- because `-MD' means `put the output
2981 # in D'.
2982 mkdir conftest.dir
2983 # Copy depcomp to subdir because otherwise we won't find it if we're
2984 # using a relative directory.
2985 cp "$am_depcomp" conftest.dir
2986 cd conftest.dir
2987 # We will build objects and dependencies in a subdirectory because
2988 # it helps to detect inapplicable dependency modes. For instance
2989 # both Tru64's cc and ICC support -MD to output dependencies as a
2990 # side effect of compilation, but ICC will put the dependencies in
2991 # the current directory while Tru64 will put them in the object
2992 # directory.
2993 mkdir sub
2994
2995 am_cv_CC_dependencies_compiler_type=none
2996 if test "$am_compiler_list" = ""; then
2997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2998 fi
2999 for depmode in $am_compiler_list; do
3000 # Setup a source with many dependencies, because some compilers
3001 # like to wrap large dependency lists on column 80 (with \), and
3002 # we should not choose a depcomp mode which is confused by this.
3003 #
3004 # We need to recreate these files for each test, as the compiler may
3005 # overwrite some of them when testing with obscure command lines.
3006 # This happens at least with the AIX C compiler.
3007 : > sub/conftest.c
3008 for i in 1 2 3 4 5 6; do
3009 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3010 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3011 # Solaris 8's {/usr,}/bin/sh.
3012 touch sub/conftst$i.h
3013 done
3014 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3015
3016 case $depmode in
3017 nosideeffect)
3018 # after this tag, mechanisms are not by side-effect, so they'll
3019 # only be used when explicitly requested
3020 if test "x$enable_dependency_tracking" = xyes; then
3021 continue
3022 else
3023 break
3024 fi
3025 ;;
3026 none) break ;;
3027 esac
3028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3029 # mode. It turns out that the SunPro C++ compiler does not properly
3030 # handle `-M -o', and we need to detect this.
3031 if depmode=$depmode \
3032 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3034 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3035 >/dev/null 2>conftest.err &&
3036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3037 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3039 # icc doesn't choke on unknown options, it will just issue warnings
3040 # or remarks (even with -Werror). So we grep stderr for any message
3041 # that says an option was ignored or not supported.
3042 # When given -MP, icc 7.0 and 7.1 complain thusly:
3043 # icc: Command line warning: ignoring option '-M'; no argument required
3044 # The diagnosis changed in icc 8.0:
3045 # icc: Command line remark: option '-MP' not supported
3046 if (grep 'ignoring option' conftest.err ||
3047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3048 am_cv_CC_dependencies_compiler_type=$depmode
3049 break
3050 fi
3051 fi
3052 done
3053
3054 cd ..
3055 rm -rf conftest.dir
3056else
3057 am_cv_CC_dependencies_compiler_type=none
3058fi
3059
252b5132 3060fi
f5385ebf
AM
3061echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3062echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3063CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3064
f5385ebf
AM
3065
3066
3067if
3068 test "x$enable_dependency_tracking" != xno \
3069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3070 am__fastdepCC_TRUE=
3071 am__fastdepCC_FALSE='#'
252b5132 3072else
f5385ebf
AM
3073 am__fastdepCC_TRUE='#'
3074 am__fastdepCC_FALSE=
252b5132
RH
3075fi
3076
6be7c12c 3077
e43d48cc 3078
f5385ebf 3079
5464f5a1
NN
3080if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3082set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3083echo "$as_me:$LINENO: checking for $ac_word" >&5
3084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085if test "${ac_cv_prog_AR+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3087else
3088 if test -n "$AR"; then
3089 ac_cv_prog_AR="$AR" # Let the user override the test.
3090else
5464f5a1
NN
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_AR="${ac_tool_prefix}ar"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102done
3103done
3104
252b5132
RH
3105fi
3106fi
5464f5a1 3107AR=$ac_cv_prog_AR
252b5132 3108if test -n "$AR"; then
5464f5a1
NN
3109 echo "$as_me:$LINENO: result: $AR" >&5
3110echo "${ECHO_T}$AR" >&6
252b5132 3111else
5464f5a1
NN
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114fi
3115
252b5132 3116fi
5464f5a1
NN
3117if test -z "$ac_cv_prog_AR"; then
3118 ac_ct_AR=$AR
3119 # Extract the first word of "ar", so it can be a program name with args.
3120set dummy ar; ac_word=$2
3121echo "$as_me:$LINENO: checking for $ac_word" >&5
3122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 if test -n "$ac_ct_AR"; then
3127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_AR="ar"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140done
3141done
252b5132 3142
5464f5a1
NN
3143fi
3144fi
3145ac_ct_AR=$ac_cv_prog_ac_ct_AR
3146if test -n "$ac_ct_AR"; then
3147 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3148echo "${ECHO_T}$ac_ct_AR" >&6
3149else
3150 echo "$as_me:$LINENO: result: no" >&5
3151echo "${ECHO_T}no" >&6
3152fi
252b5132 3153
5464f5a1
NN
3154 AR=$ac_ct_AR
3155else
3156 AR="$ac_cv_prog_AR"
3157fi
6be7c12c 3158
5464f5a1
NN
3159if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_RANLIB+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3166else
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169else
5464f5a1
NN
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181done
3182done
3183
252b5132
RH
3184fi
3185fi
5464f5a1 3186RANLIB=$ac_cv_prog_RANLIB
252b5132 3187if test -n "$RANLIB"; then
5464f5a1
NN
3188 echo "$as_me:$LINENO: result: $RANLIB" >&5
3189echo "${ECHO_T}$RANLIB" >&6
252b5132 3190else
5464f5a1
NN
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
252b5132
RH
3193fi
3194
5464f5a1 3195fi
252b5132 3196if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3197 ac_ct_RANLIB=$RANLIB
252b5132
RH
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199set dummy ranlib; ac_word=$2
5464f5a1
NN
3200echo "$as_me:$LINENO: checking for $ac_word" >&5
3201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3204else
5464f5a1
NN
3205 if test -n "$ac_ct_RANLIB"; then
3206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3207else
5464f5a1
NN
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_RANLIB="ranlib"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219done
3220done
3221
3222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3223fi
3224fi
5464f5a1
NN
3225ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3226if test -n "$ac_ct_RANLIB"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3228echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3229else
5464f5a1
NN
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
252b5132
RH
3232fi
3233
5464f5a1 3234 RANLIB=$ac_ct_RANLIB
252b5132 3235else
5464f5a1 3236 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3237fi
3238
252b5132
RH
3239
3240# Check whether --enable-shared or --disable-shared was given.
3241if test "${enable_shared+set}" = set; then
3242 enableval="$enable_shared"
3243 p=${PACKAGE-default}
55c80943 3244case $enableval in
252b5132
RH
3245yes) enable_shared=yes ;;
3246no) enable_shared=no ;;
3247*)
3248 enable_shared=no
3249 # Look at the argument we got. We use all the common list separators.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3251 for pkg in $enableval; do
3252 if test "X$pkg" = "X$p"; then
3253 enable_shared=yes
3254 fi
3255 done
3256 IFS="$ac_save_ifs"
3257 ;;
3258esac
3259else
3260 enable_shared=no
5464f5a1 3261fi;
252b5132
RH
3262
3263# Check whether --enable-static or --disable-static was given.
3264if test "${enable_static+set}" = set; then
3265 enableval="$enable_static"
3266 p=${PACKAGE-default}
55c80943 3267case $enableval in
252b5132
RH
3268yes) enable_static=yes ;;
3269no) enable_static=no ;;
3270*)
3271 enable_static=no
3272 # Look at the argument we got. We use all the common list separators.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3274 for pkg in $enableval; do
3275 if test "X$pkg" = "X$p"; then
3276 enable_static=yes
3277 fi
3278 done
3279 IFS="$ac_save_ifs"
3280 ;;
3281esac
3282else
3283 enable_static=yes
5464f5a1 3284fi;
b2ef150d
ILT
3285# Check whether --enable-fast-install or --disable-fast-install was given.
3286if test "${enable_fast_install+set}" = set; then
3287 enableval="$enable_fast_install"
3288 p=${PACKAGE-default}
55c80943 3289case $enableval in
b2ef150d
ILT
3290yes) enable_fast_install=yes ;;
3291no) enable_fast_install=no ;;
3292*)
3293 enable_fast_install=no
3294 # Look at the argument we got. We use all the common list separators.
3295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3296 for pkg in $enableval; do
3297 if test "X$pkg" = "X$p"; then
3298 enable_fast_install=yes
3299 fi
3300 done
3301 IFS="$ac_save_ifs"
3302 ;;
3303esac
3304else
3305 enable_fast_install=yes
5464f5a1 3306fi;
c5d1701e 3307
252b5132
RH
3308# Check whether --with-gnu-ld or --without-gnu-ld was given.
3309if test "${with_gnu_ld+set}" = set; then
3310 withval="$with_gnu_ld"
3311 test "$withval" = no || with_gnu_ld=yes
3312else
3313 with_gnu_ld=no
5464f5a1 3314fi;
252b5132 3315ac_prog=ld
55c80943 3316if test "$GCC" = yes; then
252b5132 3317 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3318 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3319echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3320 case $host in
3321 *-*-mingw*)
3322 # gcc leaves a trailing carriage return which upsets mingw
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3324 *)
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3326 esac
55c80943 3327 case $ac_prog in
b2ef150d 3328 # Accept absolute paths.
a74801ba 3329 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3330 re_direlt='/[^/][^/]*/\.\./'
3331 # Canonicalize the path of ld
3332 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3334 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3335 done
3336 test -z "$LD" && LD="$ac_prog"
3337 ;;
252b5132
RH
3338 "")
3339 # If it fails, then pretend we aren't using GCC.
3340 ac_prog=ld
3341 ;;
3342 *)
3343 # If it is relative, then search for the first ld in PATH.
3344 with_gnu_ld=unknown
3345 ;;
3346 esac
3347elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3348 echo "$as_me:$LINENO: checking for GNU ld" >&5
3349echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3350else
5464f5a1
NN
3351 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3352echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3353fi
5464f5a1
NN
3354if test "${lt_cv_path_LD+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3356else
3357 if test -z "$LD"; then
a74801ba 3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3359 for ac_dir in $PATH; do
3360 test -z "$ac_dir" && ac_dir=.
a74801ba 3361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3362 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3363 # Check to see if the program is GNU ld. I'd rather use --version,
3364 # but apparently some GNU ld's only accept -v.
3365 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3366 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3367 test "$with_gnu_ld" != no && break
3368 else
b2ef150d 3369 test "$with_gnu_ld" != yes && break
252b5132
RH
3370 fi
3371 fi
3372 done
3373 IFS="$ac_save_ifs"
3374else
55c80943 3375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3376fi
3377fi
3378
55c80943 3379LD="$lt_cv_path_LD"
252b5132 3380if test -n "$LD"; then
5464f5a1
NN
3381 echo "$as_me:$LINENO: result: $LD" >&5
3382echo "${ECHO_T}$LD" >&6
252b5132 3383else
5464f5a1
NN
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
252b5132 3386fi
5464f5a1
NN
3387test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389 { (exit 1); exit 1; }; }
3390echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3394else
3395 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3397 lt_cv_prog_gnu_ld=yes
252b5132 3398else
55c80943 3399 lt_cv_prog_gnu_ld=no
252b5132
RH
3400fi
3401fi
5464f5a1
NN
3402echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3403echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3404with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3405
6be7c12c 3406
5464f5a1
NN
3407echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3408echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3409if test "${lt_cv_ld_reload_flag+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3411else
3412 lt_cv_ld_reload_flag='-r'
3413fi
5464f5a1
NN
3414echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3415echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3416reload_flag=$lt_cv_ld_reload_flag
3417test -n "$reload_flag" && reload_flag=" $reload_flag"
3418
5464f5a1
NN
3419echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3421if test "${lt_cv_path_NM+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3423else
3424 if test -n "$NM"; then
3425 # Let the user override the test.
55c80943 3426 lt_cv_path_NM="$NM"
252b5132 3427else
a74801ba 3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3429 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3430 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3431 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3432 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3433 # Check to see if the nm accepts a BSD-compat flag.
3434 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3435 # nm: unknown option "B" ignored
90f2472a
AO
3436 # Tru64's nm complains that /dev/null is an invalid object file
3437 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3438 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3439 break
ac48eca1 3440 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3441 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3442 break
252b5132 3443 else
55c80943 3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3445 continue # so that we can try to find one that supports BSD flags
252b5132 3446 fi
252b5132
RH
3447 fi
3448 done
3449 IFS="$ac_save_ifs"
55c80943 3450 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3451fi
3452fi
3453
55c80943 3454NM="$lt_cv_path_NM"
5464f5a1
NN
3455echo "$as_me:$LINENO: result: $NM" >&5
3456echo "${ECHO_T}$NM" >&6
252b5132 3457
5464f5a1
NN
3458echo "$as_me:$LINENO: checking whether ln -s works" >&5
3459echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3460LN_S=$as_ln_s
3461if test "$LN_S" = "ln -s"; then
3462 echo "$as_me:$LINENO: result: yes" >&5
3463echo "${ECHO_T}yes" >&6
6be7c12c 3464else
5464f5a1
NN
3465 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3466echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3467fi
3468
5464f5a1
NN
3469echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3470echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3471if test "${lt_cv_deplibs_check_method+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3473else
d64552c5 3474 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3475lt_cv_file_magic_test_file=
3476lt_cv_deplibs_check_method='unknown'
3477# Need to set the preceding variable on all platforms that support
3478# interlibrary dependencies.
3479# 'none' -- dependencies not supported.
3480# `unknown' -- same as none, but documents that we really don't know.
3481# 'pass_all' -- all dependencies passed with no checks.
3482# 'test_compile' -- check by making test program.
3483# 'file_magic [regex]' -- check by looking for files in library path
3484# which responds to the $file_magic_cmd with a given egrep regex.
3485# If you have `file' or equivalent on your system and you're not sure
3486# whether `pass_all' will *always* work, you probably want this one.
3487
55c80943
NC
3488case $host_os in
3489aix*)
ac48eca1
AO
3490 lt_cv_deplibs_check_method=pass_all
3491 ;;
3492
3493beos*)
3494 lt_cv_deplibs_check_method=pass_all
3495 ;;
3496
3497bsdi4*)
55c80943
NC
3498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3500 lt_cv_file_magic_test_file=/shlib/libc.so
3501 ;;
3502
d64552c5 3503cygwin* | mingw* |pw32*)
ac48eca1 3504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3505 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3506 ;;
3507
55c80943 3508darwin* | rhapsody*)
d70c5fc7 3509 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3510 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3511 lt_cv_file_magic_cmd='/usr/bin/file -L'
3512 case "$host_os" in
3513 rhapsody* | darwin1.012)
3514 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3515 ;;
3516 *) # Darwin 1.3 on
3517 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3518 ;;
3519 esac
d70c5fc7 3520 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3521 ;;
3522
5464f5a1 3523freebsd* | kfreebsd*-gnu)
ac48eca1 3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3525 case $host_cpu in
ac48eca1 3526 i*86 )
90f2472a
AO
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
55c80943
NC
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3532 ;;
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3536 fi
3537 ;;
3538
3539gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3541 ;;
3542
55c80943 3543hpux10.20*|hpux11*)
4867be41
DJ
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ;;
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554 ;;
3555 esac
ac48eca1
AO
3556 ;;
3557
3558irix5* | irix6*)
55c80943 3559 case $host_os in
ac48eca1
AO
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3563 ;;
3564 *)
55c80943 3565 case $LD in
ac48eca1
AO
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3573 ;;
ac48eca1
AO
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579# This must be Linux ELF.
90f2472a 3580linux-gnu*)
d70c5fc7 3581 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3582 ;;
3583
5464f5a1 3584netbsd* | knetbsd*-gnu)
55c80943 3585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3587 else
b3baf5d0 3588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3589 fi
55c80943
NC
3590 ;;
3591
3592newsos6)
3593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3594 lt_cv_file_magic_cmd=/usr/bin/file
3595 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3596 ;;
3597
3598osf3* | osf4* | osf5*)
3599 # this will be overridden with pass_all, but let us keep it just in case
3600 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3601 lt_cv_file_magic_test_file=/shlib/libc.so
3602 lt_cv_deplibs_check_method=pass_all
3603 ;;
3604
3605sco3.2v5*)
3606 lt_cv_deplibs_check_method=pass_all
3607 ;;
3608
3609solaris*)
3610 lt_cv_deplibs_check_method=pass_all
3611 lt_cv_file_magic_test_file=/lib/libc.so
3612 ;;
3613
6be7c12c
AO
3614sysv5uw[78]* | sysv4*uw2*)
3615 lt_cv_deplibs_check_method=pass_all
3616 ;;
3617
ac48eca1 3618sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3619 case $host_vendor in
ac48eca1
AO
3620 ncr)
3621 lt_cv_deplibs_check_method=pass_all
3622 ;;
3623 motorola)
55c80943
NC
3624 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]'
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3626 ;;
3627 esac
3628 ;;
3629esac
3630
3631fi
5464f5a1
NN
3632echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3634file_magic_cmd=$lt_cv_file_magic_cmd
3635deplibs_check_method=$lt_cv_deplibs_check_method
3636
6be7c12c
AO
3637
3638
6be7c12c
AO
3639
3640# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3641
d70c5fc7
NC
3642# find the maximum length of command line arguments
3643echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3644echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3645if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648 i=0
3649 teststring="ABCD"
3650
3651 case $build_os in
3652 msdosdjgpp*)
3653 # On DJGPP, this test can blow up pretty badly due to problems in libc
3654 # (any single argument exceeding 2000 bytes causes a buffer overrun
3655 # during glob expansion). Even if it were fixed, the result of this
3656 # check would be larger than it should be.
3657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3658 ;;
3659
3660 cygwin* | mingw*)
3661 # On Win9x/ME, this test blows up -- it succeeds, but takes
3662 # about 5 minutes as the teststring grows exponentially.
3663 # Worse, since 9x/ME are not pre-emptively multitasking,
3664 # you end up with a "frozen" computer, even though with patience
3665 # the test eventually succeeds (with a max line length of 256k).
3666 # Instead, let's just punt: use the minimum linelength reported by
3667 # all of the supported platforms: 8192 (on NT/2K/XP).
3668 lt_cv_sys_max_cmd_len=8192;
3669 ;;
3670
3671 amigaos*)
3672 # On AmigaOS with pdksh, this test takes hours, literally.
3673 # So we just punt and use a minimum line length of 8192.
3674 lt_cv_sys_max_cmd_len=8192;
3675 ;;
3676
3677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3678 # This has been around since 386BSD, at least. Likely further.
3679 if test -x /sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3681 elif test -x /usr/sbin/sysctl; then
3682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3683 else
3684 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3685 fi
3686 # And add a safety zone
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3689 ;;
3690 esac
3691
3692fi
3693
3694if test -n "$lt_cv_sys_max_cmd_len" ; then
3695 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3696echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3697else
3698 echo "$as_me:$LINENO: result: none" >&5
3699echo "${ECHO_T}none" >&6
3700fi
3701
3702
6be7c12c
AO
3703# Only perform the check for file, if the check method requires it
3704case $deplibs_check_method in
3705file_magic*)
3706 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3707 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3708echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3709if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3711else
3712 case $MAGIC_CMD in
3713 /*)
3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3715 ;;
3716 ?:/*)
3717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3718 ;;
3719 *)
d64552c5 3720 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3722 ac_dummy="/usr/bin:$PATH"
3723 for ac_dir in $ac_dummy; do
3724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3726 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3727 if test -n "$file_magic_test_file"; then
55c80943 3728 case $deplibs_check_method in
ac48eca1
AO
3729 "file_magic "*)
3730 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3733 egrep "$file_magic_regex" > /dev/null; then
3734 :
3735 else
3736 cat <<EOF 1>&2
3737
3738*** Warning: the command libtool uses to detect shared libraries,
3739*** $file_magic_cmd, produces output that libtool cannot recognize.
3740*** The result is that libtool may fail to recognize shared libraries
3741*** as such. This will affect the creation of libtool libraries that
3742*** depend on shared libraries, but programs linked with such libtool
3743*** libraries will work regardless of this problem. Nevertheless, you
3744*** may want to report the problem to your system manager and/or to
3745*** bug-libtool@gnu.org
3746
3747EOF
3748 fi ;;
3749 esac
3750 fi
3751 break
3752 fi
3753 done
3754 IFS="$ac_save_ifs"
d64552c5 3755 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3756 ;;
3757esac
3758fi
3759
d64552c5
AO
3760MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3761if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3762 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3763echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3764else
5464f5a1
NN
3765 echo "$as_me:$LINENO: result: no" >&5
3766echo "${ECHO_T}no" >&6
ac48eca1
AO
3767fi
3768
d64552c5 3769if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3770 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3771 echo "$as_me:$LINENO: checking for file" >&5
3772echo $ECHO_N "checking for file... $ECHO_C" >&6
3773if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3775else
55c80943 3776 case $MAGIC_CMD in
ac48eca1 3777 /*)
d64552c5 3778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3779 ;;
3780 ?:/*)
d64552c5 3781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3782 ;;
3783 *)
d64552c5 3784 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3786 ac_dummy="/usr/bin:$PATH"
3787 for ac_dir in $ac_dummy; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f $ac_dir/file; then
d64552c5 3790 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3791 if test -n "$file_magic_test_file"; then
55c80943 3792 case $deplibs_check_method in
ac48eca1
AO
3793 "file_magic "*)
3794 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3797 egrep "$file_magic_regex" > /dev/null; then
3798 :
3799 else
3800 cat <<EOF 1>&2
3801
3802*** Warning: the command libtool uses to detect shared libraries,
3803*** $file_magic_cmd, produces output that libtool cannot recognize.
3804*** The result is that libtool may fail to recognize shared libraries
3805*** as such. This will affect the creation of libtool libraries that
3806*** depend on shared libraries, but programs linked with such libtool
3807*** libraries will work regardless of this problem. Nevertheless, you
3808*** may want to report the problem to your system manager and/or to
3809*** bug-libtool@gnu.org
3810
3811EOF
3812 fi ;;
3813 esac
3814 fi
3815 break
3816 fi
3817 done
3818 IFS="$ac_save_ifs"
d64552c5 3819 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3820 ;;
3821esac
3822fi
3823
d64552c5
AO
3824MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3825if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3826 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3827echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3828else
5464f5a1
NN
3829 echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
ac48eca1
AO
3831fi
3832
3833 else
d64552c5 3834 MAGIC_CMD=:
ac48eca1
AO
3835 fi
3836fi
3837
3838 fi
3839 ;;
3840esac
3841
5464f5a1
NN
3842if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3844set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_prog_RANLIB+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3849else
3850 if test -n "$RANLIB"; then
3851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3852else
5464f5a1
NN
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864done
3865done
3866
ac48eca1
AO
3867fi
3868fi
5464f5a1 3869RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3870if test -n "$RANLIB"; then
5464f5a1
NN
3871 echo "$as_me:$LINENO: result: $RANLIB" >&5
3872echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3873else
5464f5a1
NN
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
ac48eca1
AO
3876fi
3877
5464f5a1 3878fi
ac48eca1 3879if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3880 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3881 # Extract the first word of "ranlib", so it can be a program name with args.
3882set dummy ranlib; ac_word=$2
5464f5a1
NN
3883echo "$as_me:$LINENO: checking for $ac_word" >&5
3884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3887else
5464f5a1
NN
3888 if test -n "$ac_ct_RANLIB"; then
3889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3890else
5464f5a1
NN
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_RANLIB="ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902done
3903done
3904
3905 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3906fi
3907fi
5464f5a1
NN
3908ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3909if test -n "$ac_ct_RANLIB"; then
3910 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3911echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3912else
5464f5a1
NN
3913 echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6
ac48eca1
AO
3915fi
3916
5464f5a1 3917 RANLIB=$ac_ct_RANLIB
ac48eca1 3918else
5464f5a1 3919 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3920fi
3921
5464f5a1
NN
3922if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3924set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3925echo "$as_me:$LINENO: checking for $ac_word" >&5
3926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927if test "${ac_cv_prog_STRIP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3929else
3930 if test -n "$STRIP"; then
3931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3932else
5464f5a1
NN
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945done
3946
ac48eca1
AO
3947fi
3948fi
5464f5a1 3949STRIP=$ac_cv_prog_STRIP
ac48eca1 3950if test -n "$STRIP"; then
5464f5a1
NN
3951 echo "$as_me:$LINENO: result: $STRIP" >&5
3952echo "${ECHO_T}$STRIP" >&6
ac48eca1 3953else
5464f5a1
NN
3954 echo "$as_me:$LINENO: result: no" >&5
3955echo "${ECHO_T}no" >&6
ac48eca1
AO
3956fi
3957
5464f5a1 3958fi
ac48eca1 3959if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3960 ac_ct_STRIP=$STRIP
ac48eca1
AO
3961 # Extract the first word of "strip", so it can be a program name with args.
3962set dummy strip; ac_word=$2
5464f5a1
NN
3963echo "$as_me:$LINENO: checking for $ac_word" >&5
3964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3967else
5464f5a1
NN
3968 if test -n "$ac_ct_STRIP"; then
3969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3970else
5464f5a1
NN
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_STRIP="strip"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982done
3983done
3984
3985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3986fi
3987fi
5464f5a1
NN
3988ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3989if test -n "$ac_ct_STRIP"; then
3990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3991echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3992else
5464f5a1
NN
3993 echo "$as_me:$LINENO: result: no" >&5
3994echo "${ECHO_T}no" >&6
ac48eca1
AO
3995fi
3996
5464f5a1 3997 STRIP=$ac_ct_STRIP
ac48eca1 3998else
5464f5a1 3999 STRIP="$ac_cv_prog_STRIP"
ac48eca1 4000fi
252b5132 4001
6be7c12c 4002
252b5132 4003# Check for any special flags to pass to ltconfig.
b2ef150d 4004libtool_flags="--cache-file=$cache_file"
252b5132
RH
4005test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4006test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4007test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4008test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4009test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4010
6be7c12c 4011
a74801ba
ILT
4012# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013if test "${enable_libtool_lock+set}" = set; then
4014 enableval="$enable_libtool_lock"
a74801ba 4015
5464f5a1 4016fi;
a74801ba
ILT
4017test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4018test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4019
5464f5a1 4020
ac48eca1
AO
4021# Check whether --with-pic or --without-pic was given.
4022if test "${with_pic+set}" = set; then
4023 withval="$with_pic"
4024 pic_mode="$withval"
4025else
5464f5a1
NN
4026 pic_mode=default
4027fi;
ac48eca1
AO
4028test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4029test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4030
252b5132
RH
4031# Some flags need to be propagated to the compiler or linker for good
4032# libtool support.
55c80943 4033case $host in
252b5132
RH
4034*-*-irix6*)
4035 # Find out which ABI we are using.
c428fa83 4036 echo '#line 4036 "configure"' > conftest.$ac_ext
5464f5a1
NN
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
6a457e5c
NC
4042 if test "$lt_cv_prog_gnu_ld" = yes; then
4043 case `/usr/bin/file conftest.$ac_objext` in
4044 *32-bit*)
4045 LD="${LD-ld} -melf32bsmip"
4046 ;;
4047 *N32*)
4048 LD="${LD-ld} -melf32bmipn32"
4049 ;;
4050 *64-bit*)
4051 LD="${LD-ld} -melf64bmip"
4052 ;;
4053 esac
4054 else
55c80943 4055 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4056 *32-bit*)
4057 LD="${LD-ld} -32"
4058 ;;
4059 *N32*)
4060 LD="${LD-ld} -n32"
4061 ;;
4062 *64-bit*)
4063 LD="${LD-ld} -64"
4064 ;;
4065 esac
6a457e5c 4066 fi
252b5132
RH
4067 fi
4068 rm -rf conftest*
4069 ;;
4070
4867be41
DJ
4071ia64-*-hpux*)
4072 # Find out which ABI we are using.
4073 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4867be41
DJ
4079 case "`/usr/bin/file conftest.o`" in
4080 *ELF-32*)
4081 HPUX_IA64_MODE="32"
4082 ;;
4083 *ELF-64*)
4084 HPUX_IA64_MODE="64"
4085 ;;
4086 esac
4087 fi
4088 rm -rf conftest*
4089 ;;
4090
65fe5dd6 4091x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
4092 # Find out which ABI we are using.
4093 echo 'int i;' > conftest.$ac_ext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; then
4099 case "`/usr/bin/file conftest.o`" in
4100 *32-bit*)
4101 case $host in
65fe5dd6 4102 x86_64-*linux*)
d70c5fc7
NC
4103 LD="${LD-ld} -m elf_i386"
4104 ;;
4105 ppc64-*linux*|powerpc64-*linux*)
4106 LD="${LD-ld} -m elf32ppclinux"
4107 ;;
4108 s390x-*linux*)
4109 LD="${LD-ld} -m elf_s390"
4110 ;;
4111 sparc64-*linux*)
4112 LD="${LD-ld} -m elf32_sparc"
4113 ;;
4114 esac
4115 ;;
4116 *64-bit*)
4117 case $host in
65fe5dd6 4118 x86_64-*linux*)
d70c5fc7
NC
4119 LD="${LD-ld} -m elf_x86_64"
4120 ;;
4121 ppc*-*linux*|powerpc*-*linux*)
4122 LD="${LD-ld} -m elf64ppc"
4123 ;;
4124 s390*-*linux*)
4125 LD="${LD-ld} -m elf64_s390"
4126 ;;
4127 sparc*-*linux*)
4128 LD="${LD-ld} -m elf64_sparc"
4129 ;;
4130 esac
4131 ;;
4132 esac
4133 fi
4134 rm -rf conftest*
4135 ;;
4136
252b5132
RH
4137*-*-sco3.2v5*)
4138 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4139 SAVE_CFLAGS="$CFLAGS"
252b5132 4140 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4141 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4142echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4143if test "${lt_cv_cc_needs_belf+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4145else
5464f5a1
NN
4146
4147
ac48eca1 4148 ac_ext=c
ac48eca1 4149ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4153
5464f5a1
NN
4154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
b2ef150d 4160
5464f5a1
NN
4161int
4162main ()
4163{
b2ef150d 4164
5464f5a1
NN
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext conftest$ac_exeext
4170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
49c96104
SE
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
5464f5a1
NN
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
b2ef150d
ILT
4191 lt_cv_cc_needs_belf=yes
4192else
5464f5a1
NN
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196lt_cv_cc_needs_belf=no
b2ef150d 4197fi
5464f5a1
NN
4198rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4200 ac_ext=c
ac48eca1 4201ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4205
b2ef150d 4206fi
5464f5a1
NN
4207echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4208echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4211 CFLAGS="$SAVE_CFLAGS"
4212 fi
252b5132
RH
4213 ;;
4214
6be7c12c 4215
252b5132
RH
4216esac
4217
6be7c12c 4218
b2ef150d 4219# Save cache, so that ltconfig can load it
5464f5a1 4220cat >confcache <<\_ACEOF
b2ef150d
ILT
4221# This file is a shell script that caches the results of configure
4222# tests run on this system so they can be shared between configure
5464f5a1
NN
4223# scripts and configure runs, see configure's option --config-cache.
4224# It is not useful on other systems. If it contains results you don't
4225# want to keep, you may remove or edit it.
b2ef150d 4226#
5464f5a1
NN
4227# config.status only pays attention to the cache file if you give it
4228# the --recheck option to rerun configure.
b2ef150d 4229#
5464f5a1
NN
4230# `ac_cv_env_foo' variables (set or unset) will be overridden when
4231# loading this file, other *unset* `ac_cv_foo' will be assigned the
4232# following values.
4233
4234_ACEOF
4235
b2ef150d
ILT
4236# The following way of writing the cache mishandles newlines in values,
4237# but we know of no workaround that is simple, portable, and efficient.
4238# So, don't put newlines in cache variables' values.
4239# Ultrix sh set writes to stderr and can't be redirected directly,
4240# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4241{
4242 (set) 2>&1 |
4243 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4244 *ac_space=\ *)
4245 # `set' does not quote correctly, so add quotes (double-quote
4246 # substitution turns \\\\ into \\, and sed turns \\ into \).
4247 sed -n \
4248 "s/'/'\\\\''/g;
4249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4250 ;;
4251 *)
4252 # `set' quotes correctly as required by POSIX, so do not add quotes.
4253 sed -n \
4254 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4255 ;;
4256 esac;
4257} |
4258 sed '
4259 t clear
4260 : clear
4261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 t end
4263 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 : end' >>confcache
4265if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4266 if test -w $cache_file; then
5464f5a1
NN
4267 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4268 cat confcache >$cache_file
b2ef150d
ILT
4269 else
4270 echo "not updating unwritable cache $cache_file"
4271 fi
4272fi
4273rm -f confcache
4274
252b5132 4275# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4276AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4277MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4278LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4279AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4280objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4281deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4282${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4283$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4284|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4285echo "$as_me: error: libtool configure failed" >&2;}
4286 { (exit 1); exit 1; }; }
252b5132 4287
b2ef150d
ILT
4288# Reload cache, that may have been modified by ltconfig
4289if test -r "$cache_file"; then
5464f5a1
NN
4290 # Some versions of bash will fail to source /dev/null (special
4291 # files actually), so we avoid doing that.
4292 if test -f "$cache_file"; then
4293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4294echo "$as_me: loading cache $cache_file" >&6;}
4295 case $cache_file in
4296 [\\/]* | ?:[\\/]* ) . $cache_file;;
4297 *) . ./$cache_file;;
4298 esac
4299 fi
b2ef150d 4300else
5464f5a1
NN
4301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4302echo "$as_me: creating cache $cache_file" >&6;}
4303 >$cache_file
b2ef150d
ILT
4304fi
4305
6be7c12c 4306
b2ef150d 4307# This can be used to rebuild libtool when needed
ac48eca1 4308LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4309
4310# Always use our own libtool.
4311LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4312
252b5132
RH
4313# Redirect the config.log output again, so that the ltconfig log is not
4314# clobbered by the next message.
4315exec 5>>./config.log
4316
6be7c12c 4317
5464f5a1
NN
4318
4319
4320
4321
6be7c12c 4322
252b5132
RH
4323# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4324if test "${enable_64_bit_bfd+set}" = set; then
4325 enableval="$enable_64_bit_bfd"
4326 case "${enableval}" in
4327 yes) want64=true ;;
4328 no) want64=false ;;
5464f5a1
NN
4329 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4330echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4331 { (exit 1); exit 1; }; } ;;
252b5132
RH
4332esac
4333else
4334 want64=false
5464f5a1 4335fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4336if test "${enable_targets+set}" = set; then
4337 enableval="$enable_targets"
4338 case "${enableval}" in
5464f5a1
NN
4339 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4340echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4341 { (exit 1); exit 1; }; }
252b5132
RH
4342 ;;
4343 no) enable_targets= ;;
4344 *) enable_targets=$enableval ;;
4345esac
5464f5a1 4346fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4347if test "${enable_commonbfdlib+set}" = set; then
4348 enableval="$enable_commonbfdlib"
4349 case "${enableval}" in
4350 yes) commonbfdlib=true ;;
4351 no) commonbfdlib=false ;;
5464f5a1
NN
4352 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4353echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4354 { (exit 1); exit 1; }; } ;;
252b5132 4355esac
5464f5a1 4356fi;
252b5132
RH
4357# Check whether --with-mmap or --without-mmap was given.
4358if test "${with_mmap+set}" = set; then
4359 withval="$with_mmap"
4360 case "${withval}" in
4361 yes) want_mmap=true ;;
4362 no) want_mmap=false ;;
5464f5a1
NN
4363 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4364echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4365 { (exit 1); exit 1; }; } ;;
252b5132
RH
4366esac
4367else
4368 want_mmap=false
5464f5a1 4369fi;
6ec7057a
RH
4370# Check whether --enable-secureplt or --disable-secureplt was given.
4371if test "${enable_secureplt+set}" = set; then
4372 enableval="$enable_secureplt"
4373 case "${enableval}" in
4374 yes) use_secureplt=true ;;
4375 no) use_secureplt=false ;;
4376 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4377echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379esac
4380else
4381 use_secureplt=false
4382fi; if test $use_secureplt = true; then
4383
4384cat >>confdefs.h <<\_ACEOF
4385#define USE_SECUREPLT 1
4386_ACEOF
4387
4388fi
4389
92f01d61
JM
4390# Package version. For an official FSF release, it is empty.
4391
4392# Check whether --with-pkgversion or --without-pkgversion was given.
4393if test "${with_pkgversion+set}" = set; then
4394 withval="$with_pkgversion"
4395 case "$withval" in
4396 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4397echo "$as_me: error: package version not specified" >&2;}
4398 { (exit 1); exit 1; }; } ;;
4399 no) PKGVERSION= ;;
4400 *) PKGVERSION="($withval) " ;;
4401 esac
4402else
066c2a57 4403 PKGVERSION="(GNU Binutils) "
92f01d61
JM
4404
4405fi;
4406
4407
c428fa83
L
4408# The location to which bugs should be reported.
4409
4410# Check whether --with-bugurl or --without-bugurl was given.
4411if test "${with_bugurl+set}" = set; then
4412 withval="$with_bugurl"
4413 case "$withval" in
4414 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4415echo "$as_me: error: bug URL not specified" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4417 no) REPORT_BUGS_TO="";
4418 REPORT_BUGS_TEXI=""
4419 ;;
4420 *) REPORT_BUGS_TO="<URL:$withval>"
4421 REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
4422 ;;
4423 esac
4424else
4425 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
4426 REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}"
4427
4428fi;
4429
4430
4431
9e9b66a9 4432
49c96104 4433GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4434
569acd2c
NC
4435# Check whether --enable-werror or --disable-werror was given.
4436if test "${enable_werror+set}" = set; then
4437 enableval="$enable_werror"
1ad12f97
NC
4438 case "${enableval}" in
4439 yes | y) ERROR_ON_WARNING="yes" ;;
4440 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4441 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4442echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4443 { (exit 1); exit 1; }; } ;;
4444 esac
4445fi;
4446
9e9b66a9
AM
4447# Enable -Werror by default when using gcc
4448if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4449 ERROR_ON_WARNING=yes
4450fi
4451
4452NO_WERROR=
4453if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4454 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4455 NO_WERROR="-Wno-error"
1ad12f97
NC
4456fi
4457
49c96104
SE
4458if test "${GCC}" = yes ; then
4459 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4460fi
4461
a2d91340
AC
4462# Check whether --enable-build-warnings or --disable-build-warnings was given.
4463if test "${enable_build_warnings+set}" = set; then
4464 enableval="$enable_build_warnings"
4465 case "${enableval}" in
49c96104
SE
4466 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4467 no) if test "${GCC}" = yes ; then
4468 WARN_CFLAGS="-w"
4469 fi;;
a2d91340 4470 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4471 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4472 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4473 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4474 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4475esac
9e9b66a9
AM
4476fi;
4477
4478if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4479 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4480fi
4481
4482
9e9b66a9
AM
4483
4484
4485
5464f5a1 4486 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4487
252b5132
RH
4488
4489if test -z "$target" ; then
5464f5a1
NN
4490 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4491echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4492 { (exit 1); exit 1; }; }
252b5132 4493fi
252b5132 4494
5464f5a1
NN
4495echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4496echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4497 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4498if test "${enable_maintainer_mode+set}" = set; then
4499 enableval="$enable_maintainer_mode"
4500 USE_MAINTAINER_MODE=$enableval
4501else
4502 USE_MAINTAINER_MODE=no
5464f5a1
NN
4503fi;
4504 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4505echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4506
252b5132
RH
4507
4508if test $USE_MAINTAINER_MODE = yes; then
4509 MAINTAINER_MODE_TRUE=
4510 MAINTAINER_MODE_FALSE='#'
4511else
4512 MAINTAINER_MODE_TRUE='#'
4513 MAINTAINER_MODE_FALSE=
4514fi
f5385ebf 4515
252b5132 4516 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4517
5464f5a1 4518
d5fbea21
DJ
4519
4520
4521if false; then
4522 GENINSRC_NEVER_TRUE=
4523 GENINSRC_NEVER_FALSE='#'
4524else
4525 GENINSRC_NEVER_TRUE='#'
4526 GENINSRC_NEVER_FALSE=
4527fi
4528
24443139
AS
4529 case ${build_alias} in
4530 "") build_noncanonical=${build} ;;
4531 *) build_noncanonical=${build_alias} ;;
4532esac
4533
4534 case ${host_alias} in
4535 "") host_noncanonical=${build_noncanonical} ;;
4536 *) host_noncanonical=${host_alias} ;;
4537esac
4538
4539 case ${target_alias} in
4540 "") target_noncanonical=${host_noncanonical} ;;
4541 *) target_noncanonical=${target_alias} ;;
4542esac
4543
5464f5a1
NN
4544echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4545echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4546 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4547if test "${enable_install_libbfd+set}" = set; then
4548 enableval="$enable_install_libbfd"
4549 install_libbfd_p=$enableval
4550else
66e25bab 4551 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4552 install_libbfd_p=yes
4553 else
4554 install_libbfd_p=no
4555 fi
5464f5a1
NN
4556fi;
4557 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4558echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4559
a703a6ea
AM
4560
4561if test $install_libbfd_p = yes; then
4562 INSTALL_LIBBFD_TRUE=
4563 INSTALL_LIBBFD_FALSE='#'
4564else
4565 INSTALL_LIBBFD_TRUE='#'
4566 INSTALL_LIBBFD_FALSE=
4567fi
f5385ebf 4568
5464f5a1 4569 # Need _noncanonical variables for this.
24443139
AS
4570
4571
4572
4573
a703a6ea
AM
4574 # libbfd.a is a host library containing target dependent code
4575 bfdlibdir='$(libdir)'
4576 bfdincludedir='$(includedir)'
4577 if test "${host}" != "${target}"; then
5464f5a1
NN
4578 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4579 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4580 fi
a703a6ea
AM
4581
4582
252b5132
RH
4583
4584
5464f5a1
NN
4585
4586
4587host64=false
4588target64=false
4589bfd_default_target_size=32
4590
4591# host stuff:
4592
4593ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4600set dummy ${ac_tool_prefix}gcc; ac_word=$2
4601echo "$as_me:$LINENO: checking for $ac_word" >&5
4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4603if test "${ac_cv_prog_CC+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4605else
5464f5a1
NN
4606 if test -n "$CC"; then
4607 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4608else
5464f5a1
NN
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
6be7c12c 4619 fi
5464f5a1
NN
4620done
4621done
4622
252b5132 4623fi
b3baf5d0 4624fi
5464f5a1
NN
4625CC=$ac_cv_prog_CC
4626if test -n "$CC"; then
4627 echo "$as_me:$LINENO: result: $CC" >&5
4628echo "${ECHO_T}$CC" >&6
4629else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632fi
252b5132 4633
5464f5a1
NN
4634fi
4635if test -z "$ac_cv_prog_CC"; then
4636 ac_ct_CC=$CC
4637 # Extract the first word of "gcc", so it can be a program name with args.
4638set dummy gcc; ac_word=$2
4639echo "$as_me:$LINENO: checking for $ac_word" >&5
4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CC="gcc"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
4659done
252b5132 4660
5464f5a1
NN
4661fi
4662fi
4663ac_ct_CC=$ac_cv_prog_ac_ct_CC
4664if test -n "$ac_ct_CC"; then
4665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4666echo "${ECHO_T}$ac_ct_CC" >&6
4667else
4668 echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670fi
252b5132 4671
5464f5a1
NN
4672 CC=$ac_ct_CC
4673else
4674 CC="$ac_cv_prog_CC"
4675fi
252b5132 4676
5464f5a1
NN
4677if test -z "$CC"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4680set dummy ${ac_tool_prefix}cc; ac_word=$2
4681echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683if test "${ac_cv_prog_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696 ac_cv_prog_CC="${ac_tool_prefix}cc"
4697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700done
4701done
6be7c12c 4702
5464f5a1
NN
4703fi
4704fi
4705CC=$ac_cv_prog_CC
4706if test -n "$CC"; then
4707 echo "$as_me:$LINENO: result: $CC" >&5
4708echo "${ECHO_T}$CC" >&6
4709else
4710 echo "$as_me:$LINENO: result: no" >&5
4711echo "${ECHO_T}no" >&6
4712fi
4713
4714fi
4715if test -z "$ac_cv_prog_CC"; then
4716 ac_ct_CC=$CC
4717 # Extract the first word of "cc", so it can be a program name with args.
4718set dummy cc; ac_word=$2
4719echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724 if test -n "$ac_ct_CC"; then
4725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_ac_ct_CC="cc"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738done
4739done
4740
4741fi
4742fi
4743ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744if test -n "$ac_ct_CC"; then
4745 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4746echo "${ECHO_T}$ac_ct_CC" >&6
4747else
4748 echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750fi
4751
4752 CC=$ac_ct_CC
4753else
4754 CC="$ac_cv_prog_CC"
4755fi
4756
4757fi
4758if test -z "$CC"; then
4759 # Extract the first word of "cc", so it can be a program name with args.
4760set dummy cc; ac_word=$2
4761echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763if test "${ac_cv_prog_CC+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4765else
4766 if test -n "$CC"; then
4767 ac_cv_prog_CC="$CC" # Let the user override the test.
4768else
5464f5a1
NN
4769 ac_prog_rejected=no
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4778 ac_prog_rejected=yes
4779 continue
4780 fi
4781 ac_cv_prog_CC="cc"
4782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785done
4786done
4787
4788if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy $ac_cv_prog_CC
4791 shift
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set CC to just the basename; use the full file name.
4796 shift
4797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4798 fi
4799fi
4800fi
4801fi
4802CC=$ac_cv_prog_CC
4803if test -n "$CC"; then
4804 echo "$as_me:$LINENO: result: $CC" >&5
4805echo "${ECHO_T}$CC" >&6
4806else
4807 echo "$as_me:$LINENO: result: no" >&5
4808echo "${ECHO_T}no" >&6
4809fi
4810
4811fi
4812if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog in cl
4815 do
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4818echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820if test "${ac_cv_prog_CC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837done
4838done
4839
4840fi
4841fi
4842CC=$ac_cv_prog_CC
4843if test -n "$CC"; then
4844 echo "$as_me:$LINENO: result: $CC" >&5
4845echo "${ECHO_T}$CC" >&6
4846else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849fi
4850
4851 test -n "$CC" && break
6be7c12c 4852 done
252b5132 4853fi
5464f5a1
NN
4854if test -z "$CC"; then
4855 ac_ct_CC=$CC
4856 for ac_prog in cl
4857do
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859set dummy $ac_prog; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_ac_ct_CC="$ac_prog"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881
4882fi
4883fi
4884ac_ct_CC=$ac_cv_prog_ac_ct_CC
4885if test -n "$ac_ct_CC"; then
4886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4887echo "${ECHO_T}$ac_ct_CC" >&6
4888else
4889 echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891fi
4892
4893 test -n "$ac_ct_CC" && break
4894done
4895
4896 CC=$ac_ct_CC
4897fi
4898
4899fi
4900
4901
4902test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4903See \`config.log' for more details." >&5
4904echo "$as_me: error: no acceptable C compiler found in \$PATH
4905See \`config.log' for more details." >&2;}
4906 { (exit 1); exit 1; }; }
4907
4908# Provide some information about the compiler.
4909echo "$as_me:$LINENO:" \
4910 "checking for C compiler version" >&5
4911ac_compiler=`set X $ac_compile; echo $2`
4912{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4913 (eval $ac_compiler --version </dev/null >&5) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }
4917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4918 (eval $ac_compiler -v </dev/null >&5) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }
4922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4923 (eval $ac_compiler -V </dev/null >&5) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }
4927
4928echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4929echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4930if test "${ac_cv_c_compiler_gnu+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939
4940int
4941main ()
4942{
4943#ifndef __GNUC__
4944 choke me
4945#endif
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
4951rm -f conftest.$ac_objext
4952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
49c96104
SE
4960 { ac_try='test -z "$ac_c_werror_flag"
4961 || test ! -s conftest.err'
5464f5a1
NN
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_compiler_gnu=yes
4974else
4975 echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978ac_compiler_gnu=no
4979fi
4980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981ac_cv_c_compiler_gnu=$ac_compiler_gnu
4982
4983fi
4984echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4985echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4986GCC=`test $ac_compiler_gnu = yes && echo yes`
4987ac_test_CFLAGS=${CFLAGS+set}
4988ac_save_CFLAGS=$CFLAGS
4989CFLAGS="-g"
4990echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4991echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4992if test "${ac_cv_prog_cc_g+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995 cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h. */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h. */
5001
5002int
5003main ()
5004{
5005
5006 ;
5007 return 0;
5008}
5009_ACEOF
5010rm -f conftest.$ac_objext
5011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
49c96104
SE
5019 { ac_try='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5464f5a1
NN
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_prog_cc_g=yes
5033else
5034 echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037ac_cv_prog_cc_g=no
5038fi
5039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040fi
5041echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5042echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5043if test "$ac_test_CFLAGS" = set; then
5044 CFLAGS=$ac_save_CFLAGS
5045elif test $ac_cv_prog_cc_g = yes; then
5046 if test "$GCC" = yes; then
5047 CFLAGS="-g -O2"
5048 else
5049 CFLAGS="-g"
5050 fi
5051else
5052 if test "$GCC" = yes; then
5053 CFLAGS="-O2"
5054 else
5055 CFLAGS=
5056 fi
5057fi
5058echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5059echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5060if test "${ac_cv_prog_cc_stdc+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 ac_cv_prog_cc_stdc=no
5064ac_save_CC=$CC
5065cat >conftest.$ac_ext <<_ACEOF
5066/* confdefs.h. */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h. */
5071#include <stdarg.h>
5072#include <stdio.h>
5073#include <sys/types.h>
5074#include <sys/stat.h>
5075/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5076struct buf { int x; };
5077FILE * (*rcsopen) (struct buf *, struct stat *, int);
5078static char *e (p, i)
5079 char **p;
5080 int i;
5081{
5082 return p[i];
5083}
5084static char *f (char * (*g) (char **, int), char **p, ...)
5085{
5086 char *s;
5087 va_list v;
5088 va_start (v,p);
5089 s = g (p, va_arg (v,int));
5090 va_end (v);
5091 return s;
5092}
5093
5094/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5095 function prototypes and stuff, but not '\xHH' hex character constants.
5096 These don't provoke an error unfortunately, instead are silently treated
5097 as 'x'. The following induces an error, until -std1 is added to get
5098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5099 array size at least. It's necessary to write '\x00'==0 to get something
5100 that's true only with -std1. */
5101int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5102
5103int test (int i, double x);
5104struct s1 {int (*f) (int a);};
5105struct s2 {int (*f) (double a);};
5106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5107int argc;
5108char **argv;
5109int
5110main ()
5111{
5112return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5113 ;
5114 return 0;
5115}
5116_ACEOF
5117# Don't try gcc -ansi; that turns off useful extensions and
5118# breaks some systems' header files.
5119# AIX -qlanglvl=ansi
5120# Ultrix and OSF/1 -std1
5121# HP-UX 10.20 and later -Ae
5122# HP-UX older versions -Aa -D_HPUX_SOURCE
5123# SVR4 -Xc -D__EXTENSIONS__
5124for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5125do
5126 CC="$ac_save_CC $ac_arg"
5127 rm -f conftest.$ac_objext
5128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
49c96104
SE
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5464f5a1
NN
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_prog_cc_stdc=$ac_arg
5150break
5151else
5152 echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
5155fi
5156rm -f conftest.err conftest.$ac_objext
5157done
5158rm -f conftest.$ac_ext conftest.$ac_objext
5159CC=$ac_save_CC
5160
5161fi
5162
5163case "x$ac_cv_prog_cc_stdc" in
5164 x|xno)
5165 echo "$as_me:$LINENO: result: none needed" >&5
5166echo "${ECHO_T}none needed" >&6 ;;
5167 *)
5168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5169echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5170 CC="$CC $ac_cv_prog_cc_stdc" ;;
5171esac
5172
5173# Some people use a C++ compiler to compile C. Since we use `exit',
5174# in C++ we need to declare it. In case someone uses the same compiler
5175# for both compiling C and C++ we need to have the C++ compiler decide
5176# the declaration of exit, since it's the most demanding environment.
5177cat >conftest.$ac_ext <<_ACEOF
5178#ifndef __cplusplus
5179 choke me
5180#endif
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
49c96104
SE
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5464f5a1
NN
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 for ac_declaration in \
5205 '' \
5206 'extern "C" void std::exit (int) throw (); using std::exit;' \
5207 'extern "C" void std::exit (int); using std::exit;' \
5208 'extern "C" void exit (int) throw ();' \
5209 'extern "C" void exit (int);' \
5210 'void exit (int);'
5211do
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218$ac_declaration
5219#include <stdlib.h>
5220int
5221main ()
5222{
5223exit (42);
5224 ;
5225 return 0;
5226}
5227_ACEOF
5228rm -f conftest.$ac_objext
5229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
49c96104
SE
5237 { ac_try='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5464f5a1
NN
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 :
5251else
5252 echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255continue
5256fi
5257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h. */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h. */
5264$ac_declaration
5265int
5266main ()
5267{
5268exit (42);
5269 ;
5270 return 0;
5271}
5272_ACEOF
5273rm -f conftest.$ac_objext
5274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
49c96104
SE
5282 { ac_try='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
5464f5a1
NN
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 break
5296else
5297 echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300fi
5301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302done
5303rm -f conftest*
5304if test -n "$ac_declaration"; then
5305 echo '#ifdef __cplusplus' >>confdefs.h
5306 echo $ac_declaration >>confdefs.h
5307 echo '#endif' >>confdefs.h
252b5132 5308fi
5464f5a1 5309
b3baf5d0 5310else
5464f5a1
NN
5311 echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
b3baf5d0 5314fi
5464f5a1
NN
5315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5316ac_ext=c
5317ac_cpp='$CPP $CPPFLAGS'
5318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5321
5464f5a1 5322
4a2a2686
HPN
5323cat >>confdefs.h <<\_ACEOF
5324#define _GNU_SOURCE 1
5325_ACEOF
5326
5327
5328
dcd4b381 5329ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5330# If we haven't got the data from the intl directory,
5331# assume NLS is disabled.
5332USE_NLS=no
5333LIBINTL=
5334LIBINTL_DEP=
5335INCINTL=
5336XGETTEXT=
5337GMSGFMT=
5338POSUB=
9d7cbccd
NC
5339
5340if test -f ../intl/config.intl; then
5341 . ../intl/config.intl
20e95c23
DJ
5342fi
5343echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5344echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5345if test x"$USE_NLS" != xyes; then
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
252b5132 5348else
20e95c23
DJ
5349 echo "$as_me:$LINENO: result: yes" >&5
5350echo "${ECHO_T}yes" >&6
5351
5352cat >>confdefs.h <<\_ACEOF
5353#define ENABLE_NLS 1
5354_ACEOF
5355
5356
5357 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5358echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5359 # Look for .po and .gmo files in the source directory.
5360 CATALOGS=
5361 XLINGUAS=
5362 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5363 # If there aren't any .gmo files the shell will give us the
5364 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5365 # weeded out.
5366 case "$cat" in *\**)
5367 continue;;
5368 esac
5369 # The quadruple backslash is collapsed to a double backslash
5370 # by the backticks, then collapsed again by the double quotes,
5371 # leaving us with one backslash in the sed expression (right
5372 # before the dot that mustn't act as a wildcard).
5373 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5374 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5375 # The user is allowed to set LINGUAS to a list of languages to
5376 # install catalogs for. If it's empty that means "all of them."
5377 if test "x$LINGUAS" = x; then
5378 CATALOGS="$CATALOGS $cat"
5379 XLINGUAS="$XLINGUAS $lang"
5380 else
5381 case "$LINGUAS" in *$lang*)
5382 CATALOGS="$CATALOGS $cat"
5383 XLINGUAS="$XLINGUAS $lang"
5384 ;;
5385 esac
5386 fi
5387 done
5388 LINGUAS="$XLINGUAS"
5389 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5390echo "${ECHO_T}$LINGUAS" >&6
5391
5392
5393 DATADIRNAME=share
5394
5395 INSTOBJEXT=.mo
5396
5397 GENCAT=gencat
5398
5399 CATOBJEXT=.gmo
5400
5401fi
5402
5403 MKINSTALLDIRS=
5404 if test -n "$ac_aux_dir"; then
5405 case "$ac_aux_dir" in
5406 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5407 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5408 esac
5409 fi
5410 if test -z "$MKINSTALLDIRS"; then
5411 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5412 fi
5413
5414
5415
5416 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5417echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5418 # Check whether --enable-nls or --disable-nls was given.
5419if test "${enable_nls+set}" = set; then
5420 enableval="$enable_nls"
5421 USE_NLS=$enableval
252b5132 5422else
20e95c23
DJ
5423 USE_NLS=yes
5424fi;
5425 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5426echo "${ECHO_T}$USE_NLS" >&6
5427
5428
5429
5430
5431
5432
5433# Prepare PATH_SEPARATOR.
5434# The user is always right.
5435if test "${PATH_SEPARATOR+set}" != set; then
5436 echo "#! /bin/sh" >conf$$.sh
5437 echo "exit 0" >>conf$$.sh
5438 chmod +x conf$$.sh
5439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5440 PATH_SEPARATOR=';'
5441 else
5442 PATH_SEPARATOR=:
252b5132 5443 fi
20e95c23
DJ
5444 rm -f conf$$.sh
5445fi
5464f5a1 5446
20e95c23
DJ
5447# Find out how to test for executable files. Don't use a zero-byte file,
5448# as systems may use methods other than mode bits to determine executability.
5449cat >conf$$.file <<_ASEOF
5450#! /bin/sh
5451exit 0
5452_ASEOF
5453chmod +x conf$$.file
5454if test -x conf$$.file >/dev/null 2>&1; then
5455 ac_executable_p="test -x"
5456else
5457 ac_executable_p="test -f"
252b5132 5458fi
20e95c23
DJ
5459rm -f conf$$.file
5460
5461# Extract the first word of "msgfmt", so it can be a program name with args.
5462set dummy msgfmt; ac_word=$2
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465if test "${ac_cv_path_MSGFMT+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 case "$MSGFMT" in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5471 ;;
5472 *)
5473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH; do
5475 IFS="$ac_save_IFS"
5476 test -z "$ac_dir" && ac_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5479 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5480 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5481 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5482 break 2
5483 fi
5484 fi
5485 done
5486 done
5487 IFS="$ac_save_IFS"
5488 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5489 ;;
5490esac
252b5132 5491fi
20e95c23
DJ
5492MSGFMT="$ac_cv_path_MSGFMT"
5493if test "$MSGFMT" != ":"; then
5494 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5495echo "${ECHO_T}$MSGFMT" >&6
252b5132 5496else
5464f5a1
NN
5497 echo "$as_me:$LINENO: result: no" >&5
5498echo "${ECHO_T}no" >&6
252b5132
RH
5499fi
5500
20e95c23
DJ
5501 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5502set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5503echo "$as_me:$LINENO: checking for $ac_word" >&5
5504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5505if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5506 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5507else
20e95c23
DJ
5508 case $GMSGFMT in
5509 [\\/]* | ?:[\\/]*)
5510 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5511 ;;
5512 *)
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5520 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524done
5525done
5526
20e95c23
DJ
5527 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5528 ;;
5529esac
252b5132 5530fi
20e95c23
DJ
5531GMSGFMT=$ac_cv_path_GMSGFMT
5532
5533if test -n "$GMSGFMT"; then
5534 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5535echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5536else
5464f5a1
NN
5537 echo "$as_me:$LINENO: result: no" >&5
5538echo "${ECHO_T}no" >&6
b3baf5d0 5539fi
252b5132 5540
20e95c23
DJ
5541
5542
5543# Prepare PATH_SEPARATOR.
5544# The user is always right.
5545if test "${PATH_SEPARATOR+set}" != set; then
5546 echo "#! /bin/sh" >conf$$.sh
5547 echo "exit 0" >>conf$$.sh
5548 chmod +x conf$$.sh
5549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5550 PATH_SEPARATOR=';'
5551 else
5552 PATH_SEPARATOR=:
5553 fi
5554 rm -f conf$$.sh
252b5132 5555fi
5464f5a1 5556
20e95c23
DJ
5557# Find out how to test for executable files. Don't use a zero-byte file,
5558# as systems may use methods other than mode bits to determine executability.
5559cat >conf$$.file <<_ASEOF
5560#! /bin/sh
5561exit 0
5562_ASEOF
5563chmod +x conf$$.file
5564if test -x conf$$.file >/dev/null 2>&1; then
5565 ac_executable_p="test -x"
5566else
5567 ac_executable_p="test -f"
6be7c12c 5568fi
20e95c23
DJ
5569rm -f conf$$.file
5570
5571# Extract the first word of "xgettext", so it can be a program name with args.
5572set dummy xgettext; ac_word=$2
5573echo "$as_me:$LINENO: checking for $ac_word" >&5
5574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5576 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5577else
20e95c23
DJ
5578 case "$XGETTEXT" in
5579 [\\/]* | ?:[\\/]*)
5580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5581 ;;
5582 *)
5583 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5584 for ac_dir in $PATH; do
5585 IFS="$ac_save_IFS"
5586 test -z "$ac_dir" && ac_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5589 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5590 (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
5591 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5592 break 2
5593 fi
5594 fi
5595 done
5596 done
5597 IFS="$ac_save_IFS"
5598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5599 ;;
5600esac
5601fi
5602XGETTEXT="$ac_cv_path_XGETTEXT"
5603if test "$XGETTEXT" != ":"; then
5604 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5605echo "${ECHO_T}$XGETTEXT" >&6
5606else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609fi
5610
5611 rm -f messages.po
5612
5613
5614# Prepare PATH_SEPARATOR.
5615# The user is always right.
5616if test "${PATH_SEPARATOR+set}" != set; then
5617 echo "#! /bin/sh" >conf$$.sh
5618 echo "exit 0" >>conf$$.sh
5619 chmod +x conf$$.sh
5620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5621 PATH_SEPARATOR=';'
5464f5a1 5622 else
20e95c23 5623 PATH_SEPARATOR=:
5464f5a1 5624 fi
20e95c23 5625 rm -f conf$$.sh
6be7c12c 5626fi
5464f5a1 5627
20e95c23
DJ
5628# Find out how to test for executable files. Don't use a zero-byte file,
5629# as systems may use methods other than mode bits to determine executability.
5630cat >conf$$.file <<_ASEOF
5631#! /bin/sh
5632exit 0
5633_ASEOF
5634chmod +x conf$$.file
5635if test -x conf$$.file >/dev/null 2>&1; then
5636 ac_executable_p="test -x"
5637else
5638 ac_executable_p="test -f"
5464f5a1 5639fi
20e95c23 5640rm -f conf$$.file
5464f5a1 5641
20e95c23
DJ
5642# Extract the first word of "msgmerge", so it can be a program name with args.
5643set dummy msgmerge; ac_word=$2
5644echo "$as_me:$LINENO: checking for $ac_word" >&5
5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646if test "${ac_cv_path_MSGMERGE+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5648else
20e95c23
DJ
5649 case "$MSGMERGE" in
5650 [\\/]* | ?:[\\/]*)
5651 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5652 ;;
5653 *)
5654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5655 for ac_dir in $PATH; do
5656 IFS="$ac_save_IFS"
5657 test -z "$ac_dir" && ac_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5660 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5661 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5662 break 2
5663 fi
5664 fi
5665 done
5464f5a1 5666 done
20e95c23
DJ
5667 IFS="$ac_save_IFS"
5668 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5669 ;;
5670esac
5464f5a1 5671fi
20e95c23
DJ
5672MSGMERGE="$ac_cv_path_MSGMERGE"
5673if test "$MSGMERGE" != ":"; then
5674 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5675echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5676else
20e95c23
DJ
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5464f5a1 5679fi
5464f5a1 5680
5464f5a1 5681
20e95c23
DJ
5682 if test "$GMSGFMT" != ":"; then
5683 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5684 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5685 : ;
5686 else
5687 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5688 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5689echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5690 GMSGFMT=":"
5691 fi
5464f5a1 5692 fi
5464f5a1 5693
20e95c23
DJ
5694 if test "$XGETTEXT" != ":"; then
5695 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5696 (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
5697 : ;
5698 else
5699 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5700echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5701 XGETTEXT=":"
5702 fi
5703 rm -f messages.po
5704 fi
6be7c12c 5705
20e95c23 5706 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5707
5464f5a1
NN
5708
5709
20e95c23
DJ
5710# Permit host specific settings.
5711. ${srcdir}/configure.host
5464f5a1 5712
ac48eca1 5713
20e95c23
DJ
5714# Find a good install program. We prefer a C program (faster),
5715# so one script is as good as another. But avoid the broken or
5716# incompatible versions:
5717# SysV /etc/install, /usr/sbin/install
5718# SunOS /usr/etc/install
5719# IRIX /sbin/install
5720# AIX /bin/install
5721# AmigaOS /C/install, which installs bootblocks on floppy discs
5722# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5723# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5724# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5725# OS/2's system install, which has a completely different semantic
5726# ./install, which can be erroneously created by make from ./install.sh.
5727echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5728echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5729if test -z "$INSTALL"; then
5730if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5731 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5732else
20e95c23
DJ
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 # Account for people who put trailing slashes in PATH elements.
5739case $as_dir/ in
5740 ./ | .// | /cC/* | \
5741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5743 /usr/ucb/* ) ;;
5464f5a1 5744 *)
20e95c23
DJ
5745 # OSF1 and SCO ODT 3.0 have their own names for install.
5746 # Don't use installbsd from OSF since it installs stuff as root
5747 # by default.
5748 for ac_prog in ginstall scoinst install; do
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5751 if test $ac_prog = install &&
5752 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5753 # AIX install. It has an incompatible calling convention.
5754 :
5755 elif test $ac_prog = install &&
5756 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5757 # program-specific install script used by HP pwplus--don't use.
5758 :
5759 else
5760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5761 break 3
5762 fi
5763 fi
5764 done
5765 done
5464f5a1
NN
5766 ;;
5767esac
252b5132
RH
5768done
5769
20e95c23 5770
252b5132 5771fi
20e95c23
DJ
5772 if test "${ac_cv_path_install+set}" = set; then
5773 INSTALL=$ac_cv_path_install
5774 else
5775 # As a last resort, use the slow shell script. We don't cache a
5776 # path for INSTALL within a source directory, because that will
5777 # break other packages using the cache if that directory is
5778 # removed, or if the path is relative.
5779 INSTALL=$ac_install_sh
5780 fi
252b5132 5781fi
20e95c23
DJ
5782echo "$as_me:$LINENO: result: $INSTALL" >&5
5783echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5784
20e95c23
DJ
5785# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5786# It thinks the first close brace ends the variable substitution.
5787test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5788
20e95c23 5789test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5790
20e95c23 5791test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5792
252b5132 5793
20e95c23
DJ
5794BFD_HOST_64BIT_LONG=0
5795BFD_HOST_LONG_LONG=0
5796BFD_HOST_64_BIT_DEFINED=0
5797BFD_HOST_64_BIT=
5798BFD_HOST_U_64_BIT=
5464f5a1 5799
20e95c23
DJ
5800echo "$as_me:$LINENO: checking for long long" >&5
5801echo $ECHO_N "checking for long long... $ECHO_C" >&6
5802if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5804else
20e95c23 5805 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */
20e95c23
DJ
5811
5812int
5813main ()
5814{
5815unsigned long long ll = 18446744073709551615ULL;
5816 ;
5817 return 0;
5818}
5464f5a1
NN
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
49c96104
SE
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5464f5a1
NN
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
20e95c23 5842 bfd_cv_has_long_long=yes
5464f5a1
NN
5843else
5844 echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
20e95c23 5847bfd_cv_has_long_long=no
5464f5a1
NN
5848fi
5849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5850fi
5464f5a1 5851
20e95c23
DJ
5852echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5853echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5854if test $bfd_cv_has_long_long = yes; then
5855 BFD_HOST_LONG_LONG=1
5856 ac_ext=c
5857ac_cpp='$CPP $CPPFLAGS'
5858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5862echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5863# On Suns, sometimes $CPP names a directory.
5864if test -n "$CPP" && test -d "$CPP"; then
5865 CPP=
5866fi
5867if test -z "$CPP"; then
5868 if test "${ac_cv_prog_CPP+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 # Double quotes because CPP needs to be expanded
5872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5873 do
5874 ac_preproc_ok=false
5875for ac_c_preproc_warn_flag in '' yes
5876do
5877 # Use a header file that comes with gcc, so configuring glibc
5878 # with a fresh cross-compiler works.
5879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5880 # <limits.h> exists even on freestanding compilers.
5881 # On the NeXT, cc -E runs the code through the compiler's parser,
5882 # not just through cpp. "Syntax error" is here to catch this case.
5883 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
20e95c23
DJ
5889#ifdef __STDC__
5890# include <limits.h>
5891#else
5892# include <assert.h>
5893#endif
5894 Syntax error
5464f5a1
NN
5895_ACEOF
5896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev/null; then
5904 if test -s conftest.err; then
5905 ac_cpp_err=$ac_c_preproc_warn_flag
5906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5907 else
5908 ac_cpp_err=
5909 fi
252b5132 5910else
5464f5a1 5911 ac_cpp_err=yes
252b5132 5912fi
5464f5a1 5913if test -z "$ac_cpp_err"; then
20e95c23 5914 :
5464f5a1
NN
5915else
5916 echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
20e95c23
DJ
5919 # Broken: fails on valid input.
5920continue
252b5132 5921fi
5464f5a1 5922rm -f conftest.err conftest.$ac_ext
5464f5a1 5923
20e95c23
DJ
5924 # OK, works on sane cases. Now check whether non-existent headers
5925 # can be detected and how.
5464f5a1
NN
5926 cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h. */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h. */
20e95c23 5932#include <ac_nonexistent.h>
5464f5a1 5933_ACEOF
20e95c23
DJ
5934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5936 ac_status=$?
20e95c23
DJ
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5464f5a1 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5941 (exit $ac_status); } >/dev/null; then
5942 if test -s conftest.err; then
5943 ac_cpp_err=$ac_c_preproc_warn_flag
5944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5945 else
5946 ac_cpp_err=
5947 fi
5948else
5949 ac_cpp_err=yes
5950fi
5951if test -z "$ac_cpp_err"; then
5952 # Broken: success on invalid input.
5953continue
252b5132 5954else
5464f5a1
NN
5955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
20e95c23
DJ
5958 # Passes both tests.
5959ac_preproc_ok=:
5960break
252b5132 5961fi
20e95c23 5962rm -f conftest.err conftest.$ac_ext
252b5132 5963
20e95c23
DJ
5964done
5965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5966rm -f conftest.err conftest.$ac_ext
5967if $ac_preproc_ok; then
5968 break
5969fi
5464f5a1 5970
20e95c23
DJ
5971 done
5972 ac_cv_prog_CPP=$CPP
252b5132 5973
252b5132 5974fi
20e95c23 5975 CPP=$ac_cv_prog_CPP
252b5132 5976else
20e95c23 5977 ac_cv_prog_CPP=$CPP
252b5132 5978fi
20e95c23
DJ
5979echo "$as_me:$LINENO: result: $CPP" >&5
5980echo "${ECHO_T}$CPP" >&6
5981ac_preproc_ok=false
5982for ac_c_preproc_warn_flag in '' yes
252b5132 5983do
20e95c23
DJ
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5464f5a1
NN
5990 cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
5464f5a1
NN
5996#ifdef __STDC__
5997# include <limits.h>
5998#else
5999# include <assert.h>
6000#endif
20e95c23 6001 Syntax error
5464f5a1 6002_ACEOF
20e95c23
DJ
6003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6010 (exit $ac_status); } >/dev/null; then
6011 if test -s conftest.err; then
6012 ac_cpp_err=$ac_c_preproc_warn_flag
6013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014 else
6015 ac_cpp_err=
6016 fi
6017else
6018 ac_cpp_err=yes
6019fi
6020if test -z "$ac_cpp_err"; then
6021 :
5464f5a1
NN
6022else
6023 echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
20e95c23
DJ
6026 # Broken: fails on valid input.
6027continue
5464f5a1 6028fi
20e95c23 6029rm -f conftest.err conftest.$ac_ext
252b5132 6030
20e95c23
DJ
6031 # OK, works on sane cases. Now check whether non-existent headers
6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
6039#include <ac_nonexistent.h>
6040_ACEOF
6041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } >/dev/null; then
6049 if test -s conftest.err; then
6050 ac_cpp_err=$ac_c_preproc_warn_flag
6051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6052 else
6053 ac_cpp_err=
6054 fi
6055else
6056 ac_cpp_err=yes
252b5132 6057fi
20e95c23
DJ
6058if test -z "$ac_cpp_err"; then
6059 # Broken: success on invalid input.
6060continue
252b5132 6061else
20e95c23
DJ
6062 echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6064
20e95c23
DJ
6065 # Passes both tests.
6066ac_preproc_ok=:
6067break
252b5132 6068fi
20e95c23 6069rm -f conftest.err conftest.$ac_ext
5464f5a1 6070
20e95c23
DJ
6071done
6072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073rm -f conftest.err conftest.$ac_ext
6074if $ac_preproc_ok; then
6075 :
252b5132 6076else
20e95c23
DJ
6077 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6078See \`config.log' for more details." >&5
6079echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6080See \`config.log' for more details." >&2;}
6081 { (exit 1); exit 1; }; }
252b5132
RH
6082fi
6083
20e95c23
DJ
6084ac_ext=c
6085ac_cpp='$CPP $CPPFLAGS'
6086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088ac_compiler_gnu=$ac_cv_c_compiler_gnu
6089
6090
6091echo "$as_me:$LINENO: checking for egrep" >&5
6092echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6093if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6094 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6095else
20e95c23
DJ
6096 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6097 then ac_cv_prog_egrep='grep -E'
6098 else ac_cv_prog_egrep='egrep'
252b5132 6099 fi
252b5132 6100fi
20e95c23
DJ
6101echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6102echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6103 EGREP=$ac_cv_prog_egrep
6104
252b5132 6105
20e95c23
DJ
6106echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6107echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6108if test "${ac_cv_header_stdc+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
20e95c23
DJ
6117#include <stdlib.h>
6118#include <stdarg.h>
6119#include <string.h>
6120#include <float.h>
252b5132 6121
5464f5a1
NN
6122int
6123main ()
6124{
20e95c23 6125
5464f5a1
NN
6126 ;
6127 return 0;
6128}
6129_ACEOF
20e95c23
DJ
6130rm -f conftest.$ac_objext
6131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
49c96104
SE
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
5464f5a1
NN
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
20e95c23 6146 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
20e95c23 6152 ac_cv_header_stdc=yes
252b5132 6153else
5464f5a1
NN
6154 echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
20e95c23 6157ac_cv_header_stdc=no
252b5132 6158fi
20e95c23 6159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6160
20e95c23
DJ
6161if test $ac_cv_header_stdc = yes; then
6162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6163 cat >conftest.$ac_ext <<_ACEOF
6164/* confdefs.h. */
6165_ACEOF
6166cat confdefs.h >>conftest.$ac_ext
6167cat >>conftest.$ac_ext <<_ACEOF
6168/* end confdefs.h. */
6169#include <string.h>
5464f5a1 6170
20e95c23
DJ
6171_ACEOF
6172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6173 $EGREP "memchr" >/dev/null 2>&1; then
6174 :
252b5132 6175else
20e95c23 6176 ac_cv_header_stdc=no
252b5132 6177fi
20e95c23 6178rm -f conftest*
252b5132 6179
252b5132
RH
6180fi
6181
20e95c23
DJ
6182if test $ac_cv_header_stdc = yes; then
6183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6184 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
20e95c23
DJ
6190#include <stdlib.h>
6191
5464f5a1 6192_ACEOF
20e95c23
DJ
6193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "free" >/dev/null 2>&1; then
6195 :
5464f5a1 6196else
20e95c23
DJ
6197 ac_cv_header_stdc=no
6198fi
6199rm -f conftest*
5464f5a1 6200
5464f5a1 6201fi
5464f5a1 6202
20e95c23
DJ
6203if test $ac_cv_header_stdc = yes; then
6204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6205 if test "$cross_compiling" = yes; then
6206 :
6207else
6208 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
20e95c23
DJ
6214#include <ctype.h>
6215#if ((' ' & 0x0FF) == 0x020)
6216# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6217# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6218#else
6219# define ISLOWER(c) \
6220 (('a' <= (c) && (c) <= 'i') \
6221 || ('j' <= (c) && (c) <= 'r') \
6222 || ('s' <= (c) && (c) <= 'z'))
6223# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6224#endif
6225
6226#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6227int
6228main ()
6229{
6230 int i;
6231 for (i = 0; i < 256; i++)
6232 if (XOR (islower (i), ISLOWER (i))
6233 || toupper (i) != TOUPPER (i))
6234 exit(2);
6235 exit (0);
6236}
5464f5a1 6237_ACEOF
20e95c23
DJ
6238rm -f conftest$ac_exeext
6239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240 (eval $ac_link) 2>&5
5464f5a1 6241 ac_status=$?
5464f5a1 6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 :
5464f5a1 6250else
20e95c23
DJ
6251 echo "$as_me: program exited with status $ac_status" >&5
6252echo "$as_me: failed program was:" >&5
5464f5a1
NN
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
20e95c23
DJ
6255( exit $ac_status )
6256ac_cv_header_stdc=no
5464f5a1 6257fi
20e95c23 6258rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6259fi
252b5132 6260fi
252b5132 6261fi
20e95c23
DJ
6262echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6263echo "${ECHO_T}$ac_cv_header_stdc" >&6
6264if test $ac_cv_header_stdc = yes; then
252b5132 6265
20e95c23
DJ
6266cat >>confdefs.h <<\_ACEOF
6267#define STDC_HEADERS 1
6268_ACEOF
6be7c12c 6269
20e95c23 6270fi
5464f5a1 6271
20e95c23 6272# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6273
5464f5a1 6274
252b5132 6275
5464f5a1 6276
252b5132 6277
5464f5a1 6278
252b5132 6279
252b5132 6280
6be7c12c 6281
20e95c23
DJ
6282for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6283 inttypes.h stdint.h unistd.h
5464f5a1 6284do
20e95c23
DJ
6285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6286echo "$as_me:$LINENO: checking for $ac_header" >&5
6287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6289 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6290else
5464f5a1
NN
6291 cat >conftest.$ac_ext <<_ACEOF
6292/* confdefs.h. */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h. */
20e95c23 6297$ac_includes_default
ec317fb1 6298
20e95c23 6299#include <$ac_header>
5464f5a1
NN
6300_ACEOF
6301rm -f conftest.$ac_objext
6302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
49c96104
SE
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
5464f5a1
NN
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
20e95c23 6323 eval "$as_ac_Header=yes"
ec317fb1 6324else
5464f5a1
NN
6325 echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
20e95c23 6328eval "$as_ac_Header=no"
ec317fb1 6329fi
5464f5a1 6330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6331fi
6332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6334if test `eval echo '${'$as_ac_Header'}'` = yes; then
6335 cat >>confdefs.h <<_ACEOF
6336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6337_ACEOF
6338
ec317fb1
ILT
6339fi
6340
20e95c23
DJ
6341done
6342
6343
6344echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6345echo $ECHO_N "checking for long long... $ECHO_C" >&6
6346if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6348else
5464f5a1
NN
6349 cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h. */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h. */
2ba49b59 6355$ac_includes_default
5464f5a1
NN
6356int
6357main ()
6358{
2ba49b59
KC
6359if ((long long *) 0)
6360 return 0;
6361if (sizeof (long long))
6362 return 0;
5464f5a1
NN
6363 ;
6364 return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext
6368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
49c96104
SE
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
5464f5a1
NN
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest.$ac_objext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
2ba49b59 6389 ac_cv_type_long_long=yes
6726e1ea 6390else
5464f5a1
NN
6391 echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
2ba49b59 6394ac_cv_type_long_long=no
6726e1ea 6395fi
5464f5a1 6396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6397fi
2ba49b59
KC
6398echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6399echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6400
2ba49b59
KC
6401echo "$as_me:$LINENO: checking size of long long" >&5
6402echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6403if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6405else
2ba49b59
KC
6406 if test "$ac_cv_type_long_long" = yes; then
6407 # The cast to unsigned long works around a bug in the HP C Compiler
6408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6410 # This bug is HP SR number 8606223364.
6411 if test "$cross_compiling" = yes; then
6412 # Depending upon the size, compute the lo and hi bounds.
6413cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
2ba49b59
KC
6419$ac_includes_default
6420int
6421main ()
6422{
6423static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6424test_array [0] = 0
6726e1ea 6425
2ba49b59
KC
6426 ;
6427 return 0;
6428}
6429_ACEOF
6430rm -f conftest.$ac_objext
6431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432 (eval $ac_compile) 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
49c96104
SE
6439 { ac_try='test -z "$ac_c_werror_flag"
6440 || test ! -s conftest.err'
2ba49b59
KC
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_lo=0 ac_mid=0
6453 while :; do
6454 cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h. */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h. */
6460$ac_includes_default
5464f5a1
NN
6461int
6462main ()
6463{
2ba49b59
KC
6464static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6465test_array [0] = 0
6466
5464f5a1
NN
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471rm -f conftest.$ac_objext
6472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
49c96104
SE
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
5464f5a1
NN
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
2ba49b59 6493 ac_hi=$ac_mid; break
6726e1ea 6494else
5464f5a1
NN
6495 echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
2ba49b59
KC
6498ac_lo=`expr $ac_mid + 1`
6499 if test $ac_lo -le $ac_mid; then
6500 ac_lo= ac_hi=
6501 break
6502 fi
6503 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6504fi
5464f5a1 6505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6506 done
252b5132 6507else
2ba49b59
KC
6508 echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6510
5464f5a1
NN
6511cat >conftest.$ac_ext <<_ACEOF
6512/* confdefs.h. */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h. */
6517$ac_includes_default
2ba49b59
KC
6518int
6519main ()
6520{
6521static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6522test_array [0] = 0
6523
6524 ;
6525 return 0;
6526}
5464f5a1
NN
6527_ACEOF
6528rm -f conftest.$ac_objext
6529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
49c96104
SE
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
5464f5a1
NN
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
2ba49b59
KC
6550 ac_hi=-1 ac_mid=-1
6551 while :; do
6552 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
2ba49b59
KC
6558$ac_includes_default
6559int
6560main ()
6561{
6562static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6563test_array [0] = 0
6564
6565 ;
6566 return 0;
6567}
5464f5a1 6568_ACEOF
2ba49b59
KC
6569rm -f conftest.$ac_objext
6570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6577 (exit $ac_status); } &&
49c96104
SE
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
2ba49b59
KC
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_lo=$ac_mid; break
252b5132 6592else
2ba49b59
KC
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596ac_hi=`expr '(' $ac_mid ')' - 1`
6597 if test $ac_mid -le $ac_hi; then
6598 ac_lo= ac_hi=
6599 break
6600 fi
6601 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6602fi
2ba49b59
KC
6603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604 done
5464f5a1
NN
6605else
6606 echo "$as_me: failed program was:" >&5
6607sed 's/^/| /' conftest.$ac_ext >&5
6608
2ba49b59 6609ac_lo= ac_hi=
252b5132 6610fi
2ba49b59
KC
6611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
6613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614# Binary search between lo and hi bounds.
6615while test "x$ac_lo" != "x$ac_hi"; do
6616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6617 cat >conftest.$ac_ext <<_ACEOF
6618/* confdefs.h. */
6619_ACEOF
6620cat confdefs.h >>conftest.$ac_ext
6621cat >>conftest.$ac_ext <<_ACEOF
6622/* end confdefs.h. */
6623$ac_includes_default
6624int
6625main ()
6626{
6627static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6628test_array [0] = 0
5464f5a1 6629
2ba49b59
KC
6630 ;
6631 return 0;
6632}
5464f5a1
NN
6633_ACEOF
6634rm -f conftest.$ac_objext
6635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
49c96104
SE
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
5464f5a1
NN
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
2ba49b59 6656 ac_hi=$ac_mid
5464f5a1
NN
6657else
6658 echo "$as_me: failed program was:" >&5
6659sed 's/^/| /' conftest.$ac_ext >&5
6660
2ba49b59 6661ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6662fi
6663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6664done
6665case $ac_lo in
6666?*) ac_cv_sizeof_long_long=$ac_lo;;
6667'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6668See \`config.log' for more details." >&5
6669echo "$as_me: error: cannot compute sizeof (long long), 77
6670See \`config.log' for more details." >&2;}
6671 { (exit 1); exit 1; }; } ;;
6672esac
6673else
6674 if test "$cross_compiling" = yes; then
49c96104
SE
6675 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6676See \`config.log' for more details." >&5
6677echo "$as_me: error: cannot run test program while cross compiling
6678See \`config.log' for more details." >&2;}
2ba49b59
KC
6679 { (exit 1); exit 1; }; }
6680else
6681 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6682/* confdefs.h. */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h. */
2ba49b59
KC
6687$ac_includes_default
6688long longval () { return (long) (sizeof (long long)); }
6689unsigned long ulongval () { return (long) (sizeof (long long)); }
6690#include <stdio.h>
6691#include <stdlib.h>
6692int
6693main ()
6694{
6695
6696 FILE *f = fopen ("conftest.val", "w");
6697 if (! f)
6698 exit (1);
6699 if (((long) (sizeof (long long))) < 0)
6700 {
6701 long i = longval ();
6702 if (i != ((long) (sizeof (long long))))
6703 exit (1);
6704 fprintf (f, "%ld\n", i);
6705 }
6706 else
6707 {
6708 unsigned long i = ulongval ();
6709 if (i != ((long) (sizeof (long long))))
6710 exit (1);
6711 fprintf (f, "%lu\n", i);
6712 }
6713 exit (ferror (f) || fclose (f) != 0);
6714
6715 ;
6716 return 0;
6717}
5464f5a1 6718_ACEOF
2ba49b59
KC
6719rm -f conftest$ac_exeext
6720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
5464f5a1 6722 ac_status=$?
5464f5a1 6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6731else
2ba49b59
KC
6732 echo "$as_me: program exited with status $ac_status" >&5
6733echo "$as_me: failed program was:" >&5
5464f5a1
NN
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
2ba49b59
KC
6736( exit $ac_status )
6737{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6738See \`config.log' for more details." >&5
6739echo "$as_me: error: cannot compute sizeof (long long), 77
6740See \`config.log' for more details." >&2;}
6741 { (exit 1); exit 1; }; }
252b5132 6742fi
2ba49b59
KC
6743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6744fi
6745fi
6746rm -f conftest.val
6be7c12c 6747else
2ba49b59 6748 ac_cv_sizeof_long_long=0
5464f5a1 6749fi
5464f5a1 6750fi
2ba49b59
KC
6751echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6752echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6753cat >>confdefs.h <<_ACEOF
6754#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6755_ACEOF
6756
5464f5a1 6757
2ba49b59 6758fi
252b5132 6759
2ba49b59
KC
6760echo "$as_me:$LINENO: checking for long" >&5
6761echo $ECHO_N "checking for long... $ECHO_C" >&6
6762if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764else
6765 cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h. */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h. */
2ba49b59 6771$ac_includes_default
5464f5a1
NN
6772int
6773main ()
6774{
2ba49b59
KC
6775if ((long *) 0)
6776 return 0;
6777if (sizeof (long))
6778 return 0;
5464f5a1
NN
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783rm -f conftest.$ac_objext
6784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785 (eval $ac_compile) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
49c96104
SE
6792 { ac_try='test -z "$ac_c_werror_flag"
6793 || test ! -s conftest.err'
5464f5a1
NN
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
2ba49b59 6805 ac_cv_type_long=yes
252b5132 6806else
5464f5a1
NN
6807 echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
2ba49b59 6810ac_cv_type_long=no
252b5132 6811fi
5464f5a1 6812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6813fi
2ba49b59
KC
6814echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6815echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6816
2ba49b59
KC
6817echo "$as_me:$LINENO: checking size of long" >&5
6818echo $ECHO_N "checking size of long... $ECHO_C" >&6
6819if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
2ba49b59
KC
6822 if test "$ac_cv_type_long" = yes; then
6823 # The cast to unsigned long works around a bug in the HP C Compiler
6824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6826 # This bug is HP SR number 8606223364.
6827 if test "$cross_compiling" = yes; then
6828 # Depending upon the size, compute the lo and hi bounds.
6829cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6830/* confdefs.h. */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h. */
2ba49b59 6835$ac_includes_default
5464f5a1
NN
6836int
6837main ()
6838{
2ba49b59
KC
6839static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6840test_array [0] = 0
6841
5464f5a1
NN
6842 ;
6843 return 0;
6844}
6845_ACEOF
6846rm -f conftest.$ac_objext
6847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
49c96104
SE
6855 { ac_try='test -z "$ac_c_werror_flag"
6856 || test ! -s conftest.err'
5464f5a1
NN
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
2ba49b59
KC
6868 ac_lo=0 ac_mid=0
6869 while :; do
6870 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6871/* confdefs.h. */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h. */
2ba49b59 6876$ac_includes_default
5464f5a1
NN
6877int
6878main ()
6879{
2ba49b59
KC
6880static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6881test_array [0] = 0
6882
5464f5a1
NN
6883 ;
6884 return 0;
6885}
6886_ACEOF
2ba49b59
KC
6887rm -f conftest.$ac_objext
6888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
49c96104
SE
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
5464f5a1
NN
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
2ba49b59 6903 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
2ba49b59 6909 ac_hi=$ac_mid; break
5464f5a1
NN
6910else
6911 echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
2ba49b59
KC
6914ac_lo=`expr $ac_mid + 1`
6915 if test $ac_lo -le $ac_mid; then
6916 ac_lo= ac_hi=
6917 break
6918 fi
6919 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6920fi
2ba49b59
KC
6921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 done
6923else
6924 echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6928/* confdefs.h. */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h. */
2ba49b59 6933$ac_includes_default
5464f5a1
NN
6934int
6935main ()
6936{
2ba49b59
KC
6937static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6938test_array [0] = 0
6939
5464f5a1
NN
6940 ;
6941 return 0;
6942}
6943_ACEOF
2ba49b59
KC
6944rm -f conftest.$ac_objext
6945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
49c96104
SE
6953 { ac_try='test -z "$ac_c_werror_flag"
6954 || test ! -s conftest.err'
5464f5a1
NN
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
2ba49b59 6960 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
2ba49b59
KC
6966 ac_hi=-1 ac_mid=-1
6967 while :; do
6968 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
2ba49b59 6974$ac_includes_default
5464f5a1
NN
6975int
6976main ()
6977{
2ba49b59
KC
6978static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6979test_array [0] = 0
6980
5464f5a1
NN
6981 ;
6982 return 0;
6983}
6984_ACEOF
2ba49b59
KC
6985rm -f conftest.$ac_objext
6986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
49c96104
SE
6994 { ac_try='test -z "$ac_c_werror_flag"
6995 || test ! -s conftest.err'
5464f5a1
NN
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
2ba49b59 7001 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
2ba49b59 7007 ac_lo=$ac_mid; break
5464f5a1
NN
7008else
7009 echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
2ba49b59
KC
7012ac_hi=`expr '(' $ac_mid ')' - 1`
7013 if test $ac_mid -le $ac_hi; then
7014 ac_lo= ac_hi=
7015 break
7016 fi
7017 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 7018fi
2ba49b59
KC
7019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7020 done
7021else
7022 echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025ac_lo= ac_hi=
7026fi
7027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028fi
7029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030# Binary search between lo and hi bounds.
7031while test "x$ac_lo" != "x$ac_hi"; do
7032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7033 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
7034/* confdefs.h. */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h. */
2ba49b59 7039$ac_includes_default
5464f5a1
NN
7040int
7041main ()
7042{
2ba49b59
KC
7043static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7044test_array [0] = 0
7045
5464f5a1
NN
7046 ;
7047 return 0;
7048}
7049_ACEOF
2ba49b59
KC
7050rm -f conftest.$ac_objext
7051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
49c96104
SE
7059 { ac_try='test -z "$ac_c_werror_flag"
7060 || test ! -s conftest.err'
5464f5a1
NN
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
2ba49b59 7066 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
2ba49b59 7072 ac_hi=$ac_mid
5464f5a1
NN
7073else
7074 echo "$as_me: failed program was:" >&5
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
2ba49b59 7077ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7078fi
2ba49b59
KC
7079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080done
7081case $ac_lo in
7082?*) ac_cv_sizeof_long=$ac_lo;;
7083'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7084See \`config.log' for more details." >&5
7085echo "$as_me: error: cannot compute sizeof (long), 77
7086See \`config.log' for more details." >&2;}
7087 { (exit 1); exit 1; }; } ;;
7088esac
7089else
7090 if test "$cross_compiling" = yes; then
49c96104
SE
7091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7092See \`config.log' for more details." >&5
7093echo "$as_me: error: cannot run test program while cross compiling
7094See \`config.log' for more details." >&2;}
2ba49b59 7095 { (exit 1); exit 1; }; }
2e0fbf77
JW
7096else
7097 cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
2ba49b59
KC
7103$ac_includes_default
7104long longval () { return (long) (sizeof (long)); }
7105unsigned long ulongval () { return (long) (sizeof (long)); }
7106#include <stdio.h>
7107#include <stdlib.h>
2e0fbf77
JW
7108int
7109main ()
7110{
7111
2ba49b59
KC
7112 FILE *f = fopen ("conftest.val", "w");
7113 if (! f)
7114 exit (1);
7115 if (((long) (sizeof (long))) < 0)
7116 {
7117 long i = longval ();
7118 if (i != ((long) (sizeof (long))))
7119 exit (1);
7120 fprintf (f, "%ld\n", i);
7121 }
7122 else
7123 {
7124 unsigned long i = ulongval ();
7125 if (i != ((long) (sizeof (long))))
7126 exit (1);
7127 fprintf (f, "%lu\n", i);
7128 }
7129 exit (ferror (f) || fclose (f) != 0);
7130
2e0fbf77
JW
7131 ;
7132 return 0;
7133}
7134_ACEOF
2ba49b59
KC
7135rm -f conftest$ac_exeext
7136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>&5
2e0fbf77
JW
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
2ba49b59 7146 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7147else
2ba49b59
KC
7148 echo "$as_me: program exited with status $ac_status" >&5
7149echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
2ba49b59
KC
7152( exit $ac_status )
7153{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7154See \`config.log' for more details." >&5
7155echo "$as_me: error: cannot compute sizeof (long), 77
7156See \`config.log' for more details." >&2;}
7157 { (exit 1); exit 1; }; }
2e0fbf77 7158fi
2ba49b59 7159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7160fi
2ba49b59
KC
7161fi
7162rm -f conftest.val
7163else
7164 ac_cv_sizeof_long=0
7165fi
7166fi
7167echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7168echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7169cat >>confdefs.h <<_ACEOF
7170#define SIZEOF_LONG $ac_cv_sizeof_long
7171_ACEOF
7172
7173
7174if test "x${ac_cv_sizeof_long}" = "x8"; then
7175 host64=true
7176 BFD_HOST_64BIT_LONG=1
7177 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7178 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7179elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7180 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7181 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7182fi
7183
7184if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7185 BFD_HOST_64_BIT_DEFINED=1
7186 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7187 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7188fi
7189
7190
7191
7192
7193
7194
7195
7196# Put a plausible default for CC_FOR_BUILD in Makefile.
7197if test -z "$CC_FOR_BUILD"; then
7198 if test "x$cross_compiling" = "xno"; then
7199 CC_FOR_BUILD='$(CC)'
7200 else
7201 CC_FOR_BUILD=gcc
7202 fi
7203fi
7204
7205# Also set EXEEXT_FOR_BUILD.
7206if test "x$cross_compiling" = "xno"; then
7207 EXEEXT_FOR_BUILD='$(EXEEXT)'
7208else
7209 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7210echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7211if test "${bfd_cv_build_exeext+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214 rm -f conftest*
7215 echo 'int main () { return 0; }' > conftest.c
7216 bfd_cv_build_exeext=
7217 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7218 for file in conftest.*; do
7219 case $file in
7220 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7221 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7222 esac
7223 done
7224 rm -f conftest*
7225 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7226fi
7227echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7228echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7229 EXEEXT_FOR_BUILD=""
7230 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7231fi
7232
7233
7234
7235
7236
7237
7238
7239
7240for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7241do
7242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244 echo "$as_me:$LINENO: checking for $ac_header" >&5
7245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7246if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248fi
7249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251else
7252 # Is the header compilable?
7253echo "$as_me:$LINENO: checking $ac_header usability" >&5
7254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7255cat >conftest.$ac_ext <<_ACEOF
7256/* confdefs.h. */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h. */
7261$ac_includes_default
7262#include <$ac_header>
7263_ACEOF
7264rm -f conftest.$ac_objext
7265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
49c96104
SE
7273 { ac_try='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
2ba49b59
KC
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_header_compiler=yes
7287else
7288 echo "$as_me: failed program was:" >&5
7289sed 's/^/| /' conftest.$ac_ext >&5
7290
7291ac_header_compiler=no
7292fi
7293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7295echo "${ECHO_T}$ac_header_compiler" >&6
7296
7297# Is the header present?
7298echo "$as_me:$LINENO: checking $ac_header presence" >&5
7299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7300cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h. */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h. */
7306#include <$ac_header>
7307_ACEOF
7308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } >/dev/null; then
7316 if test -s conftest.err; then
7317 ac_cpp_err=$ac_c_preproc_warn_flag
7318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7319 else
7320 ac_cpp_err=
7321 fi
7322else
7323 ac_cpp_err=yes
7324fi
7325if test -z "$ac_cpp_err"; then
7326 ac_header_preproc=yes
7327else
7328 echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_header_preproc=no
7332fi
7333rm -f conftest.err conftest.$ac_ext
7334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7335echo "${ECHO_T}$ac_header_preproc" >&6
7336
7337# So? What about this header?
7338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7339 yes:no: )
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7344 ac_header_preproc=yes
7345 ;;
7346 no:yes:* )
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7359 (
7360 cat <<\_ASBOX
7361## ------------------------------------------ ##
7362## Report this to the AC_PACKAGE_NAME lists. ##
7363## ------------------------------------------ ##
7364_ASBOX
7365 ) |
7366 sed "s/^/$as_me: WARNING: /" >&2
7367 ;;
7368esac
7369echo "$as_me:$LINENO: checking for $ac_header" >&5
7370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7371if eval "test \"\${$as_ac_Header+set}\" = set"; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373else
7374 eval "$as_ac_Header=\$ac_header_preproc"
7375fi
7376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378
7379fi
7380if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381 cat >>confdefs.h <<_ACEOF
7382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383_ACEOF
7384
7385fi
7386
7387done
7388
7389
7390
7391
7392for ac_header in fcntl.h sys/file.h sys/time.h
7393do
7394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7395if eval "test \"\${$as_ac_Header+set}\" = set"; then
7396 echo "$as_me:$LINENO: checking for $ac_header" >&5
7397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7398if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400fi
7401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7403else
7404 # Is the header compilable?
7405echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7407cat >conftest.$ac_ext <<_ACEOF
7408/* confdefs.h. */
7409_ACEOF
7410cat confdefs.h >>conftest.$ac_ext
7411cat >>conftest.$ac_ext <<_ACEOF
7412/* end confdefs.h. */
7413$ac_includes_default
7414#include <$ac_header>
7415_ACEOF
7416rm -f conftest.$ac_objext
7417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
49c96104
SE
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
2ba49b59
KC
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_header_compiler=yes
7439else
7440 echo "$as_me: failed program was:" >&5
7441sed 's/^/| /' conftest.$ac_ext >&5
7442
7443ac_header_compiler=no
7444fi
7445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7447echo "${ECHO_T}$ac_header_compiler" >&6
7448
7449# Is the header present?
7450echo "$as_me:$LINENO: checking $ac_header presence" >&5
7451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7452cat >conftest.$ac_ext <<_ACEOF
7453/* confdefs.h. */
7454_ACEOF
7455cat confdefs.h >>conftest.$ac_ext
7456cat >>conftest.$ac_ext <<_ACEOF
7457/* end confdefs.h. */
7458#include <$ac_header>
7459_ACEOF
7460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } >/dev/null; then
7468 if test -s conftest.err; then
7469 ac_cpp_err=$ac_c_preproc_warn_flag
7470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7471 else
7472 ac_cpp_err=
7473 fi
7474else
7475 ac_cpp_err=yes
7476fi
7477if test -z "$ac_cpp_err"; then
7478 ac_header_preproc=yes
7479else
7480 echo "$as_me: failed program was:" >&5
7481sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 ac_header_preproc=no
7484fi
7485rm -f conftest.err conftest.$ac_ext
7486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7487echo "${ECHO_T}$ac_header_preproc" >&6
7488
7489# So? What about this header?
7490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7491 yes:no: )
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7496 ac_header_preproc=yes
7497 ;;
7498 no:yes:* )
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7511 (
7512 cat <<\_ASBOX
7513## ------------------------------------------ ##
7514## Report this to the AC_PACKAGE_NAME lists. ##
7515## ------------------------------------------ ##
7516_ASBOX
7517 ) |
7518 sed "s/^/$as_me: WARNING: /" >&2
7519 ;;
7520esac
7521echo "$as_me:$LINENO: checking for $ac_header" >&5
7522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7523if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526 eval "$as_ac_Header=\$ac_header_preproc"
7527fi
7528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7530
7531fi
7532if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533 cat >>confdefs.h <<_ACEOF
7534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7535_ACEOF
7536
7537fi
7538
7539done
7540
7541echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7542echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7543if test "${ac_cv_header_time+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 cat >conftest.$ac_ext <<_ACEOF
7547/* confdefs.h. */
7548_ACEOF
7549cat confdefs.h >>conftest.$ac_ext
7550cat >>conftest.$ac_ext <<_ACEOF
7551/* end confdefs.h. */
7552#include <sys/types.h>
7553#include <sys/time.h>
7554#include <time.h>
7555
7556int
7557main ()
7558{
7559if ((struct tm *) 0)
7560return 0;
7561 ;
7562 return 0;
7563}
7564_ACEOF
7565rm -f conftest.$ac_objext
7566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
49c96104
SE
7574 { ac_try='test -z "$ac_c_werror_flag"
7575 || test ! -s conftest.err'
2ba49b59
KC
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest.$ac_objext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_header_time=yes
7588else
7589 echo "$as_me: failed program was:" >&5
7590sed 's/^/| /' conftest.$ac_ext >&5
7591
7592ac_cv_header_time=no
7593fi
7594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7595fi
7596echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7597echo "${ECHO_T}$ac_cv_header_time" >&6
7598if test $ac_cv_header_time = yes; then
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define TIME_WITH_SYS_TIME 1
7602_ACEOF
7603
7604fi
7605
7606
7607
7608
7609
7610
7611ac_header_dirent=no
7612for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7613 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7614echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7615echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7616if eval "test \"\${$as_ac_Header+set}\" = set"; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h. */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h. */
7625#include <sys/types.h>
7626#include <$ac_hdr>
7627
7628int
7629main ()
7630{
7631if ((DIR *) 0)
7632return 0;
7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext
7638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
49c96104
SE
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
2ba49b59
KC
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 eval "$as_ac_Header=yes"
7660else
7661 echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
7664eval "$as_ac_Header=no"
7665fi
7666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667fi
7668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7673_ACEOF
7674
7675ac_header_dirent=$ac_hdr; break
7676fi
7677
7678done
7679# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7680if test $ac_header_dirent = dirent.h; then
7681 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7682echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7683if test "${ac_cv_search_opendir+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686 ac_func_search_save_LIBS=$LIBS
7687ac_cv_search_opendir=no
7688cat >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="none required"
7733else
7734 echo "$as_me: failed program was:" >&5
7735sed 's/^/| /' conftest.$ac_ext >&5
7736
7737fi
7738rm -f conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740if test "$ac_cv_search_opendir" = no; then
7741 for ac_lib in dir; do
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7743 cat >conftest.$ac_ext <<_ACEOF
7744/* confdefs.h. */
7745_ACEOF
7746cat confdefs.h >>conftest.$ac_ext
7747cat >>conftest.$ac_ext <<_ACEOF
7748/* end confdefs.h. */
7749
7750/* Override any gcc2 internal prototype to avoid an error. */
7751#ifdef __cplusplus
7752extern "C"
7753#endif
7754/* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7756char opendir ();
7757int
7758main ()
7759{
7760opendir ();
7761 ;
7762 return 0;
7763}
7764_ACEOF
7765rm -f conftest.$ac_objext conftest$ac_exeext
7766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
49c96104
SE
7774 { ac_try='test -z "$ac_c_werror_flag"
7775 || test ! -s conftest.err'
2ba49b59
KC
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 ac_cv_search_opendir="-l$ac_lib"
7788break
7789else
7790 echo "$as_me: failed program was:" >&5
7791sed 's/^/| /' conftest.$ac_ext >&5
7792
7793fi
7794rm -f conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796 done
7797fi
7798LIBS=$ac_func_search_save_LIBS
7799fi
7800echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7801echo "${ECHO_T}$ac_cv_search_opendir" >&6
7802if test "$ac_cv_search_opendir" != no; then
7803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7804
7805fi
7806
7807else
7808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7809echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7810if test "${ac_cv_search_opendir+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 ac_func_search_save_LIBS=$LIBS
7814ac_cv_search_opendir=no
7815cat >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="none required"
7860else
7861 echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864fi
7865rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867if test "$ac_cv_search_opendir" = no; then
7868 for ac_lib in x; do
7869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
7876
7877/* Override any gcc2 internal prototype to avoid an error. */
7878#ifdef __cplusplus
7879extern "C"
7880#endif
7881/* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883char opendir ();
7884int
7885main ()
7886{
7887opendir ();
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
49c96104
SE
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
2ba49b59
KC
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_search_opendir="-l$ac_lib"
7915break
7916else
7917 echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
7920fi
7921rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 done
7924fi
7925LIBS=$ac_func_search_save_LIBS
7926fi
7927echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7928echo "${ECHO_T}$ac_cv_search_opendir" >&6
7929if test "$ac_cv_search_opendir" != no; then
7930 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7931
7932fi
7933
7934fi
7935
7936echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7937echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7938if test "${gcc_cv_header_string+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941 cat >conftest.$ac_ext <<_ACEOF
7942/* confdefs.h. */
7943_ACEOF
7944cat confdefs.h >>conftest.$ac_ext
7945cat >>conftest.$ac_ext <<_ACEOF
7946/* end confdefs.h. */
7947#include <string.h>
7948#include <strings.h>
7949int
7950main ()
7951{
7952
7953 ;
7954 return 0;
7955}
7956_ACEOF
7957rm -f conftest.$ac_objext
7958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
49c96104
SE
7966 { ac_try='test -z "$ac_c_werror_flag"
7967 || test ! -s conftest.err'
2ba49b59
KC
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try='test -s conftest.$ac_objext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 gcc_cv_header_string=yes
7980else
7981 echo "$as_me: failed program was:" >&5
7982sed 's/^/| /' conftest.$ac_ext >&5
7983
7984gcc_cv_header_string=no
7985fi
7986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7987fi
7988echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7989echo "${ECHO_T}$gcc_cv_header_string" >&6
7990if test $gcc_cv_header_string = yes; then
7991
7992cat >>confdefs.h <<\_ACEOF
7993#define STRING_WITH_STRINGS 1
7994_ACEOF
7995
2e0fbf77
JW
7996fi
7997
5464f5a1
NN
7998
7999
8000
8001
8002
8003
8004
633fd09f 8005for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 8006do
5464f5a1
NN
8007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8008echo "$as_me:$LINENO: checking for $ac_func" >&5
8009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8010if eval "test \"\${$as_ac_var+set}\" = set"; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8021#define $ac_func innocuous_$ac_func
8022
252b5132 8023/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8024 which can conflict with char $ac_func (); below.
8025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8026 <limits.h> exists even on freestanding compilers. */
8027
8028#ifdef __STDC__
8029# include <limits.h>
8030#else
8031# include <assert.h>
8032#endif
6be7c12c 8033
5464f5a1 8034#undef $ac_func
252b5132 8035
5464f5a1
NN
8036/* Override any gcc2 internal prototype to avoid an error. */
8037#ifdef __cplusplus
8038extern "C"
8039{
8040#endif
8041/* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8043char $ac_func ();
252b5132
RH
8044/* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048choke me
8049#else
5464f5a1
NN
8050char (*f) () = $ac_func;
8051#endif
8052#ifdef __cplusplus
8053}
252b5132
RH
8054#endif
8055
5464f5a1
NN
8056int
8057main ()
8058{
8059return f != $ac_func;
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext conftest$ac_exeext
8065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066 (eval $ac_link) 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
49c96104
SE
8073 { ac_try='test -z "$ac_c_werror_flag"
8074 || test ! -s conftest.err'
5464f5a1
NN
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 eval "$as_ac_var=yes"
8087else
8088 echo "$as_me: failed program was:" >&5
8089sed 's/^/| /' conftest.$ac_ext >&5
8090
8091eval "$as_ac_var=no"
8092fi
8093rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095fi
8096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8098if test `eval echo '${'$as_ac_var'}'` = yes; then
8099 cat >>confdefs.h <<_ACEOF
8100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8101_ACEOF
252b5132 8102
252b5132
RH
8103fi
8104done
8105
5464f5a1 8106
49c97a80
ILT
8107for ac_func in strtoull
8108do
5464f5a1
NN
8109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8110echo "$as_me:$LINENO: checking for $ac_func" >&5
8111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8112if eval "test \"\${$as_ac_var+set}\" = set"; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8123#define $ac_func innocuous_$ac_func
8124
49c97a80 8125/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8126 which can conflict with char $ac_func (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8129
8130#ifdef __STDC__
8131# include <limits.h>
8132#else
8133# include <assert.h>
8134#endif
49c97a80 8135
5464f5a1 8136#undef $ac_func
49c97a80 8137
5464f5a1
NN
8138/* Override any gcc2 internal prototype to avoid an error. */
8139#ifdef __cplusplus
8140extern "C"
8141{
8142#endif
8143/* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145char $ac_func ();
49c97a80
ILT
8146/* The GNU C library defines this for functions which it implements
8147 to always fail with ENOSYS. Some functions are actually named
8148 something starting with __ and the normal name is an alias. */
8149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8150choke me
8151#else
5464f5a1
NN
8152char (*f) () = $ac_func;
8153#endif
8154#ifdef __cplusplus
8155}
49c97a80
ILT
8156#endif
8157
5464f5a1
NN
8158int
8159main ()
8160{
8161return f != $ac_func;
8162 ;
8163 return 0;
8164}
8165_ACEOF
8166rm -f conftest.$ac_objext conftest$ac_exeext
8167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8168 (eval $ac_link) 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
49c96104
SE
8175 { ac_try='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
5464f5a1
NN
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try='test -s conftest$ac_exeext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 eval "$as_ac_var=yes"
8189else
8190 echo "$as_me: failed program was:" >&5
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193eval "$as_ac_var=no"
8194fi
8195rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197fi
8198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8200if test `eval echo '${'$as_ac_var'}'` = yes; then
8201 cat >>confdefs.h <<_ACEOF
8202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8203_ACEOF
49c97a80 8204
49c97a80
ILT
8205fi
8206done
8207
6be7c12c 8208
2e9ebff5
JG
8209echo "$as_me:$LINENO: checking whether basename is declared" >&5
8210echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8211if test "${ac_cv_have_decl_basename+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214 cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
ec7b76fe 8220$ac_includes_default
2e9ebff5
JG
8221int
8222main ()
8223{
8224#ifndef basename
8225 char *p = (char *) basename;
8226#endif
8227
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232rm -f conftest.$ac_objext
8233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
49c96104
SE
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
2e9ebff5
JG
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_have_decl_basename=yes
8255else
8256 echo "$as_me: failed program was:" >&5
8257sed 's/^/| /' conftest.$ac_ext >&5
8258
8259ac_cv_have_decl_basename=no
8260fi
8261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8262fi
8263echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8264echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8265if test $ac_cv_have_decl_basename = yes; then
8266
8267cat >>confdefs.h <<_ACEOF
8268#define HAVE_DECL_BASENAME 1
8269_ACEOF
8270
8271
8272else
8273 cat >>confdefs.h <<_ACEOF
8274#define HAVE_DECL_BASENAME 0
8275_ACEOF
8276
8277
8278fi
8279
8280
ec7b76fe
JG
8281echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8282echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8283if test "${ac_cv_have_decl_ftello+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */
8292$ac_includes_default
8293int
8294main ()
8295{
8296#ifndef ftello
8297 char *p = (char *) ftello;
8298#endif
8299
8300 ;
8301 return 0;
8302}
8303_ACEOF
8304rm -f conftest.$ac_objext
8305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306 (eval $ac_compile) 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
49c96104
SE
8313 { ac_try='test -z "$ac_c_werror_flag"
8314 || test ! -s conftest.err'
ec7b76fe
JG
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest.$ac_objext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_have_decl_ftello=yes
8327else
8328 echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331ac_cv_have_decl_ftello=no
8332fi
8333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8334fi
8335echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8336echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8337if test $ac_cv_have_decl_ftello = yes; then
8338
8339cat >>confdefs.h <<_ACEOF
8340#define HAVE_DECL_FTELLO 1
8341_ACEOF
8342
8343
8344else
8345 cat >>confdefs.h <<_ACEOF
8346#define HAVE_DECL_FTELLO 0
8347_ACEOF
8348
8349
8350fi
8351
8352
8353echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8354echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8355if test "${ac_cv_have_decl_ftello64+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364$ac_includes_default
8365int
8366main ()
8367{
8368#ifndef ftello64
8369 char *p = (char *) ftello64;
8370#endif
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
49c96104
SE
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
ec7b76fe
JG
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_cv_have_decl_ftello64=yes
8399else
8400 echo "$as_me: failed program was:" >&5
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403ac_cv_have_decl_ftello64=no
8404fi
8405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406fi
8407echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8408echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8409if test $ac_cv_have_decl_ftello64 = yes; then
8410
8411cat >>confdefs.h <<_ACEOF
8412#define HAVE_DECL_FTELLO64 1
8413_ACEOF
8414
8415
8416else
8417 cat >>confdefs.h <<_ACEOF
8418#define HAVE_DECL_FTELLO64 0
8419_ACEOF
8420
8421
8422fi
8423
8424
8425echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8426echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8427if test "${ac_cv_have_decl_fseeko+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
8436$ac_includes_default
8437int
8438main ()
8439{
8440#ifndef fseeko
8441 char *p = (char *) fseeko;
8442#endif
8443
8444 ;
8445 return 0;
8446}
8447_ACEOF
8448rm -f conftest.$ac_objext
8449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
49c96104
SE
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
ec7b76fe
JG
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_have_decl_fseeko=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475ac_cv_have_decl_fseeko=no
8476fi
8477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478fi
8479echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8480echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8481if test $ac_cv_have_decl_fseeko = yes; then
8482
8483cat >>confdefs.h <<_ACEOF
8484#define HAVE_DECL_FSEEKO 1
8485_ACEOF
8486
8487
8488else
8489 cat >>confdefs.h <<_ACEOF
8490#define HAVE_DECL_FSEEKO 0
8491_ACEOF
8492
8493
8494fi
8495
8496
8497echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8498echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8499if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
8508$ac_includes_default
8509int
8510main ()
8511{
8512#ifndef fseeko64
8513 char *p = (char *) fseeko64;
8514#endif
8515
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext
8521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
49c96104
SE
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
ec7b76fe
JG
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_have_decl_fseeko64=yes
8543else
8544 echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547ac_cv_have_decl_fseeko64=no
8548fi
8549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550fi
8551echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8552echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8553if test $ac_cv_have_decl_fseeko64 = yes; then
8554
8555cat >>confdefs.h <<_ACEOF
8556#define HAVE_DECL_FSEEKO64 1
8557_ACEOF
8558
8559
8560else
8561 cat >>confdefs.h <<_ACEOF
8562#define HAVE_DECL_FSEEKO64 0
8563_ACEOF
8564
8565
8566fi
8567
8568
2e9ebff5 8569
6be7c12c 8570
252b5132 8571case "${host}" in
855b0be7 8572*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
8573
8574cat >>confdefs.h <<\_ACEOF
252b5132 8575#define USE_BINARY_FOPEN 1
5464f5a1 8576_ACEOF
252b5132
RH
8577 ;;
8578esac
8579
d34a2b1d
JG
8580echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8581echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8582if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 8583 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8584else
5464f5a1
NN
8585 cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
d34a2b1d 8591$ac_includes_default
5464f5a1
NN
8592int
8593main ()
8594{
d34a2b1d
JG
8595#ifndef ffs
8596 char *p = (char *) ffs;
8597#endif
8598
5464f5a1
NN
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603rm -f conftest.$ac_objext
8604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
49c96104
SE
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
5464f5a1
NN
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
d34a2b1d 8625 ac_cv_have_decl_ffs=yes
252b5132 8626else
5464f5a1
NN
8627 echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
8629
d34a2b1d 8630ac_cv_have_decl_ffs=no
252b5132 8631fi
5464f5a1 8632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8633fi
d34a2b1d
JG
8634echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8635echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8636if test $ac_cv_have_decl_ffs = yes; then
252b5132 8637
d34a2b1d
JG
8638cat >>confdefs.h <<_ACEOF
8639#define HAVE_DECL_FFS 1
8640_ACEOF
5464f5a1 8641
d34a2b1d
JG
8642
8643else
8644 cat >>confdefs.h <<_ACEOF
8645#define HAVE_DECL_FFS 0
5464f5a1 8646_ACEOF
252b5132 8647
d34a2b1d 8648
252b5132
RH
8649fi
8650
d34a2b1d
JG
8651
8652echo "$as_me:$LINENO: checking whether free is declared" >&5
8653echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8654if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 8655 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8656else
5464f5a1
NN
8657 cat >conftest.$ac_ext <<_ACEOF
8658/* confdefs.h. */
8659_ACEOF
8660cat confdefs.h >>conftest.$ac_ext
8661cat >>conftest.$ac_ext <<_ACEOF
8662/* end confdefs.h. */
d34a2b1d 8663$ac_includes_default
5464f5a1
NN
8664int
8665main ()
8666{
d34a2b1d
JG
8667#ifndef free
8668 char *p = (char *) free;
8669#endif
8670
5464f5a1
NN
8671 ;
8672 return 0;
8673}
8674_ACEOF
8675rm -f conftest.$ac_objext
8676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677 (eval $ac_compile) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
49c96104
SE
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
5464f5a1
NN
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest.$ac_objext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
d34a2b1d 8697 ac_cv_have_decl_free=yes
252b5132 8698else
5464f5a1
NN
8699 echo "$as_me: failed program was:" >&5
8700sed 's/^/| /' conftest.$ac_ext >&5
8701
d34a2b1d 8702ac_cv_have_decl_free=no
252b5132 8703fi
5464f5a1 8704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8705fi
d34a2b1d
JG
8706echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8707echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8708if test $ac_cv_have_decl_free = yes; then
8709
8710cat >>confdefs.h <<_ACEOF
8711#define HAVE_DECL_FREE 1
8712_ACEOF
252b5132 8713
5464f5a1 8714
d34a2b1d
JG
8715else
8716 cat >>confdefs.h <<_ACEOF
8717#define HAVE_DECL_FREE 0
5464f5a1 8718_ACEOF
252b5132 8719
d34a2b1d 8720
252b5132
RH
8721fi
8722
d34a2b1d
JG
8723
8724echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8725echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8726if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 8727 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8728else
5464f5a1
NN
8729 cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
d34a2b1d 8735$ac_includes_default
5464f5a1
NN
8736int
8737main ()
8738{
d34a2b1d
JG
8739#ifndef getenv
8740 char *p = (char *) getenv;
8741#endif
8742
5464f5a1
NN
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext
8748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
49c96104
SE
8756 { ac_try='test -z "$ac_c_werror_flag"
8757 || test ! -s conftest.err'
5464f5a1
NN
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
d34a2b1d 8769 ac_cv_have_decl_getenv=yes
252b5132 8770else
5464f5a1
NN
8771 echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
d34a2b1d 8774ac_cv_have_decl_getenv=no
252b5132 8775fi
5464f5a1 8776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8777fi
d34a2b1d
JG
8778echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8779echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8780if test $ac_cv_have_decl_getenv = yes; then
252b5132 8781
d34a2b1d
JG
8782cat >>confdefs.h <<_ACEOF
8783#define HAVE_DECL_GETENV 1
8784_ACEOF
5464f5a1 8785
d34a2b1d
JG
8786
8787else
8788 cat >>confdefs.h <<_ACEOF
8789#define HAVE_DECL_GETENV 0
5464f5a1 8790_ACEOF
252b5132 8791
d34a2b1d 8792
252b5132
RH
8793fi
8794
d34a2b1d
JG
8795
8796echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8797echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8798if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 8799 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8800else
5464f5a1
NN
8801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
d34a2b1d 8807$ac_includes_default
5464f5a1
NN
8808int
8809main ()
8810{
d34a2b1d
JG
8811#ifndef malloc
8812 char *p = (char *) malloc;
8813#endif
8814
5464f5a1
NN
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819rm -f conftest.$ac_objext
8820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
49c96104
SE
8828 { ac_try='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
5464f5a1
NN
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest.$ac_objext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
d34a2b1d 8841 ac_cv_have_decl_malloc=yes
252b5132 8842else
5464f5a1
NN
8843 echo "$as_me: failed program was:" >&5
8844sed 's/^/| /' conftest.$ac_ext >&5
8845
d34a2b1d 8846ac_cv_have_decl_malloc=no
252b5132 8847fi
5464f5a1 8848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8849fi
d34a2b1d
JG
8850echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8851echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8852if test $ac_cv_have_decl_malloc = yes; then
252b5132 8853
d34a2b1d
JG
8854cat >>confdefs.h <<_ACEOF
8855#define HAVE_DECL_MALLOC 1
8856_ACEOF
5464f5a1 8857
d34a2b1d
JG
8858
8859else
8860 cat >>confdefs.h <<_ACEOF
8861#define HAVE_DECL_MALLOC 0
5464f5a1 8862_ACEOF
252b5132 8863
d34a2b1d 8864
252b5132
RH
8865fi
8866
d34a2b1d
JG
8867
8868echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8869echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8870if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 8871 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8872else
5464f5a1
NN
8873 cat >conftest.$ac_ext <<_ACEOF
8874/* confdefs.h. */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h. */
d34a2b1d 8879$ac_includes_default
5464f5a1
NN
8880int
8881main ()
8882{
d34a2b1d
JG
8883#ifndef realloc
8884 char *p = (char *) realloc;
8885#endif
8886
5464f5a1
NN
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891rm -f conftest.$ac_objext
8892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
49c96104
SE
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
5464f5a1
NN
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
d34a2b1d 8913 ac_cv_have_decl_realloc=yes
252b5132 8914else
5464f5a1
NN
8915 echo "$as_me: failed program was:" >&5
8916sed 's/^/| /' conftest.$ac_ext >&5
8917
d34a2b1d 8918ac_cv_have_decl_realloc=no
252b5132 8919fi
5464f5a1 8920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8921fi
d34a2b1d
JG
8922echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8923echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8924if test $ac_cv_have_decl_realloc = yes; then
8925
8926cat >>confdefs.h <<_ACEOF
8927#define HAVE_DECL_REALLOC 1
8928_ACEOF
252b5132 8929
5464f5a1 8930
d34a2b1d
JG
8931else
8932 cat >>confdefs.h <<_ACEOF
8933#define HAVE_DECL_REALLOC 0
efa9bda4
AL
8934_ACEOF
8935
d34a2b1d 8936
efa9bda4
AL
8937fi
8938
d34a2b1d 8939
be5cacdb
L
8940echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8941echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8942if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944else
8945 cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
8951$ac_includes_default
8952int
8953main ()
8954{
8955#ifndef stpcpy
8956 char *p = (char *) stpcpy;
8957#endif
8958
8959 ;
8960 return 0;
8961}
8962_ACEOF
8963rm -f conftest.$ac_objext
8964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965 (eval $ac_compile) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
49c96104
SE
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
be5cacdb
L
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_have_decl_stpcpy=yes
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990ac_cv_have_decl_stpcpy=no
8991fi
8992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8993fi
8994echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8995echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8996if test $ac_cv_have_decl_stpcpy = yes; then
8997
8998cat >>confdefs.h <<_ACEOF
8999#define HAVE_DECL_STPCPY 1
9000_ACEOF
9001
9002
9003else
9004 cat >>confdefs.h <<_ACEOF
9005#define HAVE_DECL_STPCPY 0
9006_ACEOF
9007
9008
9009fi
9010
9011
d34a2b1d
JG
9012echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9013echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9014if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016else
9017 cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */
d34a2b1d 9023$ac_includes_default
efa9bda4
AL
9024int
9025main ()
9026{
d34a2b1d
JG
9027#ifndef strstr
9028 char *p = (char *) strstr;
9029#endif
9030
efa9bda4
AL
9031 ;
9032 return 0;
9033}
9034_ACEOF
9035rm -f conftest.$ac_objext
9036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037 (eval $ac_compile) 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
49c96104
SE
9044 { ac_try='test -z "$ac_c_werror_flag"
9045 || test ! -s conftest.err'
efa9bda4
AL
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest.$ac_objext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
d34a2b1d 9057 ac_cv_have_decl_strstr=yes
efa9bda4
AL
9058else
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
d34a2b1d 9062ac_cv_have_decl_strstr=no
efa9bda4
AL
9063fi
9064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065fi
d34a2b1d
JG
9066echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9067echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9068if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 9069
d34a2b1d
JG
9070cat >>confdefs.h <<_ACEOF
9071#define HAVE_DECL_STRSTR 1
9072_ACEOF
efa9bda4 9073
d34a2b1d
JG
9074
9075else
9076 cat >>confdefs.h <<_ACEOF
9077#define HAVE_DECL_STRSTR 0
5464f5a1 9078_ACEOF
252b5132 9079
d34a2b1d 9080
252b5132
RH
9081fi
9082
6be7c12c 9083
36527912
AJ
9084echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9085echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9086if test "${ac_cv_have_decl_snprintf+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088else
9089 cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095$ac_includes_default
9096int
9097main ()
9098{
9099#ifndef snprintf
9100 char *p = (char *) snprintf;
9101#endif
9102
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext
9108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
49c96104
SE
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
36527912
AJ
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_have_decl_snprintf=yes
9130else
9131 echo "$as_me: failed program was:" >&5
9132sed 's/^/| /' conftest.$ac_ext >&5
9133
9134ac_cv_have_decl_snprintf=no
9135fi
9136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9139echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9140if test $ac_cv_have_decl_snprintf = yes; then
9141
9142cat >>confdefs.h <<_ACEOF
9143#define HAVE_DECL_SNPRINTF 1
9144_ACEOF
9145
9146
9147else
9148 cat >>confdefs.h <<_ACEOF
9149#define HAVE_DECL_SNPRINTF 0
9150_ACEOF
9151
9152
9153fi
9154
9155
9156echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9157echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9158if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161 cat >conftest.$ac_ext <<_ACEOF
9162/* confdefs.h. */
9163_ACEOF
9164cat confdefs.h >>conftest.$ac_ext
9165cat >>conftest.$ac_ext <<_ACEOF
9166/* end confdefs.h. */
9167$ac_includes_default
9168int
9169main ()
9170{
9171#ifndef vsnprintf
9172 char *p = (char *) vsnprintf;
9173#endif
9174
9175 ;
9176 return 0;
9177}
9178_ACEOF
9179rm -f conftest.$ac_objext
9180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
49c96104
SE
9188 { ac_try='test -z "$ac_c_werror_flag"
9189 || test ! -s conftest.err'
36527912
AJ
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest.$ac_objext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 ac_cv_have_decl_vsnprintf=yes
9202else
9203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
9206ac_cv_have_decl_vsnprintf=no
9207fi
9208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209fi
9210echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9211echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9212if test $ac_cv_have_decl_vsnprintf = yes; then
9213
9214cat >>confdefs.h <<_ACEOF
9215#define HAVE_DECL_VSNPRINTF 1
9216_ACEOF
9217
9218
9219else
9220 cat >>confdefs.h <<_ACEOF
9221#define HAVE_DECL_VSNPRINTF 0
9222_ACEOF
9223
9224
9225fi
9226
9227
d34a2b1d 9228
252b5132
RH
9229# If we are configured native, pick a core file support file.
9230COREFILE=
9231COREFLAG=
9232TRAD_HEADER=
9233if test "${target}" = "${host}"; then
9234 case "${host}" in
13dfd2d0 9235 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9236 COREFILE=''
9237 ;;
ed84e695 9238 alpha*-*-linux-*)
252b5132
RH
9239 COREFILE=trad-core.lo
9240 TRAD_HEADER='"hosts/alphalinux.h"'
9241 ;;
690cc98b
NC
9242 alpha*-*-netbsd* | alpha*-*-openbsd*)
9243 COREFILE=netbsd-core.lo
9244 ;;
252b5132 9245 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9246 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9247 COREFILE='' ;;
e33533a4
MK
9248 arm-*-netbsd* | arm-*-openbsd*)
9249 COREFILE=netbsd-core.lo
9250 ;;
252b5132
RH
9251 arm-*-riscix) COREFILE=trad-core.lo ;;
9252 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9253 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9254 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9255 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9256 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9257 hppa*-*-netbsd* | hppa*-*-openbsd*)
9258 COREFILE=netbsd-core.lo
9259 ;;
9260
dc810e39 9261 i370-*-*)
5b93d8bb
AM
9262 COREFILE=trad-core.lo
9263 TRAD_HEADER='"hosts/i370linux.h"'
9264 ;;
9265
80c7c40a 9266 i[3-7]86-sequent-bsd*)
5b93d8bb 9267 COREFILE=trad-core.lo
252b5132
RH
9268 TRAD_HEADER='"hosts/symmetry.h"'
9269 ;;
80c7c40a
NC
9270 i[3-7]86-sequent-sysv4*) ;;
9271 i[3-7]86-sequent-sysv*)
252b5132
RH
9272 COREFILE=trad-core.lo
9273 TRAD_HEADER='"hosts/symmetry.h"'
9274 ;;
80c7c40a 9275 i[3-7]86-*-bsdi)
7e3b3466
NC
9276 COREFILE=
9277 ;;
d2bef492 9278 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
9279 COREFILE=trad-core.lo
9280 TRAD_HEADER='"hosts/i386bsd.h"'
9281 ;;
13dfd2d0 9282 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9283 COREFILE=''
9284 TRAD_HEADER='"hosts/i386bsd.h"'
9285 ;;
4615568e 9286 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9287 COREFILE=netbsd-core.lo
9288 ;;
80c7c40a 9289 i[3-7]86-esix-sysv3*)
252b5132
RH
9290 COREFILE=trad-core.lo
9291 TRAD_HEADER='"hosts/esix.h"'
9292 ;;
80c7c40a 9293 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9294 COREFILE=sco5-core.lo
9295 ;;
80c7c40a 9296 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9297 COREFILE=trad-core.lo
9298 TRAD_HEADER='"hosts/i386sco.h"'
9299 ;;
80c7c40a 9300 i[3-7]86-*-mach3*)
252b5132
RH
9301 COREFILE=trad-core.lo
9302 TRAD_HEADER='"hosts/i386mach3.h"'
9303 ;;
ed84e695 9304 i[3-7]86-*-linux-*)
252b5132
RH
9305 COREFILE=trad-core.lo
9306 TRAD_HEADER='"hosts/i386linux.h"'
9307 ;;
80c7c40a
NC
9308 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9309 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9310 i860-*-mach3* | i860-*-osf1*)
9311 COREFILE=trad-core.lo
9312 TRAD_HEADER='"hosts/i860mach3.h"'
9313 ;;
252b5132
RH
9314 mips-*-netbsd* | mips*-*-openbsd*)
9315 COREFILE=netbsd-core.lo
9316 ;;
9317 mips-dec-*)
9318 COREFILE=trad-core.lo
9319 TRAD_HEADER='"hosts/decstation.h"'
9320 ;;
9321 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9322 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9323 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9324 mips-*-sysv4*) ;;
9325 mips-*-sysv* | mips-*-riscos*)
9326 COREFILE=trad-core.lo
9327 TRAD_HEADER='"hosts/riscos.h"'
9328 ;;
9329 mips-sony-bsd*)
9330 COREFILE=trad-core.lo
9331 TRAD_HEADER='"hosts/news-mips.h"'
9332 ;;
9333 m68*-bull*-sysv*)
9334 COREFILE=trad-core.lo
9335 TRAD_HEADER='"hosts/dpx2.h"'
9336 ;;
9337 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9338 m68*-hp-bsd*)
9339 COREFILE=trad-core.lo
9340 TRAD_HEADER='"hosts/hp300bsd.h"'
9341 ;;
ed84e695 9342 m68*-*-linux-*)
252b5132
RH
9343 COREFILE=trad-core.lo
9344 TRAD_HEADER='"hosts/m68klinux.h"'
9345 ;;
9346 m68*-motorola-sysv*)
9347 COREFILE=trad-core.lo
9348 TRAD_HEADER='"hosts/delta68.h"'
9349 ;;
9350 m68*-sony-*)
9351 COREFILE=trad-core.lo
9352 TRAD_HEADER='"hosts/news.h"'
9353 ;;
9354 m68*-*-netbsd* | m68*-*-openbsd*)
9355 COREFILE=netbsd-core.lo
9356 ;;
9357 m68*-apple-aux*)
9358 COREFILE=trad-core.lo
9359 TRAD_HEADER='"hosts/m68kaux.h"'
9360 ;;
eb1e0e80
NC
9361 m88*-*-sysv4*)
9362 ;;
9363 m88*-motorola-sysv*)
9364 COREFILE=ptrace-core.lo
9365 ;;
252b5132
RH
9366 m88*-*-mach3*)
9367 COREFILE=trad-core.lo
9368 TRAD_HEADER='"hosts/m88kmach3.h"'
9369 ;;
c6f8758f
NC
9370 m88*-*-openbsd*)
9371 COREFILE=netbsd-core.lo
9372 ;;
252b5132
RH
9373 ns32k-pc532-mach)
9374 COREFILE=trad-core.lo
9375 TRAD_HEADER='"hosts/pc532mach.h"'
9376 ;;
9377 ns32k-*-netbsd* | ns32k-*-openbsd*)
9378 COREFILE=netbsd-core.lo
9379 ;;
eb1e0e80
NC
9380 rs6000-*-lynx*)
9381 COREFILE=lynx-core.lo
9382 ;;
9383 rs6000-*-aix5.* | powerpc-*-aix5.*)
9384 COREFILE=rs6000-core.lo
9385 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9386 ;;
83954261 9387 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9388 COREFILE=rs6000-core.lo
9389 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9390 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9391 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9392 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9393echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9395/* confdefs.h. */
9396_ACEOF
9397cat confdefs.h >>conftest.$ac_ext
9398cat >>conftest.$ac_ext <<_ACEOF
9399/* end confdefs.h. */
83954261 9400#include <core.h>
5464f5a1
NN
9401int
9402main ()
9403{
83954261 9404struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest.$ac_objext
9410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9411 (eval $ac_compile) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
49c96104
SE
9418 { ac_try='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
5464f5a1
NN
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest.$ac_objext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431
9432cat >>confdefs.h <<\_ACEOF
83954261 9433#define HAVE_ST_C_IMPL 1
5464f5a1 9434_ACEOF
83954261 9435
5464f5a1
NN
9436 echo "$as_me:$LINENO: result: yes" >&5
9437echo "${ECHO_T}yes" >&6
83954261 9438else
5464f5a1
NN
9439 echo "$as_me: failed program was:" >&5
9440sed 's/^/| /' conftest.$ac_ext >&5
9441
9442echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
83954261 9444fi
5464f5a1 9445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9446 ;;
252b5132
RH
9447 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9448 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9449 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9450 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9451 powerpc-*-beos*) ;;
13dfd2d0
NC
9452 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9453 COREFILE='' ;;
252b5132 9454 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9455 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9456 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
9457 sh*-*-netbsd* | sh*-*-openbsd*)
9458 COREFILE=netbsd-core.lo
9459 ;;
a9bf1154 9460 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9461 COREFILE=netbsd-core.lo
9462 ;;
9463 tahoe-*-*)
9464 COREFILE=trad-core.lo
9465 TRAD_HEADER='"hosts/tahoe.h"'
9466 ;;
de6e5e1a
NC
9467 vax-*-netbsd* | vax-*-openbsd*)
9468 COREFILE=netbsd-core.lo
9469 ;;
252b5132
RH
9470 vax-*-ultrix2*)
9471 COREFILE=trad-core.lo
9472 TRAD_HEADER='"hosts/vaxult2.h"'
9473 ;;
9474 vax-*-ultrix*)
9475 COREFILE=trad-core.lo
9476 TRAD_HEADER='"hosts/vaxult2.h"'
9477 ;;
ed84e695 9478 vax-*-linux-*)
f8fc3443
NC
9479 COREFILE=trad-core.lo
9480 TRAD_HEADER='"hosts/vaxlinux.h"'
9481 ;;
252b5132
RH
9482 vax-*-*)
9483 COREFILE=trad-core.lo
9484 TRAD_HEADER='"hosts/vaxbsd.h"'
9485 ;;
85cfd8d3
MK
9486 x86_64-*-netbsd* | x86_64-*-openbsd*)
9487 COREFILE=netbsd-core.lo
9488 ;;
252b5132
RH
9489 esac
9490
9491 case "$COREFILE" in
9492 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9493 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9494 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9495 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9496 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9497 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9498 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9499 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9500 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9501 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9502 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9503 esac
9504
9505 # ELF corefile support has several flavors, but all of
9506 # them use something called <sys/procfs.h>
5464f5a1
NN
9507
9508for ac_header in sys/procfs.h
252b5132 9509do
5464f5a1
NN
9510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9511if eval "test \"\${$as_ac_Header+set}\" = set"; then
9512 echo "$as_me:$LINENO: checking for $ac_header" >&5
9513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9514if eval "test \"\${$as_ac_Header+set}\" = set"; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516fi
9517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9519else
9520 # Is the header compilable?
9521echo "$as_me:$LINENO: checking $ac_header usability" >&5
9522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529$ac_includes_default
9530#include <$ac_header>
9531_ACEOF
9532rm -f conftest.$ac_objext
9533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
49c96104
SE
9541 { ac_try='test -z "$ac_c_werror_flag"
9542 || test ! -s conftest.err'
5464f5a1
NN
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_header_compiler=yes
9555else
9556 echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559ac_header_compiler=no
9560fi
9561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9563echo "${ECHO_T}$ac_header_compiler" >&6
9564
9565# Is the header present?
9566echo "$as_me:$LINENO: checking $ac_header presence" >&5
9567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9568cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h. */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
9573/* end confdefs.h. */
9574#include <$ac_header>
9575_ACEOF
9576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } >/dev/null; then
9584 if test -s conftest.err; then
9585 ac_cpp_err=$ac_c_preproc_warn_flag
9586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9587 else
9588 ac_cpp_err=
9589 fi
252b5132 9590else
5464f5a1 9591 ac_cpp_err=yes
252b5132 9592fi
5464f5a1
NN
9593if test -z "$ac_cpp_err"; then
9594 ac_header_preproc=yes
9595else
9596 echo "$as_me: failed program was:" >&5
9597sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_header_preproc=no
252b5132 9600fi
5464f5a1
NN
9601rm -f conftest.err conftest.$ac_ext
9602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9603echo "${ECHO_T}$ac_header_preproc" >&6
9604
9605# So? What about this header?
9606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9607 yes:no: )
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9612 ac_header_preproc=yes
9613 ;;
9614 no:yes:* )
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9627 (
9628 cat <<\_ASBOX
9629## ------------------------------------------ ##
9630## Report this to the AC_PACKAGE_NAME lists. ##
9631## ------------------------------------------ ##
9632_ASBOX
9633 ) |
9634 sed "s/^/$as_me: WARNING: /" >&2
9635 ;;
9636esac
9637echo "$as_me:$LINENO: checking for $ac_header" >&5
9638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9641else
5464f5a1
NN
9642 eval "$as_ac_Header=\$ac_header_preproc"
9643fi
9644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9646
252b5132 9647fi
5464f5a1
NN
9648if test `eval echo '${'$as_ac_Header'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651_ACEOF
9652
9653fi
9654
252b5132
RH
9655done
9656
9657 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9658 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9659echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9660 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663 cat >conftest.$ac_ext <<_ACEOF
9664/* confdefs.h. */
9665_ACEOF
9666cat confdefs.h >>conftest.$ac_ext
9667cat >>conftest.$ac_ext <<_ACEOF
9668/* end confdefs.h. */
7ee38065
MS
9669
9670#define _SYSCALL32
252b5132 9671#include <sys/procfs.h>
5464f5a1
NN
9672int
9673main ()
9674{
252b5132 9675prstatus_t avar
5464f5a1
NN
9676 ;
9677 return 0;
9678}
9679_ACEOF
9680rm -f conftest.$ac_objext
9681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682 (eval $ac_compile) 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
49c96104
SE
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
5464f5a1
NN
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
9702 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9703else
5464f5a1
NN
9704 echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707bfd_cv_have_sys_procfs_type_prstatus_t=no
9708
252b5132 9709fi
5464f5a1 9710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9711fi
9712
9713 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9714
9715cat >>confdefs.h <<\_ACEOF
252b5132 9716#define HAVE_PRSTATUS_T 1
5464f5a1 9717_ACEOF
252b5132
RH
9718
9719 fi
5464f5a1
NN
9720 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9721echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9722
5464f5a1
NN
9723 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9724echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9725 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9727else
5464f5a1
NN
9728 cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
7ee38065
MS
9734
9735#define _SYSCALL32
9736#include <sys/procfs.h>
5464f5a1
NN
9737int
9738main ()
9739{
7ee38065 9740prstatus32_t avar
5464f5a1
NN
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext
9746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
49c96104
SE
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
5464f5a1
NN
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7ee38065
MS
9767 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9768else
5464f5a1
NN
9769 echo "$as_me: failed program was:" >&5
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772bfd_cv_have_sys_procfs_type_prstatus32_t=no
9773
7ee38065 9774fi
5464f5a1 9775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9776fi
9777
9778 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
9779
9780cat >>confdefs.h <<\_ACEOF
7ee38065 9781#define HAVE_PRSTATUS32_T 1
5464f5a1 9782_ACEOF
7ee38065
MS
9783
9784 fi
5464f5a1
NN
9785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9786echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 9787
5464f5a1
NN
9788 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9789echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9790 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9792else
5464f5a1
NN
9793 cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
7ee38065
MS
9799
9800#define _SYSCALL32
252b5132 9801#include <sys/procfs.h>
5464f5a1
NN
9802int
9803main ()
9804{
252b5132 9805prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810rm -f conftest.$ac_objext
9811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
49c96104
SE
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
5464f5a1
NN
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
9832 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9833else
5464f5a1
NN
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9838
252b5132 9839fi
5464f5a1 9840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9841fi
9842
9843 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
9844
9845cat >>confdefs.h <<\_ACEOF
252b5132 9846#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 9847_ACEOF
252b5132
RH
9848
9849 fi
5464f5a1
NN
9850 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9851echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 9852
5464f5a1
NN
9853 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9854echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9855 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9857else
5464f5a1
NN
9858 cat >conftest.$ac_ext <<_ACEOF
9859/* confdefs.h. */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h. */
7ee38065
MS
9864
9865#define _SYSCALL32
9866#include <sys/procfs.h>
5464f5a1
NN
9867int
9868main ()
9869{
7ee38065 9870prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9871 ;
9872 return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext
9876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
49c96104
SE
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
5464f5a1
NN
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7ee38065
MS
9897 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9898else
5464f5a1
NN
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9903
7ee38065 9904fi
5464f5a1 9905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9906fi
9907
9908 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
9909
9910cat >>confdefs.h <<\_ACEOF
7ee38065 9911#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 9912_ACEOF
7ee38065
MS
9913
9914 fi
5464f5a1
NN
9915 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9916echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 9917
5464f5a1
NN
9918 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9919echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9920 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9922else
5464f5a1
NN
9923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h. */
7ee38065
MS
9929
9930#define _SYSCALL32
252b5132 9931#include <sys/procfs.h>
5464f5a1
NN
9932int
9933main ()
9934{
252b5132 9935pstatus_t avar
5464f5a1
NN
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext
9941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
49c96104
SE
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
5464f5a1
NN
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
9962 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9963else
5464f5a1
NN
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967bfd_cv_have_sys_procfs_type_pstatus_t=no
9968
252b5132 9969fi
5464f5a1 9970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9971fi
9972
9973 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
9974
9975cat >>confdefs.h <<\_ACEOF
252b5132 9976#define HAVE_PSTATUS_T 1
5464f5a1 9977_ACEOF
252b5132
RH
9978
9979 fi
5464f5a1
NN
9980 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9981echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 9982
5464f5a1
NN
9983 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9984echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9985 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 9987else
5464f5a1
NN
9988 cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h. */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h. */
f572a39d
AM
9994
9995#define _SYSCALL32
9996#include <sys/procfs.h>
5464f5a1
NN
9997int
9998main ()
9999{
f572a39d 10000pxstatus_t avar
5464f5a1
NN
10001 ;
10002 return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext
10006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
49c96104
SE
10014 { ac_try='test -z "$ac_c_werror_flag"
10015 || test ! -s conftest.err'
5464f5a1
NN
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
f572a39d
AM
10027 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10028else
5464f5a1
NN
10029 echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032bfd_cv_have_sys_procfs_type_pxstatus_t=no
10033
f572a39d 10034fi
5464f5a1 10035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10036fi
10037
10038 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10039
10040cat >>confdefs.h <<\_ACEOF
f572a39d 10041#define HAVE_PXSTATUS_T 1
5464f5a1 10042_ACEOF
f572a39d
AM
10043
10044 fi
5464f5a1
NN
10045 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10046echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10047
5464f5a1
NN
10048 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10049echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10050 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10052else
5464f5a1
NN
10053 cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h. */
7ee38065
MS
10059
10060#define _SYSCALL32
10061#include <sys/procfs.h>
5464f5a1
NN
10062int
10063main ()
10064{
7ee38065 10065pstatus32_t avar
5464f5a1
NN
10066 ;
10067 return 0;
10068}
10069_ACEOF
10070rm -f conftest.$ac_objext
10071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072 (eval $ac_compile) 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
49c96104
SE
10079 { ac_try='test -z "$ac_c_werror_flag"
10080 || test ! -s conftest.err'
5464f5a1
NN
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7ee38065
MS
10092 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10093else
5464f5a1
NN
10094 echo "$as_me: failed program was:" >&5
10095sed 's/^/| /' conftest.$ac_ext >&5
10096
10097bfd_cv_have_sys_procfs_type_pstatus32_t=no
10098
7ee38065 10099fi
5464f5a1 10100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10101fi
10102
10103 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10104
10105cat >>confdefs.h <<\_ACEOF
7ee38065 10106#define HAVE_PSTATUS32_T 1
5464f5a1 10107_ACEOF
7ee38065
MS
10108
10109 fi
5464f5a1
NN
10110 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10111echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10112
5464f5a1
NN
10113 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10114echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10115 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10117else
5464f5a1
NN
10118 cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
7ee38065
MS
10124
10125#define _SYSCALL32
252b5132 10126#include <sys/procfs.h>
5464f5a1
NN
10127int
10128main ()
10129{
252b5132 10130prpsinfo_t avar
5464f5a1
NN
10131 ;
10132 return 0;
10133}
10134_ACEOF
10135rm -f conftest.$ac_objext
10136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
49c96104
SE
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
5464f5a1
NN
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
10157 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10158else
5464f5a1
NN
10159 echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10163
252b5132 10164fi
5464f5a1 10165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10166fi
10167
10168 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10169
10170cat >>confdefs.h <<\_ACEOF
252b5132 10171#define HAVE_PRPSINFO_T 1
5464f5a1 10172_ACEOF
252b5132
RH
10173
10174 fi
5464f5a1
NN
10175 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10176echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10177
5464f5a1
NN
10178 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10179echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10180 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10182else
5464f5a1
NN
10183 cat >conftest.$ac_ext <<_ACEOF
10184/* confdefs.h. */
10185_ACEOF
10186cat confdefs.h >>conftest.$ac_ext
10187cat >>conftest.$ac_ext <<_ACEOF
10188/* end confdefs.h. */
7ee38065
MS
10189
10190#define _SYSCALL32
10191#include <sys/procfs.h>
5464f5a1
NN
10192int
10193main ()
10194{
7ee38065 10195prpsinfo32_t avar
5464f5a1
NN
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext
10201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
49c96104
SE
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
5464f5a1
NN
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7ee38065
MS
10222 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10223else
5464f5a1
NN
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10228
7ee38065 10229fi
5464f5a1 10230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10231fi
10232
10233 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10234
10235cat >>confdefs.h <<\_ACEOF
7ee38065 10236#define HAVE_PRPSINFO32_T 1
5464f5a1 10237_ACEOF
7ee38065
MS
10238
10239 fi
5464f5a1
NN
10240 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10241echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10242
5464f5a1
NN
10243 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10244echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10245 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10247else
5464f5a1
NN
10248 cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
7ee38065
MS
10254
10255#define _SYSCALL32
252b5132 10256#include <sys/procfs.h>
5464f5a1
NN
10257int
10258main ()
10259{
252b5132 10260psinfo_t avar
5464f5a1
NN
10261 ;
10262 return 0;
10263}
10264_ACEOF
10265rm -f conftest.$ac_objext
10266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
49c96104
SE
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
5464f5a1
NN
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
10287 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10288else
5464f5a1
NN
10289 echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292bfd_cv_have_sys_procfs_type_psinfo_t=no
10293
252b5132 10294fi
5464f5a1 10295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10296fi
10297
10298 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10299
10300cat >>confdefs.h <<\_ACEOF
252b5132 10301#define HAVE_PSINFO_T 1
5464f5a1 10302_ACEOF
252b5132
RH
10303
10304 fi
5464f5a1
NN
10305 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10306echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10307
5464f5a1
NN
10308 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10309echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10310 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10312else
5464f5a1
NN
10313 cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h. */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h. */
7ee38065
MS
10319
10320#define _SYSCALL32
10321#include <sys/procfs.h>
5464f5a1
NN
10322int
10323main ()
10324{
7ee38065 10325psinfo32_t avar
5464f5a1
NN
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext
10331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
49c96104
SE
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
5464f5a1
NN
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7ee38065
MS
10352 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10353else
5464f5a1
NN
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357bfd_cv_have_sys_procfs_type_psinfo32_t=no
10358
7ee38065 10359fi
5464f5a1 10360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10361fi
10362
10363 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10364
10365cat >>confdefs.h <<\_ACEOF
7ee38065 10366#define HAVE_PSINFO32_T 1
5464f5a1 10367_ACEOF
7ee38065
MS
10368
10369 fi
5464f5a1
NN
10370 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10371echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10372
5464f5a1
NN
10373 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10374echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10375 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10377else
5464f5a1
NN
10378 cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h. */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h. */
7ee38065
MS
10384
10385#define _SYSCALL32
252b5132 10386#include <sys/procfs.h>
5464f5a1
NN
10387int
10388main ()
10389{
252b5132 10390lwpstatus_t avar
5464f5a1
NN
10391 ;
10392 return 0;
10393}
10394_ACEOF
10395rm -f conftest.$ac_objext
10396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
49c96104
SE
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
5464f5a1
NN
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
10417 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10418else
5464f5a1
NN
10419 echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10423
252b5132 10424fi
5464f5a1 10425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10426fi
10427
10428 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10429
10430cat >>confdefs.h <<\_ACEOF
252b5132 10431#define HAVE_LWPSTATUS_T 1
5464f5a1 10432_ACEOF
252b5132
RH
10433
10434 fi
5464f5a1
NN
10435 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10436echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10437
5464f5a1
NN
10438 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10439echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10440 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10442else
5464f5a1
NN
10443 cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h. */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */
f572a39d
AM
10449
10450#define _SYSCALL32
10451#include <sys/procfs.h>
5464f5a1
NN
10452int
10453main ()
10454{
f572a39d 10455lwpxstatus_t avar
5464f5a1
NN
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest.$ac_objext
10461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
49c96104
SE
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
5464f5a1
NN
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
f572a39d
AM
10482 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10483else
5464f5a1
NN
10484 echo "$as_me: failed program was:" >&5
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
10487bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10488
f572a39d 10489fi
5464f5a1 10490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10491fi
10492
10493 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10494
10495cat >>confdefs.h <<\_ACEOF
f572a39d 10496#define HAVE_LWPXSTATUS_T 1
5464f5a1 10497_ACEOF
f572a39d
AM
10498
10499 fi
5464f5a1
NN
10500 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10501echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10502
5464f5a1
NN
10503 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10504echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10505 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10507else
5464f5a1
NN
10508 cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
7ee38065
MS
10514
10515#define _SYSCALL32
252b5132 10516#include <sys/procfs.h>
5464f5a1
NN
10517int
10518main ()
10519{
252b5132 10520lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext
10526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
49c96104
SE
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
5464f5a1
NN
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
10547 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10548else
5464f5a1
NN
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10553
252b5132 10554fi
5464f5a1 10555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10556fi
10557
10558 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10559
10560cat >>confdefs.h <<\_ACEOF
252b5132 10561#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10562_ACEOF
252b5132
RH
10563
10564 fi
5464f5a1
NN
10565 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10566echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10567
5464f5a1
NN
10568 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10569echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10570 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10572else
5464f5a1
NN
10573 cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
7ee38065
MS
10579
10580#define _SYSCALL32
252b5132 10581#include <sys/procfs.h>
5464f5a1
NN
10582int
10583main ()
10584{
252b5132 10585lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10586 ;
10587 return 0;
10588}
10589_ACEOF
10590rm -f conftest.$ac_objext
10591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
49c96104
SE
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
5464f5a1
NN
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
10612 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10613else
5464f5a1
NN
10614 echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10618
252b5132 10619fi
5464f5a1 10620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10621fi
10622
10623 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10624
10625cat >>confdefs.h <<\_ACEOF
252b5132 10626#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10627_ACEOF
252b5132
RH
10628
10629 fi
5464f5a1
NN
10630 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10631echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10632
5464f5a1
NN
10633 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10634echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10635 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10637else
5464f5a1
NN
10638 cat >conftest.$ac_ext <<_ACEOF
10639/* confdefs.h. */
10640_ACEOF
10641cat confdefs.h >>conftest.$ac_ext
10642cat >>conftest.$ac_ext <<_ACEOF
10643/* end confdefs.h. */
7ee38065
MS
10644
10645#define _SYSCALL32
e3c976c4 10646#include <sys/procfs.h>
5464f5a1
NN
10647int
10648main ()
10649{
e3c976c4 10650win32_pstatus_t avar
5464f5a1
NN
10651 ;
10652 return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext
10656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
49c96104
SE
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
5464f5a1
NN
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
e3c976c4
ILT
10677 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10678else
5464f5a1
NN
10679 echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681
10682bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10683
e3c976c4 10684fi
5464f5a1 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10686fi
10687
e3c976c4 10688 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10689
10690cat >>confdefs.h <<\_ACEOF
e3c976c4 10691#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10692_ACEOF
16e9c715
NC
10693
10694 fi
5464f5a1
NN
10695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10696echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10697
10698 fi
10699fi
16e9c715 10700
b3baf5d0 10701
6be7c12c 10702if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10703
10704cat >>confdefs.h <<_ACEOF
252b5132 10705#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10706_ACEOF
252b5132 10707
3f9b03b5 10708fi
252b5132
RH
10709
10710# Horrible hacks to build DLLs on Windows.
10711WIN32LDFLAGS=
10712WIN32LIBADD=
10713case "${host}" in
10714*-*-cygwin*)
10715 if test "$enable_shared" = "yes"; then
10716 WIN32LDFLAGS="-no-undefined"
10717 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10718 fi
10719 ;;
78be1d6e 10720*-*-linux*)
39691762
L
10721 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10722 # libiberty.a.
ca51bfff
L
10723 case "${host}" in
10724 mips*-*-linux*)
10725 # Linux/MIPS uses PIC by default.
10726 if test "$enable_shared" = "yes"; then
10727 WIN32LIBADD="-L../libiberty -liberty"
10728 fi
10729 ;;
10730 *)
66e25bab 10731 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10732 if test -n "$x"; then
ca51bfff
L
10733 WIN32LIBADD="-L../libiberty/pic -liberty"
10734 fi
10735 ;;
10736 esac
39691762 10737 ;;
252b5132
RH
10738esac
10739
6be7c12c
AO
10740
10741
252b5132
RH
10742# target stuff:
10743
10744# Canonicalize the secondary target names.
10745if test -n "$enable_targets" ; then
10746 for targ in `echo $enable_targets | sed 's/,/ /g'`
10747 do
6d83c84b 10748 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10749 if test -n "$result" ; then
10750 canon_targets="$canon_targets $result"
10751 else
10752 # Allow targets that config.sub doesn't recognize, like "all".
10753 canon_targets="$canon_targets $targ"
10754 fi
10755 done
10756fi
10757
10758all_targets=false
10759defvec=
10760selvecs=
08f74004 10761assocvecs=
252b5132
RH
10762selarchs=
10763TDEFINES=
10764for targ in $target $canon_targets
10765do
10766 if test "x$targ" = "xall"; then
10767 all_targets=true
08f74004 10768 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10769 else
10770 . $srcdir/config.bfd
10771 if test "x$targ" = "x$target"; then
10772 defvec=$targ_defvec
10773 fi
10774 selvecs="$selvecs $targ_defvec $targ_selvecs"
10775 selarchs="$selarchs $targ_archs"
10776 TDEFINES="$TDEFINES $targ_cflags"
10777 fi
10778done
10779
6be7c12c 10780
252b5132
RH
10781# This processing still needs to be done if we're to decide properly whether
10782# 64-bit support needs to be compiled in. Currently, it will be included if
10783# the default or any other explicitly requested target requires it; it
10784# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10785# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10786# used.
10787
10788# uniq the default and selected vectors in all the configured targets.
10789f=""
10790for i in $selvecs ; do
10791 case " $f " in
10792 *" $i "*) ;;
10793 *) f="$f $i" ;;
10794 esac
10795done
10796selvecs="$f"
10797
6be7c12c 10798
08f74004
AM
10799# uniq the associated vectors in all the configured targets.
10800f=""
10801for i in $assocvecs ; do
10802 case " $f " in
10803 *" $i "*) ;;
10804 *) f="$f $i" ;;
10805 esac
10806done
10807assocvecs="$f"
10808
10809
252b5132
RH
10810# uniq the architectures in all the configured targets.
10811f=""
10812for i in $selarchs ; do
10813 case " $f " in
10814 *" $i "*) ;;
10815 *) f="$f $i" ;;
10816 esac
10817done
10818selarchs="$f"
10819
10820# Target backend .o files.
10821tb=
10822
65765700 10823elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
10824
10825for vec in $selvecs
10826do
69263e90 10827 target_size=32
252b5132
RH
10828 case "$vec" in
10829 # This list is alphabetized to make it easy to compare
dc810e39
AM
10830 # with the two vector lists in targets.c. For the same reason,
10831 # use one entry per line, even though this leads to long lines.
252b5132 10832 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 10833 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
10834 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10835 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10836 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 10837 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
10838 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10839 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10840 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10841 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
10842 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10843 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10844 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10845 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
10846 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10847 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10848 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10849 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10850 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10851 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10852 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
10853 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10854 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 10855 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 10856 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 10857 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 10858 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 10859 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 10860 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 10861 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 10862 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 10863 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 10864 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 10865 bfd_elf32_bigarm_symbian_vec)
00a97672 10866 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10867 bfd_elf32_bigarm_vxworks_vec)
00a97672 10868 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10869 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10870 bfd_elf32_bigmips_vxworks_vec)
10871 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 10872 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 10873 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 10874 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
10875 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10876 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 10877 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 10878 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 10879 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 10880 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 10881 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 10882 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 10883 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 10884 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 10885 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
10886 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10887 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10888 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 10889 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 10890 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 10891 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 10892 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 10893 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 10894 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 10895 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 10896 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 10897 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 10898 bfd_elf32_littlearm_symbian_vec)
00a97672 10899 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10900 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
10901 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10902 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10903 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10904 bfd_elf32_littlemips_vxworks_vec)
10905 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 10906 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 10907 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
10908 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10909 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10910 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
10911 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10912 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
10913 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10914 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10915 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10916 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
10917 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10918 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
10919 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10920 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 10921 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 10922 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
10923 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10924 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10925 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10926 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 10927 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 10928 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
10929 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10930 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
10931 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10932 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10933 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 10934 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
10935 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10936 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
10937 # FIXME: We include cofflink.lo not because it's needed for
10938 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10939 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
10940 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10941 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10942 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10943 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10944 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10945 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10946 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10947 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10948 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10949 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10950 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10951 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10952 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 10953 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 10954 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
10955 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10956 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 10957 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
10958 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10959 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 10960 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 10961 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 10962 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 10963 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 10964 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
10965 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10966 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 10967 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10968 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10969 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10970 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
10971 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10972 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10973 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 10974 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10975 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10976 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10977 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 10978 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
10979 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10980 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10981 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
10982 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10983 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
10984 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10985 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10986 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10987 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 10988 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 10989 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
10990 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 ;;
10991 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
9d7cbccd 10992 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10993 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 10994 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
10995 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10996 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10997 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10998 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 10999 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11000 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11001 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11002 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11003 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11004 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11005 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11006 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11007 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11008 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11009 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11010 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11011 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11012 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11013 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11014 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 11015 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
11016 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11017 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11018 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11019 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11020 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11021 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11022 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11023 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11024 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11025 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11026 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
11027 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11028 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
11029 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11030 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11031 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11032 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11033 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11034 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11035 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11036 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11037 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 11038 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11039 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11040 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11041 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11042 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 11043 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
11044 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11045 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11046 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11047 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11048 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11049 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11050 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11051 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11052 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11053 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11054 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11055 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11056 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11057 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11058 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11059 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11060 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11061 pef_vec) tb="$tb pef.lo" ;;
11062 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11063 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11064 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11065 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11066 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11067 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11068 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11069 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11070 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11071 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11072 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11073 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11074 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11075 som_vec) tb="$tb som.lo" ;;
dc810e39 11076 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11077 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11078 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11079 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11080 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11081 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11082 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11083 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11084 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11085 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11086 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11087 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11088 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11089 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11090 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11091 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11092 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11093 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11094 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11095 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11096 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11097 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11098 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11099 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11100 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11101 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11102 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11103 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11104 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11105 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11106 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 11107 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 11108 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 11109
341ca622
AM
11110 # These appear out of order in targets.c
11111 srec_vec) tb="$tb srec.lo" ;;
11112 symbolsrec_vec) tb="$tb srec.lo" ;;
11113 tekhex_vec) tb="$tb tekhex.lo" ;;
11114 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11115 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11116
252b5132 11117 "") ;;
5464f5a1
NN
11118 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11119echo "$as_me: error: *** unknown target vector $vec" >&2;}
11120 { (exit 1); exit 1; }; } ;;
252b5132 11121 esac
69263e90
AM
11122
11123 if test ${target_size} = 64; then
11124 target64=true
11125 fi
11126 if test x"${vec}" = x"${defvec}"; then
11127 bfd_default_target_size=${target_size}
11128 fi
252b5132
RH
11129done
11130
11131# Target architecture .o files.
11132# A couple of CPUs use shorter file names to avoid problems on DOS
11133# filesystems.
d031aafb 11134ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
11135
11136# Weed out duplicate .o files.
11137f=""
11138for i in $tb ; do
11139 case " $f " in
11140 *" $i "*) ;;
11141 *) f="$f $i" ;;
11142 esac
11143done
11144tb="$f"
11145
11146f=""
11147for i in $ta ; do
11148 case " $f " in
11149 *" $i "*) ;;
11150 *) f="$f $i" ;;
11151 esac
11152done
11153ta="$f"
11154
11155bfd_backends="$tb"
11156bfd_machines="$ta"
11157
11158if test x${all_targets} = xtrue ; then
11159 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11160 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11161 selvecs=
11162 havevecs=
11163 selarchs=
08f74004
AM
11164 test -n "$assocvecs" &&
11165 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11166else # all_targets is true
11167 # Only set these if they will be nonempty, for the clever echo.
11168 havevecs=
08f74004 11169 assocvecs=
252b5132
RH
11170 test -n "$selvecs" &&
11171 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11172 test -n "$selvecs" &&
11173 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11174 test -n "$selarchs" &&
11175 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11176fi # all_targets is true
11177
11178case ${host64}-${target64}-${want64} in
11179 *true*)
11180 wordsize=64
21e40a48 11181 bfd64_libs='$(BFD64_LIBS)'
252b5132 11182 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11183 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11184 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11185echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11187echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11188 fi
966abd70
HPN
11189 if test -n "$GCC" ; then
11190 bad_64bit_gcc=no;
5464f5a1
NN
11191 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11192echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11193 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11194 cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
966abd70 11200:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11201_ACEOF
966abd70 11202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11203 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11204 bad_64bit_gcc=yes;
5464f5a1
NN
11205 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11206echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11207else
5464f5a1
NN
11208 echo "$as_me:$LINENO: result: no" >&5
11209echo "${ECHO_T}no" >&6
966abd70
HPN
11210fi
11211rm -f conftest*
11212
11213 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11214 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11215echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11216 { (exit 1); exit 1; }; }
966abd70
HPN
11217 fi
11218 fi
252b5132
RH
11219 ;;
11220 false-false-false)
11221 wordsize=32
11222 all_backends='$(BFD32_BACKENDS)'
11223 ;;
11224esac
11225
6be7c12c
AO
11226
11227
11228
11229
11230
69263e90 11231
2858ef35 11232
1012372a
AC
11233# Determine the host dependant file_ptr a.k.a. off_t type. In order
11234# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11235# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11236# Hopefully a reasonable assumption since fseeko et.al. should be
11237# upward compatible.
5464f5a1
NN
11238
11239
11240
11241
2e6f4fae
DJ
11242
11243for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 11244do
5464f5a1
NN
11245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246echo "$as_me:$LINENO: checking for $ac_func" >&5
11247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11248if eval "test \"\${$as_ac_var+set}\" = set"; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250else
2ba49b59
KC
11251 cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
11257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11259#define $ac_func innocuous_$ac_func
11260
11261/* System header to define __stub macros and hopefully few prototypes,
11262 which can conflict with char $ac_func (); below.
11263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11264 <limits.h> exists even on freestanding compilers. */
11265
11266#ifdef __STDC__
11267# include <limits.h>
11268#else
11269# include <assert.h>
11270#endif
11271
11272#undef $ac_func
11273
11274/* Override any gcc2 internal prototype to avoid an error. */
11275#ifdef __cplusplus
11276extern "C"
11277{
11278#endif
11279/* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281char $ac_func ();
11282/* The GNU C library defines this for functions which it implements
11283 to always fail with ENOSYS. Some functions are actually named
11284 something starting with __ and the normal name is an alias. */
11285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11286choke me
11287#else
11288char (*f) () = $ac_func;
11289#endif
11290#ifdef __cplusplus
11291}
11292#endif
11293
11294int
11295main ()
11296{
11297return f != $ac_func;
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext conftest$ac_exeext
11303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
49c96104
SE
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
2ba49b59
KC
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 eval "$as_ac_var=yes"
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329eval "$as_ac_var=no"
11330fi
11331rm -f conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333fi
11334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11336if test `eval echo '${'$as_ac_var'}'` = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11339_ACEOF
11340
11341fi
11342done
11343
11344if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11345 echo "$as_me:$LINENO: checking for off_t" >&5
11346echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11347if test "${ac_cv_type_off_t+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349else
11350 cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
11356$ac_includes_default
11357int
11358main ()
11359{
11360if ((off_t *) 0)
11361 return 0;
11362if (sizeof (off_t))
11363 return 0;
11364 ;
11365 return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext
11369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
49c96104
SE
11377 { ac_try='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
2ba49b59
KC
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_cv_type_off_t=yes
11391else
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395ac_cv_type_off_t=no
11396fi
11397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11398fi
11399echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11400echo "${ECHO_T}$ac_cv_type_off_t" >&6
11401
11402echo "$as_me:$LINENO: checking size of off_t" >&5
11403echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11404if test "${ac_cv_sizeof_off_t+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 if test "$ac_cv_type_off_t" = yes; then
11408 # The cast to unsigned long works around a bug in the HP C Compiler
11409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11411 # This bug is HP SR number 8606223364.
11412 if test "$cross_compiling" = yes; then
11413 # Depending upon the size, compute the lo and hi bounds.
11414cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
2ba49b59
KC
11420$ac_includes_default
11421int
11422main ()
11423{
11424static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11425test_array [0] = 0
5464f5a1 11426
2ba49b59
KC
11427 ;
11428 return 0;
11429}
11430_ACEOF
11431rm -f conftest.$ac_objext
11432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433 (eval $ac_compile) 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
49c96104
SE
11440 { ac_try='test -z "$ac_c_werror_flag"
11441 || test ! -s conftest.err'
2ba49b59
KC
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_lo=0 ac_mid=0
11454 while :; do
11455 cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
11461$ac_includes_default
11462int
11463main ()
11464{
11465static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11466test_array [0] = 0
5464f5a1 11467
2ba49b59
KC
11468 ;
11469 return 0;
11470}
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474 (eval $ac_compile) 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
49c96104
SE
11481 { ac_try='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
2ba49b59
KC
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_hi=$ac_mid; break
11495else
11496 echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11498
2ba49b59
KC
11499ac_lo=`expr $ac_mid + 1`
11500 if test $ac_lo -le $ac_mid; then
11501 ac_lo= ac_hi=
11502 break
11503 fi
11504 ac_mid=`expr 2 '*' $ac_mid + 1`
11505fi
11506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 done
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11511
2ba49b59
KC
11512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518$ac_includes_default
11519int
11520main ()
5464f5a1 11521{
2ba49b59
KC
11522static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11523test_array [0] = 0
1012372a 11524
2ba49b59
KC
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529rm -f conftest.$ac_objext
11530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11531 (eval $ac_compile) 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
49c96104
SE
11538 { ac_try='test -z "$ac_c_werror_flag"
11539 || test ! -s conftest.err'
2ba49b59
KC
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_hi=-1 ac_mid=-1
11552 while :; do
11553 cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559$ac_includes_default
5464f5a1
NN
11560int
11561main ()
11562{
2ba49b59
KC
11563static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11564test_array [0] = 0
11565
5464f5a1
NN
11566 ;
11567 return 0;
11568}
11569_ACEOF
2ba49b59
KC
11570rm -f conftest.$ac_objext
11571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11572 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
49c96104
SE
11579 { ac_try='test -z "$ac_c_werror_flag"
11580 || test ! -s conftest.err'
5464f5a1
NN
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
2ba49b59 11586 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
2ba49b59 11592 ac_lo=$ac_mid; break
5464f5a1
NN
11593else
11594 echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
2ba49b59
KC
11597ac_hi=`expr '(' $ac_mid ')' - 1`
11598 if test $ac_mid -le $ac_hi; then
11599 ac_lo= ac_hi=
11600 break
11601 fi
11602 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11603fi
2ba49b59
KC
11604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11605 done
11606else
11607 echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11609
2ba49b59 11610ac_lo= ac_hi=
1012372a 11611fi
2ba49b59
KC
11612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11613fi
11614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615# Binary search between lo and hi bounds.
11616while test "x$ac_lo" != "x$ac_hi"; do
11617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
11618 cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
2ba49b59 11624$ac_includes_default
5464f5a1
NN
11625int
11626main ()
11627{
2ba49b59
KC
11628static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11629test_array [0] = 0
11630
5464f5a1
NN
11631 ;
11632 return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext
11636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
49c96104
SE
11644 { ac_try='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
5464f5a1
NN
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
2ba49b59 11657 ac_hi=$ac_mid
1012372a 11658else
5464f5a1
NN
11659 echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
2ba49b59 11662ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 11663fi
5464f5a1 11664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 11665done
2ba49b59
KC
11666case $ac_lo in
11667?*) ac_cv_sizeof_off_t=$ac_lo;;
11668'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11669See \`config.log' for more details." >&5
11670echo "$as_me: error: cannot compute sizeof (off_t), 77
11671See \`config.log' for more details." >&2;}
11672 { (exit 1); exit 1; }; } ;;
11673esac
11674else
11675 if test "$cross_compiling" = yes; then
49c96104
SE
11676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11677See \`config.log' for more details." >&5
11678echo "$as_me: error: cannot run test program while cross compiling
11679See \`config.log' for more details." >&2;}
2ba49b59
KC
11680 { (exit 1); exit 1; }; }
11681else
11682 cat >conftest.$ac_ext <<_ACEOF
11683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
11688$ac_includes_default
11689long longval () { return (long) (sizeof (off_t)); }
11690unsigned long ulongval () { return (long) (sizeof (off_t)); }
11691#include <stdio.h>
11692#include <stdlib.h>
11693int
11694main ()
11695{
1012372a 11696
2ba49b59
KC
11697 FILE *f = fopen ("conftest.val", "w");
11698 if (! f)
11699 exit (1);
11700 if (((long) (sizeof (off_t))) < 0)
11701 {
11702 long i = longval ();
11703 if (i != ((long) (sizeof (off_t))))
11704 exit (1);
11705 fprintf (f, "%ld\n", i);
11706 }
11707 else
11708 {
11709 unsigned long i = ulongval ();
11710 if (i != ((long) (sizeof (off_t))))
11711 exit (1);
11712 fprintf (f, "%lu\n", i);
11713 }
11714 exit (ferror (f) || fclose (f) != 0);
11715
11716 ;
11717 return 0;
11718}
11719_ACEOF
11720rm -f conftest$ac_exeext
11721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_sizeof_off_t=`cat conftest.val`
11732else
11733 echo "$as_me: program exited with status $ac_status" >&5
11734echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11736
2ba49b59
KC
11737( exit $ac_status )
11738{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11739See \`config.log' for more details." >&5
11740echo "$as_me: error: cannot compute sizeof (off_t), 77
11741See \`config.log' for more details." >&2;}
5464f5a1 11742 { (exit 1); exit 1; }; }
1012372a 11743fi
2ba49b59
KC
11744rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11745fi
11746fi
11747rm -f conftest.val
11748else
11749 ac_cv_sizeof_off_t=0
11750fi
11751fi
5464f5a1
NN
11752echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11753echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 11754cat >>confdefs.h <<_ACEOF
1012372a 11755#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11756_ACEOF
1012372a
AC
11757
11758
1012372a 11759fi
5464f5a1
NN
11760echo "$as_me:$LINENO: checking file_ptr type" >&5
11761echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11762bfd_file_ptr="long"
11763bfd_ufile_ptr="unsigned long"
11764if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11765 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11766 bfd_file_ptr=BFD_HOST_64_BIT
11767 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11768fi
5464f5a1
NN
11769echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11770echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11771
11772
11773
11774
252b5132
RH
11775tdefaults=""
11776test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11777test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11778test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11779test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11780test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11781
6be7c12c 11782
5464f5a1
NN
11783
11784
11785for ac_header in stdlib.h unistd.h
252b5132 11786do
5464f5a1
NN
11787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11788if eval "test \"\${$as_ac_Header+set}\" = set"; then
11789 echo "$as_me:$LINENO: checking for $ac_header" >&5
11790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11791if eval "test \"\${$as_ac_Header+set}\" = set"; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793fi
11794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11796else
11797 # Is the header compilable?
11798echo "$as_me:$LINENO: checking $ac_header usability" >&5
11799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11800cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806$ac_includes_default
11807#include <$ac_header>
11808_ACEOF
11809rm -f conftest.$ac_objext
11810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
49c96104
SE
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
5464f5a1
NN
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_header_compiler=yes
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836ac_header_compiler=no
11837fi
11838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840echo "${ECHO_T}$ac_header_compiler" >&6
11841
11842# Is the header present?
11843echo "$as_me:$LINENO: checking $ac_header presence" >&5
11844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11845cat >conftest.$ac_ext <<_ACEOF
11846/* confdefs.h. */
11847_ACEOF
11848cat confdefs.h >>conftest.$ac_ext
11849cat >>conftest.$ac_ext <<_ACEOF
11850/* end confdefs.h. */
11851#include <$ac_header>
11852_ACEOF
11853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev/null; then
11861 if test -s conftest.err; then
11862 ac_cpp_err=$ac_c_preproc_warn_flag
11863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11864 else
11865 ac_cpp_err=
11866 fi
252b5132 11867else
5464f5a1 11868 ac_cpp_err=yes
252b5132 11869fi
5464f5a1
NN
11870if test -z "$ac_cpp_err"; then
11871 ac_header_preproc=yes
11872else
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 ac_header_preproc=no
252b5132 11877fi
5464f5a1
NN
11878rm -f conftest.err conftest.$ac_ext
11879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11880echo "${ECHO_T}$ac_header_preproc" >&6
11881
11882# So? What about this header?
11883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 yes:no: )
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11889 ac_header_preproc=yes
11890 ;;
11891 no:yes:* )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11904 (
11905 cat <<\_ASBOX
11906## ------------------------------------------ ##
11907## Report this to the AC_PACKAGE_NAME lists. ##
11908## ------------------------------------------ ##
11909_ASBOX
11910 ) |
11911 sed "s/^/$as_me: WARNING: /" >&2
11912 ;;
11913esac
11914echo "$as_me:$LINENO: checking for $ac_header" >&5
11915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11916if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11918else
5464f5a1
NN
11919 eval "$as_ac_Header=\$ac_header_preproc"
11920fi
11921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11923
11924fi
11925if test `eval echo '${'$as_ac_Header'}'` = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11928_ACEOF
11929
252b5132 11930fi
5464f5a1 11931
252b5132
RH
11932done
11933
5464f5a1 11934
252b5132
RH
11935for ac_func in getpagesize
11936do
5464f5a1
NN
11937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938echo "$as_me:$LINENO: checking for $ac_func" >&5
11939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11940if eval "test \"\${$as_ac_var+set}\" = set"; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943 cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h. */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h. */
11949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11951#define $ac_func innocuous_$ac_func
11952
252b5132 11953/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11954 which can conflict with char $ac_func (); below.
11955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956 <limits.h> exists even on freestanding compilers. */
11957
11958#ifdef __STDC__
11959# include <limits.h>
11960#else
11961# include <assert.h>
11962#endif
6be7c12c 11963
5464f5a1 11964#undef $ac_func
252b5132 11965
5464f5a1
NN
11966/* Override any gcc2 internal prototype to avoid an error. */
11967#ifdef __cplusplus
11968extern "C"
11969{
11970#endif
11971/* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11973char $ac_func ();
252b5132
RH
11974/* The GNU C library defines this for functions which it implements
11975 to always fail with ENOSYS. Some functions are actually named
11976 something starting with __ and the normal name is an alias. */
11977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11978choke me
11979#else
5464f5a1
NN
11980char (*f) () = $ac_func;
11981#endif
11982#ifdef __cplusplus
11983}
252b5132
RH
11984#endif
11985
5464f5a1
NN
11986int
11987main ()
11988{
11989return f != $ac_func;
11990 ;
11991 return 0;
11992}
11993_ACEOF
11994rm -f conftest.$ac_objext conftest$ac_exeext
11995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996 (eval $ac_link) 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
49c96104
SE
12003 { ac_try='test -z "$ac_c_werror_flag"
12004 || test ! -s conftest.err'
5464f5a1
NN
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 eval "$as_ac_var=yes"
12017else
12018 echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021eval "$as_ac_var=no"
12022fi
12023rm -f conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025fi
12026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12028if test `eval echo '${'$as_ac_var'}'` = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031_ACEOF
252b5132 12032
252b5132
RH
12033fi
12034done
12035
5464f5a1
NN
12036echo "$as_me:$LINENO: checking for working mmap" >&5
12037echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12038if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12040else
12041 if test "$cross_compiling" = yes; then
12042 ac_cv_func_mmap_fixed_mapped=no
12043else
5464f5a1
NN
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050$ac_includes_default
12051/* malloc might have been renamed as rpl_malloc. */
12052#undef malloc
6be7c12c 12053
252b5132
RH
12054/* Thanks to Mike Haertel and Jim Avera for this test.
12055 Here is a matrix of mmap possibilities:
12056 mmap private not fixed
12057 mmap private fixed at somewhere currently unmapped
12058 mmap private fixed at somewhere already mapped
12059 mmap shared not fixed
12060 mmap shared fixed at somewhere currently unmapped
12061 mmap shared fixed at somewhere already mapped
12062 For private mappings, we should verify that changes cannot be read()
12063 back from the file, nor mmap's back from the file at a different
12064 address. (There have been systems where private was not correctly
12065 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12066 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12067 like early versions of FreeBSD and possibly contemporary NetBSD.)
12068 For shared mappings, we should conversely verify that changes get
5464f5a1 12069 propagated back to all the places they're supposed to be.
252b5132
RH
12070
12071 Grep wants private fixed already mapped.
12072 The main things grep needs to know about mmap are:
12073 * does it exist and is it safe to write into the mmap'd area
12074 * how to use it (BSD variants) */
5464f5a1 12075
252b5132
RH
12076#include <fcntl.h>
12077#include <sys/mman.h>
12078
5464f5a1
NN
12079#if !STDC_HEADERS && !HAVE_STDLIB_H
12080char *malloc ();
12081#endif
6be7c12c 12082
5464f5a1
NN
12083/* This mess was copied from the GNU getpagesize.h. */
12084#if !HAVE_GETPAGESIZE
252b5132 12085/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12086# if !HAVE_SYS_PARAM_H
252b5132
RH
12087# define HAVE_SYS_PARAM_H 1
12088# endif
12089
12090# ifdef _SC_PAGESIZE
12091# define getpagesize() sysconf(_SC_PAGESIZE)
12092# else /* no _SC_PAGESIZE */
5464f5a1 12093# if HAVE_SYS_PARAM_H
252b5132
RH
12094# include <sys/param.h>
12095# ifdef EXEC_PAGESIZE
12096# define getpagesize() EXEC_PAGESIZE
12097# else /* no EXEC_PAGESIZE */
12098# ifdef NBPG
12099# define getpagesize() NBPG * CLSIZE
12100# ifndef CLSIZE
12101# define CLSIZE 1
12102# endif /* no CLSIZE */
12103# else /* no NBPG */
12104# ifdef NBPC
12105# define getpagesize() NBPC
12106# else /* no NBPC */
12107# ifdef PAGESIZE
12108# define getpagesize() PAGESIZE
12109# endif /* PAGESIZE */
12110# endif /* no NBPC */
12111# endif /* no NBPG */
12112# endif /* no EXEC_PAGESIZE */
12113# else /* no HAVE_SYS_PARAM_H */
12114# define getpagesize() 8192 /* punt totally */
12115# endif /* no HAVE_SYS_PARAM_H */
12116# endif /* no _SC_PAGESIZE */
12117
5464f5a1
NN
12118#endif /* no HAVE_GETPAGESIZE */
12119
12120int
12121main ()
12122{
12123 char *data, *data2, *data3;
12124 int i, pagesize;
12125 int fd;
12126
12127 pagesize = getpagesize ();
12128
12129 /* First, make a file with some known garbage in it. */
12130 data = (char *) malloc (pagesize);
12131 if (!data)
12132 exit (1);
12133 for (i = 0; i < pagesize; ++i)
12134 *(data + i) = rand ();
12135 umask (0);
12136 fd = creat ("conftest.mmap", 0600);
12137 if (fd < 0)
12138 exit (1);
12139 if (write (fd, data, pagesize) != pagesize)
12140 exit (1);
12141 close (fd);
12142
12143 /* Next, try to mmap the file at a fixed address which already has
12144 something else allocated at it. If we can, also make sure that
12145 we see the same garbage. */
12146 fd = open ("conftest.mmap", O_RDWR);
12147 if (fd < 0)
12148 exit (1);
12149 data2 = (char *) malloc (2 * pagesize);
12150 if (!data2)
12151 exit (1);
12152 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12153 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12154 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12155 exit (1);
12156 for (i = 0; i < pagesize; ++i)
12157 if (*(data + i) != *(data2 + i))
12158 exit (1);
12159
12160 /* Finally, make sure that changes to the mapped area do not
12161 percolate back to the file as seen by read(). (This is a bug on
12162 some variants of i386 svr4.0.) */
12163 for (i = 0; i < pagesize; ++i)
12164 *(data2 + i) = *(data2 + i) + 1;
12165 data3 = (char *) malloc (pagesize);
12166 if (!data3)
12167 exit (1);
12168 if (read (fd, data3, pagesize) != pagesize)
12169 exit (1);
12170 for (i = 0; i < pagesize; ++i)
12171 if (*(data + i) != *(data3 + i))
12172 exit (1);
12173 close (fd);
12174 exit (0);
12175}
12176_ACEOF
12177rm -f conftest$ac_exeext
12178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_func_mmap_fixed_mapped=yes
12189else
12190 echo "$as_me: program exited with status $ac_status" >&5
12191echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194( exit $ac_status )
12195ac_cv_func_mmap_fixed_mapped=no
12196fi
12197rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12198fi
12199fi
12200echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12201echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12202if test $ac_cv_func_mmap_fixed_mapped = yes; then
12203
12204cat >>confdefs.h <<\_ACEOF
12205#define HAVE_MMAP 1
12206_ACEOF
12207
12208fi
12209rm -f conftest.mmap
12210
12211
12212
12213for ac_func in madvise mprotect
12214do
12215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12216echo "$as_me:$LINENO: checking for $ac_func" >&5
12217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12218if eval "test \"\${$as_ac_var+set}\" = set"; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220else
12221 cat >conftest.$ac_ext <<_ACEOF
12222/* confdefs.h. */
12223_ACEOF
12224cat confdefs.h >>conftest.$ac_ext
12225cat >>conftest.$ac_ext <<_ACEOF
12226/* end confdefs.h. */
12227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12229#define $ac_func innocuous_$ac_func
12230
12231/* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char $ac_func (); below.
12233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234 <limits.h> exists even on freestanding compilers. */
12235
12236#ifdef __STDC__
12237# include <limits.h>
12238#else
12239# include <assert.h>
12240#endif
12241
12242#undef $ac_func
12243
12244/* Override any gcc2 internal prototype to avoid an error. */
12245#ifdef __cplusplus
12246extern "C"
12247{
12248#endif
12249/* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251char $ac_func ();
12252/* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12256choke me
12257#else
12258char (*f) () = $ac_func;
12259#endif
12260#ifdef __cplusplus
12261}
12262#endif
12263
12264int
12265main ()
12266{
12267return f != $ac_func;
12268 ;
12269 return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext conftest$ac_exeext
12273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
49c96104
SE
12281 { ac_try='test -z "$ac_c_werror_flag"
12282 || test ! -s conftest.err'
5464f5a1
NN
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 eval "$as_ac_var=yes"
12295else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299eval "$as_ac_var=no"
12300fi
12301rm -f conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303fi
12304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12306if test `eval echo '${'$as_ac_var'}'` = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12309_ACEOF
12310
12311fi
12312done
12313
12314case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12315 true+yes )
12316cat >>confdefs.h <<\_ACEOF
12317#define USE_MMAP 1
12318_ACEOF
12319 ;;
12320esac
12321
12322rm -f doc/config.status
12323 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12324
20e95c23 12325
5464f5a1
NN
12326 ac_config_commands="$ac_config_commands default"
12327
108a6f8e
CD
12328
12329
12330
12331
12332
5464f5a1
NN
12333cat >confcache <<\_ACEOF
12334# This file is a shell script that caches the results of configure
12335# tests run on this system so they can be shared between configure
12336# scripts and configure runs, see configure's option --config-cache.
12337# It is not useful on other systems. If it contains results you don't
12338# want to keep, you may remove or edit it.
12339#
12340# config.status only pays attention to the cache file if you give it
12341# the --recheck option to rerun configure.
12342#
12343# `ac_cv_env_foo' variables (set or unset) will be overridden when
12344# loading this file, other *unset* `ac_cv_foo' will be assigned the
12345# following values.
12346
12347_ACEOF
12348
12349# The following way of writing the cache mishandles newlines in values,
12350# but we know of no workaround that is simple, portable, and efficient.
12351# So, don't put newlines in cache variables' values.
12352# Ultrix sh set writes to stderr and can't be redirected directly,
12353# and sets the high bit in the cache file unless we assign to the vars.
12354{
12355 (set) 2>&1 |
12356 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12357 *ac_space=\ *)
12358 # `set' does not quote correctly, so add quotes (double-quote
12359 # substitution turns \\\\ into \\, and sed turns \\ into \).
12360 sed -n \
12361 "s/'/'\\\\''/g;
12362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12363 ;;
12364 *)
12365 # `set' quotes correctly as required by POSIX, so do not add quotes.
12366 sed -n \
12367 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12368 ;;
12369 esac;
12370} |
12371 sed '
12372 t clear
12373 : clear
12374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12375 t end
12376 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12377 : end' >>confcache
12378if diff $cache_file confcache >/dev/null 2>&1; then :; else
12379 if test -w $cache_file; then
12380 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12381 cat confcache >$cache_file
12382 else
12383 echo "not updating unwritable cache $cache_file"
12384 fi
12385fi
12386rm -f confcache
12387
12388test "x$prefix" = xNONE && prefix=$ac_default_prefix
12389# Let make expand exec_prefix.
12390test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12391
12392# VPATH may cause trouble with some makes, so we remove $(srcdir),
12393# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12394# trailing colons and then remove the whole line if VPATH becomes empty
12395# (actually we leave an empty line to preserve line numbers).
12396if test "x$srcdir" = x.; then
12397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12398s/:*\$(srcdir):*/:/;
12399s/:*\${srcdir}:*/:/;
12400s/:*@srcdir@:*/:/;
12401s/^\([^=]*=[ ]*\):*/\1/;
12402s/:*$//;
12403s/^[^=]*=[ ]*$//;
12404}'
12405fi
12406
12407DEFS=-DHAVE_CONFIG_H
12408
12409ac_libobjs=
12410ac_ltlibobjs=
12411for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12412 # 1. Remove the extension, and $U if already installed.
12413 ac_i=`echo "$ac_i" |
12414 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12415 # 2. Add them.
12416 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12417 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12418done
12419LIBOBJS=$ac_libobjs
12420
12421LTLIBOBJS=$ac_ltlibobjs
12422
12423
f5385ebf
AM
12424if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12425 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12426Usually this means the macro was only invoked conditionally." >&5
12427echo "$as_me: error: conditional \"AMDEP\" was never defined.
12428Usually this means the macro was only invoked conditionally." >&2;}
12429 { (exit 1); exit 1; }; }
12430fi
12431if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12432 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12433Usually this means the macro was only invoked conditionally." >&5
12434echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12435Usually this means the macro was only invoked conditionally." >&2;}
12436 { (exit 1); exit 1; }; }
12437fi
12438if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12439 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12440Usually this means the macro was only invoked conditionally." >&5
12441echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12442Usually this means the macro was only invoked conditionally." >&2;}
12443 { (exit 1); exit 1; }; }
12444fi
d5fbea21
DJ
12445if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12446 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12447Usually this means the macro was only invoked conditionally." >&5
12448echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12449Usually this means the macro was only invoked conditionally." >&2;}
12450 { (exit 1); exit 1; }; }
12451fi
f5385ebf
AM
12452if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12453 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12454Usually this means the macro was only invoked conditionally." >&5
12455echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12456Usually this means the macro was only invoked conditionally." >&2;}
12457 { (exit 1); exit 1; }; }
12458fi
5464f5a1
NN
12459
12460: ${CONFIG_STATUS=./config.status}
12461ac_clean_files_save=$ac_clean_files
12462ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12463{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12464echo "$as_me: creating $CONFIG_STATUS" >&6;}
12465cat >$CONFIG_STATUS <<_ACEOF
12466#! $SHELL
12467# Generated by $as_me.
12468# Run this file to recreate the current configuration.
12469# Compiler output produced by configure, useful for debugging
12470# configure, is in config.log if it exists.
12471
12472debug=false
12473ac_cs_recheck=false
12474ac_cs_silent=false
12475SHELL=\${CONFIG_SHELL-$SHELL}
12476_ACEOF
12477
12478cat >>$CONFIG_STATUS <<\_ACEOF
12479## --------------------- ##
12480## M4sh Initialization. ##
12481## --------------------- ##
12482
12483# Be Bourne compatible
12484if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12485 emulate sh
12486 NULLCMD=:
12487 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12488 # is contrary to our usage. Disable this feature.
12489 alias -g '${1+"$@"}'='"$@"'
12490elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12491 set -o posix
12492fi
12493DUALCASE=1; export DUALCASE # for MKS sh
12494
12495# Support unset when possible.
12496if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12497 as_unset=unset
12498else
12499 as_unset=false
12500fi
12501
12502
12503# Work around bugs in pre-3.0 UWIN ksh.
12504$as_unset ENV MAIL MAILPATH
12505PS1='$ '
12506PS2='> '
12507PS4='+ '
12508
12509# NLS nuisances.
12510for as_var in \
12511 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12512 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12513 LC_TELEPHONE LC_TIME
12514do
12515 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12516 eval $as_var=C; export $as_var
12517 else
12518 $as_unset $as_var
12519 fi
12520done
12521
12522# Required to use basename.
12523if expr a : '\(a\)' >/dev/null 2>&1; then
12524 as_expr=expr
12525else
12526 as_expr=false
12527fi
12528
12529if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12530 as_basename=basename
12531else
12532 as_basename=false
12533fi
252b5132 12534
6be7c12c 12535
5464f5a1
NN
12536# Name of the executable.
12537as_me=`$as_basename "$0" ||
12538$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12539 X"$0" : 'X\(//\)$' \| \
12540 X"$0" : 'X\(/\)$' \| \
12541 . : '\(.\)' 2>/dev/null ||
12542echo X/"$0" |
12543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12544 /^X\/\(\/\/\)$/{ s//\1/; q; }
12545 /^X\/\(\/\).*/{ s//\1/; q; }
12546 s/.*/./; q'`
12547
12548
12549# PATH needs CR, and LINENO needs CR and PATH.
12550# Avoid depending upon Character Ranges.
12551as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12552as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12553as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12554as_cr_digits='0123456789'
12555as_cr_alnum=$as_cr_Letters$as_cr_digits
12556
12557# The user is always right.
12558if test "${PATH_SEPARATOR+set}" != set; then
12559 echo "#! /bin/sh" >conf$$.sh
12560 echo "exit 0" >>conf$$.sh
12561 chmod +x conf$$.sh
12562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12563 PATH_SEPARATOR=';'
12564 else
12565 PATH_SEPARATOR=:
12566 fi
12567 rm -f conf$$.sh
12568fi
12569
12570
12571 as_lineno_1=$LINENO
12572 as_lineno_2=$LINENO
12573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12574 test "x$as_lineno_1" != "x$as_lineno_2" &&
12575 test "x$as_lineno_3" = "x$as_lineno_2" || {
12576 # Find who we are. Look in the path if we contain no path at all
12577 # relative or not.
12578 case $0 in
12579 *[\\/]* ) as_myself=$0 ;;
12580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581for as_dir in $PATH
12582do
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12586done
12587
12588 ;;
12589 esac
12590 # We did not find ourselves, most probably we were run as `sh COMMAND'
12591 # in which case we are not to be found in the path.
12592 if test "x$as_myself" = x; then
12593 as_myself=$0
12594 fi
12595 if test ! -f "$as_myself"; then
12596 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12597echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12598 { (exit 1); exit 1; }; }
12599 fi
12600 case $CONFIG_SHELL in
12601 '')
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for as_base in sh bash ksh sh5; do
12608 case $as_dir in
12609 /*)
12610 if ("$as_dir/$as_base" -c '
12611 as_lineno_1=$LINENO
12612 as_lineno_2=$LINENO
12613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12614 test "x$as_lineno_1" != "x$as_lineno_2" &&
12615 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12616 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12617 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12618 CONFIG_SHELL=$as_dir/$as_base
12619 export CONFIG_SHELL
12620 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12621 fi;;
12622 esac
12623 done
12624done
12625;;
12626 esac
12627
12628 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12629 # uniformly replaced by the line number. The first 'sed' inserts a
12630 # line-number line before each line; the second 'sed' does the real
12631 # work. The second script uses 'N' to pair each line-number line
12632 # with the numbered line, and appends trailing '-' during
12633 # substitution so that $LINENO is not a special case at line end.
12634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12635 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12636 sed '=' <$as_myself |
12637 sed '
12638 N
12639 s,$,-,
12640 : loop
12641 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12642 t loop
12643 s,-$,,
12644 s,^['$as_cr_digits']*\n,,
12645 ' >$as_me.lineno &&
12646 chmod +x $as_me.lineno ||
12647 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12648echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12649 { (exit 1); exit 1; }; }
12650
12651 # Don't try to exec as it changes $[0], causing all sort of problems
12652 # (the dirname of $[0] is not the place where we might find the
12653 # original and so on. Autoconf is especially sensible to this).
12654 . ./$as_me.lineno
12655 # Exit status is that of the last command.
12656 exit
252b5132 12657}
6be7c12c 12658
5464f5a1
NN
12659
12660case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12661 *c*,-n*) ECHO_N= ECHO_C='
12662' ECHO_T=' ' ;;
12663 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12664 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12665esac
12666
12667if expr a : '\(a\)' >/dev/null 2>&1; then
12668 as_expr=expr
252b5132 12669else
5464f5a1 12670 as_expr=false
252b5132 12671fi
5464f5a1
NN
12672
12673rm -f conf$$ conf$$.exe conf$$.file
12674echo >conf$$.file
12675if ln -s conf$$.file conf$$ 2>/dev/null; then
12676 # We could just check for DJGPP; but this test a) works b) is more generic
12677 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12678 if test -f conf$$.exe; then
12679 # Don't use ln at all; we don't have any links
12680 as_ln_s='cp -p'
12681 else
12682 as_ln_s='ln -s'
12683 fi
12684elif ln conf$$.file conf$$ 2>/dev/null; then
12685 as_ln_s=ln
12686else
12687 as_ln_s='cp -p'
252b5132 12688fi
5464f5a1 12689rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12690
5464f5a1
NN
12691if mkdir -p . 2>/dev/null; then
12692 as_mkdir_p=:
12693else
12694 test -d ./-p && rmdir ./-p
12695 as_mkdir_p=false
252b5132 12696fi
b3baf5d0 12697
5464f5a1 12698as_executable_p="test -f"
252b5132 12699
5464f5a1
NN
12700# Sed expression to map a string onto a valid CPP name.
12701as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12702
5464f5a1
NN
12703# Sed expression to map a string onto a valid variable name.
12704as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12705
252b5132 12706
5464f5a1
NN
12707# IFS
12708# We need space, tab and new line, in precisely that order.
12709as_nl='
12710'
12711IFS=" $as_nl"
252b5132 12712
5464f5a1
NN
12713# CDPATH.
12714$as_unset CDPATH
12715
12716exec 6>&1
12717
12718# Open the log real soon, to keep \$[0] and so on meaningful, and to
12719# report actual input values of CONFIG_FILES etc. instead of their
12720# values after options handling. Logging --version etc. is OK.
12721exec 5>>config.log
12722{
12723 echo
12724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12725## Running $as_me. ##
12726_ASBOX
12727} >&5
12728cat >&5 <<_CSEOF
12729
12730This file was extended by $as_me, which was
12731generated by GNU Autoconf 2.59. Invocation command line was
12732
12733 CONFIG_FILES = $CONFIG_FILES
12734 CONFIG_HEADERS = $CONFIG_HEADERS
12735 CONFIG_LINKS = $CONFIG_LINKS
12736 CONFIG_COMMANDS = $CONFIG_COMMANDS
12737 $ $0 $@
12738
12739_CSEOF
12740echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12741echo >&5
12742_ACEOF
12743
12744# Files that config.status was made for.
12745if test -n "$ac_config_files"; then
12746 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12747fi
5464f5a1
NN
12748
12749if test -n "$ac_config_headers"; then
12750 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12751fi
252b5132 12752
5464f5a1
NN
12753if test -n "$ac_config_links"; then
12754 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12755fi
252b5132 12756
5464f5a1
NN
12757if test -n "$ac_config_commands"; then
12758 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12759fi
252b5132 12760
5464f5a1
NN
12761cat >>$CONFIG_STATUS <<\_ACEOF
12762
12763ac_cs_usage="\
12764\`$as_me' instantiates files from templates according to the
12765current configuration.
12766
12767Usage: $0 [OPTIONS] [FILE]...
12768
12769 -h, --help print this help, then exit
12770 -V, --version print version number, then exit
12771 -q, --quiet do not print progress messages
12772 -d, --debug don't remove temporary files
12773 --recheck update $as_me by reconfiguring in the same conditions
12774 --file=FILE[:TEMPLATE]
12775 instantiate the configuration file FILE
12776 --header=FILE[:TEMPLATE]
12777 instantiate the configuration header FILE
12778
12779Configuration files:
12780$config_files
12781
12782Configuration headers:
12783$config_headers
12784
12785Configuration commands:
12786$config_commands
12787
12788Report bugs to <bug-autoconf@gnu.org>."
12789_ACEOF
12790
12791cat >>$CONFIG_STATUS <<_ACEOF
12792ac_cs_version="\\
12793config.status
12794configured by $0, generated by GNU Autoconf 2.59,
12795 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12796
12797Copyright (C) 2003 Free Software Foundation, Inc.
12798This config.status script is free software; the Free Software Foundation
12799gives unlimited permission to copy, distribute and modify it."
12800srcdir=$srcdir
12801INSTALL="$INSTALL"
12802_ACEOF
12803
12804cat >>$CONFIG_STATUS <<\_ACEOF
12805# If no file are specified by the user, then we need to provide default
12806# value. By we need to know if files were specified by the user.
12807ac_need_defaults=:
12808while test $# != 0
12809do
12810 case $1 in
12811 --*=*)
12812 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12813 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12814 ac_shift=:
6be7c12c 12815 ;;
5464f5a1
NN
12816 -*)
12817 ac_option=$1
12818 ac_optarg=$2
12819 ac_shift=shift
6be7c12c 12820 ;;
5464f5a1
NN
12821 *) # This is not an option, so the user has probably given explicit
12822 # arguments.
12823 ac_option=$1
12824 ac_need_defaults=false;;
12825 esac
252b5132 12826
5464f5a1
NN
12827 case $ac_option in
12828 # Handling of the options.
12829_ACEOF
12830cat >>$CONFIG_STATUS <<\_ACEOF
12831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12832 ac_cs_recheck=: ;;
12833 --version | --vers* | -V )
12834 echo "$ac_cs_version"; exit 0 ;;
12835 --he | --h)
12836 # Conflict between --help and --header
12837 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12838Try \`$0 --help' for more information." >&5
12839echo "$as_me: error: ambiguous option: $1
12840Try \`$0 --help' for more information." >&2;}
12841 { (exit 1); exit 1; }; };;
12842 --help | --hel | -h )
12843 echo "$ac_cs_usage"; exit 0 ;;
12844 --debug | --d* | -d )
12845 debug=: ;;
12846 --file | --fil | --fi | --f )
12847 $ac_shift
12848 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12849 ac_need_defaults=false;;
12850 --header | --heade | --head | --hea )
12851 $ac_shift
12852 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12853 ac_need_defaults=false;;
12854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12856 ac_cs_silent=: ;;
6be7c12c 12857
5464f5a1
NN
12858 # This is an error.
12859 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12860Try \`$0 --help' for more information." >&5
12861echo "$as_me: error: unrecognized option: $1
12862Try \`$0 --help' for more information." >&2;}
12863 { (exit 1); exit 1; }; } ;;
252b5132 12864
5464f5a1 12865 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12866
5464f5a1
NN
12867 esac
12868 shift
12869done
6be7c12c 12870
5464f5a1 12871ac_configure_extra_args=
252b5132 12872
5464f5a1
NN
12873if $ac_cs_silent; then
12874 exec 6>/dev/null
12875 ac_configure_extra_args="$ac_configure_extra_args --silent"
12876fi
6be7c12c 12877
5464f5a1
NN
12878_ACEOF
12879cat >>$CONFIG_STATUS <<_ACEOF
12880if \$ac_cs_recheck; then
12881 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12882 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12883fi
12884
12885_ACEOF
12886
12887cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12888#
5464f5a1 12889# INIT-COMMANDS section.
6be7c12c 12890#
b3baf5d0 12891
f5385ebf 12892AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
12893# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12894 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12895 # from automake.
12896 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12897 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12898 LINGUAS="${LINGUAS-%UNSET%}"
12899
5464f5a1
NN
12900
12901
12902_ACEOF
12903
12904
12905
12906cat >>$CONFIG_STATUS <<\_ACEOF
12907for ac_config_target in $ac_config_targets
252b5132 12908do
5464f5a1
NN
12909 case "$ac_config_target" in
12910 # Handling of arguments.
12911 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12912 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12913 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12914 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 12915 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 12916 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5464f5a1
NN
12917 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12920echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12921 { (exit 1); exit 1; }; };;
252b5132
RH
12922 esac
12923done
12924
5464f5a1
NN
12925# If the user did not use the arguments to specify the items to instantiate,
12926# then the envvar interface is used. Set only those that are not.
12927# We use the long form for the default assignment because of an extremely
12928# bizarre bug on SunOS 4.1.3.
12929if $ac_need_defaults; then
12930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12933fi
12934
12935# Have a temporary directory for convenience. Make it in the build tree
12936# simply because there is no reason to put it here, and in addition,
12937# creating and moving files from /tmp can sometimes cause problems.
12938# Create a temporary directory, and hook for its removal unless debugging.
12939$debug ||
12940{
12941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12942 trap '{ (exit 1); exit 1; }' 1 2 13 15
12943}
b3baf5d0 12944
5464f5a1 12945# Create a (secure) tmp directory for tmp files.
b3baf5d0 12946
5464f5a1
NN
12947{
12948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12949 test -n "$tmp" && test -d "$tmp"
12950} ||
12951{
12952 tmp=./confstat$$-$RANDOM
12953 (umask 077 && mkdir $tmp)
12954} ||
12955{
12956 echo "$me: cannot create a temporary directory in ." >&2
12957 { (exit 1); exit 1; }
12958}
12959
12960_ACEOF
12961
12962cat >>$CONFIG_STATUS <<_ACEOF
12963
12964#
12965# CONFIG_FILES section.
12966#
b3baf5d0 12967
5464f5a1
NN
12968# No need to generate the scripts if there are no CONFIG_FILES.
12969# This happens for instance when ./config.status config.h
12970if test -n "\$CONFIG_FILES"; then
12971 # Protect against being on the right side of a sed subst in config.status.
12972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12974s,@SHELL@,$SHELL,;t t
12975s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12976s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12977s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12978s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12979s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12980s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12981s,@exec_prefix@,$exec_prefix,;t t
12982s,@prefix@,$prefix,;t t
12983s,@program_transform_name@,$program_transform_name,;t t
12984s,@bindir@,$bindir,;t t
12985s,@sbindir@,$sbindir,;t t
12986s,@libexecdir@,$libexecdir,;t t
12987s,@datadir@,$datadir,;t t
12988s,@sysconfdir@,$sysconfdir,;t t
12989s,@sharedstatedir@,$sharedstatedir,;t t
12990s,@localstatedir@,$localstatedir,;t t
12991s,@libdir@,$libdir,;t t
12992s,@includedir@,$includedir,;t t
12993s,@oldincludedir@,$oldincludedir,;t t
12994s,@infodir@,$infodir,;t t
12995s,@mandir@,$mandir,;t t
12996s,@build_alias@,$build_alias,;t t
12997s,@host_alias@,$host_alias,;t t
12998s,@target_alias@,$target_alias,;t t
12999s,@DEFS@,$DEFS,;t t
13000s,@ECHO_C@,$ECHO_C,;t t
13001s,@ECHO_N@,$ECHO_N,;t t
13002s,@ECHO_T@,$ECHO_T,;t t
13003s,@LIBS@,$LIBS,;t t
13004s,@build@,$build,;t t
13005s,@build_cpu@,$build_cpu,;t t
13006s,@build_vendor@,$build_vendor,;t t
13007s,@build_os@,$build_os,;t t
13008s,@host@,$host,;t t
13009s,@host_cpu@,$host_cpu,;t t
13010s,@host_vendor@,$host_vendor,;t t
13011s,@host_os@,$host_os,;t t
13012s,@target@,$target,;t t
13013s,@target_cpu@,$target_cpu,;t t
13014s,@target_vendor@,$target_vendor,;t t
13015s,@target_os@,$target_os,;t t
13016s,@CC@,$CC,;t t
13017s,@CFLAGS@,$CFLAGS,;t t
13018s,@LDFLAGS@,$LDFLAGS,;t t
13019s,@CPPFLAGS@,$CPPFLAGS,;t t
13020s,@ac_ct_CC@,$ac_ct_CC,;t t
13021s,@EXEEXT@,$EXEEXT,;t t
13022s,@OBJEXT@,$OBJEXT,;t t
13023s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13024s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13025s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13026s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13027s,@PACKAGE@,$PACKAGE,;t t
13028s,@VERSION@,$VERSION,;t t
13029s,@ACLOCAL@,$ACLOCAL,;t t
13030s,@AUTOCONF@,$AUTOCONF,;t t
13031s,@AUTOMAKE@,$AUTOMAKE,;t t
13032s,@AUTOHEADER@,$AUTOHEADER,;t t
13033s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13034s,@install_sh@,$install_sh,;t t
13035s,@STRIP@,$STRIP,;t t
13036s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13037s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13038s,@mkdir_p@,$mkdir_p,;t t
13039s,@AWK@,$AWK,;t t
5464f5a1 13040s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13041s,@am__leading_dot@,$am__leading_dot,;t t
13042s,@AMTAR@,$AMTAR,;t t
13043s,@am__tar@,$am__tar,;t t
13044s,@am__untar@,$am__untar,;t t
13045s,@DEPDIR@,$DEPDIR,;t t
13046s,@am__include@,$am__include,;t t
13047s,@am__quote@,$am__quote,;t t
13048s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13049s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13050s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13051s,@CCDEPMODE@,$CCDEPMODE,;t t
13052s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13053s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13054s,@AR@,$AR,;t t
13055s,@ac_ct_AR@,$ac_ct_AR,;t t
13056s,@RANLIB@,$RANLIB,;t t
13057s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13058s,@LN_S@,$LN_S,;t t
5464f5a1 13059s,@LIBTOOL@,$LIBTOOL,;t t
92f01d61 13060s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
13061s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
13062s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 13063s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13064s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
13065s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13066s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13067s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13068s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13069s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
13070s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13071s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13072s,@host_noncanonical@,$host_noncanonical,;t t
13073s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13074s,@bfdlibdir@,$bfdlibdir,;t t
13075s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 13076s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13077s,@LIBINTL@,$LIBINTL,;t t
13078s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13079s,@INCINTL@,$INCINTL,;t t
5464f5a1 13080s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13081s,@GMSGFMT@,$GMSGFMT,;t t
13082s,@POSUB@,$POSUB,;t t
5464f5a1 13083s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 13084s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 13085s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13086s,@GENCAT@,$GENCAT,;t t
13087s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 13088s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13089s,@MSGFMT@,$MSGFMT,;t t
13090s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 13091s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
13092s,@CPP@,$CPP,;t t
13093s,@EGREP@,$EGREP,;t t
5464f5a1
NN
13094s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13095s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13096s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13097s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13098s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13099s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13100s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13101s,@COREFILE@,$COREFILE,;t t
13102s,@COREFLAG@,$COREFLAG,;t t
13103s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13104s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13105s,@TDEFINES@,$TDEFINES,;t t
13106s,@wordsize@,$wordsize,;t t
21e40a48 13107s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
13108s,@all_backends@,$all_backends,;t t
13109s,@bfd_backends@,$bfd_backends,;t t
13110s,@bfd_machines@,$bfd_machines,;t t
13111s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13112s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13113s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13114s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
13115s,@datarootdir@,$datarootdir,;t t
13116s,@docdir@,$docdir,;t t
13117s,@htmldir@,$htmldir,;t t
5464f5a1
NN
13118s,@LIBOBJS@,$LIBOBJS,;t t
13119s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13120CEOF
252b5132 13121
5464f5a1
NN
13122_ACEOF
13123
13124 cat >>$CONFIG_STATUS <<\_ACEOF
13125 # Split the substitutions into bite-sized pieces for seds with
13126 # small command number limits, like on Digital OSF/1 and HP-UX.
13127 ac_max_sed_lines=48
13128 ac_sed_frag=1 # Number of current file.
13129 ac_beg=1 # First line for current file.
13130 ac_end=$ac_max_sed_lines # Line after last line for current file.
13131 ac_more_lines=:
13132 ac_sed_cmds=
13133 while $ac_more_lines; do
13134 if test $ac_beg -gt 1; then
13135 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13136 else
5464f5a1
NN
13137 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13138 fi
13139 if test ! -s $tmp/subs.frag; then
13140 ac_more_lines=false
13141 else
13142 # The purpose of the label and of the branching condition is to
13143 # speed up the sed processing (if there are no `@' at all, there
13144 # is no need to browse any of the substitutions).
13145 # These are the two extra sed commands mentioned above.
13146 (echo ':t
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13148 if test -z "$ac_sed_cmds"; then
13149 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13150 else
13151 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13152 fi
13153 ac_sed_frag=`expr $ac_sed_frag + 1`
13154 ac_beg=$ac_end
13155 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13156 fi
5464f5a1
NN
13157 done
13158 if test -z "$ac_sed_cmds"; then
13159 ac_sed_cmds=cat
252b5132 13160 fi
5464f5a1 13161fi # test -n "$CONFIG_FILES"
6be7c12c 13162
5464f5a1
NN
13163_ACEOF
13164cat >>$CONFIG_STATUS <<\_ACEOF
13165for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13167 case $ac_file in
13168 - | *:- | *:-:* ) # input from stdin
13169 cat >$tmp/stdin
13170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13174 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13175 esac
13176
5464f5a1
NN
13177 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13179$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180 X"$ac_file" : 'X\(//\)[^/]' \| \
13181 X"$ac_file" : 'X\(//\)$' \| \
13182 X"$ac_file" : 'X\(/\)' \| \
13183 . : '\(.\)' 2>/dev/null ||
13184echo X"$ac_file" |
13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13187 /^X\(\/\/\)$/{ s//\1/; q; }
13188 /^X\(\/\).*/{ s//\1/; q; }
13189 s/.*/./; q'`
13190 { if $as_mkdir_p; then
13191 mkdir -p "$ac_dir"
252b5132 13192 else
5464f5a1
NN
13193 as_dir="$ac_dir"
13194 as_dirs=
13195 while test ! -d "$as_dir"; do
13196 as_dirs="$as_dir $as_dirs"
13197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13198$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$as_dir" : 'X\(//\)[^/]' \| \
13200 X"$as_dir" : 'X\(//\)$' \| \
13201 X"$as_dir" : 'X\(/\)' \| \
13202 . : '\(.\)' 2>/dev/null ||
13203echo X"$as_dir" |
13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13206 /^X\(\/\/\)$/{ s//\1/; q; }
13207 /^X\(\/\).*/{ s//\1/; q; }
13208 s/.*/./; q'`
13209 done
13210 test ! -n "$as_dirs" || mkdir $as_dirs
13211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13212echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13213 { (exit 1); exit 1; }; }; }
13214
13215 ac_builddir=.
13216
13217if test "$ac_dir" != .; then
13218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13219 # A "../" for each directory in $ac_dir_suffix.
13220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13221else
13222 ac_dir_suffix= ac_top_builddir=
13223fi
252b5132 13224
5464f5a1
NN
13225case $srcdir in
13226 .) # No --srcdir option. We are building in place.
13227 ac_srcdir=.
13228 if test -z "$ac_top_builddir"; then
13229 ac_top_srcdir=.
13230 else
13231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13232 fi ;;
13233 [\\/]* | ?:[\\/]* ) # Absolute path.
13234 ac_srcdir=$srcdir$ac_dir_suffix;
13235 ac_top_srcdir=$srcdir ;;
252b5132 13236 *) # Relative path.
5464f5a1
NN
13237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13239esac
252b5132 13240
5464f5a1
NN
13241# Do not use `cd foo && pwd` to compute absolute paths, because
13242# the directories may not exist.
13243case `pwd` in
13244.) ac_abs_builddir="$ac_dir";;
13245*)
13246 case "$ac_dir" in
13247 .) ac_abs_builddir=`pwd`;;
13248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13250 esac;;
13251esac
13252case $ac_abs_builddir in
13253.) ac_abs_top_builddir=${ac_top_builddir}.;;
13254*)
13255 case ${ac_top_builddir}. in
13256 .) ac_abs_top_builddir=$ac_abs_builddir;;
13257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13259 esac;;
13260esac
13261case $ac_abs_builddir in
13262.) ac_abs_srcdir=$ac_srcdir;;
13263*)
13264 case $ac_srcdir in
13265 .) ac_abs_srcdir=$ac_abs_builddir;;
13266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13268 esac;;
13269esac
13270case $ac_abs_builddir in
13271.) ac_abs_top_srcdir=$ac_top_srcdir;;
13272*)
13273 case $ac_top_srcdir in
13274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13277 esac;;
13278esac
252b5132 13279
5464f5a1
NN
13280
13281 case $INSTALL in
13282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13283 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13284 esac
252b5132 13285
49c96104
SE
13286 if test x"$ac_file" != x-; then
13287 { echo "$as_me:$LINENO: creating $ac_file" >&5
13288echo "$as_me: creating $ac_file" >&6;}
13289 rm -f "$ac_file"
13290 fi
5464f5a1
NN
13291 # Let's still pretend it is `configure' which instantiates (i.e., don't
13292 # use $as_me), people would be surprised to read:
13293 # /* config.h. Generated by config.status. */
13294 if test x"$ac_file" = x-; then
13295 configure_input=
13296 else
13297 configure_input="$ac_file. "
13298 fi
13299 configure_input=$configure_input"Generated from `echo $ac_file_in |
13300 sed 's,.*/,,'` by configure."
13301
13302 # First look for the input files in the build tree, otherwise in the
13303 # src tree.
13304 ac_file_inputs=`IFS=:
13305 for f in $ac_file_in; do
13306 case $f in
13307 -) echo $tmp/stdin ;;
13308 [\\/$]*)
13309 # Absolute (can't be DOS-style, as IFS=:)
13310 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13311echo "$as_me: error: cannot find input file: $f" >&2;}
13312 { (exit 1); exit 1; }; }
13313 echo "$f";;
13314 *) # Relative
13315 if test -f "$f"; then
13316 # Build tree
13317 echo "$f"
13318 elif test -f "$srcdir/$f"; then
13319 # Source tree
13320 echo "$srcdir/$f"
13321 else
13322 # /dev/null tree
13323 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13324echo "$as_me: error: cannot find input file: $f" >&2;}
13325 { (exit 1); exit 1; }; }
13326 fi;;
13327 esac
13328 done` || { (exit 1); exit 1; }
5464f5a1
NN
13329_ACEOF
13330cat >>$CONFIG_STATUS <<_ACEOF
13331 sed "$ac_vpsub
13332$extrasub
13333_ACEOF
13334cat >>$CONFIG_STATUS <<\_ACEOF
13335:t
13336/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13337s,@configure_input@,$configure_input,;t t
13338s,@srcdir@,$ac_srcdir,;t t
13339s,@abs_srcdir@,$ac_abs_srcdir,;t t
13340s,@top_srcdir@,$ac_top_srcdir,;t t
13341s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13342s,@builddir@,$ac_builddir,;t t
13343s,@abs_builddir@,$ac_abs_builddir,;t t
13344s,@top_builddir@,$ac_top_builddir,;t t
13345s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13346s,@INSTALL@,$ac_INSTALL,;t t
13347" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13348 rm -f $tmp/stdin
13349 if test x"$ac_file" != x-; then
13350 mv $tmp/out $ac_file
13351 else
13352 cat $tmp/out
13353 rm -f $tmp/out
13354 fi
13355
13356done
13357_ACEOF
13358cat >>$CONFIG_STATUS <<\_ACEOF
13359
13360#
13361# CONFIG_HEADER section.
13362#
252b5132
RH
13363
13364# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13365# NAME is the cpp macro being defined and VALUE is the value it is being given.
13366#
13367# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13368ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13369ac_dB='[ ].*$,\1#\2'
13370ac_dC=' '
13371ac_dD=',;t'
13372# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13373ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13374ac_uB='$,\1#\2define\3'
252b5132 13375ac_uC=' '
5464f5a1
NN
13376ac_uD=',;t'
13377
13378for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13379 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13380 case $ac_file in
13381 - | *:- | *:-:* ) # input from stdin
13382 cat >$tmp/stdin
13383 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13385 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13387 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13388 esac
13389
5464f5a1
NN
13390 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13391echo "$as_me: creating $ac_file" >&6;}
13392
13393 # First look for the input files in the build tree, otherwise in the
13394 # src tree.
13395 ac_file_inputs=`IFS=:
13396 for f in $ac_file_in; do
13397 case $f in
13398 -) echo $tmp/stdin ;;
13399 [\\/$]*)
13400 # Absolute (can't be DOS-style, as IFS=:)
13401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13402echo "$as_me: error: cannot find input file: $f" >&2;}
13403 { (exit 1); exit 1; }; }
13404 # Do quote $f, to prevent DOS paths from being IFS'd.
13405 echo "$f";;
13406 *) # Relative
13407 if test -f "$f"; then
13408 # Build tree
13409 echo "$f"
13410 elif test -f "$srcdir/$f"; then
13411 # Source tree
13412 echo "$srcdir/$f"
13413 else
13414 # /dev/null tree
13415 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13416echo "$as_me: error: cannot find input file: $f" >&2;}
13417 { (exit 1); exit 1; }; }
13418 fi;;
13419 esac
13420 done` || { (exit 1); exit 1; }
13421 # Remove the trailing spaces.
13422 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13423
13424_ACEOF
13425
13426# Transform confdefs.h into two sed scripts, `conftest.defines' and
13427# `conftest.undefs', that substitutes the proper values into
13428# config.h.in to produce config.h. The first handles `#define'
13429# templates, and the second `#undef' templates.
13430# And first: Protect against being on the right side of a sed subst in
13431# config.status. Protect against being in an unquoted here document
13432# in config.status.
13433rm -f conftest.defines conftest.undefs
13434# Using a here document instead of a string reduces the quoting nightmare.
13435# Putting comments in sed scripts is not portable.
13436#
13437# `end' is used to avoid that the second main sed command (meant for
13438# 0-ary CPP macros) applies to n-ary macro definitions.
13439# See the Autoconf documentation for `clear'.
13440cat >confdef2sed.sed <<\_ACEOF
13441s/[\\&,]/\\&/g
13442s,[\\$`],\\&,g
13443t clear
13444: clear
13445s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13446t end
13447s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13448: end
13449_ACEOF
13450# If some macros were called several times there might be several times
13451# the same #defines, which is useless. Nevertheless, we may not want to
13452# sort them, since we want the *last* AC-DEFINE to be honored.
13453uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13454sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13455rm -f confdef2sed.sed
252b5132
RH
13456
13457# This sed command replaces #undef with comments. This is necessary, for
13458# example, in the case of _POSIX_SOURCE, which is predefined and required
13459# on some systems where configure will not decide to define it.
5464f5a1
NN
13460cat >>conftest.undefs <<\_ACEOF
13461s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13462_ACEOF
13463
13464# Break up conftest.defines because some shells have a limit on the size
13465# of here documents, and old seds have small limits too (100 cmds).
13466echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13467echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13468echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13469echo ' :' >>$CONFIG_STATUS
13470rm -f conftest.tail
13471while grep . conftest.defines >/dev/null
13472do
13473 # Write a limited-size here document to $tmp/defines.sed.
13474 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13475 # Speed up: don't consider the non `#define' lines.
13476 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13477 # Work around the forget-to-reset-the-flag bug.
13478 echo 't clr' >>$CONFIG_STATUS
13479 echo ': clr' >>$CONFIG_STATUS
13480 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13481 echo 'CEOF
13482 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13483 rm -f $tmp/in
13484 mv $tmp/out $tmp/in
13485' >>$CONFIG_STATUS
13486 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13487 rm -f conftest.defines
13488 mv conftest.tail conftest.defines
13489done
13490rm -f conftest.defines
13491echo ' fi # grep' >>$CONFIG_STATUS
13492echo >>$CONFIG_STATUS
252b5132 13493
5464f5a1
NN
13494# Break up conftest.undefs because some shells have a limit on the size
13495# of here documents, and old seds have small limits too (100 cmds).
13496echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13497rm -f conftest.tail
5464f5a1 13498while grep . conftest.undefs >/dev/null
252b5132 13499do
5464f5a1
NN
13500 # Write a limited-size here document to $tmp/undefs.sed.
13501 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13502 # Speed up: don't consider the non `#undef'
13503 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13504 # Work around the forget-to-reset-the-flag bug.
13505 echo 't clr' >>$CONFIG_STATUS
13506 echo ': clr' >>$CONFIG_STATUS
13507 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13508 echo 'CEOF
5464f5a1
NN
13509 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13510 rm -f $tmp/in
13511 mv $tmp/out $tmp/in
13512' >>$CONFIG_STATUS
13513 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13514 rm -f conftest.undefs
13515 mv conftest.tail conftest.undefs
252b5132 13516done
5464f5a1
NN
13517rm -f conftest.undefs
13518
13519cat >>$CONFIG_STATUS <<\_ACEOF
13520 # Let's still pretend it is `configure' which instantiates (i.e., don't
13521 # use $as_me), people would be surprised to read:
13522 # /* config.h. Generated by config.status. */
13523 if test x"$ac_file" = x-; then
13524 echo "/* Generated by configure. */" >$tmp/config.h
13525 else
13526 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13527 fi
13528 cat $tmp/in >>$tmp/config.h
13529 rm -f $tmp/in
13530 if test x"$ac_file" != x-; then
13531 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13532 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13533echo "$as_me: $ac_file is unchanged" >&6;}
13534 else
13535 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13537 X"$ac_file" : 'X\(//\)[^/]' \| \
13538 X"$ac_file" : 'X\(//\)$' \| \
13539 X"$ac_file" : 'X\(/\)' \| \
13540 . : '\(.\)' 2>/dev/null ||
13541echo X"$ac_file" |
13542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13544 /^X\(\/\/\)$/{ s//\1/; q; }
13545 /^X\(\/\).*/{ s//\1/; q; }
13546 s/.*/./; q'`
13547 { if $as_mkdir_p; then
13548 mkdir -p "$ac_dir"
252b5132 13549 else
5464f5a1
NN
13550 as_dir="$ac_dir"
13551 as_dirs=
13552 while test ! -d "$as_dir"; do
13553 as_dirs="$as_dir $as_dirs"
13554 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13556 X"$as_dir" : 'X\(//\)[^/]' \| \
13557 X"$as_dir" : 'X\(//\)$' \| \
13558 X"$as_dir" : 'X\(/\)' \| \
13559 . : '\(.\)' 2>/dev/null ||
13560echo X"$as_dir" |
13561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13563 /^X\(\/\/\)$/{ s//\1/; q; }
13564 /^X\(\/\).*/{ s//\1/; q; }
13565 s/.*/./; q'`
13566 done
13567 test ! -n "$as_dirs" || mkdir $as_dirs
13568 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13569echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13570 { (exit 1); exit 1; }; }; }
13571
13572 rm -f $ac_file
13573 mv $tmp/config.h $ac_file
252b5132 13574 fi
5464f5a1
NN
13575 else
13576 cat $tmp/config.h
13577 rm -f $tmp/config.h
252b5132 13578 fi
f5385ebf
AM
13579# Compute $ac_file's index in $config_headers.
13580_am_stamp_count=1
13581for _am_header in $config_headers :; do
13582 case $_am_header in
13583 $ac_file | $ac_file:* )
13584 break ;;
13585 * )
13586 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13587 esac
13588done
13589echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13590$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13591 X$ac_file : 'X\(//\)[^/]' \| \
13592 X$ac_file : 'X\(//\)$' \| \
13593 X$ac_file : 'X\(/\)' \| \
13594 . : '\(.\)' 2>/dev/null ||
13595echo X$ac_file |
13596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13598 /^X\(\/\/\)$/{ s//\1/; q; }
13599 /^X\(\/\).*/{ s//\1/; q; }
13600 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13601done
13602_ACEOF
13603cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13604
5464f5a1
NN
13605#
13606# CONFIG_COMMANDS section.
13607#
13608for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13609 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13610 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13611 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13612$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13613 X"$ac_dest" : 'X\(//\)[^/]' \| \
13614 X"$ac_dest" : 'X\(//\)$' \| \
13615 X"$ac_dest" : 'X\(/\)' \| \
13616 . : '\(.\)' 2>/dev/null ||
13617echo X"$ac_dest" |
13618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13620 /^X\(\/\/\)$/{ s//\1/; q; }
13621 /^X\(\/\).*/{ s//\1/; q; }
13622 s/.*/./; q'`
13623 { if $as_mkdir_p; then
13624 mkdir -p "$ac_dir"
13625 else
13626 as_dir="$ac_dir"
13627 as_dirs=
13628 while test ! -d "$as_dir"; do
13629 as_dirs="$as_dir $as_dirs"
13630 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13632 X"$as_dir" : 'X\(//\)[^/]' \| \
13633 X"$as_dir" : 'X\(//\)$' \| \
13634 X"$as_dir" : 'X\(/\)' \| \
13635 . : '\(.\)' 2>/dev/null ||
13636echo X"$as_dir" |
13637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13639 /^X\(\/\/\)$/{ s//\1/; q; }
13640 /^X\(\/\).*/{ s//\1/; q; }
13641 s/.*/./; q'`
13642 done
13643 test ! -n "$as_dirs" || mkdir $as_dirs
13644 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13645echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13646 { (exit 1); exit 1; }; }; }
b3baf5d0 13647
5464f5a1 13648 ac_builddir=.
b3baf5d0 13649
5464f5a1
NN
13650if test "$ac_dir" != .; then
13651 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13652 # A "../" for each directory in $ac_dir_suffix.
13653 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13654else
13655 ac_dir_suffix= ac_top_builddir=
13656fi
13657
13658case $srcdir in
13659 .) # No --srcdir option. We are building in place.
13660 ac_srcdir=.
13661 if test -z "$ac_top_builddir"; then
13662 ac_top_srcdir=.
13663 else
13664 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13665 fi ;;
13666 [\\/]* | ?:[\\/]* ) # Absolute path.
13667 ac_srcdir=$srcdir$ac_dir_suffix;
13668 ac_top_srcdir=$srcdir ;;
13669 *) # Relative path.
13670 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13671 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13672esac
13673
13674# Do not use `cd foo && pwd` to compute absolute paths, because
13675# the directories may not exist.
13676case `pwd` in
13677.) ac_abs_builddir="$ac_dir";;
13678*)
13679 case "$ac_dir" in
13680 .) ac_abs_builddir=`pwd`;;
13681 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13682 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13683 esac;;
13684esac
13685case $ac_abs_builddir in
13686.) ac_abs_top_builddir=${ac_top_builddir}.;;
13687*)
13688 case ${ac_top_builddir}. in
13689 .) ac_abs_top_builddir=$ac_abs_builddir;;
13690 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13691 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13692 esac;;
13693esac
13694case $ac_abs_builddir in
13695.) ac_abs_srcdir=$ac_srcdir;;
13696*)
13697 case $ac_srcdir in
13698 .) ac_abs_srcdir=$ac_abs_builddir;;
13699 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13700 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13701 esac;;
13702esac
13703case $ac_abs_builddir in
13704.) ac_abs_top_srcdir=$ac_top_srcdir;;
13705*)
13706 case $ac_top_srcdir in
13707 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13708 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13709 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13710 esac;;
13711esac
13712
13713
13714 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13715echo "$as_me: executing $ac_dest commands" >&6;}
13716 case $ac_dest in
f5385ebf
AM
13717 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13718 # Strip MF so we end up with the name of the file.
13719 mf=`echo "$mf" | sed -e 's/:.*$//'`
13720 # Check whether this is an Automake generated Makefile or not.
13721 # We used to match only the files named `Makefile.in', but
13722 # some people rename them; so instead we look at the file content.
13723 # Grep'ing the first line is not enough: some people post-process
13724 # each Makefile.in and add a new line on top of each file to say so.
13725 # So let's grep whole file.
13726 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13727 dirpart=`(dirname "$mf") 2>/dev/null ||
13728$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729 X"$mf" : 'X\(//\)[^/]' \| \
13730 X"$mf" : 'X\(//\)$' \| \
13731 X"$mf" : 'X\(/\)' \| \
13732 . : '\(.\)' 2>/dev/null ||
13733echo X"$mf" |
13734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13736 /^X\(\/\/\)$/{ s//\1/; q; }
13737 /^X\(\/\).*/{ s//\1/; q; }
13738 s/.*/./; q'`
13739 else
13740 continue
13741 fi
13742 # Extract the definition of DEPDIR, am__include, and am__quote
13743 # from the Makefile without running `make'.
13744 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13745 test -z "$DEPDIR" && continue
13746 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13747 test -z "am__include" && continue
13748 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13749 # When using ansi2knr, U may be empty or an underscore; expand it
13750 U=`sed -n 's/^U = //p' < "$mf"`
13751 # Find all dependency output files, they are included files with
13752 # $(DEPDIR) in their names. We invoke sed twice because it is the
13753 # simplest approach to changing $(DEPDIR) to its actual value in the
13754 # expansion.
13755 for file in `sed -n "
13756 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13757 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13758 # Make sure the directory exists.
13759 test -f "$dirpart/$file" && continue
13760 fdir=`(dirname "$file") 2>/dev/null ||
13761$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13762 X"$file" : 'X\(//\)[^/]' \| \
13763 X"$file" : 'X\(//\)$' \| \
13764 X"$file" : 'X\(/\)' \| \
13765 . : '\(.\)' 2>/dev/null ||
13766echo X"$file" |
13767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13769 /^X\(\/\/\)$/{ s//\1/; q; }
13770 /^X\(\/\).*/{ s//\1/; q; }
13771 s/.*/./; q'`
13772 { if $as_mkdir_p; then
13773 mkdir -p $dirpart/$fdir
13774 else
13775 as_dir=$dirpart/$fdir
13776 as_dirs=
13777 while test ! -d "$as_dir"; do
13778 as_dirs="$as_dir $as_dirs"
13779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13781 X"$as_dir" : 'X\(//\)[^/]' \| \
13782 X"$as_dir" : 'X\(//\)$' \| \
13783 X"$as_dir" : 'X\(/\)' \| \
13784 . : '\(.\)' 2>/dev/null ||
13785echo X"$as_dir" |
13786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13788 /^X\(\/\/\)$/{ s//\1/; q; }
13789 /^X\(\/\).*/{ s//\1/; q; }
13790 s/.*/./; q'`
13791 done
13792 test ! -n "$as_dirs" || mkdir $as_dirs
13793 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13794echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13795 { (exit 1); exit 1; }; }; }
13796
13797 # echo "creating $dirpart/$file"
13798 echo '# dummy' > "$dirpart/$file"
13799 done
13800done
13801 ;;
20e95c23
DJ
13802 default-1 )
13803 for ac_file in $CONFIG_FILES; do
13804 # Support "outfile[:infile[:infile...]]"
13805 case "$ac_file" in
13806 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13807 esac
13808 # PO directories have a Makefile.in generated from Makefile.in.in.
13809 case "$ac_file" in */Makefile.in)
13810 # Adjust a relative srcdir.
13811 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13812 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13813 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13814 # In autoconf-2.13 it is called $ac_given_srcdir.
13815 # In autoconf-2.50 it is called $srcdir.
13816 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13817 case "$ac_given_srcdir" in
13818 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13819 /*) top_srcdir="$ac_given_srcdir" ;;
13820 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13821 esac
13822 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13823 rm -f "$ac_dir/POTFILES"
13824 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13825 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13826 POMAKEFILEDEPS="POTFILES.in"
13827 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13828 # on $ac_dir but don't depend on user-specified configuration
13829 # parameters.
13830 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13831 # The LINGUAS file contains the set of available languages.
13832 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13833 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13834 fi
13835 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13836 # Hide the ALL_LINGUAS assigment from automake.
13837 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13838 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13839 else
13840 # The set of available languages was given in configure.in.
13841 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13842 fi
13843 case "$ac_given_srcdir" in
13844 .) srcdirpre= ;;
13845 *) srcdirpre='$(srcdir)/' ;;
13846 esac
13847 POFILES=
13848 GMOFILES=
13849 UPDATEPOFILES=
13850 DUMMYPOFILES=
13851 for lang in $ALL_LINGUAS; do
13852 POFILES="$POFILES $srcdirpre$lang.po"
13853 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13854 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13855 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13856 done
13857 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13858 # environment variable.
13859 INST_LINGUAS=
13860 if test -n "$ALL_LINGUAS"; then
13861 for presentlang in $ALL_LINGUAS; do
13862 useit=no
13863 if test "%UNSET%" != "$LINGUAS"; then
13864 desiredlanguages="$LINGUAS"
13865 else
13866 desiredlanguages="$ALL_LINGUAS"
13867 fi
13868 for desiredlang in $desiredlanguages; do
13869 # Use the presentlang catalog if desiredlang is
13870 # a. equal to presentlang, or
13871 # b. a variant of presentlang (because in this case,
13872 # presentlang can be used as a fallback for messages
13873 # which are not translated in the desiredlang catalog).
13874 case "$desiredlang" in
13875 "$presentlang"*) useit=yes;;
13876 esac
13877 done
13878 if test $useit = yes; then
13879 INST_LINGUAS="$INST_LINGUAS $presentlang"
13880 fi
13881 done
13882 fi
13883 CATALOGS=
13884 if test -n "$INST_LINGUAS"; then
13885 for lang in $INST_LINGUAS; do
13886 CATALOGS="$CATALOGS $lang.gmo"
13887 done
13888 fi
13889 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13890 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"
13891 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13892 if test -f "$f"; then
13893 case "$f" in
13894 *.orig | *.bak | *~) ;;
13895 *) cat "$f" >> "$ac_dir/Makefile" ;;
13896 esac
13897 fi
13898 done
13899 fi
13900 ;;
13901 esac
13902 done ;;
13903 default )
13904case "$srcdir" in
13905 .) srcdirpre= ;;
13906 *) srcdirpre='$(srcdir)/' ;;
13907esac
13908POFILES=
13909GMOFILES=
13910for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13911 if test $lang != dummy; then
13912 POFILES="$POFILES $srcdirpre$lang.po"
13913 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13914 fi
13915done
13916sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13917 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13918 -e "s,@POFILES@,$POFILES," \
13919 -e "s,@GMOFILES@,$GMOFILES," \
13920 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
13921 esac
13922done
13923_ACEOF
13924
13925cat >>$CONFIG_STATUS <<\_ACEOF
13926
13927{ (exit 0); exit 0; }
13928_ACEOF
252b5132 13929chmod +x $CONFIG_STATUS
5464f5a1
NN
13930ac_clean_files=$ac_clean_files_save
13931
13932
13933# configure is writing to config.log, and then calls config.status.
13934# config.status does its own redirection, appending to config.log.
13935# Unfortunately, on DOS this fails, as config.log is still kept open
13936# by configure, so config.status won't be able to write to it; its
13937# output is simply discarded. So we exec the FD to /dev/null,
13938# effectively closing config.log, so it can be properly (re)opened and
13939# appended to by config.status. When coming back to configure, we
13940# need to make the FD available again.
13941if test "$no_create" != yes; then
13942 ac_cs_success=:
13943 ac_config_status_args=
13944 test "$silent" = yes &&
13945 ac_config_status_args="$ac_config_status_args --quiet"
13946 exec 5>/dev/null
13947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13948 exec 5>>config.log
13949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13950 # would make configure fail if this is the last instruction.
13951 $ac_cs_success || { (exit 1); exit 1; }
13952fi
252b5132 13953
55c80943 13954
This page took 2.150324 seconds and 4 git commands to generate.